You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'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: textscatter trace overlaid on a heatmap trace: https://plot.ly/~jackp/18395/ (Note how long it takes to update when dragging the slider).
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.
@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 sdf method after splom if we want multi-character marker text in scattergl. No point in adding mode: text to scattergl if it's not going to be significantly faster than SVG scatter.
Activity
etpinard commentedon Mar 27, 2018
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.
jackparmer commentedon Mar 27, 2018
Mostly the drag performance.
Dima told me up to 2 weeks.
dy commentedon Mar 27, 2018
@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.
jackparmer commentedon Mar 27, 2018
I think we should do the
sdfmethod aftersplomif we want multi-character marker text inscattergl. No point in addingmode: texttoscatterglif it's not going to be significantly faster than SVGscatter.etpinard commentedon Mar 28, 2018
Related: #1116
[-]single-letter mode:text for regl-scatter2d[/-][+]mode:text for regl-scatter2d[/+]etpinard commentedon Jul 5, 2018
done in #2737, followup in #2780