Hi. diagram.add( <span =“Apple-tab-span” style=“white-space:pre”> $(go.Part,
<span =“Apple-tab-span” style=“white-space:pre”> $(go.Picture, {
<span =“Apple-tab-span” style=“white-space: pre;”> source: “images/100x65.fooooooooooooooo”,
<span =“Apple-tab-span” style=“white-space:pre”> width: 200,
<span =“Apple-tab-span” style=“white-space:pre”> height: 200,
<span =“Apple-tab-span” style=“white-space:pre”> errorFunction: function(picture) {
<span =“Apple-tab-span” style=“white-space:pre”> picture.source = “img/120x160.png”;
<span =“Apple-tab-span” style=“white-space:pre;”> <span =“Apple-tab-span” style=“white-space:pre;”> <span =“Apple-tab-span” style=“white-space:pre;”> }
<span =“Apple-tab-span” style=“white-space:pre”> })
<span =“Apple-tab-span” style=“white-space:pre;”> )
);
As above, when I put a wrong value into Source of Picture.
This message(you can see below) sometimes pops up on Chrome. Why does this happen?
InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
I don’t want this message. Please let me know how to make it not seen on the Chrome.
Thanks.< =“transover-tooltip” style=“text-align: left; border: 1px solid rgb204, 204, 204; -shadow: rgba0, 0, 0, 0.2 0px 2px 5px; : fixed; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; : 2147483647; display: none; left: 22px; top: -1500px; width: 0px; height: 0px; : rgb252, 247, 217;”>< =“transover-tooltip” style=“text-align: left; border: 1px solid rgb204, 204, 204; -shadow: rgba0, 0, 0, 0.2 0px 2px 5px; : fixed; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; : 2147483647; top: -1500px; display: none; : rgb252, 247, 217;”>