1
0
Fork 0

chore: Linter fixes

This commit is contained in:
Joost De Cock 2022-09-14 15:02:39 +02:00
parent b1429a3704
commit ef5e792d6b
40 changed files with 93 additions and 99 deletions

View file

@ -2,9 +2,9 @@ import rough from 'roughjs/bundled/rough.cjs.js'
const getAttributes = (element) => Array.prototype.slice.call(element.attributes)
const getNum = (element, attributes) => attributes.map(attr => parseFloat(element.getAttribute(attr), 10))
const getNum = (element, attributes) => attributes.map(attr => parseFloat(element.getAttribute(attr)))
const getDiam = (element, attributes) => attributes.map(attr => 2 * parseFloat(element.getAttribute(attr), 10))
const getDiam = (element, attributes) => attributes.map(attr => 2 * parseFloat(element.getAttribute(attr)))
const getCoords = (element, attribute) => element
.getAttribute(attribute)
@ -70,7 +70,7 @@ const coarse = (svg, options) => {
for(let i = 0; i < children.length; i += 1) {
const original = children[i];
const params = [];
let params = [];
let shapeType;
switch(original.tagName) {