diff --git a/src/shape/shape.ts b/src/shape/shape.ts index f1180dab8b..5d0b7c8df1 100644 --- a/src/shape/shape.ts +++ b/src/shape/shape.ts @@ -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 的工厂方法