aboutsummaryrefslogtreecommitdiffstats
path: root/src/types/SVGNumber.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/SVGNumber.js')
-rw-r--r--src/types/SVGNumber.js8
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
}