@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
12 lines (10 loc) • 372 B
text/typescript
import {PolyEngine} from '../../../engine/Poly';
import {GSAP_FACTORY} from './gsapFactory';
import type {GsapCoreTimelineVars} from './gsapFactory';
import {gsap} from './gsap';
export function onGsapModuleRegister(poly: PolyEngine) {
GSAP_FACTORY.gsap = gsap;
GSAP_FACTORY.timeline = (vars?: GsapCoreTimelineVars | undefined) => {
return gsap.timeline(vars);
};
}