Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
419 B · 23 lines
TypeScript
at main
123456789101112131415161718192021222324import type { DOMElement } from './dom.js'
type Output = { /** * Element width. */ width: number
/** * Element height. */ height: number}
/** * Measure the dimensions of a particular `<Box>` element. */const measureElement = (node: DOMElement): Output => ({ width: node.yogaNode?.getComputedWidth() ?? 0, height: node.yogaNode?.getComputedHeight() ?? 0,})
export default measureElement