diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2021-01-13 17:26:33 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2021-01-13 17:26:33 +0100 |
commit | 4524c20b48abe08e69c25a7382a289592d147496 (patch) | |
tree | 3e475fe673d5acd800180282e84df03d396106f3 /src/types/PathArray.js | |
parent | 4f4dc2afa62cb899a5cae72c359150f8adf27edb (diff) | |
download | svg.js-4524c20b48abe08e69c25a7382a289592d147496.tar.gz svg.js-4524c20b48abe08e69c25a7382a289592d147496.zip |
update dependencies, apply new linter fixes
Diffstat (limited to 'src/types/PathArray.js')
-rw-r--r-- | src/types/PathArray.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/types/PathArray.js b/src/types/PathArray.js index e021238..10e7b07 100644 --- a/src/types/PathArray.js +++ b/src/types/PathArray.js @@ -4,7 +4,8 @@ import Box from './Box.js' import { pathParser } from '../utils/pathParser.js' function arrayToString (a) { - for (var i = 0, il = a.length, s = ''; i < il; i++) { + let s = '' + for (let i = 0, il = a.length; i < il; i++) { s += a[i][0] if (a[i][1] != null) { @@ -49,7 +50,7 @@ export default class PathArray extends SVGArray { // Move path string move (x, y) { // get bounding box of current situation - var box = this.bbox() + const box = this.bbox() // get relative offset x -= box.x @@ -99,8 +100,8 @@ export default class PathArray extends SVGArray { // Resize path string size (width, height) { // get bounding box of current situation - var box = this.bbox() - var i, l + const box = this.bbox() + let i, l // If the box width or height is 0 then we ignore // transformations on the respective axis |