@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
18 lines (17 loc) • 839 B
TypeScript
import { BaseProductCommand } from "./BaseProductCommand";
import { Product } from "@aurigma/design-atoms-model/Product/Product";
import { IHistoryArgs } from "../ModelUpdateCommand";
import { ProductHandler } from "../../Services/ProductHandler";
import { RotationType } from "@aurigma/design-atoms-interfaces";
export declare class RotateProductCommand extends BaseProductCommand<IRotateProductCmdArgs, number> {
private _productHandler;
private _rotationAlgorithm;
constructor(_productHandler: ProductHandler, historyArgs: IHistoryArgs, product: Product, args: IRotateProductCmdArgs);
_executeCommandBody(): Promise<number>;
redo(): Promise<void>;
undo(): Promise<void>;
rotateProduct(type: RotationType): number;
}
export interface IRotateProductCmdArgs {
rotationType: RotationType;
}