UNPKG

@visactor/vrender-animate

Version:

This module provides a graph-based animation system for VRender.

17 lines (12 loc) 510 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.generatorPathEasingFunc = void 0; const path_1 = require("@visactor/vrender-core/path"); function generatorPathEasingFunc(path) { const customPath = new path_1.CustomPath2D; return customPath.setCtx(new path_1.CurveContext(customPath)), customPath.fromString(path, 0, 0, 1, 1), x => customPath.getYAt(x); } exports.generatorPathEasingFunc = generatorPathEasingFunc; //# sourceMappingURL=easing-func.js.map