UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

20 lines (19 loc) 882 B
import { BaseItemsCommand } from "./BaseItemsCommand"; import { IHistoryArgs } from "../ModelUpdateCommand"; import { Item } from "@aurigma/design-atoms-model/Product/Items"; import { ProductHandler } from "../../Services/ProductHandler"; import { CommandManager } from "../CommandManager"; export declare class InsertItemsIntoAreaCommand extends BaseItemsCommand<IInsertItemsIntoAreaCommandArgs, void> { private _productHandler; private _commandManager; constructor(args: IInsertItemsIntoAreaCommandArgs, historyArgs: IHistoryArgs, _productHandler: ProductHandler, _commandManager: CommandManager); _executeCommandBody(): Promise<void>; redo(): Promise<void>; undo(): Promise<void>; } export interface IInsertItemsIntoAreaCommandArgs { items: Item[]; sourceWidth: number; sourceHeight: number; selectOnCanvas?: boolean; }