8000 Splom zoom perf by etpinard · Pull Request #2527 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Splom zoom perf #2527

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 14 commits into from
Apr 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'splom-feature' into splom-zoom-perf
  • Loading branch information
etpinard committed Apr 9, 2018
commit b2ee73693036ab189f97aa676bf78570cfae9c74
16 changes: 10 additions & 6 deletions src/traces/splom/base_plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ function drag(gd) {
var scene = cd0.t._scene;

if(trace.type === 'splom' && scene && scene.matrix) {
var activeLength = trace._activeLength;
var visibleLength = scene.matrixOptions.data.length;
var ranges = new Array(visibleLength);
var k = 0;
dragOne(gd, trace, scene);
}
}
}

function dragOne(gd, trace, scene) {
var dimensions = trace.dimensions;
Expand All @@ -77,8 +77,12 @@ function dragOne(gd, trace, scene) {
}
}

if(fullLayout._hasOnlyLargeSploms) {
drawGrid(gd);
if(scene.selectBatch) {
scene.matrix.update({ranges: ranges}, {ranges: ranges});
scene.matrix.draw(scene.unselectBatch, scene.selectBatch);
} else {
scene.matrix.update({ranges: ranges});
scene.matrix.draw();
}
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0