Skip to main content

ResizeCommand

Classes

ResizeCommand

Extends

Constructors

Constructor
new ResizeCommand(
historyArgs,
product,
args,
productHandler,
commandManager,
canvas?): ResizeCommand;
Parameters
ParameterType
historyArgsIHistoryArgs
productProduct
args| IResizeArgs | IExternalResizeArgs
productHandlerProductHandler
commandManagerCommandManager
canvas?Canvas
Returns

ResizeCommand

Overrides

BaseProductCommand.constructor

Methods

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

Promise<void>

Inherited from

BaseProductCommand.execute

executeCommandBody()
executeCommandBody(): Promise<void>;
Returns

Promise<void>

Overrides
BaseProductCommand._executeCommandBody;
redo()
redo(): Promise<void>;
Returns

Promise<void>

Overrides

BaseProductCommand.redo

undo()
undo(): Promise<void>;
Returns

Promise<void>

Overrides

BaseProductCommand.undo

Interfaces

IContainerResizeOptions

Properties

originX?
optional originX?: OriginPointType;
originY?
optional originY?: OriginPointType;
resetPlaceholderContent?
optional resetPlaceholderContent?: boolean;
resize?
optional resize?: ResizeRectangleType;

IExternalResizeArgs

Properties

containerOptions?
optional containerOptions?: object;
Index Signature
[key: string]: IContainerResizeOptions
defaultOptions?
optional defaultOptions?: IContainerResizeOptions;
height
height: string | number;
targetIds
targetIds: string[];
targetType
targetType: "printArea" | "product" | "surfaces" | "items";
width
width: string | number;

IResizeArgs

Properties

containerOptions?
optional containerOptions?: object;
Index Signature
[key: string]: IContainerResizeOptions
defaultOptions?
optional defaultOptions?: IContainerResizeOptions;
height
height: string | number;
target
target: any;
width
width: string | number;
Was this page helpful?