SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

Add getClientRects to fragment instances (#32660)

Adds `getClientRects()` to fragment instances with a fixture test case.
`Element.getClientRect` returns a collection of `DOMRect`s (see example
of multiline span returning two `DOMRect` boxes).
`fragmentInstance.getClientRects` here flattens those collections into
an array of rects.
J
Jack Pope committed
476f53879e80d4ee976ed036a0e8986126fa3117
Parent: c69a5fc
Committed by GitHub <[email protected]> on 3/18/2025, 5:54:26 PM