Cell selectors, pass to useCell / useCells
Selects an element's bounding-box size { width, height }. A subscribed component re-renders only when the element is resized.
{ width, height }
the resolved element record
import { useCell, selectElementSize } from '@joint/react';const { width, height } = useCell(elementId, selectElementSize); Copy
import { useCell, selectElementSize } from '@joint/react';const { width, height } = useCell(elementId, selectElementSize);
Cell selectors, pass to useCell / useCells