@fimagine/writeboard
    Preparing search index...

    Interface IFactory

    接口:工厂

    IFactory

    interface IFactory {
        get resizer(): IResizerInfo;
        get rotator(): IRotatorInfo;
        get type(): FactoryType;
        fontFamilies(): string[];
        fontName(fontFamily: string): string;
        newId(data: IShapeData): string;
        newLayer(inits?: Partial<ILayerInits>): Layer;
        newLayerId(): string;
        newLayerName(): string;
        newShape(shapeType: ShapeType): Shape;
        newShape(shapeData: IShapeData): Shape;
        newShapeData(shapeType: ShapeType): ShapeData;
        newShapesMgr(): IShapesMgr;
        newTool(toolType: string): ITool;
        newWhiteBoard(options: BoardOptions): Board;
        newZ(data: IShapeData): number;
        overbound(shape: Shape): number;
        setShapeTemplate(shapeType: ShapeType, template: ShapeData): void;
        shapeDecoration(shape: Shape): IShapeDecoration;
        shapeTemplate(shapeType: ShapeType): ShapeData;
    }

    Implemented by

    Index

    Accessors

    • get resizer(): IResizerInfo

      Returns IResizerInfo

    Methods

    • Returns string[]

    • Parameters

      • fontFamily: string

      Returns string

    • Parameters

      Returns string

    • Returns string

    • Returns string

    • Parameters

      • toolType: string

      Returns ITool

    • Parameters

      Returns number

    • Parameters

      Returns number