Skip to content

Commit

Permalink
Merge pull request #2593 from plotly/scattergl-fix-n
Browse files Browse the repository at this point in the history
Scattergl selection / clustering fix
  • Loading branch information
etpinard authored May 1, 2018
2 parents ef6b259 + f7dc6b3 commit 0bb032f
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 26 deletions.
50 changes: 30 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
"ndarray-fill": "^1.0.2",
"ndarray-homography": "^1.0.0",
"ndarray-ops": "^1.2.2",
"point-cluster": "^3.1.2",
"point-cluster": "^3.1.4",
"polybooljs": "^1.2.0",
"regl": "^1.3.1",
"regl-error2d": "^2.0.3",
"regl-line2d": "^3.0.8",
"regl-scatter2d": "^3.0.1",
"regl-splom": "^1.0.0",
"regl-error2d": "^2.0.5",
"regl-line2d": "^3.0.9",
"regl-scatter2d": "^3.0.4",
"regl-splom": "^1.0.3",
"right-now": "^1.0.0",
"robust-orientation": "^1.1.3",
"sane-topojson": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/traces/scattergl/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ function plot(gd, subplot, cdata) {
}
}

// uploat viewport/range data to GPU
// upload viewport/range data to GPU
if(scene.fill2d) {
scene.fill2d.update(vpRange);
}
Expand Down
Binary file modified test/image/baselines/gl2d_scatter-color-clustering.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions test/image/mocks/gl2d_scatter-continuous-clustering.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions test/jasmine/tests/splom_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,21 @@ describe('@gl Test splom interactions:', function() {
.catch(failTest)
.then(done);
});

it('should work with typed arrays', function(done) {
Plotly.plot(gd, [{
type: 'splom',
dimensions: [{
label: 'A',
values: new Int32Array([1, 2, 3])
}, {
label: 'B',
values: new Int32Array([2, 5, 6])
}]
}])
.catch(failTest)
.then(done);
});
});

describe('@gl Test splom hover:', function() {
Expand Down

0 comments on commit 0bb032f

Please sign in to comment.