Cell selectors, pass to useCell / useCells
Selects an element's top-left position { x, y }. A subscribed component re-renders only when the element moves.
{ x, y }
the resolved element record
import { useCell, selectElementPosition } from '@joint/react';const { x, y } = useCell(elementId, selectElementPosition); Copy
import { useCell, selectElementPosition } from '@joint/react';const { x, y } = useCell(elementId, selectElementPosition);
Cell selectors, pass to useCell / useCells