2021-12-08 22:43:31 +01:00
|
|
|
import onStart from '../objects/onStart';
|
|
|
|
import linkInterpolation from './linkInterpolation';
|
2021-03-30 11:23:29 +02:00
|
|
|
|
|
|
|
export default function queueStart() {
|
|
|
|
// fire onStart actions
|
|
|
|
Object.keys(onStart).forEach((obj) => {
|
|
|
|
if (typeof (onStart[obj]) === 'function') {
|
|
|
|
onStart[obj].call(this, obj); // easing functions
|
|
|
|
} else {
|
|
|
|
Object.keys(onStart[obj]).forEach((prop) => {
|
|
|
|
onStart[obj][prop].call(this, prop);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// add interpolations
|
|
|
|
linkInterpolation.call(this);
|
|
|
|
}
|