@@ -48,7 +48,7 @@ function LineWithMarkers(scene, uid) {
48
48
49
49
this . hasLines = false ;
50
50
this . lineOptions = {
51
- positions : new Float32Array ( ) ,
51
+ positions : new Float32Array ( 0 ) ,
52
52
color : [ 0 , 0 , 0 , 1 ] ,
53
53
width : 1 ,
54
54
fill : [ false , false , false , false ] ,
@@ -64,8 +64,8 @@ function LineWithMarkers(scene, uid) {
64
64
65
65
this . hasErrorX = false ;
66
66
this . errorXOptions = {
67
- positions : new Float32Array ( ) ,
68
- errors : new Float32Array ( ) ,
67
+ positions : new Float32Array ( 0 ) ,
68
+ errors : new Float32Array ( 0 ) ,
69
69
lineWidth : 1 ,
70
70
capSize : 0 ,
71
71
color : [ 0 , 0 , 0 , 1 ]
@@ -75,8 +75,8 @@ function LineWithMarkers(scene, uid) {
75
75
76
76
this . hasErrorY = false ;
77
77
this . errorYOptions = {
78
- positions : new Float32Array ( ) ,
79
- errors : new Float32Array ( ) ,
78
+ positions : new Float32Array ( 0 ) ,
79
+ errors : new Float32Array ( 0 ) ,
80
80
lineWidth : 1 ,
81
81
capSize : 0 ,
82
82
color : [ 0 , 0 , 0 , 1 ]
@@ -86,7 +86,7 @@ function LineWithMarkers(scene, uid) {
86
86
87
87
this . hasMarkers = false ;
88
88
this . scatterOptions = {
89
- positions : new Float32Array ( ) ,
89
+ positions : new Float32Array ( 0 ) ,
90
90
sizes : [ ] ,
91
91
colors : [ ] ,
92
92
glyphs : [ ] ,
@@ -330,13 +330,13 @@ proto.updateFast = function(options) {
330
330
this . scatter . update ( this . scatterOptions ) ;
331
331
}
332
332
else {
333
- this . scatterOptions . positions = new Float32Array ( ) ;
333
+ this . scatterOptions . positions = new Float32Array ( 0 ) ;
334
334
this . scatterOptions . glyphs = [ ] ;
335
335
this . scatter . update ( this . scatterOptions ) ;
336
336
}
337
337
338
338
// turn off fancy scatter plot
339
- this . scatterOptions . positions = new Float32Array ( ) ;
339
+ this . scatterOptions . positions = new Float32Array ( 0 ) ;
340
340
this . scatterOptions . glyphs = [ ] ;
341
341
this . fancyScatter . update ( this . scatterOptions ) ;
342
342
@@ -455,13 +455,13 @@ proto.updateFancy = function(options) {
455
455
this . fancyScatter . update ( this . scatterOptions ) ;
456
456
}
457
457
else {
458
- this . scatterOptions . positions = new Float32Array ( ) ;
458
+ this . scatterOptions . positions = new Float32Array ( 0 ) ;
459
459
this . scatterOptions . glyphs = [ ] ;
460
460
this . fancyScatter . update ( this . scatterOptions ) ;
461
461
}
462
462
463
463
// turn off fast scatter plot
464
- this . scatterOptions . positions = new Float32Array ( ) ;
464
+ this . scatterOptions . positions = new Float32Array ( 0 ) ;
465
465
this . scatterOptions . glyphs = [ ] ;
466
466
this . scatter . update ( this . scatterOptions ) ;
467
467
@@ -514,7 +514,7 @@ proto.updateLines = function(options, positions) {
514
514
this . lineOptions . fillColor = [ fillColor , fillColor , fillColor , fillColor ] ;
515
515
}
516
516
else {
517
- this . lineOptions . positions = new Float32Array ( ) ;
517
+ this . lineOptions . positions = new Float32Array ( 0 ) ;
518
518
}
519
519
520
520
this . line . update ( this . lineOptions ) ;
@@ -537,7 +537,7 @@ proto.updateError = function(axLetter, options, positions, errors) {
537
537
errorObjOptions . color = convertColor ( errorOptions . color , 1 , 1 ) ;
538
538
}
539
539
else {
540
- errorObjOptions . positions = new Float32Array ( ) ;
540
+ errorObjOptions . positions = new Float32Array ( 0 ) ;
541
541
}
542
542
543
543
errorObj . update ( errorObjOptions ) ;
0 commit comments