Skip to content

Commit 36ec121

Browse files
committed
Make Mesh 3d control adjustments
1 parent 3a3ba18 commit 36ec121

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

src/components/fields/TraceSelector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function computeTraceOptionsFromSchema(schema, _, context) {
3131
{value: 'violin', label: _('Violin')},
3232
{value: 'scatter3d', label: _('3D Scatter')},
3333
{value: 'surface', label: _('Surface')},
34-
{value: 'mesh3d', label: _('Mesh3d')},
34+
{value: 'mesh3d', label: _('3D Mesh')},
3535
{value: 'scattergeo', label: _('Atlas Map')},
3636
{value: 'choropleth', label: _('Choropleth')},
3737
{value: 'scattergl', label: _('Scatter GL')},

src/default_panels/GraphCreatePanel.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const GraphCreatePanel = ({localize: _}) => {
2929
<DataSelector label={_('X')} attr="x" />
3030
<DataSelector label={_('Y')} attr="y" />
3131
<DataSelector label={{choropleth: _('Values'), '*': _('Z')}} attr="z" />
32+
<DataSelector label={_('I (Optional)')} attr="i" />
33+
<DataSelector label={_('J (Optional)')} attr="j" />
34+
<DataSelector label={_('K (Optional)')} attr="k" />
3235
<DataSelector label={_('Open')} attr="open" />
3336
<DataSelector label={_('High')} attr="high" />
3437
<DataSelector label={_('Low')} attr="low" />
@@ -39,6 +42,9 @@ const GraphCreatePanel = ({localize: _}) => {
3942
</Section>
4043

4144
<Section name={_('Options')}>
45+
<DataSelector label={_('Intensity')} attr="intensity" />
46+
<DataSelector label={_('Facecolor')} attr="facecolor" />
47+
<DataSelector label={_('Vertexcolor')} attr="vertexcolor" />
4248
<Dropdown
4349
label={_('Location Format')}
4450
attr="locationmode"

src/default_panels/StyleTracesPanel.js

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const StyleTracesPanel = ({localize: _}) => (
3939
/>
4040

4141
<Numeric label={_('Opacity')} step={0.1} attr="opacity" />
42+
<ColorPicker label={_('Color')} attr="color" />
4243
</Section>
4344

4445
<Section name={_('Text Attributes')}>
@@ -62,6 +63,14 @@ const StyleTracesPanel = ({localize: _}) => (
6263
{label: _('Text'), value: 'text'},
6364
]}
6465
/>
66+
<Radio
67+
attr="flatshading"
68+
label={_('flatshading')}
69+
options={[
70+
{label: _('Enable'), value: true},
71+
{label: _('Disable'), value: false},
72+
]}
73+
/>
6574
</Section>
6675

6776
<Section name={_('Filled Area')}>
@@ -246,6 +255,18 @@ const StyleTracesPanel = ({localize: _}) => (
246255
units="%"
247256
step={0.1}
248257
/>
258+
<Numeric
259+
label={_('Vertex Normal')}
260+
attr="lighting.vertexnormalsepsilon"
261+
units="%"
262+
step={0.1}
263+
/>
264+
<Numeric
265+
label={_('Face Normal')}
266+
attr="lighting.facenormalsepsilon"
267+
units="%"
268+
step={0.1}
269+
/>
249270
</Section>
250271

251272
<Section name={_('Light Position')}>
@@ -305,12 +326,22 @@ const StyleTracesPanel = ({localize: _}) => (
305326
/>
306327
</Section>
307328

308-
<Section name={_('Values Shown On Hover')}>
329+
<Section name={_('On Hover')}>
309330
<HoverInfo
310331
attr="hoverinfo"
311332
label={_('Values Shown On Hover')}
312333
localize={_}
313334
/>
335+
<Radio
336+
label={_('Show contour')}
337+
attr="contour.show"
338+
options={[
339+
{label: _('Show'), value: true},
340+
{label: _('Hide'), value: false},
341+
]}
342+
/>
343+
<ColorPicker label={_('Contour Color')} attr="contour.color" />
344+
<Numeric label={_('Contour Width')} attr="contour.width" />
314345
</Section>
315346

316347
<TraceTypeSection name={_('Hover Action')} traceTypes={['box']}>

0 commit comments

Comments
 (0)