Interface IManipulationPermissionsData
A structure defining the manipulation permissions.
Package: @aurigma/design-atoms-interfaces
Examples
You can prevent elements from moving horizontally and enable corner grips with the following config.
{
"defaultItemsConfig": {
"rectangle": {
"manipulationPermissions": {
"allowMoveHorizontal": false,
"resizeGrips": {
"edge": false,
"corner": ["Proportional"]
}
}
}
}
}
Properties
allowDelete
Allows deleting elements. The default value is true
.
Declaration
allowDelete?: boolean;
Property Value
Type | Description |
---|---|
boolean | Allows deleting elements. The default value is |
allowDragAndDrop
Allows dragging the content of image placeholders when they have the <PH><MAMH_f><MAMV_f>
markers. The default value is true
.
Declaration
allowDragAndDrop?: boolean;
Property Value
Type | Description |
---|---|
boolean | Allows dragging the content of image placeholders when they have the |
allowMoveHorizontal
Allows moving elements horizontally. The default value is true
.
Declaration
allowMoveHorizontal?: boolean;
Property Value
Type | Description |
---|---|
boolean | Allows moving elements horizontally. The default value is |
allowMoveVertical
Allows moving elements vertically. The default value is true
.
Declaration
allowMoveVertical?: boolean;
Property Value
Type | Description |
---|---|
boolean | Allows moving elements vertically. The default value is |
allowRotate
Allows rotating elements. The default value is true
.
Declaration
allowRotate?: boolean;
Property Value
Type | Description |
---|---|
boolean | Allows rotating elements. The default value is |
resizeGrips
Enables the corner and side grips to resize elements.
Declaration
resizeGrips?: IResizeGripsPermissions;
Property Value
Type | Description |
---|---|
IResizeGripsPermissions | Enables the corner and side grips to resize elements. |