@joint/react
    Preparing search index...

    Function selectElementSize

    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.

      Parameters

      • element: InternalElementRecord<unknown>

        the resolved element record

      Returns Size

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

      const { width, height } = useCell(elementId, selectElementSize);