@@ -41,7 +41,7 @@ function render(scene) {
41
41
svgContainer . setAttributeNS ( null , 'viewBox' , '0 0 ' + width + ' ' + height ) ;
42
42
svgContainer . setAttributeNS ( null , 'width' , width ) ;
43
43
svgContainer . setAttributeNS ( null , 'height' , height ) ;
44
-
44
+
45
45
computeTickMarks ( scene ) ;
46
46
scene . glplot . axes . update ( scene . axesOptions ) ;
47
47
@@ -383,8 +383,8 @@ function computeTraceBounds(scene, trace, bounds) {
383
383
}
384
384
}
385
385
386
- function isCloseToZero ( a ) {
387
- if ( Math . abs ( a ) > Number . MIN_VALUE ) { // the smallest positive numeric value representable in JavaScript
386
+ function isCloseToZero ( a ) {
387
+ if ( Math . abs ( a ) > Number . MIN_VALUE ) { // the smallest positive numeric value representable in JavaScript
388
388
return false ;
389
389
}
390
390
return true ;
@@ -406,7 +406,7 @@ proto.plot = function(sceneData, fullLayout, layout) {
406
406
else this . glplot . clearColor = [ 0 , 0 , 0 , 0 ] ;
407
407
408
408
this . glplot . snapToData = true ;
409
-
409
+
410
410
// Update layout
411
411
this . fullLayout = fullLayout ;
412
412
this . fullSceneLayout = fullSceneLayout ;
@@ -428,7 +428,7 @@ proto.plot = function(sceneData, fullLayout, layout) {
428
428
// Convert scene data
429
429
if ( ! sceneData ) sceneData = [ ] ;
430
430
else if ( ! Array . isArray ( sceneData ) ) sceneData = [ sceneData ] ;
431
-
431
+
432
432
// Compute trace bounding box
433
433
var dataBounds = [
434
434
[ Infinity , Infinity , Infinity ] ,
@@ -445,7 +445,7 @@ proto.plot = function(sceneData, fullLayout, layout) {
445
445
var diff = dataBounds [ 1 ] [ j ] - dataBounds [ 0 ] [ j ] ;
446
446
if ( ! isCloseToZero ( diff ) ) dataScale [ j ] = 1.0 / diff ;
447
447
}
448
-
448
+
449
449
// Save scale
450
450
this . dataScale = dataScale ;
451
451
@@ -556,11 +556,11 @@ proto.plot = function(sceneData, fullLayout, layout) {
556
556
} else {
557
557
var d = sceneBounds [ 1 ] [ i ] - sceneBounds [ 0 ] [ i ] ;
558
558
sceneBounds [ 0 ] [ i ] -= d / 32.0 ;
559
- sceneBounds [ 1 ] [ i ] += d / 32.0 ;
559
+ sceneBounds [ 1 ] [ i ] += d / 32.0 ;
560
560
}
561
-
561
+
562
562
if ( axis . autorange === 'reversed' ) {
563
- // swap bounds:
563
+ // swap bounds:
564
564
var tmp = sceneBounds [ 0 ] [ i ] ;
565
565
sceneBounds [ 0 ] [ i ] = sceneBounds [ 1 ] [ i ] ;
566
566
sceneBounds [ 1 ] [ i ] = tmp ;
@@ -575,14 +575,14 @@ proto.plot = function(sceneData, fullLayout, layout) {
575
575
sceneBounds [ 1 ] [ i ] += 1 ;
576
576
}
577
577
axisDataRange [ i ] = sceneBounds [ 1 ] [ i ] - sceneBounds [ 0 ] [ i ] ;
578
-
578
+
579
579
// Update plot bounds
580
580
this . glplot . bounds [ 0 ] [ i ] = sceneBounds [ 0 ] [ i ] * dataScale [ i ] ;
581
581
this . glplot . bounds [ 1 ] [ i ] = sceneBounds [ 1 ] [ i ] * dataScale [ i ] ;
582
582
}
583
-
583
+
584
584
var axesScaleRatio = [ 1 , 1 , 1 ] ;
585
-
585
+
586
586
// Compute axis scale per category
587
587
for ( i = 0 ; i < 3 ; ++ i ) {
588
588
axis = fullSceneLayout [ axisProperties [ i ] ] ;
0 commit comments