aboutsummaryrefslogtreecommitdiffstats
path: root/src/animation/Runner.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-01 15:57:06 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-01 15:57:06 +0100
commit9546418c5ed9b1876132b43dff1ae690c3ec4e24 (patch)
treee291fe6c2443aeaaef99edf5fbc5cd1af336f43e /src/animation/Runner.js
parentdbe9c376fd76dd4e4777281888f4092e38512c18 (diff)
parent947964e4a257b1b1fcc9b115a218a9d8dde7513f (diff)
downloadsvg.js-9546418c5ed9b1876132b43dff1ae690c3ec4e24.tar.gz
svg.js-9546418c5ed9b1876132b43dff1ae690c3ec4e24.zip
Merge branch '790-color-spaces' into 3.0.0
Diffstat (limited to 'src/animation/Runner.js')
-rw-r--r--src/animation/Runner.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/animation/Runner.js b/src/animation/Runner.js
index 125c4c5..3af5823 100644
--- a/src/animation/Runner.js
+++ b/src/animation/Runner.js
@@ -230,7 +230,7 @@ export default class Runner extends EventTarget {
var endTime = t * (w + d) - w
position = x <= 0 ? Math.round(f(1e-5))
: x < endTime ? f(x)
- : Math.round(f(endTime - 1e-5))
+ : Math.round(f(endTime - 1e-5))
return position
}
@@ -355,7 +355,7 @@ export default class Runner extends EventTarget {
// which has access to the outer scope
if (this._history[method].caller.retarget) {
this._history[method].caller.retarget(target)
- // for everything else a simple morpher change is sufficient
+ // for everything else a simple morpher change is sufficient
} else {
this._history[method].morpher.to(target)
}
@@ -470,7 +470,7 @@ class FakeRunner {
clearTransformsFromQueue () { }
}
-extend([Runner, FakeRunner], {
+extend([ Runner, FakeRunner ], {
mergeWith (runner) {
return new FakeRunner(
runner.transforms.lmultiply(this.transforms),
@@ -729,7 +729,7 @@ extend(Runner, {
let { x, y } = new Point(origin).transform(element._currentTransform(this))
- let target = new Matrix({ ...transforms, origin: [x, y] })
+ let target = new Matrix({ ...transforms, origin: [ x, y ] })
let start = this._isDeclarative && current
? current
: startTransform
@@ -743,7 +743,7 @@ extend(Runner, {
const rCurrent = start.rotate
// Figure out the shortest path to rotate directly
- const possibilities = [rTarget - 360, rTarget, rTarget + 360]
+ const possibilities = [ rTarget - 360, rTarget, rTarget + 360 ]
const distances = possibilities.map(a => Math.abs(a - rCurrent))
const shortest = Math.min(...distances)
const index = distances.indexOf(shortest)
@@ -775,8 +775,8 @@ extend(Runner, {
function retarget (newTransforms) {
// only get a new origin if it changed since the last call
if (
- (newTransforms.origin || 'center').toString() !==
- (transforms.origin || 'center').toString()
+ (newTransforms.origin || 'center').toString()
+ !== (transforms.origin || 'center').toString()
) {
origin = getOrigin(transforms, element)
}
@@ -911,7 +911,7 @@ extend(Runner, {
plot (a, b, c, d) {
// Lines can be plotted with 4 arguments
if (arguments.length === 4) {
- return this.plot([a, b, c, d])
+ return this.plot([ a, b, c, d ])
}
var morpher = this._element.MorphArray().to(a)