@@ -51,7 +51,7 @@ function LineWithMarkers(scene, uid) {
51
51
52
52
this . hasLines = false ;
53
53
this . lineOptions = {
54
- positions : new Float32Array ( 0 ) ,
54
+ positions : new Float64Array ( 0 ) ,
55
55
color : [ 0 , 0 , 0 , 1 ] ,
56
56
width : 1 ,
57
57
fill : [ false , false , false , false ] ,
@@ -357,13 +357,13 @@ proto.updateFast = function(options) {
357
357
this . scatter . update ( this . scatterOptions ) ;
358
358
}
359
359
else {
360
- this . scatterOptions . positions = new Float32Array ( 0 ) ;
360
+ this . scatterOptions . positions = new Float64Array ( 0 ) ;
361
361
this . scatterOptions . glyphs = [ ] ;
362
362
this . scatter . update ( this . scatterOptions ) ;
363
363
}
364
364
365
365
// turn off fancy scatter plot
366
- this . scatterOptions . positions = new Float32Array ( 0 ) ;
366
+ this . scatterOptions . positions = new Float64Array ( 0 ) ;
367
367
this . scatterOptions . glyphs = [ ] ;
368
368
this . fancyScatter . update ( this . scatterOptions ) ;
369
369
@@ -506,7 +506,7 @@ proto.updateLines = function(options, positions) {
506
506
var p = 0 ;
507
507
var x = this . xData ;
508
508
var y = this . yData ;
509
- linePositions = new Float32Array ( 2 * x . length ) ;
509
+ linePositions = new Float64Array ( 2 * x . length ) ;
510
510
511
511
for ( i = 0 ; i < x . length ; ++ i ) {
512
512
linePositions [ p ++ ] = x [ i ] ;
@@ -542,7 +542,7 @@ proto.updateLines = function(options, positions) {
542
542
this . lineOptions . fillColor = [ fillColor , fillColor , fillColor , fillColor ] ;
543
543
}
544
544
else {
545
- this . lineOptions . positions = new Float32Array ( 0 ) ;
545
+ this . lineOptions . positions = new Float64Array ( 0 ) ;
546
546
}
547
547
548
548
this . line . update ( this . lineOptions ) ;
0 commit comments