mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 19:58:46 +08:00
fix: delete unused static function on shape
This commit is contained in:
parent
49c73c6f77
commit
b8b803f6ae
@ -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