mirror of
https://gitee.com/antv/g6.git
synced 2024-11-30 18:58:34 +08:00
fix: delete unused static function on shape
This commit is contained in:
parent
59819b5e41
commit
9079a33225
@ -239,25 +239,6 @@ export default class Shape {
|
||||
shapeFactory[shapeType] = shapeObj;
|
||||
return shapeObj;
|
||||
}
|
||||
|
||||
public static registerNodeByXML(
|
||||
shapeType: string,
|
||||
xml: (cfg: NodeConfig) => string | string,
|
||||
extendDefinition: ShapeOptions = {}
|
||||
) {
|
||||
const shapeFactory = Shape.Node;
|
||||
const autoNodeDefinition = createNodeFromXML(xml);
|
||||
const nodeDefinition = {
|
||||
...extendDefinition,
|
||||
...autoNodeDefinition,
|
||||
}
|
||||
|
||||
const shapeObj = Object.assign({}, ShapeFramework, nodeDefinition);
|
||||
shapeObj.type = shapeType;
|
||||
shapeObj.itemType = 'node';
|
||||
shapeFactory[shapeType] = shapeObj;
|
||||
return shapeObj;
|
||||
}
|
||||
}
|
||||
|
||||
// 注册 Node 的工厂方法
|
||||
|
Loading…
Reference in New Issue
Block a user