Skip to main content

Function: useDimensionsControls

useDimensionsControls(): UseDimensionControls

Provides the functionality to edit a single selected item's dimensions using the IDAItemLayoutExtension.

Provides callbacks for temporarily updating state as well as commiting the final updated value to Cimdoc. This hook ensures that the size change respects the current rotation and position of the item.

Also returns if the item is locked for transforms by using ItemPermissionsExtension

Dependencies

[DesignExtensionSystem, IDAItemLayoutExtension, ItemPermissionsExtension]

Returns

UseDimensionControls

Defined in

packages/design-engine-react-components/src/hooks/useDimensionsControls.ts:72