@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
74 lines (47 loc) • 1.82 kB
Markdown
Provides properties to set up a print area.
For details, you can refer to the [SetPrintArea command](https://customerscanvas.com/dev/editors/ui-framework/widgets/design-editor-commands/set-print-area.html).
```
{
"type": "canvas",
"name": "editor",
"params": {
"initial": { ... },
"setPrintArea": {
"options": {
"preserveUserChanges": true,
"updateRevertData": false
},
"data": {
"designFile": "{{vars.designRoot + '/' + $['card-size']._.title}}"
}
}
}
}
```
* [ICanvasCommandDefinition](icanvascommanddefinition.md)
↳ **ICanvasDefinitionSetPrintArea**
* [after](icanvasdefinitionsetprintarea.md
* [data](icanvasdefinitionsetprintarea.md
* [options](icanvasdefinitionsetprintarea.md
* [surfaceIndex](icanvasdefinitionsetprintarea.md
• **after**? : *string | string[]*
*Inherited from [ICanvasCommandDefinition](icanvascommanddefinition.md).[after](icanvascommanddefinition.md
The next commands to be executed after this command completes.
___
• **data**: *CustomersCanvas.IframeApi.ObjectModel.IPrintAreaTemplate | CustomersCanvas.IframeApi.ObjectModel.IPrintAreaDefinition*
The print area [definition](https://customerscanvas.com/dev/editors/iframe-api/howto/update-surfaces.html).
___
• **options**: *any*
Additional configuration parameters. For details, see the [reference](https://customerscanvas.com/dev/editors/iframe-api/howto/update-surfaces.html).
___
• **surfaceIndex**? : *number*
The index of a surface that should be modified (the current surface if omitted).