react-use-measure icon indicating copy to clipboard operation
react-use-measure copied to clipboard

Feature request: optionally apply CSS transforms.

Open prideout opened this issue 3 years ago • 0 comments

ResizeObserver reports the size before CSS transforms are applied, but sometimes that's not what we want. e.g. tldraw heavily relies on CSS transforms, and sometimes we need to measure the "apparent" size of an element after it has been zoomed in.

One way of doing this would be getComputedStyle(el).getPropertyValue(‘transform’)

prideout avatar Nov 15 '22 17:11 prideout