UNPKG

gsap

Version:

GSAP is a JavaScript library for building high-performance animations that work in **every** major browser. Animate CSS, SVG, canvas, React, Vue, WebGL, colors, strings, motion paths, generic objects...anything JavaScript can touch! No other library deliv

43 lines (32 loc) 1.01 kB
declare namespace gsap { interface TweenVars { drawSVG?: BooleanValue | TweenValue; } } declare namespace gsap.plugins { interface DrawSVGPlugin extends Plugin { getLength(element: DOMTarget): number; getPosition(element: DOMTarget): number; } interface DrawSVGPluginClass extends DrawSVGPlugin { new(): PluginScope & DrawSVGPlugin; prototype: PluginScope & DrawSVGPlugin; } const drawSVG: DrawSVGPluginClass; } declare const DrawSVGPlugin: gsap.plugins.DrawSVGPlugin; declare module "gsap/DrawSVGPlugin" { export const DrawSVGPlugin: gsap.plugins.DrawSVGPlugin; export { DrawSVGPlugin as default }; } declare module "gsap/src/DrawSVGPlugin" { export * from "gsap/DrawSVGPlugin"; export { DrawSVGPlugin as default } from "gsap/DrawSVGPlugin"; } declare module "gsap/dist/DrawSVGPlugin" { export * from "gsap/DrawSVGPlugin"; export { DrawSVGPlugin as default } from "gsap/DrawSVGPlugin"; } declare module "gsap/all" { export * from "gsap/DrawSVGPlugin"; }