@deephaven/chart 0.53.1-layout-manager.4 → 0.54.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.
Files changed (60) hide show
  1. package/dist/Chart.css +4 -0
  2. package/dist/Chart.css.map +1 -1
  3. package/dist/Chart.d.ts +12 -1
  4. package/dist/Chart.d.ts.map +1 -1
  5. package/dist/Chart.js +96 -9
  6. package/dist/Chart.js.map +1 -1
  7. package/dist/ChartModel.d.ts +2 -0
  8. package/dist/ChartModel.d.ts.map +1 -1
  9. package/dist/ChartModel.js +6 -0
  10. package/dist/ChartModel.js.map +1 -1
  11. package/dist/ChartModelFactory.d.ts +5 -38
  12. package/dist/ChartModelFactory.d.ts.map +1 -1
  13. package/dist/ChartModelFactory.js +6 -11
  14. package/dist/ChartModelFactory.js.map +1 -1
  15. package/dist/ChartTestUtils.d.ts +2 -1
  16. package/dist/ChartTestUtils.d.ts.map +1 -1
  17. package/dist/ChartTestUtils.js +4 -2
  18. package/dist/ChartTestUtils.js.map +1 -1
  19. package/dist/ChartTheme.d.ts +4 -3
  20. package/dist/ChartTheme.d.ts.map +1 -1
  21. package/dist/ChartTheme.js +38 -19
  22. package/dist/ChartTheme.js.map +1 -1
  23. package/dist/ChartTheme.module.css +16 -16
  24. package/dist/ChartTheme.module.css.map +1 -1
  25. package/dist/ChartThemeProvider.d.ts +9 -0
  26. package/dist/ChartThemeProvider.d.ts.map +1 -0
  27. package/dist/ChartThemeProvider.js +35 -0
  28. package/dist/ChartThemeProvider.js.map +1 -0
  29. package/dist/ChartUtils.d.ts +12 -129
  30. package/dist/ChartUtils.d.ts.map +1 -1
  31. package/dist/ChartUtils.js +19 -26
  32. package/dist/ChartUtils.js.map +1 -1
  33. package/dist/DownsamplingError.d.ts +5 -0
  34. package/dist/DownsamplingError.d.ts.map +1 -0
  35. package/dist/DownsamplingError.js +11 -0
  36. package/dist/DownsamplingError.js.map +1 -0
  37. package/dist/FigureChartModel.d.ts +4 -3
  38. package/dist/FigureChartModel.d.ts.map +1 -1
  39. package/dist/FigureChartModel.js +15 -11
  40. package/dist/FigureChartModel.js.map +1 -1
  41. package/dist/MockChartModel.d.ts +3 -0
  42. package/dist/MockChartModel.d.ts.map +1 -1
  43. package/dist/MockChartModel.js +21 -11
  44. package/dist/MockChartModel.js.map +1 -1
  45. package/dist/index.d.ts +4 -1
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +4 -1
  48. package/dist/index.js.map +1 -1
  49. package/dist/plotly/Plot.d.ts.map +1 -1
  50. package/dist/plotly/Plot.js +3 -8
  51. package/dist/plotly/Plot.js.map +1 -1
  52. package/dist/plotly/createPlotlyComponent.d.ts +4 -0
  53. package/dist/plotly/createPlotlyComponent.d.ts.map +1 -0
  54. package/dist/plotly/createPlotlyComponent.js +13 -0
  55. package/dist/plotly/createPlotlyComponent.js.map +1 -0
  56. package/dist/useChartTheme.d.ts +7 -0
  57. package/dist/useChartTheme.d.ts.map +1 -0
  58. package/dist/useChartTheme.js +10 -0
  59. package/dist/useChartTheme.js.map +1 -0
  60. package/package.json +11 -9
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","Chart","ChartModelFactory","ChartModel","ChartUtils","FigureChartModel","MockChartModel","Plot","ChartTheme","isFigureChartModel"],"sources":["../src/index.ts"],"sourcesContent":["export { default as Chart } from './Chart';\nexport { default as ChartModelFactory } from './ChartModelFactory';\nexport { default as ChartModel } from './ChartModel';\nexport { default as ChartUtils } from './ChartUtils';\nexport * from './ChartUtils';\nexport { default as FigureChartModel } from './FigureChartModel';\nexport { default as MockChartModel } from './MockChartModel';\nexport { default as Plot } from './plotly/Plot';\nexport { default as ChartTheme } from './ChartTheme';\nexport { default as isFigureChartModel } from './isFigureChartModel';\n"],"mappings":"SAASA,OAAO,IAAIC,KAAK;AAAA,SAChBD,OAAO,IAAIE,iBAAiB;AAAA,SAC5BF,OAAO,IAAIG,UAAU;AAAA,SACrBH,OAAO,IAAII,UAAU;AAAA;AAAA,SAErBJ,OAAO,IAAIK,gBAAgB;AAAA,SAC3BL,OAAO,IAAIM,cAAc;AAAA,SACzBN,OAAO,IAAIO,IAAI;AAAA,SACfP,OAAO,IAAIQ,UAAU;AAAA,SACrBR,OAAO,IAAIS,kBAAkB"}
1
+ {"version":3,"file":"index.js","names":["default","Chart","ChartModelFactory","ChartModel","ChartUtils","FigureChartModel","MockChartModel","Plot","isFigureChartModel"],"sources":["../src/index.ts"],"sourcesContent":["export { default as Chart } from './Chart';\nexport { default as ChartModelFactory } from './ChartModelFactory';\nexport { default as ChartModel } from './ChartModel';\nexport { default as ChartUtils } from './ChartUtils';\nexport * from './ChartUtils';\nexport * from './DownsamplingError';\nexport { default as FigureChartModel } from './FigureChartModel';\nexport { default as MockChartModel } from './MockChartModel';\nexport { default as Plot } from './plotly/Plot';\nexport * from './ChartTheme';\nexport * from './ChartThemeProvider';\nexport { default as isFigureChartModel } from './isFigureChartModel';\nexport * from './useChartTheme';\n"],"mappings":"SAASA,OAAO,IAAIC,KAAK;AAAA,SAChBD,OAAO,IAAIE,iBAAiB;AAAA,SAC5BF,OAAO,IAAIG,UAAU;AAAA,SACrBH,OAAO,IAAII,UAAU;AAAA;AAAA;AAAA,SAGrBJ,OAAO,IAAIK,gBAAgB;AAAA,SAC3BL,OAAO,IAAIM,cAAc;AAAA,SACzBN,OAAO,IAAIO,IAAI;AAAA;AAAA;AAAA,SAGfP,OAAO,IAAIQ,kBAAkB;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Plot.d.ts","sourceRoot":"","sources":["../../src/plotly/Plot.ts"],"names":[],"mappings":";;AASA,wBAMO"}
1
+ {"version":3,"file":"Plot.d.ts","sourceRoot":"","sources":["../../src/plotly/Plot.ts"],"names":[],"mappings":";;AAMA,wBAA6C"}
@@ -1,12 +1,7 @@
1
1
  // Import the react customizable bundle for building, only pull in the modules we need
