You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.

CommandManager Class

Applies to: Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · Archived documentation

Performs operations on the product and design elements.

example
const ids = (await editor.getSelectedItems()).map(item => item.id);

const args = {
    translateX: 108,
    translateY: 0,
    itemIds: ids
};
// Moves the selected items 1.5 inches horizontally.
editor.commandManager.execute("translateItems", args);

Methods

Name Description
execute

Executes the Translate and Resize operations.