Skip to content

Commit 1a11fd8

Browse files
committed
Added test to check that marker opacity changes when restyle is called
1 parent 0652158 commit 1a11fd8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/jasmine/tests/scatter3d_test.js

+20
Original file line numberDiff line numberDiff line change
@@ -309,4 +309,24 @@ describe('Test scatter3d interactions:', function() {
309309
})
310310
.then(done, done.fail);
311311
});
312+
313+
it('@gl should change marker opacity when restyle is called', function(done) {
314+
Plotly.newPlot(
315+
gd,
316+
[
317+
{
318+
type: 'scatter3d',
319+
x: [0],
320+
y: [0],
321+
z: [0],
322+
mode: 'markers',
323+
},
324+
]
325+
).then(function() {
326+
Plotly.restyle(gd, 'opacity', 0.5).then(function() {
327+
expect(gd._fullLayout.scene._scene.glplot.objects[0].hasAlpha).toEqual(true);
328+
});
329+
})
330+
.then(done, done.fail);
331+
});
312332
});

0 commit comments

Comments
 (0)