-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
mode:text for regl-scatter2d #2501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have my doubts about the single-letter approach. If we do so, then we would stuck with that until we make breaking API changes. @dfcreative How hard would it be to support text of all lengths? And by the way @jackparmer about https://plot.ly/~jackp/18395/ are you unhappy about the first-render performance or just the drag hangups (or both 😏 )? Simply improvement drag performance for SVG text nodes shouldn't be too hard. |
Mostly the drag performance.
Dima told me up to 2 weeks. |
@etpinard depends on the requirements. There are many ways to do that, the simplest is canvas2d texture, that may take a day or two, not guaranteed it will be fast. Font-texture or something with sdf would take a week or two. Same for vector-based approach. There is no reliable components for doing full-featured font rendering in webgl so far. The nicest approach is in thetamath, but that is written in glslx and skew-lang. |
I think we should do the |
Related: #1116 |
I have a few bio customers who need to display hundreds to thousands of single letter markers like in the below graph:
@dfcreative already has a great example of single-letter rendering for regl-scatter2d here:
https://dfcreative.github.io/regl-scatter2d/copyrights.html
I'd like to propose that
mode: text
be enabled forscattergl
, but only work for single letters (for now).Note that
mode: text
currently does not do anything forscattergl
: https://codepen.io/plotly/pen/dmZNjMWe've tried creating graphs like the above with SVG, but for a larger number of letters, they are too slow. Here is an SVG example with a
mode: text
scatter
trace overlaid on aheatmap
trace: https://plot.ly/~jackp/18395/ (Note how long it takes to update when dragging the slider).The text was updated successfully, but these errors were encountered: