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

IExternalTranslateItemCommandArgs Interface

A structure defining the TranslateItems command parameters.

example
const args = {
    // Move the Contacts1 and Contacts2 fields to the lower-right corner.
    itemIds: ["Contacts1", "Contacts2"],
    // 10% of the print area.
    translateX: "10%",
    translateY: "10%"
};
editor.commandManager.execute("translateItems", args);

Properties

itemIds

itemIds: string []

An array of item identifiers.

translateX

translateX: number | string

The distance to translate (move) the items along the X-axis, in either points or percent relative to the print area. For example, 72 or "10%".

translateY

translateY: number | string

The distance to translate (move) the items along the Y-axis, in either points or percent relative to the print area. For example, 72 or "10%".