Graphics command interface

图形命令接口

interface IGraphicsCmd {
    lock?: boolean;
    get cmdID(): string;
    getBounds?(assembler: IGraphicsBoundsAssembler): void;
    needsLayoutRepaint?(): number;
    recover(): void;
    run(runner: GraphicsRunner, gx: number, gy: number): void;
}

实现于

属性

lock?: boolean

If true, do not automatically recycle.

如果为true,则不自动回收

访问器

方法

  • 返回 number

    0 or 1

    Returns 1 if this command needs to respond to layout changes (e.g., percentage-based or arc drawing), otherwise returns 0.

    如果此命令需要响应布局变化(例如百分比显示或画弧线),返回1,否则返回0。