@deephaven/chart 1.30.0 → 1.30.1-plotly-v4.888ad98.0.sha-888ad98

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.
Files changed (37) hide show
  1. package/dist/Chart.d.ts.map +1 -1
  2. package/dist/Chart.js +2 -5
  3. package/dist/Chart.js.map +1 -1
  4. package/dist/ChartModel.d.ts +3 -2
  5. package/dist/ChartModel.d.ts.map +1 -1
  6. package/dist/ChartModel.js.map +1 -1
  7. package/dist/ChartUtils.d.ts +5 -4
  8. package/dist/ChartUtils.d.ts.map +1 -1
  9. package/dist/ChartUtils.js +2 -0
  10. package/dist/ChartUtils.js.map +1 -1
  11. package/dist/FigureChartModel.d.ts +4 -3
  12. package/dist/FigureChartModel.d.ts.map +1 -1
  13. package/dist/FigureChartModel.js.map +1 -1
  14. package/dist/MockChartModel.d.ts +4 -3
  15. package/dist/MockChartModel.d.ts.map +1 -1
  16. package/dist/MockChartModel.js.map +1 -1
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/plotly/LazyPlot.d.ts +1 -1
  22. package/dist/plotly/LazyPlot.d.ts.map +1 -1
  23. package/dist/plotly/Plot.d.ts +1 -1
  24. package/dist/plotly/Plotly.d.ts.map +1 -1
  25. package/dist/plotly/Plotly.js +1 -8
  26. package/dist/plotly/Plotly.js.map +1 -1
  27. package/dist/plotly/createPlotlyComponent.d.ts +1 -2
  28. package/dist/plotly/createPlotlyComponent.d.ts.map +1 -1
  29. package/dist/plotly/createPlotlyComponent.js +1 -1
  30. package/dist/plotly/createPlotlyComponent.js.map +1 -1
  31. package/dist/plotly/plotly-extends.d.js +0 -4
  32. package/dist/plotly/plotly-extends.d.js.map +1 -1
  33. package/dist/plotly/plotlyTypes.d.ts +28 -0
  34. package/dist/plotly/plotlyTypes.d.ts.map +1 -0
  35. package/dist/plotly/plotlyTypes.js +2 -0
  36. package/dist/plotly/plotlyTypes.js.map +1 -0
  37. package/package.json +15 -16
@@ -0,0 +1,28 @@
1
+ import type { BarData, HistogramData, IndicatorData, OhlcData, PieData, PlotType, MarkerSymbol, ScatterData, ScatterglData, TreemapData } from 'plotly.js';
2
+ /** The trace types registered in our partial plotly bundle. See `./Plotly`. */
3
+ type SupportedTraceData = BarData | HistogramData | IndicatorData | OhlcData | PieData | ScatterData | ScatterglData | TreemapData;
4
+ type KeysOfUnion<T> = T extends unknown ? keyof T : never;
5
+ /** The union of `T[K]` across every member of `T` that declares `K`. */
6
+ type PropOfUnion<T, K extends PropertyKey> = T extends unknown ? K extends keyof T ? T[K] : never : never;
7
+ /** Flattens a union of object types into one type with all properties optional. */
8
+ type MergeUnion<T> = {
9
+ [K in KeysOfUnion<T>]?: PropOfUnion<T, K>;
10
+ };
11
+ /**
12
+ * plotly.js v4 replaced the catch-all `PlotData` type with one interface per
13
+ * trace type. Chart code builds traces generically before their type is known,
14
+ * so merge the trace interfaces we support back into a single type.
15
+ *
16
+ * `line` and `marker` are merged as well because styling is applied to them
17
+ * before the trace type is known, and `type`/`marker.symbol` stay wide because
18
+ * the server can send any plot style or shape.
19
+ */
20
+ export type PlotData = Omit<MergeUnion<SupportedTraceData>, 'type' | 'line' | 'marker'> & {
21
+ type?: PlotType;
22
+ line?: MergeUnion<PropOfUnion<SupportedTraceData, 'line'>>;
23
+ marker?: Omit<MergeUnion<PropOfUnion<SupportedTraceData, 'marker'>>, 'symbol'> & {
24
+ symbol?: MarkerSymbol;
25
+ };
26
+ };
27
+ export {};
28
+ //# sourceMappingURL=plotlyTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plotlyTypes.d.ts","sourceRoot":"","sources":["../../src/plotly/plotlyTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,aAAa,EACb,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,aAAa,EACb,WAAW,EACZ,MAAM,WAAW,CAAC;AAEnB,+EAA+E;AAC/E,KAAK,kBAAkB,GACnB,OAAO,GACP,aAAa,GACb,aAAa,GACb,QAAQ,GACR,OAAO,GACP,WAAW,GACX,aAAa,GACb,WAAW,CAAC;AAEhB,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AAE1D,wEAAwE;AACxE,KAAK,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,IAAI,CAAC,SAAS,OAAO,GAC1D,CAAC,SAAS,MAAM,CAAC,GACf,CAAC,CAAC,CAAC,CAAC,GACJ,KAAK,GACP,KAAK,CAAC;AAEV,mFAAmF;AACnF,KAAK,UAAU,CAAC,CAAC,IAAI;KAClB,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;CAC1C,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,QAAQ,GAAG,IAAI,CACzB,UAAU,CAAC,kBAAkB,CAAC,EAC9B,MAAM,GAAG,MAAM,GAAG,QAAQ,CAC3B,GAAG;IACF,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,IAAI,CACX,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,EACrD,QAAQ,CACT,GAAG;QACF,MAAM,CAAC,EAAE,YAAY,CAAC;KACvB,CAAC;CACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plotlyTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plotlyTypes.js","names":[],"sources":["../../src/plotly/plotlyTypes.ts"],"sourcesContent":["import type {\n BarData,\n HistogramData,\n IndicatorData,\n OhlcData,\n PieData,\n PlotType,\n MarkerSymbol,\n ScatterData,\n ScatterglData,\n TreemapData,\n} from 'plotly.js';\n\n/** The trace types registered in our partial plotly bundle. See `./Plotly`. */\ntype SupportedTraceData =\n | BarData\n | HistogramData\n | IndicatorData\n | OhlcData\n | PieData\n | ScatterData\n | ScatterglData\n | TreemapData;\n\ntype KeysOfUnion<T> = T extends unknown ? keyof T : never;\n\n/** The union of `T[K]` across every member of `T` that declares `K`. */\ntype PropOfUnion<T, K extends PropertyKey> = T extends unknown\n ? K extends keyof T\n ? T[K]\n : never\n : never;\n\n/** Flattens a union of object types into one type with all properties optional. */\ntype MergeUnion<T> = {\n [K in KeysOfUnion<T>]?: PropOfUnion<T, K>;\n};\n\n/**\n * plotly.js v4 replaced the catch-all `PlotData` type with one interface per\n * trace type. Chart code builds traces generically before their type is known,\n * so merge the trace interfaces we support back into a single type.\n *\n * `line` and `marker` are merged as well because styling is applied to them\n * before the trace type is known, and `type`/`marker.symbol` stay wide because\n * the server can send any plot style or shape.\n */\nexport type PlotData = Omit<\n MergeUnion<SupportedTraceData>,\n 'type' | 'line' | 'marker'\n> & {\n type?: PlotType;\n line?: MergeUnion<PropOfUnion<SupportedTraceData, 'line'>>;\n marker?: Omit<\n MergeUnion<PropOfUnion<SupportedTraceData, 'marker'>>,\n 'symbol'\n > & {\n symbol?: MarkerSymbol;\n };\n};\n"],"mappings":"","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/chart",
3
- "version": "1.30.0",
3
+ "version": "1.30.1-plotly-v4.888ad98.0.sha-888ad98",
4
4
  "description": "Deephaven Chart",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,7 @@
