flekschas / regl-scatterplot

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

fix: kdbush worker #190

Closed flekschas closed 2 months ago

flekschas commented 2 months ago

This PR fixes the KDBush worker in the production build.

Description

What was changed in this pull request?

To avoid name clashes, the worker now depends on a named function declaration.

Why is it necessary?

Previously it was possible that due to bundling and code minimization, the class KDBush was renamed. Since the worker function didn't know about this, the KDBush worker ultimately failed.

Fixes #189

Checklist