Skip to main content

Function: useAspectRatioLock

useAspectRatioLock(): UseAspectRatioLock

Provides the functionality to lock/unlock a single selected item's aspect ratio value on the Cimdoc by using the ItemAspectRatioLockExtension

Remarks

Returns isEnabled as false if the item cannot be aspect ratio locked (eg: lines, text items) or if multiple items are selected

Dependencies

[DesignExtensionSystem, ItemAspectRatioLockExtension, ItemMetadataExtension]

Returns

UseAspectRatioLock

Defined in

packages/design-engine-react-components/src/hooks/useAspectRatioLock.ts:38