2
2
  // This reduces the build size. Plotly has a lot of modules we don't need/use.
3
3
  // https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle
4
- import createPlotlyComponent from 'react-plotly.js/factory.js';
5
- import Plotly from "./Plotly.js"; // Webpack 5 (used in docusaurus) gives an object w/ a default key
6
- // This is probably something on react-plotly.js's side
7
- // Or because we lazy load this and Docusaurus ends up w/ some complications between ESM and CJS
8
- export default typeof createPlotlyComponent === 'function' ? createPlotlyComponent(Plotly) :
9
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10
- // @ts-ignore
11
- createPlotlyComponent.default(Plotly);
4
+ import createPlotlyComponent from "./createPlotlyComponent.js";
5
+ import Plotly from "./Plotly.js";
6
+ export default createPlotlyComponent(Plotly);
12
7
  //# sourceMappingURL=Plot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plot.js","names":["createPlotlyComponent","Plotly","default"],"sources":["../../src/plotly/Plot.ts"],"sourcesContent":["// Import the react customizable bundle for building, only pull in the modules we need\n// This reduces the build size. Plotly has a lot of modules we don't need/use.\n// https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle\nimport createPlotlyComponent from 'react-plotly.js/factory.js';\nimport Plotly from './Plotly';\n\n// Webpack 5 (used in docusaurus) gives an object w/ a default key\n// This is probably something on react-plotly.js's side\n// Or because we lazy load this and Docusaurus ends up w/ some complications between ESM and CJS\nexport default typeof createPlotlyComponent === 'function'\n ? createPlotlyComponent(Plotly)\n : // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n (createPlotlyComponent.default(Plotly) as ReturnType<\n typeof createPlotlyComponent\n >);\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,qBAAqB,MAAM,4BAA4B;AAAC,OACxDC,MAAM,qBAEb;AACA;AACA;AACA,eAAe,OAAOD,qBAAqB,KAAK,UAAU,GACtDA,qBAAqB,CAACC,MAAM,CAAC;AAC7B;AACA;AACCD,qBAAqB,CAACE,OAAO,CAACD,MAAM,CAEnC"}
