Back to Website
Show / Hide Table of Contents

Class RotateProductCommand

Inheritance
BaseProductCommand<IRotateProductCmdArgs, number>
RotateProductCommand
Package: @aurigma/design-atoms

Constructors

(constructor)(_productHandler, historyArgs, product, args)

Constructs a new instance of the RotateProductCommand class

Declaration
constructor(_productHandler: ProductHandler, historyArgs: IHistoryArgs, product: Product, args: IRotateProductCmdArgs);
Parameters
Type Name Description
ProductHandler _productHandler
IHistoryArgs historyArgs
Product product
IRotateProductCmdArgs args

Methods

_executeCommandBody()

Declaration
_executeCommandBody(): Promise<number>;
Returns
Type Description
Promise<number>

redo()

Declaration
redo(): Promise<void>;
Returns
Type Description
Promise<void>

rotateProduct(type)

Declaration
rotateProduct(type: RotationType): number;
Parameters
Type Name Description
RotationType type
Returns
Type Description
number

undo()

Declaration
undo(): Promise<void>;
Returns
Type Description
Promise<void>
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback