Commit 01911292 authored by Patrik Meijer's avatar Patrik Meijer
Browse files

FIX broken Canvas item due to svg refactor

parent bcd5d87e
......@@ -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,
......@@ -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
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment