GaussianSplats3D
GaussianSplats3D copied to clipboard
Typescript support
Hey,
I'd like to hear your stance on this topic.
Personally I think it's a great developer tool and a great aid when exposing the API to the end user.
I'd happily convert the existing code if you'd like me to.
I've definitely thought about using it for this project, but I'm still not quite sure. Typescript makes more sense to me for larger projects and projects that have a lot of contributors so it seems a little overkill for something like this. Let me stew on this for a while longer :)
I did a proof-of-concept port to typescript a while back (not as clean as it could be). You can see it at here: gle-gs3d.
It's definitely difficult to maintain a port while the library is still under heavy development.
If you just want to provide support for typescript consumers, you can generate typescript declarations during the build process. I ended up using a fork to do just that, which you can see here: gle-gaussian-splat-3d
The pertinent bits are in the rollup.config.js where you can use rollup-plugin-dts to generate the declarations.
Wonderful library by the way, I've been using it in my React Three Fiber / Cesium gle-scene-components project and it works exceptionally well!
Here's an example.