#631 globals svgEditor to get imgpath and set changes
This commit is contained in:
@@ -364,7 +364,6 @@ export default {
|
||||
svgCanvas.setMode('connector');
|
||||
}
|
||||
});
|
||||
$id('mode_connect').init(svgEditor);
|
||||
},
|
||||
/* async */ addLangData({ _lang }) { // , importLocale: importLoc
|
||||
return {
|
||||
|
||||
@@ -94,7 +94,6 @@ export default {
|
||||
svgCanvas.setMode('eyedropper');
|
||||
}
|
||||
});
|
||||
$id('tool_eyedropper').init(svgEditor);
|
||||
},
|
||||
// if we have selected an element, grab its paint and enable the eye dropper button
|
||||
selectedChanged: getStyle,
|
||||
|
||||
@@ -174,7 +174,6 @@ export default {
|
||||
svgEditor.configObj.curConfig.showGrid = showGrid = !showGrid;
|
||||
gridUpdate();
|
||||
});
|
||||
$id('view_grid').init(svgEditor);
|
||||
if (showGrid) {
|
||||
gridUpdate();
|
||||
}
|
||||
|
||||
@@ -530,7 +530,6 @@ export default {
|
||||
$id('tool_imagelib').addEventListener("click", () => {
|
||||
showBrowser();
|
||||
});
|
||||
$id('tool_imagelib').init(svgEditor);
|
||||
|
||||
const style = document.createElement('style');
|
||||
style.textContent = '#imgbrowse_holder {' +
|
||||
|
||||
@@ -174,9 +174,6 @@ export default {
|
||||
$id("tool_open").addEventListener("click", clickOpen.bind(this));
|
||||
$id("tool_save").addEventListener("click", clickSave.bind(this, "save"));
|
||||
$id("tool_save_as").addEventListener("click", clickSave.bind(this, "saveas"));
|
||||
[ "tool_clear", "tool_open", "tool_save", "tool_save_as" ].forEach((attrId) =>
|
||||
$id(attrId).init(svgEditor)
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -57,7 +57,6 @@ export default {
|
||||
svgCanvas.setMode('ext-panning');
|
||||
}
|
||||
});
|
||||
$id('ext-panning').init(svgEditor);
|
||||
},
|
||||
mouseDown() {
|
||||
if (svgCanvas.getMode() === 'ext-panning') {
|
||||
|
||||
@@ -108,10 +108,6 @@ export default {
|
||||
showPanel(false, "star");
|
||||
}
|
||||
});
|
||||
$id("tool_star").init(svgEditor);
|
||||
$id("tool_polygon").init(svgEditor);
|
||||
$id("tools_polygon").init(svgEditor);
|
||||
|
||||
const label0 = `${name}:contextTools.0.label`;
|
||||
const title0 = `${name}:contextTools.0.title`;
|
||||
const label1 = `${name}:contextTools.1.label`;
|
||||
|
||||
@@ -54,7 +54,6 @@ export default {
|
||||
canv.setMode(modeId);
|
||||
}
|
||||
});
|
||||
$id('tool_shapelib').init(svgEditor);
|
||||
}
|
||||
},
|
||||
mouseDown (opts) {
|
||||
|
||||
Reference in New Issue
Block a user