Skip to content

Commit 1a38f37

Browse files
committed
fix handling direct typedarrays in selectedpoints
1 parent bb53b1e commit 1a38f37

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/plots/plots.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ var getModuleCalcData = require('../plots/get_data').getModuleCalcData;
2525
var relinkPrivateKeys = Lib.relinkPrivateKeys;
2626
var _ = Lib._;
2727

28-
var isTypedArraySpec = require('../lib/array').isTypedArraySpec;
29-
var decodeTypedArraySpec = require('../lib/array').decodeTypedArraySpec;
30-
3128
var plots = module.exports = {};
3229

3330
// Expose registry methods on Plots for backward-compatibility
@@ -1360,8 +1357,8 @@ plots.supplyTraceDefaults = function(traceIn, traceOut, colorIndex, layout, trac
13601357

13611358
if(_module && _module.selectPoints) {
13621359
var selectedpoints = coerce('selectedpoints');
1363-
if(isTypedArraySpec(selectedpoints)) {
1364-
traceOut.selectedpoints = Array.from(decodeTypedArraySpec(selectedpoints));
1360+
if(Lib.isTypedArray(selectedpoints)) {
1361+
traceOut.selectedpoints = Array.from(selectedpoints);
13651362
}
13661363
}
13671364

0 commit comments

Comments
 (0)