Function: useRotate
▸ useRotate(): Object
The useRotate hook provides functionality for setting the global rotation of the current layout, while maintaining the visible screen center.
Returns
Object
Name | Type | Description |
---|---|---|
globalRotation | number | The global rotation for the current layoutStore. Equivalent to accessing directly via layoutStore.globalrotation |
setGlobalRotation | (rotation : number ) => void | - |
Defined in
packages/design-engine-react-components/src/hooks/useRotate/useRotate.ts:10