@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
63 lines (45 loc) • 1.64 kB
Markdown
A command that resizes the whole product or only predefined items.
For details, you can refer to the [IDesignEditorDefinitionResizeItems](../interfaces/idesigneditordefinitionresizeitems.md).
```
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"resize": {
"resizeParams": {
"targetType": "product",
"width": "1000",
"height": "1000",
"defaultOptions": {
"resize": 0, // available resize modes: Fit (0, default), Fill (1), Arbitrary (2), Original (3)
"resetPlaceholderContent": false
},
"containerOptions": {
"Background": {
"resize": 2, // available resize modes: Fit (0, default), Fill (1), Arbitrary (2), Original (3)
"resetPlaceholderContent": true
}
}
}
}
}
}
```
* [DesignEditorWidgetCommand](designeditorwidgetcommand.md)
↳ **ResizeItemsCommand**
* [execute](resizeitemscommand.md
▸ **execute**(`params`: [IDesignEditorDefinitionResizeItems](../interfaces/idesigneditordefinitionresizeitems.md)): *Promise‹void›*
*Overrides [DesignEditorWidgetCommand](designeditorwidgetcommand.md).[execute](designeditorwidgetcommand.md
Executes this command.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`params` | [IDesignEditorDefinitionResizeItems](../interfaces/idesigneditordefinitionresizeitems.md) | Parameters for the command. |
**Returns:** *Promise‹void›*