White paper: Templates in web-to-print.  Free download

execute Method

Callable

  • execute(name: any, args?: any ) : Promise < void >
  • Executes the Translate and Resize operations.

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

    Parameters

    Returns Promise < void >