2021-12-08 22:43:31 +01:00
|
|
|
import Render from './core/render';
|
|
|
|
import Interpolate from './objects/interpolate';
|
|
|
|
import Objects from './objects/objects';
|
|
|
|
import Util from './objects/util';
|
|
|
|
import Internals from './core/internals';
|
|
|
|
import Process from './process/process';
|
|
|
|
import Easing from './easing/easing';
|
|
|
|
import Selector from './util/selector';
|
2021-03-30 11:23:29 +02:00
|
|
|
|
|
|
|
// TweenConstructor
|
2021-12-08 22:43:31 +01:00
|
|
|
import Tween from './tween/tween';
|
|
|
|
import TweenCollection from './tween/tweenCollection';
|
2021-03-30 11:23:29 +02:00
|
|
|
// interface
|
2021-12-08 22:43:31 +01:00
|
|
|
import to from './interface/to';
|
|
|
|
import fromTo from './interface/fromTo';
|
|
|
|
import allTo from './interface/allTo';
|
|
|
|
import allFromTo from './interface/allFromTo';
|
|
|
|
import Animation from './animation/animation';
|
2021-03-30 11:23:29 +02:00
|
|
|
|
|
|
|
// components
|
2021-12-08 22:43:31 +01:00
|
|
|
import BoxModel from './components/boxModelEssential';
|
|
|
|
import ColorProperties from './components/colorProperties';
|
|
|
|
import HTMLAttributes from './components/htmlAttributes';
|
|
|
|
import OpacityProperty from './components/opacityProperty';
|
|
|
|
import TextWriteProp from './components/textWrite';
|
|
|
|
import TransformLegacy from './components/transformLegacy';
|
|
|
|
import SVGDraw from './components/svgDraw';
|
|
|
|
import SVGMorph from './components/svgMorph';
|
2021-03-30 11:23:29 +02:00
|
|
|
|
2021-12-08 22:43:31 +01:00
|
|
|
import Version from './util/version';
|
2021-05-31 09:47:30 +02:00
|
|
|
|
2021-03-30 11:23:29 +02:00
|
|
|
const Components = {
|
|
|
|
BoxModel,
|
|
|
|
ColorProperties,
|
|
|
|
HTMLAttributes,
|
|
|
|
OpacityProperty,
|
2021-12-08 22:43:31 +01:00
|
|
|
TextWriteProp,
|
2021-03-30 11:23:29 +02:00
|
|
|
TransformLegacy,
|
|
|
|
SVGDraw,
|
|
|
|
SVGMorph,
|
|
|
|
};
|
|
|
|
|
|
|
|
// init components
|
|
|
|
Object.keys(Components).forEach((component) => {
|
|
|
|
const compOps = Components[component];
|
|
|
|
Components[component] = new Animation(compOps);
|
|
|
|
});
|
|
|
|
|
|
|
|
export default {
|
|
|
|
Animation,
|
|
|
|
Components,
|
|
|
|
|
|
|
|
// Tween Interface
|
|
|
|
Tween,
|
|
|
|
fromTo,
|
|
|
|
to,
|
|
|
|
// Tween Collection
|
|
|
|
TweenCollection,
|
|
|
|
allFromTo,
|
|
|
|
allTo,
|
|
|
|
// Tween Interface
|
|
|
|
|
|
|
|
Objects,
|
|
|
|
Util,
|
|
|
|
Easing,
|
|
|
|
Render,
|
|
|
|
Interpolate,
|
|
|
|
Process,
|
|
|
|
Internals,
|
|
|
|
Selector,
|
|
|
|
Version,
|
|
|
|
};
|