UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

2 lines 422 B
import{ValueAnimation as e}from"./ValueAnimation.min.mjs";import{ArrayAnimation as t}from"./ArrayAnimation.min.mjs";import{ColorAnimation as n}from"./ColorAnimation.min.mjs";function r(n){let r=(e=>Array.isArray(e.startValue)||Array.isArray(e.endValue))(n)?new t(n):new e(n);return r.start(),r}function i(e){let t=new n(e);return t.start(),t}export{r as animate,i as animateColor}; //# sourceMappingURL=animate.min.mjs.map