Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdb0bac

Browse files
committed
correct baseline image based on new feature
1 parent e6d7532 commit cdb0bac

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/traces/scatter3d/convert.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,18 @@ function calculateErrorParams(errors) {
134134
}
135135

136136
function parseAlignmentX(a) {
137-
if (a === null || a === undefined) return 0;
138-
else if (typeof(a) === 'number') return a;
139-
else if (a.indexOf('left') > -1) return -1;
140-
else if (a.indexOf('right') > -1) return 1;
137+
if(a === null || a === undefined) return 0;
138+
else if(typeof(a) === 'number') return a;
139+
else if(a.indexOf('left') > -1) return -1;
140+
else if(a.indexOf('right') > -1) return 1;
141141
return 0;
142142
}
143143

144144
function parseAlignmentY(a) {
145-
if (a === null || a === undefined) return 0;
146-
else if (typeof(a) === 'number') return a;
147-
else if (a.indexOf('top') > -1) return -1;
148-
else if (a.indexOf('bottom') > -1) return 1;
145+
if(a === null || a === undefined) return 0;
146+
else if(typeof(a) === 'number') return a;
147+
else if(a.indexOf('top') > -1) return -1;
148+
else if(a.indexOf('bottom') > -1) return 1;
149149
return 0;
150150
}
151151

@@ -161,12 +161,12 @@ function calculateTextOffset(tp) {
161161
];
162162

163163
if(Array.isArray(tp)) {
164-
for (var i = 0; i < tp.length; i++) {
164+
for(var i = 0; i < tp.length; i++) {
165165
textOffset[i] = [
166166
defaultAlignmentX,
167167
defaultAlignmentY
168168
];
169-
if (tp[i]) {
169+
if(tp[i]) {
170170
textOffset[i][0] = parseAlignmentX(tp[i]);
171171
textOffset[i][1] = parseAlignmentY(tp[i]);
172172
}

0 commit comments

Comments
 (0)