Uh oh!
There was an error while loading. Please reload this page.
Point cluster dev - #2499
Conversation
etpinard
commented
Mar 26, 2018
dy
commented
Mar 26, 2018
@etpinard is the test-image build fail caused by scattergl update? Looks like something other causes that. |
etpinard
commented
Mar 26, 2018
you mean this: see -> #2493 (comment) |
etpinard
commented
Mar 26, 2018
Looks like is also having issues in nw.js @dfcreative Can you try setting up https://gist.github.com/etpinard/d27a44bd5dbee5490f20 ? You don't anything docker related. Just make sure to use |
| stash.tree = cluster(positions); | ||
| if(options.marker) { |
There was a problem hiding this comment.
this should probably be options.marker && count >= TOO_MANY_POINTS like in scattergl/convert.js
etpinard
commented
Mar 27, 2018
@dfcreative nice! You got the tests to ✅ I noticed a few things by looking at the diff:
|
etpinard
commented
Mar 27, 2018
@dfcreative I'm noticing that drag performance slows down after toggling Moreover, with vargd=document.getElementById('graph')varx=[]vary=[]varms=[]varN=1e6vari=0for(;i<N;i++){x.push(Math.random())y.push(Math.random())ms.push(i%2 ? 20 : 10)}console.time('plot')Plotly.newPlot(gd,[{type: 'scattergl',mode: 'markers',x: x,y: y,marker: {size: ms}}],{dragmode: 'closest',//xaxis: {range: [-0.1, 2.2]},//yaxis: {range: [-0.1, 1.1]}},{scrollZoom: true})selection is slower than on |
etpinard
commented
Mar 27, 2018
... Oh and we should make sure the new |
Fixed. Although that affects only data layering order, for polar plots that is a bit less actual.
That is not clustering, that is adjusted shader behavior in case of no-border gl-vis/regl-scatter2d@023c421. It used to add thin black pixel outline instead of keeping the point color, now that "antialias" has the point color.
Thanks, fixed. In fact it supports multiple colors now in IE and works even better.
Working on that. |
…races Fix scattergl unselected marker opacity for array marker opacity traces
dy
commented
Mar 27, 2018
Ok, with the latest commit selection should work almost as fast as possible, init time is ok, no tree overcalculation and observable memory leaks. |
| "has-passive-events": "^1.0.0", | ||
| "kdgrass": "^1.0.1", | ||
| "mapbox-gl": "0.44.1", | ||
| "math-log2": "^1.0.1", |
etpinard
commented
Mar 28, 2018
Well this is amazing! Performance off the latest commit is nothing short of spectacular. Great job @dfcreative 🎉 All my concerns have been addressed. Now, would you mind publishing a major version of |
etpinard
commented
Mar 28, 2018
Ok. Well-earned 💃 Let's merge this thing. |





supersedes #2493