@deephaven/js-plugin-plotly-express 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlotlyExpressChart.d.ts","sourceRoot":"","sources":["../src/PlotlyExpressChart.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAK9D,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAClC,GAAG,CAAC,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"PlotlyExpressChart.d.ts","sourceRoot":"","sources":["../src/PlotlyExpressChart.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAK9D,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAClC,GAAG,CAAC,OAAO,GAAG,IAAI,CAoCpB;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -10,12 +10,14 @@ export function PlotlyExpressChart(props) {
|
|
|
10
10
|
const { fetch } = props;
|
|
11
11
|
const containerRef = useRef(null);
|
|
12
12
|
const [model, setModel] = useState();
|
|
13
|
+
const [widgetRevision, setWidgetRevision] = useState(0); // Used to force a clean chart state on widget change
|
|
13
14
|
useEffect(() => {
|
|
14
15
|
let cancelled = false;
|
|
15
16
|
async function init() {
|
|
16
17
|
const widgetData = await fetch();
|
|
17
18
|
if (!cancelled) {
|
|
18
19
|
setModel(new PlotlyExpressChartModel(dh, widgetData, fetch));
|
|
20
|
+
setWidgetRevision(r => r + 1);
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
init();
|
|
@@ -27,10 +29,7 @@ export function PlotlyExpressChart(props) {
|
|
|
27
29
|
return model ? (_jsx(Chart
|
|
28
30
|
// eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/ban-ts-comment
|
|
29
31
|
// @ts-ignore
|
|
30
|
-
, {
|
|
31
|
-
// eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/ban-ts-comment
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
containerRef: containerRef, model: model, Plotly: Plotly })) : null;
|
|
32
|
+
, { containerRef: containerRef, model: model, Plotly: Plotly }, widgetRevision)) : null;
|
|
34
33
|
}
|
|
35
34
|
export default PlotlyExpressChart;
|
|
36
35
|
//# sourceMappingURL=PlotlyExpressChart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlotlyExpressChart.js","sourceRoot":"","sources":["../src/PlotlyExpressChart.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,UAAU,kBAAkB,CAChC,KAAmC;IAEnC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACxB,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAClD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PlotlyExpressChart.js","sourceRoot":"","sources":["../src/PlotlyExpressChart.tsx"],"names":[],"mappings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AC;IAEjD,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,KAAC,KAAK;IACJ,2FAA2F;IAC3F,aAAa;QAEb,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,IAHT,cAAc,CAInB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,eAAe,kBAAkB,CAAC"}
|
package/dist/bundle/index.js
CHANGED
|
@@ -93022,12 +93022,14 @@ function PlotlyExpressChart(props) {
|
|
|
93022
93022
|
const { fetch } = props;
|
|
93023
93023
|
const containerRef = React.useRef(null);
|
|
93024
93024
|
const [model, setModel] = React.useState();
|
|
93025
|
+
const [widgetRevision, setWidgetRevision] = React.useState(0);
|
|
93025
93026
|
React.useEffect(() => {
|
|
93026
93027
|
let cancelled = false;
|
|
93027
93028
|
async function init2() {
|
|
93028
93029
|
const widgetData = await fetch();
|
|
93029
93030
|
if (!cancelled) {
|
|
93030
93031
|
setModel(new PlotlyExpressChartModel(dh, widgetData, fetch));
|
|
93032
|
+
setWidgetRevision((r2) => r2 + 1);
|
|
93031
93033
|
}
|
|
93032
93034
|
}
|
|
93033
93035
|
init2();
|
|
@@ -93042,7 +93044,8 @@ function PlotlyExpressChart(props) {
|
|
|
93042
93044
|
containerRef,
|
|
93043
93045
|
model,
|
|
93044
93046
|
Plotly
|
|
93045
|
-
}
|
|
93047
|
+
},
|
|
93048
|
+
widgetRevision
|
|
93046
93049
|
) : null;
|
|
93047
93050
|
}
|
|
93048
93051
|
var toStr$9 = Object.prototype.toString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/js-plugin-plotly-express",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Deephaven plotly express plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Deephaven",
|
|
@@ -72,5 +72,6 @@
|
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"dist"
|
|
75
|
-
]
|
|
75
|
+
],
|
|
76
|
+
"gitHead": "4f8c61a63c927683b72a2bb40b8b78807c6f3b96"
|
|
76
77
|
}
|