@joint/react
    Preparing search index...

    Function selectElementAngle

    Cell selectors, pass to useCell / useCells

    • Selects an element's rotation in degrees, falling back to 0 when the element has no explicit angle.

      Parameters

      • element: InternalElementRecord<unknown>

        the resolved element record

      Returns number

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

      const angle = useCell(elementId, selectElementAngle);