review eslint rule
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user