Skip to main content
Version: 4.3

selectElementAngle()

function selectElementAngle(element): number;

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

Parameters

ParameterTypeDescription
elementInternalElementRecord<unknown>the resolved element record

Returns

number

Example

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

const angle = useCell(elementId, selectElementAngle);

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub