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

Class: TranslateItemsCommand

A command that moves predefined items.

For details, you can refer to the IDesignEditorDefinitionSetBackground.

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

Hierarchy

Index

Methods

Methods

execute

execute(params: IDesignEditorDefinitionTranslateItems): Promise‹void›

Overrides DesignEditorWidgetCommand.execute

Executes this command.

Parameters:

Name Type Description
params IDesignEditorDefinitionTranslateItems Parameters for the command.

Returns:Promise‹void›