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

Skip to content

Commit 8518e13

Browse files
committed
apply identical lighti position defaults for gl3d traces
1 parent 990a960 commit 8518e13

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/traces/mesh3d/attributes.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,7 @@ colorScaleAttrs('', {
210210
editType: 'calc'
211211
},
212212

213-
lightposition: {
214-
x: extendFlat({}, surfaceAttrs.lightposition.x, {dflt: 1e5}),
215-
y: extendFlat({}, surfaceAttrs.lightposition.y, {dflt: 1e5}),
216-
z: extendFlat({}, surfaceAttrs.lightposition.z, {dflt: 0}),
217-
editType: 'calc'
218-
},
213+
lightposition: surfaceAttrs.lightposition,
219214
lighting: extendFlat({
220215
vertexnormalsepsilon: {
221216
valType: 'number',

src/traces/surface/attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,15 @@ colorScaleAttrs('', {
216216
role: 'style',
217217
min: -1e5,
218218
max: 1e5,
219-
dflt: 10,
219+
dflt: 1e5,
220220
description: 'Numeric vector, representing the X coordinate for each vertex.'
221221
},
222222
y: {
223223
valType: 'number',
224224
role: 'style',
225225
min: -1e5,
226226
max: 1e5,
227-
dflt: 1e4,
227+
dflt: 1e5,
228228
description: 'Numeric vector, representing the Y coordinate for each vertex.'
229229
},
230230
z: {

0 commit comments

Comments
 (0)