@visactor/vrender-animate
Version:
This module provides a graph-based animation system for VRender.
250 lines (217 loc) • 8.67 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.Update = exports.State = exports.ScaleOut = exports.ScaleIn = exports.RotateOut = exports.RotateIn = exports.IncreaseCount = exports.MoveOut = exports.MoveIn = exports.GrowWidthOut = exports.GrowWidthIn = exports.GrowRadiusOut = exports.GrowRadiusIn = exports.GrowPointsYOut = exports.GrowPointsYIn = exports.GrowPointsXOut = exports.GrowPointsXIn = exports.GrowPointsOut = exports.GrowPointsIn = exports.GrowHeightOut = exports.GrowHeightIn = exports.GrowCenterOut = exports.GrowCenterIn = exports.GrowAngleOut = exports.GrowAngleIn = exports.FromTo = exports.FadeOut = exports.FadeIn = exports.ClipOut = exports.ClipIn = exports.registerBasicCustomAnimate = void 0;
const animate_executor_1 = require("../executor/animate-executor"), clip_1 = require("./clip");
Object.defineProperty(exports, "ClipIn", {
enumerable: !0,
get: function() {
return clip_1.ClipIn;
}
}), Object.defineProperty(exports, "ClipOut", {
enumerable: !0,
get: function() {
return clip_1.ClipOut;
}
});
const fade_1 = require("./fade");
Object.defineProperty(exports, "FadeIn", {
enumerable: !0,
get: function() {
return fade_1.FadeIn;
}
}), Object.defineProperty(exports, "FadeOut", {
enumerable: !0,
get: function() {
return fade_1.FadeOut;
}
});
const fromTo_1 = require("./fromTo");
Object.defineProperty(exports, "FromTo", {
enumerable: !0,
get: function() {
return fromTo_1.FromTo;
}
});
const growAngle_1 = require("./growAngle");
Object.defineProperty(exports, "GrowAngleIn", {
enumerable: !0,
get: function() {
return growAngle_1.GrowAngleIn;
}
}), Object.defineProperty(exports, "GrowAngleOut", {
enumerable: !0,
get: function() {
return growAngle_1.GrowAngleOut;
}
});
const growCenter_1 = require("./growCenter");
Object.defineProperty(exports, "GrowCenterIn", {
enumerable: !0,
get: function() {
return growCenter_1.GrowCenterIn;
}
}), Object.defineProperty(exports, "GrowCenterOut", {
enumerable: !0,
get: function() {
return growCenter_1.GrowCenterOut;
}
});
const growHeight_1 = require("./growHeight");
Object.defineProperty(exports, "GrowHeightIn", {
enumerable: !0,
get: function() {
return growHeight_1.GrowHeightIn;
}
}), Object.defineProperty(exports, "GrowHeightOut", {
enumerable: !0,
get: function() {
return growHeight_1.GrowHeightOut;
}
});
const growPoints_1 = require("./growPoints");
Object.defineProperty(exports, "GrowPointsIn", {
enumerable: !0,
get: function() {
return growPoints_1.GrowPointsIn;
}
}), Object.defineProperty(exports, "GrowPointsOut", {
enumerable: !0,
get: function() {
return growPoints_1.GrowPointsOut;
}
}), Object.defineProperty(exports, "GrowPointsXIn", {
enumerable: !0,
get: function() {
return growPoints_1.GrowPointsXIn;
}
}), Object.defineProperty(exports, "GrowPointsXOut", {
enumerable: !0,
get: function() {
return growPoints_1.GrowPointsXOut;
}
}), Object.defineProperty(exports, "GrowPointsYIn", {
enumerable: !0,
get: function() {
return growPoints_1.GrowPointsYIn;
}
}), Object.defineProperty(exports, "GrowPointsYOut", {
enumerable: !0,
get: function() {
return growPoints_1.GrowPointsYOut;
}
});
const growRadius_1 = require("./growRadius");
Object.defineProperty(exports, "GrowRadiusIn", {
enumerable: !0,
get: function() {
return growRadius_1.GrowRadiusIn;
}
}), Object.defineProperty(exports, "GrowRadiusOut", {
enumerable: !0,
get: function() {
return growRadius_1.GrowRadiusOut;
}
});
const growWidth_1 = require("./growWidth");
Object.defineProperty(exports, "GrowWidthIn", {
enumerable: !0,
get: function() {
return growWidth_1.GrowWidthIn;
}
}), Object.defineProperty(exports, "GrowWidthOut", {
enumerable: !0,
get: function() {
return growWidth_1.GrowWidthOut;
}
});
const move_1 = require("./move");
Object.defineProperty(exports, "MoveIn", {
enumerable: !0,
get: function() {
return move_1.MoveIn;
}
}), Object.defineProperty(exports, "MoveOut", {
enumerable: !0,
get: function() {
return move_1.MoveOut;
}
});
const number_1 = require("./number");
Object.defineProperty(exports, "IncreaseCount", {
enumerable: !0,
get: function() {
return number_1.IncreaseCount;
}
});
const rotate_1 = require("./rotate");
Object.defineProperty(exports, "RotateIn", {
enumerable: !0,
get: function() {
return rotate_1.RotateIn;
}
}), Object.defineProperty(exports, "RotateOut", {
enumerable: !0,
get: function() {
return rotate_1.RotateOut;
}
});
const scale_1 = require("./scale");
Object.defineProperty(exports, "ScaleIn", {
enumerable: !0,
get: function() {
return scale_1.ScaleIn;
}
}), Object.defineProperty(exports, "ScaleOut", {
enumerable: !0,
get: function() {
return scale_1.ScaleOut;
}
});
const state_1 = require("./state");
Object.defineProperty(exports, "State", {
enumerable: !0,
get: function() {
return state_1.State;
}
});
const update_1 = require("./update");
Object.defineProperty(exports, "Update", {
enumerable: !0,
get: function() {
return update_1.Update;
}
});
const registerBasicCustomAnimate = () => {
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("increaseCount", number_1.IncreaseCount),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("fromTo", fromTo_1.FromTo),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("scaleIn", scale_1.ScaleIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("scaleOut", scale_1.ScaleOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growHeightIn", growHeight_1.GrowHeightIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growHeightOut", growHeight_1.GrowHeightOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growWidthIn", growWidth_1.GrowWidthIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growWidthOut", growWidth_1.GrowWidthOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growCenterIn", growCenter_1.GrowCenterIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growCenterOut", growCenter_1.GrowCenterOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("clipIn", clip_1.ClipIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("clipOut", clip_1.ClipOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("fadeIn", fade_1.FadeIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("fadeOut", fade_1.FadeOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growPointsIn", growPoints_1.GrowPointsIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growPointsOut", growPoints_1.GrowPointsOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growPointsXIn", growPoints_1.GrowPointsXIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growPointsXOut", growPoints_1.GrowPointsXOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growPointsYIn", growPoints_1.GrowPointsYIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growPointsYOut", growPoints_1.GrowPointsYOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growAngleIn", growAngle_1.GrowAngleIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growAngleOut", growAngle_1.GrowAngleOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growRadiusIn", growRadius_1.GrowRadiusIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growRadiusOut", growRadius_1.GrowRadiusOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("moveIn", move_1.MoveIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("moveOut", move_1.MoveOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("rotateIn", rotate_1.RotateIn),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("rotateOut", rotate_1.RotateOut),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("update", update_1.Update),
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("state", state_1.State);
};
exports.registerBasicCustomAnimate = registerBasicCustomAnimate;