@visactor/vrender-animate
Version:
This module provides a graph-based animation system for VRender.
14 lines (13 loc) • 541 B
JavaScript
import { ACustomAnimate } from "./custom-animate";
export class State extends ACustomAnimate {
constructor(from, to, duration, easing, params) {
super(from, to, duration, easing, params);
}
update(end, ratio, out) {
if (this.onStart(), !this.props || !this.propKeys) return;
const easedRatio = this.easing(ratio);
this.runInterpolateUpdate(this.fromProps, this.props, easedRatio), this.onUpdate(end, easedRatio, out),
this.syncAttributeUpdate();
}
}
//# sourceMappingURL=state.js.map