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/SVGNumber.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/SVGNumber.js')
-rw-r--r-- | src/types/SVGNumber.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/types/SVGNumber.js b/src/types/SVGNumber.js index f9bee28..25c87c1 100644 --- a/src/types/SVGNumber.js +++ b/src/types/SVGNumber.js @@ -83,9 +83,11 @@ export default class SVGNumber { } toString () { - return (this.unit === '%' ? ~~(this.value * 1e8) / 1e6 - : this.unit === 's' ? this.value / 1e3 - : this.value + return (this.unit === '%' + ? ~~(this.value * 1e8) / 1e6 + : this.unit === 's' + ? this.value / 1e3 + : this.value ) + this.unit } |