aboutsummaryrefslogtreecommitdiffstats
path: root/src/SVGNumber.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/SVGNumber.js')
-rw-r--r--src/SVGNumber.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/SVGNumber.js b/src/SVGNumber.js
index e07b521..095e2e7 100644
--- a/src/SVGNumber.js
+++ b/src/SVGNumber.js
@@ -1,4 +1,4 @@
-import {numberAndUnit} from './regex.js'
+import { numberAndUnit } from './regex.js'
// Module for unit convertions
export default class SVGNumber {
@@ -45,7 +45,7 @@ export default class SVGNumber {
toString () {
return (this.unit === '%' ? ~~(this.value * 1e8) / 1e6
: this.unit === 's' ? this.value / 1e3
- : this.value
+ : this.value
) + this.unit
}
@@ -53,7 +53,6 @@ export default class SVGNumber {
return this.toString()
}
-
toArray () {
return [this.value, this.unit]
}