1 | import { RegisterShape, RegisterShapeFactory, Shape, ShapeFactory } from '../../interface';
|
2 | /**
|
3 | * 注册 ShapeFactory。
|
4 | * @param factoryName ShapeFactory 名称,对应 Geometry 几何标记名称。
|
5 | * @param cfg 注册 ShapeFactory 需要覆写定义的属性。
|
6 | * @returns 返回 ShapeFactory 对象。
|
7 | */
|
8 | export declare function registerShapeFactory(factoryName: string, cfg: RegisterShapeFactory): ShapeFactory;
|
9 | /**
|
10 | * 注册 Shape。
|
11 | * @param factoryName 对应的 ShapeFactory 名称。
|
12 | * @param shapeType 注册的 shape 名称。
|
13 | * @param cfg 注册 Shape 需要覆写定义的属性。
|
14 | * @returns shape 返回注册的 shape 对象。
|
15 | */
|
16 | export declare function registerShape(factoryName: string, shapeType: string, cfg: RegisterShape): Shape;
|
17 | /**
|
18 | * 获取 factoryName 对应的 shapeFactory
|
19 | * @param factoryName
|
20 | * @returns shape factory
|
21 | */
|
22 | export declare function getShapeFactory(factoryName: string): ShapeFactory;
|