@visactor/vrender-animate
Version:
This module provides a graph-based animation system for VRender.
16 lines (12 loc) • 528 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.generatorPathEasingFunc = void 0;
const vrender_core_1 = require("@visactor/vrender-core");
function generatorPathEasingFunc(path) {
const customPath = new vrender_core_1.CustomPath2D;
return customPath.setCtx(new vrender_core_1.CurveContext(customPath)), customPath.fromString(path, 0, 0, 1, 1),
x => customPath.getYAt(x);
}
exports.generatorPathEasingFunc = generatorPathEasingFunc;
//# sourceMappingURL=easing-func.js.map