MCPcopy
hub / github.com/codeaashu/claude-code / measureElement

Function measureElement

src/ink/measure-element.ts:18–21  ·  view source on GitHub ↗
(node: DOMElement)

Source from the content-addressed store, hash-verified

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

Callers 2

RatchetFunction · 0.85

Calls 2

getComputedWidthMethod · 0.45
getComputedHeightMethod · 0.45

Tested by

no test coverage detected