review eslint rule

This commit is contained in:
JFH
2021-05-30 16:49:53 +02:00
parent 99ee706c18
commit 8e54c15638
75 changed files with 253 additions and 252 deletions

View File

@@ -747,7 +747,7 @@ export const setImageURLMethod = function (val) {
const attrs = {
width: elem.getAttribute('width'),
height: elem.getAttribute('height'),
height: elem.getAttribute('height')
};
const setsize = (!attrs.width || !attrs.height);
@@ -768,7 +768,7 @@ export const setImageURLMethod = function (val) {
img.onload = function () {
const changes = {
width: elem.getAttribute('width'),
height: elem.getAttribute('height'),
height: elem.getAttribute('height')
};
elem.setAttribute('width', this.width);
elem.setAttribute('height', this.height);

View File

@@ -707,7 +707,7 @@ export const recalculateDimensions = function (selected) {
x1: selected.getAttribute('x1'),
y1: selected.getAttribute('y1'),
x2: selected.getAttribute('x2'),
y2: selected.getAttribute('y2'),
y2: selected.getAttribute('y2')
};
// Fallthrough
case 'polyline':

View File

@@ -535,7 +535,7 @@ export const pushGroupProperty = function (g, undoable) {
const gattrs = {
filter: g.getAttribute('filter'),
opacity: g.getAttribute('opacity'),
opacity: g.getAttribute('opacity')
};
let gfilter; let gblur; let changes;
const drawing = elementContext_.getDrawing();
@@ -719,7 +719,7 @@ export const convertToGroup = function (elem) {
const svg = elem.firstChild;
const pt = {
x: svg.getAttribute('x'),
y: svg.getAttribute('y'),
y: svg.getAttribute('y')
};
// $(elem.firstChild.firstChild).unwrap();