Skip to main content

au-widget-design-editor/Commands/translate-items-command

Classes

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

Extends

Methods

execute()
execute(params): Promise<void>;

Executes this command.

Parameters
ParameterTypeDescription
paramsIDesignEditorDefinitionTranslateItemsParameters for the command.
Returns

Promise<void>

Overrides

DesignEditorWidgetCommand.execute

Was this page helpful?