Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setSpringTarget(v) {
to = v;
return this;
},
setVelocity(v) {
velocity = v;
return this;
},
stop: () => cancelSync.update(process)
};
}
);
const vectorPhysics: ActionFactory = vectorAction(physics, {
acceleration: number.test,
friction: number.test,
velocity: number.test,
from: number.test,
to: number.test,
springStrength: number.test
});
export default vectorPhysics;
} else {
update(position);
}
}, true);
return {
stop: () => cancelSync.update(process)
};
}
);
const vectorSpring: ActionFactory = vectorAction(spring, {
from: number.test,
to: number.test,
stiffness: number.test,
damping: number.test,
mass: number.test,
velocity: number.test
});
export default vectorSpring;
}
}, true);
return {
stop: () => cancelSync.update(process)
};
}
);
const vectorSpring: ActionFactory = vectorAction(spring, {
from: number.test,
to: number.test,
stiffness: number.test,
damping: number.test,
mass: number.test,
velocity: number.test
});
export default vectorSpring;
ease = createReversedEasing(ease);
}
return action(
({ update }): ScrubberSubscription => ({
seek: progress => update(progress)
})
).pipe(
ease,
(v: number) => mix(from, to, v)
);
};
const vectorScrubber: ActionFactory = vectorAction(scrubber, {
ease: (func: any) => typeof func === 'function',
from: number.test,
to: number.test
});
export default vectorScrubber;
complete();
} else {
update(position);
}
}, true);
return {
stop: () => cancelSync.update(process)
};
}
);
const vectorSpring: ActionFactory = vectorAction(spring, {
from: number.test,
to: number.test,
stiffness: number.test,
damping: number.test,
mass: number.test,
velocity: number.test
});
export default vectorSpring;
to = v;
return this;
},
setVelocity(v) {
velocity = v;
return this;
},
stop: () => cancelSync.update(process)
};
}
);
const vectorPhysics: ActionFactory = vectorAction(physics, {
acceleration: number.test,
friction: number.test,
velocity: number.test,
from: number.test,
to: number.test,
springStrength: number.test
});
export default vectorPhysics;
update(position);
cancelSync.update(process);
complete();
} else {
update(position);
}
}, true);
return {
stop: () => cancelSync.update(process)
};
}
);
const vectorSpring: ActionFactory = vectorAction(spring, {
from: number.test,
to: number.test,
stiffness: number.test,
damping: number.test,
mass: number.test,
velocity: number.test
});
export default vectorSpring;
}
});
} else {
complete();
}
return {
stop: () => activeAnimation && activeAnimation.stop()
};
});
export default vectorAction(inertia, {
from: number.test,
velocity: number.test,
min: number.test,
max: number.test,
damping: number.test,
stiffness: number.test,
modifyTarget: (func: any) => typeof func === 'function'
}) as ActionFactory;
update(current);
if (!isMoving) {
cancelSync.update(process);
complete();
}
}, true);
return {
stop: () => cancelSync.update(process)
};
});
const vectorDecay: ActionFactory = vectorAction(decay, {
from: number.test,
modifyTarget: (func: any) => typeof func === 'function',
velocity: number.test
});
export default vectorDecay;
cancelSync.update(process);
complete();
} else {
update(position);
}
}, true);
return {
stop: () => cancelSync.update(process)
};
}
);
const vectorSpring: ActionFactory = vectorAction(spring, {
from: number.test,
to: number.test,
stiffness: number.test,
damping: number.test,
mass: number.test,
velocity: number.test
});
export default vectorSpring;