#631 seButton web component image path load from config

This commit is contained in:
agriyadev5
2021-09-21 13:25:07 +05:30
parent 648e9cd26c
commit 4bacd1fd66
9 changed files with 77 additions and 134 deletions

View File

@@ -364,6 +364,7 @@ export default {
svgCanvas.setMode('connector');
}
});
$id('mode_connect').init(svgEditor);
},
/* async */ addLangData({ _lang }) { // , importLocale: importLoc
return {

View File

@@ -94,6 +94,7 @@ 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,

View File

@@ -174,6 +174,7 @@ export default {
svgEditor.configObj.curConfig.showGrid = showGrid = !showGrid;
gridUpdate();
});
$id('view_grid').init(svgEditor);
if (showGrid) {
gridUpdate();
}

View File

@@ -57,6 +57,7 @@ export default {
svgCanvas.setMode('ext-panning');
}
});
$id('ext-panning').init(svgEditor);
},
mouseDown() {
if (svgCanvas.getMode() === 'ext-panning') {

View File

@@ -108,6 +108,8 @@ export default {
showPanel(false, "star");
}
});
$id("tool_star").init(svgEditor);
$id("tool_polygon").init(svgEditor);
const label0 = `${name}:contextTools.0.label`;
const title0 = `${name}:contextTools.0.title`;