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

Interface: ITranslateItemCommandConfigArgs

Provides parameters to resize a product or some items.

For details, you can refer to the docs.

{
  "type": "design-editor",
  "name": "editor",
  "params": {
    "initial": { ... },
    "translate": {
        "translateParams": {
         "items": ["Name"], // the item name
         "translateX": "10",
         "translateY": "10"
       }
     }
  }
}

Hierarchy

  • ITranslateItemCommandConfigArgs

Index

Properties

Properties

items

items: string[]


translateX

translateX: number | string


translateY

translateY: number | string