/** * Copyright (c) 2019-present Houfeng * @author Houfeng */ import { ShapeCommand, IShapeCommand } from "./ShapeCommand"; import { IShapeModel } from "../Shape"; import { ICommand } from "./Command"; /** * 添加图形命令信息 */ export interface IShapeAddCommand extends IShapeCommand { models: IShapeModel[]; index?: number | number[]; } /** * 添加图形命令 */ export declare class ShapeAddCommand extends ShapeCommand implements IShapeAddCommand { get type(): string; index?: number | number[]; models: IShapeModel[]; constructor(opts: IShapeAddCommand); undo(): void; redo(): void; toJSON(): { models: IShapeModel[]; sceneId: string; shapeIds: string[]; type: string; }; toAtoms(): ICommand[]; }