TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

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
            }
          }
        }
      }
  }
}

Hierarchy

  • IConfiglResizeArgs

Index

Properties

Properties

Optional containerOptions

containerOptions? : object

Type declaration:

  • [ key: string]: IContainerResizeOptions

Optional defaultOptions

defaultOptions? : IContainerResizeOptions


height

height: number | string


targetType

targetType: "product" | "surfaces" | "items" | "printArea"


targets

targets: string[]


width

width: number | string