You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scaling shapes with mouse in playground mode, setting height/width to zero (and even negative) is now permitted, but this may entail errors like shapes.js:189 Uncaught IndexSizeError: Failed to execute 'ellipse' on 'CanvasRenderingContext2D': The major-axis radius provided (-1.5) is negative, and the browser will refuse to execute subsequent instructions. To avoid this, a greater-than-zero restriction should be introduced in perhaps in line 18-19 in shapes.js. Or, it would be better to show an explicit error message, so that the users may learn from it what is wrong in their code or operation.
The text was updated successfully, but these errors were encountered:
When scaling shapes with mouse in playground mode, setting height/width to zero (and even negative) is now permitted, but this may entail errors like
shapes.js:189 Uncaught IndexSizeError: Failed to execute 'ellipse' on 'CanvasRenderingContext2D': The major-axis radius provided (-1.5) is negative
, and the browser will refuse to execute subsequent instructions. To avoid this, a greater-than-zero restriction should be introduced in perhaps in line 18-19 inshapes.js
. Or, it would be better to show an explicit error message, so that the users may learn from it what is wrong in their code or operation.The text was updated successfully, but these errors were encountered: