Skip to main content

Interface: EnabledAspectRatioLock

Properties​

isAspectRatioLocked​

• isAspectRatioLocked: boolean

Returns if the item is aspect ratio locked

Defined in​

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


isEnabled​

• isEnabled: boolean

Returns true if only a single item items is selected that can be aspect ratio locked

Defined in​

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


toggleAspectRatioLock​

• toggleAspectRatioLock: (isRatioLocked: boolean) => void

Type declaration​

▸ (isRatioLocked): void

Commits the lock on the item metadata on the cimDoc using executeCommand with a single step in history

Parameters​
NameType
isRatioLockedboolean
Returns​

void

Defined in​

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