@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
53 lines (35 loc) • 1.22 kB
Markdown
A command that moves predefined items.
For details, you can refer to the [IDesignEditorDefinitionSetBackground](../interfaces/idesigneditordefinitionsetbackground.md).
```
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"translate": {
"translateParams": {
"items": ["Name"], // item name
"translateX": "10",
"translateY": "10"
}
}
}
}
```
* [DesignEditorWidgetCommand](designeditorwidgetcommand.md)
↳ **TranslateItemsCommand**
* [execute](translateitemscommand.md
▸ **execute**(`params`: [IDesignEditorDefinitionTranslateItems](../interfaces/idesigneditordefinitiontranslateitems.md)): *Promise‹void›*
*Overrides [DesignEditorWidgetCommand](designeditorwidgetcommand.md).[execute](designeditorwidgetcommand.md
Executes this command.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`params` | [IDesignEditorDefinitionTranslateItems](../interfaces/idesigneditordefinitiontranslateitems.md) | Parameters for the command. |
**Returns:** *Promise‹void›*