(node: DOMElement)
| 16 | * Measure the dimensions of a particular `<Box>` element. |
| 17 | */ |
| 18 | const measureElement = (node: DOMElement): Output => ({ |
| 19 | width: node.yogaNode?.getComputedWidth() ?? 0, |
| 20 | height: node.yogaNode?.getComputedHeight() ?? 0, |
| 21 | }) |
| 22 | |
| 23 | export default measureElement |
| 24 |
no test coverage detected