flekschas / regl-scatterplot

Scalable WebGL-based scatter plot library build with Regl
https://flekschas.github.io/regl-scatterplot/
MIT License
184 stars 21 forks source link

spatialIndex is not a gettable Property #179

Closed TheStanian closed 1 month ago

TheStanian commented 1 month ago

The recently added spatialIndex access is not a valid Property in types.d.ts, therefore not allowing it to be accessed by the scatterplot.get() method. This is annoying when trying to use it in a typescript project. Should be as easy of a fix as defining the PointIndex type adding a line pointIndex: PointIndex here.

Thanks in advance :)

flekschas commented 1 month ago

Ahhhh thanks for finding the issue and sorry about the oversight! Will fix it in the next few hours.