Interface IConfiglResizeArgs
Provides parameters to resize the whole product or some items.
For details, you can refer to the docs.
{
"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
}
}
}
}
}
}
Properties
containerOptions
Declaration
containerOptions?: [key: string]: IContainerResizeOptions
Property Value
Type |
Description |
[key: string]: IContainerResizeOptions |
|
defaultOptions
Declaration
defaultOptions?: IContainerResizeOptions
Property Value
Type |
Description |
IContainerResizeOptions |
|
height
Declaration
Property Value
Type |
Description |
number | string |
|
targets
Declaration
Property Value
Type |
Description |
string[] |
|
targetType
Declaration
targetType: "product" | "surfaces" | "items" | "printArea"
Property Value
Type |
Description |
"product" | "surfaces" | "items" | "printArea" |
|
width
Declaration
Property Value
Type |
Description |
number | string |
|