Skip to content

Commit 5e4b75b

Browse files
committed
syntax, removed white spaces
1 parent 875067b commit 5e4b75b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/plots/gl3d/scene.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function render(scene) {
4141
svgContainer.setAttributeNS(null, 'viewBox', '0 0 ' + width + ' ' + height);
4242
svgContainer.setAttributeNS(null, 'width', width);
4343
svgContainer.setAttributeNS(null, 'height', height);
44-
44+
4545
computeTickMarks(scene);
4646
scene.glplot.axes.update(scene.axesOptions);
4747

@@ -383,8 +383,8 @@ function computeTraceBounds(scene, trace, bounds) {
383383
}
384384
}
385385

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
388388
return false;
389389
}
390390
return true;
@@ -406,7 +406,7 @@ proto.plot = function(sceneData, fullLayout, layout) {
406406
else this.glplot.clearColor = [0, 0, 0, 0];
407407

408408
this.glplot.snapToData = true;
409-
409+
410410
// Update layout
411411
this.fullLayout = fullLayout;
412412
this.fullSceneLayout = fullSceneLayout;
@@ -428,7 +428,7 @@ proto.plot = function(sceneData, fullLayout, layout) {
428428
// Convert scene data
429429
if(!sceneData) sceneData = [];
430430
else if(!Array.isArray(sceneData)) sceneData = [sceneData];
431-
431+
432432
// Compute trace bounding box
433433
var dataBounds = [
434434
[Infinity, Infinity, Infinity],
@@ -445,7 +445,7 @@ proto.plot = function(sceneData, fullLayout, layout) {
445445
var diff = dataBounds[1][j] - dataBounds[0][j];
446446
if(!isCloseToZero(diff)) dataScale[j] = 1.0 / diff;
447447
}
448-
448+
449449
// Save scale
450450
this.dataScale = dataScale;
451451

@@ -556,11 +556,11 @@ proto.plot = function(sceneData, fullLayout, layout) {
556556
} else {
557557
var d = sceneBounds[1][i] - sceneBounds[0][i];
558558
sceneBounds[0][i] -= d / 32.0;
559-
sceneBounds[1][i] += d / 32.0;
559+
sceneBounds[1][i] += d / 32.0;
560560
}
561-
561+
562562
if(axis.autorange === 'reversed') {
563-
// swap bounds:
563+
// swap bounds:
564564
var tmp = sceneBounds[0][i];
565565
sceneBounds[0][i] = sceneBounds[1][i];
566566
sceneBounds[1][i] = tmp;
@@ -575,14 +575,14 @@ proto.plot = function(sceneData, fullLayout, layout) {
575575
sceneBounds[1][i] += 1;
576576
}
577577
axisDataRange[i] = sceneBounds[1][i] - sceneBounds[0][i];
578-
578+
579579
// Update plot bounds
580580
this.glplot.bounds[0][i] = sceneBounds[0][i] * dataScale[i];
581581
this.glplot.bounds[1][i] = sceneBounds[1][i] * dataScale[i];
582582
}
583-
583+
584584
var axesScaleRatio = [1, 1, 1];
585-
585+
586586
// Compute axis scale per category
587587
for(i = 0; i < 3; ++i) {
588588
axis = fullSceneLayout[axisProperties[i]];

0 commit comments

Comments
 (0)