14
14
  "source": "src/index.js",
15
15
  "types": "dist/index.d.ts",
16
16
  "engines": {
17
- "node": ">=16"
17
+ "node": ">=22"
18
18
  },
19
19
  "exports": {
20
20
  ".": "./dist/index.js",
@@ -27,29 +27,28 @@
27
27
  "build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
28
28
  },
29
29
  "dependencies": {
30
- "@deephaven/components": "^1.30.0",
31
- "@deephaven/icons": "^1.2.0",
30
+ "@deephaven/components": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
31
+ "@deephaven/icons": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
32
32
  "@deephaven/jsapi-types": "^1.0.0-dev0.40.4",
33
- "@deephaven/jsapi-utils": "^1.29.0",
34
- "@deephaven/log": "^1.8.0",
35
- "@deephaven/react-hooks": "^1.30.0",
36
- "@deephaven/utils": "^1.29.0",
33
+ "@deephaven/jsapi-utils": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
34
+ "@deephaven/log": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
35
+ "@deephaven/react-hooks": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
36
+ "@deephaven/utils": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
37
37
  "buffer": "^6.0.3",
38
38
  "fast-deep-equal": "^3.1.3",
39
39
  "lodash": "^4.17.21",
40
40
  "memoize-one": "^5.1.1",
41
41
  "memoizee": "^0.4.15",
42
- "plotly.js": "3.1.0",
43
- "react-plotly.js": "^2.6.0"
42
+ "plotly.js": "4.1.1",
43
+ "react-plotly.js": "^4.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "react": ">=16.8.0"
46
+ "react": "^18.0.0 || ^19.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@deephaven/jsapi-shim": "^1.9.0",
50
- "@deephaven/mocks": "^1.1.0",
51
- "@deephaven/test-utils": "^1.8.0",
52
- "@types/plotly.js": "^3.0.0"
49
+ "@deephaven/jsapi-shim": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
50
+ "@deephaven/mocks": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
51
+ "@deephaven/test-utils": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98"
53
52
  },
54
53
  "files": [
55
54
  "dist"
@@ -60,5 +59,5 @@
60
59
  "publishConfig": {
61
60
  "access": "public"
62
61
  },
63
- "gitHead": "d1d311216b8ae7639e1416f9ad6a72f2bf9fb5c8"
62
+ "gitHead": "888ad98495074ec23535376001b109715945d819"
64
63
  }