Skip to content

Commit 5dcf20a

Browse files
committed
high precision fancy scattergl - don't lose precision in convert
1 parent 994bc15 commit 5dcf20a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"gl-plot3d": "^1.5.1",
7171
"gl-pointcloud2d": "^1.0.0",
7272
"gl-scatter2d": "monfera/gl-scatter2d#64-bit",
73-
"gl-scatter2d-fancy": "^1.1.1",
73+
"gl-scatter2d-fancy": "monfera/gl-scatter2d#64-bit",
7474
"gl-scatter3d": "^1.0.4",
7575
"gl-select-box": "^1.0.1",
7676
"gl-shader": "4.2.0",

src/traces/scattergl/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ proto.updateFancy = function(options) {
389389

390390
var len = x.length,
391391
idToIndex = new Array(len),
392-
positions = new Float32Array(2 * len),
392+
positions = new Float64Array(2 * len),
393393
errorsX = new Float32Array(4 * len),
394394
errorsY = new Float32Array(4 * len),
395395
pId = 0,

0 commit comments

Comments
 (0)