@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
89 lines (60 loc) • 1.82 kB
Markdown
Provides parameters to resize the whole product or some items.
For details, you can refer to the [docs](https://customerscanvas.com/dev/editors/iframe-api/howto/resizing-designs.html).
```
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"resize": {
"resizeParams": {
"targetType": "items",
"targets": [ "itemName1", "itemName2" ],
"width": "60%",
"height": "60%",
"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
}
}
}
}
}
}
```
* **IConfiglResizeArgs**
* [containerOptions](iconfiglresizeargs.md
* [defaultOptions](iconfiglresizeargs.md
* [height](iconfiglresizeargs.md
* [targetType](iconfiglresizeargs.md
* [targets](iconfiglresizeargs.md
* [width](iconfiglresizeargs.md
• **containerOptions**? : *object*
* \[ **key**: *string*\]: IContainerResizeOptions
___
• **defaultOptions**? : *IContainerResizeOptions*
___
• **height**: *number | string*
___
• **targetType**: *"product" | "surfaces" | "items" | "printArea"*
___
• **targets**: *string[]*
___
• **width**: *number | string*