selectElementAngle()
function selectElementAngle(element): number;
Selects an element's rotation in degrees, falling back to 0 when the
element has no explicit angle.
Parameters
| Parameter | Type | Description |
|---|---|---|
element | InternalElementRecord<unknown> | the resolved element record |
Returns
number
Example
import { useCell, selectElementAngle } from '@joint/react';
const angle = useCell(elementId, selectElementAngle);