#631 lint issue fixed
parent
ff91754c9f
commit
52b69325dd
|
@ -31,7 +31,6 @@ export default {
|
||||||
const { svgCanvas } = svgEditor;
|
const { svgCanvas } = svgEditor;
|
||||||
const { getElem, $id, mergeDeep } = svgCanvas;
|
const { getElem, $id, mergeDeep } = svgCanvas;
|
||||||
const { svgroot } = S;
|
const { svgroot } = S;
|
||||||
const { imgPath } = svgEditor.configObj.curConfig;
|
|
||||||
const addElem = svgCanvas.addSVGElementFromJson;
|
const addElem = svgCanvas.addSVGElementFromJson;
|
||||||
const selManager = S.selectorManager;
|
const selManager = S.selectorManager;
|
||||||
await loadExtensionTranslation(svgEditor);
|
await loadExtensionTranslation(svgEditor);
|
||||||
|
|
|
@ -29,7 +29,6 @@ export default {
|
||||||
name,
|
name,
|
||||||
async init(S) {
|
async init(S) {
|
||||||
const svgEditor = this;
|
const svgEditor = this;
|
||||||
const { imgPath } = svgEditor.configObj.curConfig;
|
|
||||||
await loadExtensionTranslation(svgEditor);
|
await loadExtensionTranslation(svgEditor);
|
||||||
const { ChangeElementCommand } = S; // , svgcontent,
|
const { ChangeElementCommand } = S; // , svgcontent,
|
||||||
// svgdoc = S.svgroot.parentNode.ownerDocument,
|
// svgdoc = S.svgroot.parentNode.ownerDocument,
|
||||||
|
|
|
@ -28,7 +28,6 @@ export default {
|
||||||
name,
|
name,
|
||||||
async init ({ NS, getTypeMap }) {
|
async init ({ NS, getTypeMap }) {
|
||||||
const svgEditor = this;
|
const svgEditor = this;
|
||||||
const { imgPath } = svgEditor.configObj.curConfig;
|
|
||||||
await loadExtensionTranslation(svgEditor);
|
await loadExtensionTranslation(svgEditor);
|
||||||
const { svgCanvas } = svgEditor;
|
const { svgCanvas } = svgEditor;
|
||||||
const { $id } = svgCanvas;
|
const { $id } = svgCanvas;
|
||||||
|
|
|
@ -34,7 +34,6 @@ export default {
|
||||||
name,
|
name,
|
||||||
async init ({ _importLocale }) {
|
async init ({ _importLocale }) {
|
||||||
const svgEditor = this;
|
const svgEditor = this;
|
||||||
const { imgPath } = svgEditor.configObj.curConfig;
|
|
||||||
await loadExtensionTranslation(svgEditor);
|
await loadExtensionTranslation(svgEditor);
|
||||||
const { svgCanvas } = svgEditor;
|
const { svgCanvas } = svgEditor;
|
||||||
const { $id } = svgCanvas;
|
const { $id } = svgCanvas;
|
||||||
|
|
|
@ -31,8 +31,6 @@ export default {
|
||||||
name,
|
name,
|
||||||
async init() {
|
async init() {
|
||||||
const svgEditor = this;
|
const svgEditor = this;
|
||||||
const { imgPath } = svgEditor.configObj.curConfig;
|
|
||||||
|
|
||||||
await loadExtensionTranslation(svgEditor);
|
await loadExtensionTranslation(svgEditor);
|
||||||
const {
|
const {
|
||||||
svgCanvas
|
svgCanvas
|
||||||
|
|
|
@ -29,7 +29,6 @@ export default {
|
||||||
name,
|
name,
|
||||||
async init(_S) {
|
async init(_S) {
|
||||||
const svgEditor = this;
|
const svgEditor = this;
|
||||||
const { imgPath } = svgEditor.configObj.curConfig;
|
|
||||||
const { ChangeElementCommand } = _S; // , svgcontent,
|
const { ChangeElementCommand } = _S; // , svgcontent,
|
||||||
const addToHistory = function (cmd) { svgCanvas.undoMgr.addCommandToHistory(cmd); };
|
const addToHistory = function (cmd) { svgCanvas.undoMgr.addCommandToHistory(cmd); };
|
||||||
const { svgCanvas } = svgEditor;
|
const { svgCanvas } = svgEditor;
|
||||||
|
|
|
@ -27,7 +27,6 @@ export default {
|
||||||
name,
|
name,
|
||||||
async init () {
|
async init () {
|
||||||
const svgEditor = this;
|
const svgEditor = this;
|
||||||
const { imgPath } = svgEditor.configObj.curConfig;
|
|
||||||
const canv = svgEditor.svgCanvas;
|
const canv = svgEditor.svgCanvas;
|
||||||
const { $id } = canv;
|
const { $id } = canv;
|
||||||
const svgroot = canv.getRootElem();
|
const svgroot = canv.getRootElem();
|
||||||
|
|
|
@ -44,7 +44,6 @@ class LayersPanel {
|
||||||
init() {
|
init() {
|
||||||
const template = document.createElement("template");
|
const template = document.createElement("template");
|
||||||
const { i18next } = this.editor;
|
const { i18next } = this.editor;
|
||||||
const { imgPath } = this.editor.configObj.curConfig;
|
|
||||||
|
|
||||||
// eslint-disable-next-line no-unsanitized/property
|
// eslint-disable-next-line no-unsanitized/property
|
||||||
template.innerHTML = `
|
template.innerHTML = `
|
||||||
|
|
Loading…
Reference in New Issue