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.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/types/SVGNumber.js b/src/types/SVGNumber.js
index 5945341..2770f67 100644
--- a/src/types/SVGNumber.js
+++ b/src/types/SVGNumber.js
@@ -31,10 +31,10 @@ export default class SVGNumber {
this.value = isNaN(value)
? 0
: !isFinite(value)
- ? value < 0
- ? -3.4e38
- : +3.4e38
- : value
+ ? value < 0
+ ? -3.4e38
+ : +3.4e38
+ : value
} else if (typeof value === 'string') {
unit = value.match(numberAndUnit)
@@ -93,8 +93,8 @@ export default class SVGNumber {
(this.unit === '%'
? ~~(this.value * 1e8) / 1e6
: this.unit === 's'
- ? this.value / 1e3
- : this.value) + this.unit
+ ? this.value / 1e3
+ : this.value) + this.unit
)
}