UNPKG

@visactor/vrender-animate

Version:

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

8 lines (7 loc) 333 B
import { CurveContext, CustomPath2D } from "@visactor/vrender-core"; export function generatorPathEasingFunc(path) { const customPath = new CustomPath2D; return customPath.setCtx(new CurveContext(customPath)), customPath.fromString(path, 0, 0, 1, 1), x => customPath.getYAt(x); } //# sourceMappingURL=easing-func.js.map