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! The ScrollTrigger plug

53 lines (42 loc) 1.22 kB
declare namespace Physics2DPlugin { interface Vars { acceleration?: number; accelerationAngle?: number; angle?: number; friction?: number; gravity?: number; velocity?: number; xProp?: string; yProp?: string; } } declare namespace gsap { interface TweenVars { physics2D?: Physics2DPlugin.Vars; } } declare namespace gsap.plugins { interface Physics2DPlugin extends Plugin { } interface Physics2DPluginClass extends Physics2DPlugin { new(): PluginScope & Physics2DPlugin; prototype: PluginScope & Physics2DPlugin; } const physics2D: Physics2DPluginClass; } declare const Physics2DPlugin: gsap.plugins.Physics2DPlugin; declare module "gsap/Physics2DPlugin" { export const Physics2DPlugin: gsap.plugins.Physics2DPlugin; export { Physics2DPlugin as default }; } declare module "gsap/src/Physics2DPlugin" { export * from "gsap/Physics2DPlugin"; export { Physics2DPlugin as default } from "gsap/Physics2DPlugin"; } declare module "gsap/dist/Physics2DPlugin" { export * from "gsap/Physics2DPlugin"; export { Physics2DPlugin as default } from "gsap/Physics2DPlugin"; } declare module "gsap/all" { export * from "gsap/Physics2DPlugin"; }