Interface: EnabledPositionControls
Properties
isEnabled
• isEnabled: true
Defined in
packages/design-engine-react-components/src/hooks/usePositionControls.ts:14
isLocked
• isLocked: boolean
Returns if the item is locked for resizing using ItemPermissionsExtension
Defined in
packages/design-engine-react-components/src/hooks/usePositionControls.ts:30
onChange
• onChange: (value
: number
, key
: "x"
| "y"
) => void
Type declaration
▸ (value
, key
): void
Sets temporary position delta on state for preview updates
Parameters
Name | Type |
---|---|
value | number |
key | "x" | "y" |
Returns
void
Defined in
packages/design-engine-react-components/src/hooks/usePositionControls.ts:22
onCommit
• onCommit: () => void
Type declaration
▸ (): void
Commits change to Cimdoc using move command with a step in history
Returns
void
Defined in
packages/design-engine-react-components/src/hooks/usePositionControls.ts:26
x
• x: number
Current position x
Defined in
packages/design-engine-react-components/src/hooks/usePositionControls.ts:16
y
• y: number
Current position y
Defined in
packages/design-engine-react-components/src/hooks/usePositionControls.ts:18