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
These properties are useful for getting the actual width and height of an element as it is displayed on the webpage, and it is the recommended way to properly calculate the visible width/height/aspect of an HTML canvas, since Canvas.{width,height} doesn't account for changes in size made by CSS.
The text was updated successfully, but these errors were encountered:
MDN docs:
clientWidth
,clientHeight
These properties are useful for getting the actual width and height of an element as it is displayed on the webpage, and it is the recommended way to properly calculate the visible width/height/aspect of an HTML canvas, since
Canvas.{width,height}
doesn't account for changes in size made by CSS.The text was updated successfully, but these errors were encountered: