UNPKG

@aurigma/ui-framework

Version:

A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.

78 lines (58 loc) 1.93 kB
# Class: SetPrintAreaCommand A command that sets up a print area. A command that sets up a print area. For details, you can refer to the [IDesignEditorDefinitionSetPrintArea](../interfaces/idesigneditordefinitionsetprintarea.md). ``` { "type": "design-editor", "name": "editor", "params": { "initial": { ... }, "setPrintArea": { "options": { "preserveUserChanges": true, "updateRevertData": false }, "data": { "designFile": "{{vars.designRoot + '/' + $['card-size']._.title}}" } } } } ``` For details, you can refer to the [[ICanvasDefinitionSetPrintArea]]. ``` { "type": "canvas", "name": "editor", "params": { "initial": { ... }, "setPrintArea": { "options": { "preserveUserChanges": true, "updateRevertData": false }, "data": { "designFile": "{{vars.designRoot + '/' + $['card-size']._.title}}" } } } } ``` ## Hierarchy * [DesignEditorWidgetCommand](designeditorwidgetcommand.md) * [CanvasWidgetCommand](canvaswidgetcommand.md) ↳ **SetPrintAreaCommand** ## Index ### Methods * [execute](setprintareacommand.md#execute) ## Methods ### execute ▸ **execute**(`params`: [IDesignEditorDefinitionSetPrintArea](../interfaces/idesigneditordefinitionsetprintarea.md)[] | [IDesignEditorDefinitionSetPrintArea](../interfaces/idesigneditordefinitionsetprintarea.md)): *Promise‹void›* *Overrides [DesignEditorWidgetCommand](designeditorwidgetcommand.md).[execute](designeditorwidgetcommand.md#abstract-execute)* Executes this command. **Parameters:** Name | Type | Description | ------ | ------ | ------ | `params` | [IDesignEditorDefinitionSetPrintArea](../interfaces/idesigneditordefinitionsetprintarea.md)[] | [IDesignEditorDefinitionSetPrintArea](../interfaces/idesigneditordefinitionsetprintarea.md) | Parameters for the command. | **Returns:** *Promise‹void›*