@visactor/vrender-animate
Version:
This module provides a graph-based animation system for VRender.
32 lines (26 loc) • 947 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.ClipOut = exports.ClipIn = void 0;
const common_1 = require("./common");
class ClipIn extends common_1.CommonIn {
constructor(from, to, duration, easing, params) {
super(from, to, duration, easing, params), this.keys = [ "clipRange" ], this.from = {
clipRange: 0
};
}
onFirstRun() {
var _a;
super.onFirstRun();
const {clipDimension: clipDimension} = (null === (_a = this.params) || void 0 === _a ? void 0 : _a.options) || {};
clipDimension && (this.target.attribute.clipRangeByDimension = clipDimension);
}
}
exports.ClipIn = ClipIn;
class ClipOut extends common_1.CommonOut {
constructor(from, to, duration, easing, params) {
super(from, to, duration, easing, params), this.keys = [ "clipRange" ];
}
}
exports.ClipOut = ClipOut;
//# sourceMappingURL=clip.js.map