Skip to content

Commit 0093ac8

Browse files
committed
fixup streamtube after merge master
1 parent 2d1df2b commit 0093ac8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/traces/streamtube/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ module.exports = {
1616

1717
attributes: require('./attributes'),
1818
supplyDefaults: require('./defaults'),
19-
colorbar: require('../cone/colorbar'),
19+
colorbar: {
20+
min: 'cmin',
21+
max: 'cmax'
22+
},
2023
calc: require('./calc'),
2124
plot: require('./convert'),
2225
eventData: function(out, pt) {
Loading

test/jasmine/tests/streamtube_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,20 +198,20 @@ describe('@gl Test streamtube interactions', function() {
198198
}
199199

200200
Plotly.plot(gd, fig).then(function() {
201-
_assert('base cone', {objTypes: ['cone', 'cone']});
201+
_assert('base cone', {objTypes: ['cone']});
202202
return Plotly.restyle(gd, 'type', 'streamtube');
203203
})
204204
.then(function() {
205205
_assert('restyled to streamtube', {objTypes: ['streamtube']});
206206
return Plotly.restyle(gd, 'type', 'cone');
207207
})
208208
.then(function() {
209-
_assert('back to cone', {objTypes: ['cone', 'cone']});
209+
_assert('back to cone', {objTypes: ['cone']});
210210
return Plotly.addTraces(gd, [trace1]);
211211
})
212212
.then(function() {
213213
_assert('add streamtube on top of cone', {
214-
objTypes: ['cone', 'cone', 'streamtube']
214+
objTypes: ['cone', 'streamtube']
215215
});
216216
})
217217
.catch(failTest)

0 commit comments

Comments
 (0)