1
+ {"version":3,"file":"Plot.js","names":["createPlotlyComponent","Plotly"],"sources":["../../src/plotly/Plot.ts"],"sourcesContent":["// Import the react customizable bundle for building, only pull in the modules we need\n// This reduces the build size. Plotly has a lot of modules we don't need/use.\n// https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle\nimport createPlotlyComponent from './createPlotlyComponent';\nimport Plotly from './Plotly';\n\nexport default createPlotlyComponent(Plotly);\n"],"mappings":"AAAA;AACA;AACA;AAAA,OACOA,qBAAqB;AAAA,OACrBC,MAAM;AAEb,eAAeD,qBAAqB,CAACC,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ import createPlotlyComponent from 'react-plotly.js/factory.js';
2
+ declare const _default: typeof createPlotlyComponent;
3
+ export default _default;
4
+ //# sourceMappingURL=createPlotlyComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPlotlyComponent.d.ts","sourceRoot":"","sources":["../../src/plotly/createPlotlyComponent.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;;AAK/D,wBAIoE"}
@@ -0,0 +1,13 @@
1
+ // Import the react customizable bundle for building, only pull in the modules we need
2
+ // This reduces the build size. Plotly has a lot of modules we don't need/use.
3
+ // https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle
4
+ import createPlotlyComponent from 'react-plotly.js/factory.js';
5
+
6
+ // Webpack 5 (used in docusaurus) gives an object w/ a default key
7
+ // This is probably something on react-plotly.js's side
8
+ // Or because we lazy load this and Docusaurus ends up w/ some complications between ESM and CJS
9
+ export default typeof createPlotlyComponent === 'function' ? createPlotlyComponent :
10
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
11
+ // @ts-ignore
12
+ createPlotlyComponent.default;
13
+ //# sourceMappingURL=createPlotlyComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPlotlyComponent.js","names":["createPlotlyComponent","default"],"sources":["../../src/plotly/createPlotlyComponent.ts"],"sourcesContent":["// Import the react customizable bundle for building, only pull in the modules we need\n// This reduces the build size. Plotly has a lot of modules we don't need/use.\n// https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle\nimport createPlotlyComponent from 'react-plotly.js/factory.js';\n\n// Webpack 5 (used in docusaurus) gives an object w/ a default key\n// This is probably something on react-plotly.js's side\n// Or because we lazy load this and Docusaurus ends up w/ some complications between ESM and CJS\nexport default typeof createPlotlyComponent === 'function'\n ? createPlotlyComponent\n : // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n (createPlotlyComponent.default as typeof createPlotlyComponent);\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,qBAAqB,MAAM,4BAA4B;;AAE9D;AACA;AACA;AACA,eAAe,OAAOA,qBAAqB,KAAK,UAAU,GACtDA,qBAAqB;AACrB;AACA;AACCA,qBAAqB,CAACC,OAAwC"}
@@ -0,0 +1,7 @@
1
+ import { ChartThemeContextValue } from './ChartThemeProvider';
2
+ /**
3
+ * Hook to get the current `ChartThemeContextValue`.
4
+ */
5
+ export declare function useChartTheme(): ChartThemeContextValue;
6
+ export default useChartTheme;
7
+ //# sourceMappingURL=useChartTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChartTheme.d.ts","sourceRoot":"","sources":["../src/useChartTheme.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,wBAAgB,aAAa,IAAI,sBAAsB,CAKtD;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { useContextOrThrow } from '@deephaven/react-hooks';
2
+ import { ChartThemeContext } from "./ChartThemeProvider.js";
3
+ /**
4
+ * Hook to get the current `ChartThemeContextValue`.
5
+ */
6
+ export function useChartTheme() {
7
+ return useContextOrThrow(ChartThemeContext, 'No ChartThemeContext value found.');
8
+ }
9
+ export default useChartTheme;
10
+ //# sourceMappingURL=useChartTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChartTheme.js","names":["useContextOrThrow","ChartThemeContext","useChartTheme"],"sources":["../src/useChartTheme.tsx"],"sourcesContent":["import { useContextOrThrow } from '@deephaven/react-hooks';\n\nimport {\n ChartThemeContext,\n ChartThemeContextValue,\n} from './ChartThemeProvider';\n\n/**\n * Hook to get the current `ChartThemeContextValue`.\n */\nexport function useChartTheme(): ChartThemeContextValue {\n return useContextOrThrow(\n ChartThemeContext,\n 'No ChartThemeContext value found.'\n );\n}\n\nexport default useChartTheme;\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,wBAAwB;AAAC,SAGzDC,iBAAiB;AAInB;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAA,EAA2B;EACtD,OAAOF,iBAAiB,CACtBC,iBAAiB,EACjB,mCACF,CAAC;AACH;AAEA,eAAeC,aAAa"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/chart",
3
- "version": "0.53.1-layout-manager.4+35156012",
3
+ "version": "0.54.0",
4
4
  "description": "Deephaven Chart",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -27,11 +27,13 @@
27
27
  "build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
28
28
  },
