Skip to content

Commit d96f9ce

Browse files
committed
honor mesh3d 'facecolor' before 'vertexcolor'
- as describe in the attribute descriptions
1 parent c28320e commit d96f9ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/traces/mesh3d/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module.exports = {
125125
description: 'Sets the color of the whole mesh'
126126
},
127127
vertexcolor: {
128-
valType: 'data_array', // FIXME: this should be a color array
128+
valType: 'data_array',
129129
role: 'style',
130130
description: [
131131
'Sets the color of each vertex',

src/traces/mesh3d/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
8282
else {
8383
traceOut.showscale = false;
8484

85-
if('vertexcolor' in traceIn) coerce('vertexcolor');
86-
else if('facecolor' in traceIn) coerce('facecolor');
85+
if('facecolor' in traceIn) coerce('facecolor');
86+
else if('vertexcolor' in traceIn) coerce('vertexcolor');
8787
else coerce('color', defaultColor);
8888
}
8989

0 commit comments

Comments
 (0)