summaryrefslogtreecommitdiffstats
path: root/src/animation
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation')
-rw-r--r--src/animation/Morphable.js19
-rw-r--r--src/animation/Runner.js8
2 files changed, 14 insertions, 13 deletions
diff --git a/src/animation/Morphable.js b/src/animation/Morphable.js
index 240ca7b..9ce05d6 100644
--- a/src/animation/Morphable.js
+++ b/src/animation/Morphable.js
@@ -58,11 +58,12 @@ export default class Morphable {
}
done() {
- const complete = this._context
- .map(this._stepper.done)
- .reduce(function (last, curr) {
- return last && curr
- }, true)
+ const complete = this._context.map(this._stepper.done).reduce(function (
+ last,
+ curr
+ ) {
+ return last && curr
+ }, true)
return complete
}
@@ -111,16 +112,16 @@ export default class Morphable {
result = this._to
? result[this._to[4]]()
: this._from
- ? result[this._from[4]]()
- : result
+ ? result[this._from[4]]()
+ : result
}
if (this._type === ObjectBag) {
result = this._to
? result.align(this._to)
: this._from
- ? result.align(this._from)
- : result
+ ? result.align(this._from)
+ : result
}
result = result.toConsumable()
diff --git a/src/animation/Runner.js b/src/animation/Runner.js
index 8fd4b8b..be74c7a 100644
--- a/src/animation/Runner.js
+++ b/src/animation/Runner.js
@@ -251,8 +251,8 @@ export default class Runner extends EventTarget {
x <= 0
? Math.round(f(1e-5))
: x < endTime
- ? f(x)
- : Math.round(f(endTime - 1e-5))
+ ? f(x)
+ : Math.round(f(endTime - 1e-5))
return position
}
@@ -790,8 +790,8 @@ extend(Runner, {
transforms.affine != null
? transforms.affine
: affine != null
- ? affine
- : !isMatrix
+ ? affine
+ : !isMatrix
// Create a morpher and set its type
const morpher = new Morphable(this._stepper).type(