8000 Scatter3d and scattergl handling rgb colors with extra alpha values by archmoj · Pull Request #3904 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Scatter3d and scattergl handling rgb colors with extra alpha values #3904

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 8 commits into from
Jul 2, 2019
Prev Previous commit
Next Next commit
Revert "fixup splom and scattergl jasmine tests"
This reverts commit ccf70fb.
  • Loading branch information
archmoj committed May 24, 2019
commit caddbaa8c9fda4fbfd66f0feb1d9847f9fbe7ae3
6 changes: 3 additions & 3 deletions test/jasmine/tests/scattergl_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,9 @@ describe('end-to-end scattergl tests', function() {
var opts = gd.calcdata[0][0].t._scene.markerOptions[0];

expect(opts.colors).toBeCloseTo2DArray([
[0.5, 0.5, 0.5],
[0.75, 0.25, 0.25],
[1, 0, 0]
[0.5, 0.5, 0.5, 1],
[0.75, 0.25, 0.25, 1],
[1, 0, 0, 1]
]);

expect(opts.positions)
Expand Down
6 changes: 3 additions & 3 deletions test/jasmine/tests/splom_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1283,11 +1283,11 @@ describe('Test splom update switchboard:', function() {
]);

expect(toPlainArray(scene.matrixOptions.colors[0]))
.toBeCloseToArray([0.890, 0.6, 0.4078], 1, msg + '- 0');
.toBeCloseToArray([0.890, 0.6, 0.4078, 1], 1, msg + '- 0');
expect(toPlainArray(scene.matrixOptions.colors[1]))
.toBeCloseToArray([0.81176, 0.3333, 0.2431], 1, msg + '- 1');
.toBeCloseToArray([0.81176, 0.3333, 0.2431, 1], 1, msg + '- 1');
expect(toPlainArray(scene.matrixOptions.colors[2]))
.toBeCloseToArray([0.6980, 0.0392, 0.1098], 1, msg + '- 2');
.toBeCloseToArray([0.6980, 0.0392, 0.1098, 1], 1, msg + '- 2');

return Plotly.restyle(gd, 'marker.size', 20);
})
Expand Down
0