Open bodymovin opened 1 month ago
clientWidth and clientHeight return element size without the decimals. getBoundingClientRect instead returns a more precise size that we can use to make sure the canvas is not slightly smaller than the container
clientWidth and clientHeight return element size without the decimals. getBoundingClientRect instead returns a more precise size that we can use to make sure the canvas is not slightly smaller than the container