@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
49 lines (31 loc) • 1.06 kB
Markdown
A command that duplicates one surface to several other surfaces.
```
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"duplicateSurfaces": [{
"surfaceToDuplicateId": 0,
"surfacesToChangeIds": [ 1 ]
}]
}
}
```
* [DesignEditorWidgetCommand](designeditorwidgetcommand.md)
↳ **DuplicateSurfacesCommand**
* [execute](duplicatesurfacescommand.md
▸ **execute**(`params`: [IDuplicateSurfacesCommandDefinition](../interfaces/iduplicatesurfacescommanddefinition.md)): *Promise‹void›*
*Overrides [DesignEditorWidgetCommand](designeditorwidgetcommand.md).[execute](designeditorwidgetcommand.md
Executes this command.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`params` | [IDuplicateSurfacesCommandDefinition](../interfaces/iduplicatesurfacescommanddefinition.md) | Parameters for the command. |
**Returns:** *Promise‹void›*