Skip to content

Commit eed7f30

Browse files
authored
Merge pull request #837 from plotly/plotlyjs-1.44.0
adjustments for plotly.js 1.44.0
2 parents 4a7c475 + 391046f commit eed7f30

File tree

7 files changed

+36
-21
lines changed

7 files changed

+36
-21
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-chart-editor",
33
"description": "plotly.js chart editor react component UI",
4-
"version": "0.34.4",
4+
"version": "0.35.0",
55
"author": "Plotly, Inc.",
66
"bugs": {
77
"url": "https://github.com/plotly/react-chart-editor/issues"
@@ -15,7 +15,7 @@
1515
"fast-isnumeric": "^1.1.1",
1616
"immutability-helper": "^2.7.1",
1717
"plotly-icons": "1.2.3",
18-
"plotly.js": "1.43.2",
18+
"plotly.js": "1.44.1",
1919
"prop-types": "^15.5.10",
2020
"raf": "^3.4.0",
2121
"react-color": "^2.13.8",

scripts/translationKeys/combined-translation-keys.txt

Lines changed: 16 additions & 15 deletions
Large diffs are not rendered by default.

scripts/translationKeys/translation-keys.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $
2424
2D Contour Histogram // /lib/computeTraceOptionsFromSchema.js:33
2525
2D Histogram // /lib/computeTraceOptionsFromSchema.js:29
2626
3D // /lib/traceTypes.js:29
27-
3D Line // /lib/computeTraceOptionsFromSchema.js:148
27+
3D Line // /lib/computeTraceOptionsFromSchema.js:152
2828
3D Mesh // /lib/computeTraceOptionsFromSchema.js:61
2929
3D Scatter // /lib/computeTraceOptionsFromSchema.js:53
3030
3D Surface // /lib/traceTypes.js:102
@@ -343,6 +343,7 @@ Intensity
343343
Interactions // /default_panels/StyleLayoutPanel.js:106
344344
Interpolate // /default_panels/StyleTracesPanel.js:383
345345
Interpolate Gaps // /default_panels/StyleTracesPanel.js:517
346+
Isosurface // /lib/computeTraceOptionsFromSchema.js:137
346347
J (Optional) // /default_panels/GraphCreatePanel.js:93
347348
January // /components/widgets/DateTimePicker.js:70
348349
Jitter // /default_panels/StyleTracesPanel.js:305
@@ -547,7 +548,7 @@ Roughness
547548
SVG // /components/fields/TraceSelector.js:101
548549
Sankey // /lib/computeTraceOptionsFromSchema.js:97
549550
Satellite // /default_panels/GraphSubplotsPanel.js:81
550-
Satellite Map // /lib/computeTraceOptionsFromSchema.js:155
551+
Satellite Map // /lib/computeTraceOptionsFromSchema.js:159
551552
Satellite with Streets // /default_panels/GraphSubplotsPanel.js:82
552553
Scale // /default_panels/GraphSubplotsPanel.js:213
553554
Scale Group // /default_panels/StyleTracesPanel.js:561
@@ -656,7 +657,7 @@ Tick Spacing
656657
Tick spacing // /default_panels/StyleColorbarsPanel.js:213
657658
Ticks // /default_panels/StyleColorbarsPanel.js:221
658659
Timescale Buttons // /default_panels/StyleAxesPanel.js:342
659-
Timeseries // /lib/computeTraceOptionsFromSchema.js:144
660+
Timeseries // /lib/computeTraceOptionsFromSchema.js:148
660661
Tip // /default_panels/StyleTracesPanel.js:71
661662
Title // /default_panels/StyleColorbarsPanel.js:37
662663
Titles // /default_panels/StyleAxesPanel.js:32

src/default_panels/StyleLayoutPanel.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
Radio,
1818
} from '../components';
1919
import {HoverColor} from '../components/fields/derived';
20+
import DataSelector from '../components/fields/DataSelector';
2021

2122
const StyleLayoutPanel = (props, {localize: _}) => (
2223
<LayoutPanel>
@@ -165,6 +166,9 @@ const StyleLayoutPanel = (props, {localize: _}) => (
165166
</HovermodeDropdown>
166167
</PlotlySection>
167168
</PlotlyFold>
169+
<PlotlyFold name={_('Meta')}>
170+
<DataSelector label={_('Custom Data')} attr="meta" />
171+
</PlotlyFold>
168172
</LayoutPanel>
169173
);
170174

src/lib/computeTraceOptionsFromSchema.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ function computeTraceOptionsFromSchema(schema, _, context) {
132132
value: 'barpolar',
133133
label: _('Polar Bar'),
134134
},
135+
{
136+
value: 'isosurface',
137+
label: _('Isosurface'),
138+
},
135139
].filter(obj => traceTypes.indexOf(obj.value) !== -1);
136140

137141
const traceIndex = traceType => traceOptions.findIndex(opt => opt.value === traceType);

src/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function maybeAdjustSrc(src, srcAttributePath, traceType, config) {
155155
return src[0];
156156
}
157157

158-
return config && config.fromSrc ? config.fromSrc(src, traceType) : src;
158+
return config && config.fromSrc ? config.fromSrc(src, traceType, srcAttributePath) : src;
159159
}
160160

161161
function adjustColorscale(colorscale, numberOfNeededColors, colorscaleType, config) {

src/lib/traceTypes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,9 @@ export const traceTypes = _ => [
240240
label: _('Carpet'),
241241
category: chartCategory(_).HIDDEN,
242242
},
243+
{
244+
value: 'isosurface',
245+
label: _('Isosurface'),
246+
category: chartCategory(_).HIDDEN,
247+
},
243248
];

0 commit comments

Comments
 (0)