8000 SVG trace on selection perf by etpinard · Pull Request #2583 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

SVG trace on selection perf #2583

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

Merged
merged 12 commits into from
May 1, 2018
Merged
Prev Previous commit
Next Next commit
lint (fn rename)
  • Loading branch information
etpinard committed Apr 30, 2018
commit 0e91c6e422d3c81bade5e44ec87c92782d8c27fc
6 changes: 3 additions & 3 deletions src/plots/cartesian/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,19 +405,19 @@ function updateSelectedState(gd, searchTraces, eventData) {
var item0 = items[0];
var trace0 = item0.cd[0].trace;
var _module = item0._module;
var fn = _module.styleOnSelect || _module.style;
var styleSelection = _module.styleOnSelect || _module.style;

if(Registry.traceIs(trace0, 'regl')) {
// plot regl traces per module
var cds = new Array(len);
for(j = 0; j < len; j++) {
cds[j] = items[j].cd;
}
fn(gd, cds);
styleSelection(gd, cds);
} else {
// plot svg trace per trace
for(j = 0; j < len; j++) {
fn(gd, items[j].cd);
styleSelection(gd, items[j].cd);
}
}
}
Expand Down
0