Loading src/components/SVGRegistryBasedCanvasItem/SVGRegistryBasedCanvasItem.jsx +5 −14 Original line number Diff line number Diff line Loading @@ -224,14 +224,7 @@ class SVGRegistryBasedCanvasItem extends Component { this.setState({ position: null, showActions: false, svg: { base: defaultSVG, bbox: { x: 0, y: 0, height: 100, width: 100, }, ports: {}, attributes: {}, }, svg: defaultSVG, childrenName2Id: {}, childInfo: {}, isConnection: null, Loading Loading @@ -311,12 +304,10 @@ class SVGRegistryBasedCanvasItem extends Component { } const newSvg = { base: nodeObj.getRegistry('SVGIcon') || defaultSVG, bbox: nodeObj.getRegistry('SVGBbox') || { x: 0, y: 0, height: 100, width: 100, }, ports: nodeObj.getRegistry('SVGPorts') || {}, attributes: nodeObj.getRegistry('SVGAttributes') || {}, base: nodeObj.getRegistry('SVGIcon') || defaultSVG.base, bbox: nodeObj.getRegistry('SVGBbox') || defaultSVG.bbox, ports: nodeObj.getRegistry('SVGPorts') || defaultSVG.ports, attributes: nodeObj.getRegistry('SVGAttributes') || defaultSVG.attributes, // TODO probably would be better to move towards ejs }; Loading Loading
src/components/SVGRegistryBasedCanvasItem/SVGRegistryBasedCanvasItem.jsx +5 −14 Original line number Diff line number Diff line Loading @@ -224,14 +224,7 @@ class SVGRegistryBasedCanvasItem extends Component { this.setState({ position: null, showActions: false, svg: { base: defaultSVG, bbox: { x: 0, y: 0, height: 100, width: 100, }, ports: {}, attributes: {}, }, svg: defaultSVG, childrenName2Id: {}, childInfo: {}, isConnection: null, Loading Loading @@ -311,12 +304,10 @@ class SVGRegistryBasedCanvasItem extends Component { } const newSvg = { base: nodeObj.getRegistry('SVGIcon') || defaultSVG, bbox: nodeObj.getRegistry('SVGBbox') || { x: 0, y: 0, height: 100, width: 100, }, ports: nodeObj.getRegistry('SVGPorts') || {}, attributes: nodeObj.getRegistry('SVGAttributes') || {}, base: nodeObj.getRegistry('SVGIcon') || defaultSVG.base, bbox: nodeObj.getRegistry('SVGBbox') || defaultSVG.bbox, ports: nodeObj.getRegistry('SVGPorts') || defaultSVG.ports, attributes: nodeObj.getRegistry('SVGAttributes') || defaultSVG.attributes, // TODO probably would be better to move towards ejs }; Loading