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

CommandManager Class

Performs operations on the product and design elements.

example
const args = {
    translateX: 108,
    translateY: 0,
    itemIds: ["PhotoPlaceholder"]
};
// Moves the PhotoPlaceholder 1.5 inches horizontally.
editor.commandManager.execute("translateItems", args);

Methods

Name Description
execute

Executes the Translate and Resize operations.