SnapSVG-Animator
SnapSVG-Animator copied to clipboard
TypeScript definitions and wiki docs
I'm trying to write TypeScript definitions (.d.ts) for the API following the wiki. However when I log the stuff at runtime:
const anim = new SVGAnim(data, width, height, fps)
console.log("SVGAnim", anim)
console.log("MovieClip", anim.mc)
I see a lot of stuff not mentioned in the wiki, especially on MovieClip, including helpful stuff we are using like mc.loops. Is the wiki not up-to-date?
FYI what I have so far for TS type defs is here: https://gist.github.com/aaronbeall/cd5b302656f60a038d45435ab6f4068c
Seems this repository is abandoned, I also found some weird and missing things. The .d.ts files are usefull, thanks for those
typescript is taking you to hell