29
29
  "dependencies": {
30
- "@deephaven/icons": "^0.53.1-layout-manager.4+35156012",
31
- "@deephaven/jsapi-types": "^0.53.1-layout-manager.4+35156012",
32
- "@deephaven/jsapi-utils": "^0.53.1-layout-manager.4+35156012",
33
- "@deephaven/log": "^0.53.1-layout-manager.4+35156012",
34
- "@deephaven/utils": "^0.53.1-layout-manager.4+35156012",
30
+ "@deephaven/components": "^0.54.0",
31
+ "@deephaven/icons": "^0.54.0",
32
+ "@deephaven/jsapi-types": "^0.54.0",
33
+ "@deephaven/jsapi-utils": "^0.54.0",
34
+ "@deephaven/log": "^0.54.0",
35
+ "@deephaven/react-hooks": "^0.54.0",
36
+ "@deephaven/utils": "^0.54.0",
35
37
  "deep-equal": "^2.0.5",
36
38
  "lodash.debounce": "^4.0.8",
37
39
  "lodash.set": "^4.3.2",
@@ -45,8 +47,8 @@
45
47
  "react": "^17.x"
46
48
  },
47
49
  "devDependencies": {
48
- "@deephaven/jsapi-shim": "^0.53.1-layout-manager.4+35156012",
49
- "@deephaven/mocks": "^0.53.1-layout-manager.4+35156012",
50
+ "@deephaven/jsapi-shim": "^0.54.0",
51
+ "@deephaven/mocks": "^0.54.0",
50
52
  "@types/plotly.js": "^2.12.11"
51
53
  },
52
54
  "files": [
@@ -58,5 +60,5 @@
58
60
  "publishConfig": {
59
61
  "access": "public"
60
62
  },
61
- "gitHead": "35156012036ec087dbc366e5439b85ff6d1f71ff"
63
+ "gitHead": "724c84e40aa8a716f10f39c33019a5301bfd5dab"
62
64
  }