Back to Website
Show / Hide Table of Contents

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
            }
          }
        }
      }
  }
}
Package: ui-framework

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
height: number | string
Property Value
Type Description
number | string

targets

Declaration
targets: string[]
Property Value
Type Description
string[]

targetType

Declaration
targetType: "product" | "surfaces" | "items" | "printArea"
Property Value
Type Description
"product" | "surfaces" | "items" | "printArea"

width

Declaration
width: number | string
Property Value
Type Description
number | string
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback