fix: delete unused static function on shape

This commit is contained in:
多牧 2020-06-03 17:10:39 +08:00 committed by Moyee
parent 59819b5e41
commit 9079a33225

View File

@ -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 的工厂方法