Skip to content

Commit 9d99dd0

Browse files
committed
updated baselines and syntax
1 parent 72807c7 commit 9d99dd0

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

src/plots/gl3d/layout/convert.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ proto.merge = function(sceneLayout) {
9595
}
9696
// Title rotation/alignment similar to ticks
9797
if('titleangle' in axes) {
98-
if(axes.titleangle === 'auto') {
99-
opts.labelAlign[i] = 'auto';
100-
opts.labelAngle[i] = 0;
101-
} else {
102-
opts.labelAlign[i] = -1;
103-
opts.labelAngle[i] = Math.PI * -axes.labelangle / 180;
104-
}
98+
if(axes.titleangle === 'auto') {
99+
opts.labelAlign[i] = 'auto';
100+
opts.labelAngle[i] = 0;
101+
} else {
102+
opts.labelAlign[i] = -1;
103+
opts.labelAngle[i] = Math.PI * -axes.labelangle / 180;
104+
}
105105
}
106106
if(axes.titlealign === 'auto') opts.labelAlign[i] = 'auto';
107107
if('titlealign' in axes) opts.lableAlign[i] = axes.titlealign;
@@ -132,13 +132,13 @@ proto.merge = function(sceneLayout) {
132132
if('tickcolor' in axes) opts.lineTickColor[i] = str2RgbaArray(axes.tickcolor);
133133
if('tickwidth' in axes) opts.lineTickWidth[i] = axes.tickwidth;
134134
if('tickangle' in axes) {
135-
if(axes.tickangle === 'auto') {
136-
opts.tickAlign[i] = 'auto';
137-
opts.tickAngle[i] = 0;
138-
} else {
139-
opts.tickAlign[i] = -1;
140-
opts.tickAngle[i] = Math.PI * -axes.tickangle / 180;
141-
}
135+
if(axes.tickangle === 'auto') {
136+
opts.tickAlign[i] = 'auto';
137+
opts.tickAngle[i] = 0;
138+
} else {
139+
opts.tickAlign[i] = -1;
140+
opts.tickAngle[i] = Math.PI * -axes.tickangle / 180;
141+
}
142142
}
143143
if(axes.tickalign === 'auto') opts.tickAlign[i] = 'auto';
144144
if('tickalign' in axes) opts.tickAlign[i] = axes.tickalign;
484 Bytes
Loading
234 Bytes
Loading
122 Bytes
Loading
107 Bytes
Loading

test/image/baselines/gl3d_bunny.png

137 Bytes
Loading
73 Bytes
Loading
252 Bytes
Loading

0 commit comments

Comments
 (0)