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.

40 lines (39 loc) 1.34 kB
import { BaseItemsCommand } from "./BaseItemsCommand"; import { IHistoryArgs } from "../ModelUpdateCommand"; import { Item } from "@aurigma/design-atoms-model/Product/Items"; import { ItemsDataApplier } from "../../Services/ItemsDataApplier"; import { IItemData } from "../../Services/ItemsDataApplierInterfaces"; export declare class CreateItemCommand extends BaseItemsCommand<ICreateItemCommandArgs, Item> { private _itemsDataApplier; constructor(_itemsDataApplier: ItemsDataApplier, historyArgs: IHistoryArgs, args: ICreateItemCommandArgs); _executeCommandBody(): Promise<Item>; redo(): Promise<void>; undo(): Promise<void>; } export interface ICreateItemCommandArgs { type: ItemType; itemData?: IItemData; relativeToPrintArea?: boolean; } export declare namespace ItemType { const isText: (type: ItemType) => boolean; const getType: (item: Item) => ItemType; } export declare enum ItemType { AutoScaledTextItem = 0, BarcodeItem = 1, BoundedTextItem = 2, CurvedTextItem = 3, EllipseItem = 4, ImageItem = 5, LineItem = 6, PathBoundedTextItem = 7, PlaceholderItem = 8, PlainTextItem = 9, RectangleItem = 10, ArchedTextItem = 11, ShapeItem = 12, GroupItem = 13, LayoutItem = 14, ClipartItem = 15 }