@joint/react
    Preparing search index...

    Function selectElementPosition

    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.

      Parameters

      • element: InternalElementRecord<unknown>

        the resolved element record

      Returns PlainPoint

      import { useCell, selectElementPosition } from '@joint/react';

      const { x, y } = useCell(elementId, selectElementPosition);