Path Box widely supported, Replace/Insert in Path are deprecated (but polyfilled)
This commit is contained in:
@@ -365,7 +365,8 @@ class Editor extends EditorStartup {
|
||||
const { workarea } = this;
|
||||
const cnvs = $id("svgcanvas");
|
||||
|
||||
let w = parseFloat(getComputedStyle(workarea, null).width.replace("px", "")); let h = parseFloat(getComputedStyle(workarea, null).height.replace("px", ""));
|
||||
let w = parseFloat(getComputedStyle(workarea, null).width.replace("px", ""));
|
||||
let h = parseFloat(getComputedStyle(workarea, null).height.replace("px", ""));
|
||||
const wOrig = w; const hOrig = h;
|
||||
const oldCtr = {
|
||||
x: workarea.scrollLeft + wOrig / 2,
|
||||
|
||||
@@ -48,8 +48,7 @@ Array.prototype.forEach.call(atags, function (aEle) {
|
||||
post({ href, data });
|
||||
return data;
|
||||
})
|
||||
// eslint-disable-next-line no-console
|
||||
.catch( (error) => console.log(error));
|
||||
.catch( (error) => console.error(error));
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -782,8 +782,7 @@ class TopPanel {
|
||||
editor.svgCanvas.setMode('select');
|
||||
editor.svgCanvas.selectOnly(editor.svgCanvas.getSelectedElems(), true);
|
||||
}, (error) => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log("error =", error);
|
||||
console.error("error =", error);
|
||||
seAlert(editor.i18next.t('tools.no_embed'));
|
||||
editor.svgCanvas.deleteSelectedElements();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user