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
The method checks if the values are a number. It then sets a csss and calls's rapael's setSize which sets height/width attributes. All of these accept non numeric values like '100%', '100px', etc. It would be nice if setDimension supports these. This just means not doing the checks.
The text was updated successfully, but these errors were encountered:
Also, note that in Canvas.init there's also a check for width and height in the form of !isNaN(parseFloat(width)) this check will pass if width is '100%' since parseFloat will return 100 which is a number. However, the intent is not for a 100 width canvas.
The method checks if the values are a number. It then sets a csss and calls's rapael's setSize which sets height/width attributes. All of these accept non numeric values like '100%', '100px', etc. It would be nice if setDimension supports these. This just means not doing the checks.
The text was updated successfully, but these errors were encountered: