@deephaven/chart 0.53.1-beta.4 → 0.53.1-layout-manager.4
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.
- package/dist/Chart.d.ts +0 -2
- package/dist/Chart.d.ts.map +1 -1
- package/dist/Chart.js +1 -15
- package/dist/Chart.js.map +1 -1
- package/dist/ChartModelFactory.d.ts +38 -5
- package/dist/ChartModelFactory.d.ts.map +1 -1
- package/dist/ChartModelFactory.js +11 -6
- package/dist/ChartModelFactory.js.map +1 -1
- package/dist/ChartTheme.d.ts +3 -4
- package/dist/ChartTheme.d.ts.map +1 -1
- package/dist/ChartTheme.js +19 -38
- package/dist/ChartTheme.js.map +1 -1
- package/dist/ChartTheme.module.css +16 -16
- package/dist/ChartTheme.module.css.map +1 -1
- package/dist/ChartUtils.d.ts +129 -12
- package/dist/ChartUtils.d.ts.map +1 -1
- package/dist/ChartUtils.js +26 -19
- package/dist/ChartUtils.js.map +1 -1
- package/dist/FigureChartModel.d.ts +3 -4
- package/dist/FigureChartModel.d.ts.map +1 -1
- package/dist/FigureChartModel.js +8 -7
- package/dist/FigureChartModel.js.map +1 -1
- package/dist/MockChartModel.d.ts +0 -3
- package/dist/MockChartModel.d.ts.map +1 -1
- package/dist/MockChartModel.js +11 -21
- package/dist/MockChartModel.js.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/plotly/Plot.d.ts.map +1 -1
- package/dist/plotly/Plot.js +8 -3
- package/dist/plotly/Plot.js.map +1 -1
- package/package.json +9 -11
- package/dist/ChartThemeProvider.d.ts +0 -9
- package/dist/ChartThemeProvider.d.ts.map +0 -1
- package/dist/ChartThemeProvider.js +0 -35
- package/dist/ChartThemeProvider.js.map +0 -1
- package/dist/plotly/createPlotlyComponent.d.ts +0 -4
- package/dist/plotly/createPlotlyComponent.d.ts.map +0 -1
- package/dist/plotly/createPlotlyComponent.js +0 -13
- package/dist/plotly/createPlotlyComponent.js.map +0 -1
- package/dist/useChartTheme.d.ts +0 -7
- package/dist/useChartTheme.d.ts.map +0 -1
- package/dist/useChartTheme.js +0 -10
- package/dist/useChartTheme.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/chart",
|
|
3
|
-
"version": "0.53.1-
|
|
3
|
+
"version": "0.53.1-layout-manager.4+35156012",
|
|
4
4
|
"description": "Deephaven Chart",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,13 +27,11 @@
|
|
|
27
27
|
"build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@deephaven/
|
|
31
|
-
"@deephaven/
|
|
32
|
-
"@deephaven/jsapi-
|
|
33
|
-
"@deephaven/
|
|
34
|
-
"@deephaven/
|
|
35
|
-
"@deephaven/react-hooks": "^0.53.1-beta.4+d5b3b485",
|
|
36
|
-
"@deephaven/utils": "^0.53.1-beta.4+d5b3b485",
|
|
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",
|
|
37
35
|
"deep-equal": "^2.0.5",
|
|
38
36
|
"lodash.debounce": "^4.0.8",
|
|
39
37
|
"lodash.set": "^4.3.2",
|
|
@@ -47,8 +45,8 @@
|
|
|
47
45
|
"react": "^17.x"
|
|
48
46
|
},
|
|
49
47
|
"devDependencies": {
|
|
50
|
-
"@deephaven/jsapi-shim": "^0.53.1-
|
|
51
|
-
"@deephaven/mocks": "^0.53.1-
|
|
48
|
+
"@deephaven/jsapi-shim": "^0.53.1-layout-manager.4+35156012",
|
|
49
|
+
"@deephaven/mocks": "^0.53.1-layout-manager.4+35156012",
|
|
52
50
|
"@types/plotly.js": "^2.12.11"
|
|
53
51
|
},
|
|
54
52
|
"files": [
|
|
@@ -60,5 +58,5 @@
|
|
|
60
58
|
"publishConfig": {
|
|
61
59
|
"access": "public"
|
|
62
60
|
},
|
|
63
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "35156012036ec087dbc366e5439b85ff6d1f71ff"
|
|
64
62
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ChartTheme } from './ChartTheme';
|
|
3
|
-
export type ChartThemeContextValue = ChartTheme;
|
|
4
|
-
export declare const ChartThemeContext: import("react").Context<ChartTheme | null>;
|
|
5
|
-
export interface ChartThemeProviderProps {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare function ChartThemeProvider({ children, }: ChartThemeProviderProps): JSX.Element;
|
|
9
|
-
//# sourceMappingURL=ChartThemeProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartThemeProvider.d.ts","sourceRoot":"","sources":["../src/ChartThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAEtE,OAA0B,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE7D,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC;AAEhD,eAAO,MAAM,iBAAiB,4CAE7B,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAKD,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,GACT,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAuBvC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createContext, useEffect, useState } from 'react';
|
|
2
|
-
import { useTheme } from '@deephaven/components';
|
|
3
|
-
import defaultChartTheme from "./ChartTheme.js";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export var ChartThemeContext = /*#__PURE__*/createContext(null);
|
|
6
|
-
/*
|
|
7
|
-
* Provides a chart theme based on the active themes from the ThemeProvider.
|
|
8
|
-
*/
|
|
9
|
-
export function ChartThemeProvider(_ref) {
|
|
10
|
-
var {
|
|
11
|
-
children
|
|
12
|
-
} = _ref;
|
|
13
|
-
var {
|
|
14
|
-
activeThemes
|
|
15
|
-
} = useTheme();
|
|
16
|
-
var [chartTheme, setChartTheme] = useState(null);
|
|
17
|
-
|
|
18
|
-
// The `ThemeProvider` that supplies `activeThemes` also provides the corresponding
|
|
19
|
-
// CSS theme variables to the DOM by dynamically rendering <style> tags whenever
|
|
20
|
-
// the `activeThemes` change. Painting the latest CSS variables to the DOM may
|
|
21
|
-
// not happen until after `ChartThemeProvider` is rendered, but they should be
|
|
22
|
-
// available by the time the effect runs. Therefore, it is important to derive
|
|
23
|
-
// the chart theme in an effect instead of deriving in a `useMemo` to ensure
|
|
24
|
-
// we have the latest CSS variables.
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
if (activeThemes != null) {
|
|
27
|
-
setChartTheme(defaultChartTheme());
|
|
28
|
-
}
|
|
29
|
-
}, [activeThemes]);
|
|
30
|
-
return /*#__PURE__*/_jsx(ChartThemeContext.Provider, {
|
|
31
|
-
value: chartTheme,
|
|
32
|
-
children: children
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=ChartThemeProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartThemeProvider.js","names":["createContext","useEffect","useState","useTheme","defaultChartTheme","jsx","_jsx","ChartThemeContext","ChartThemeProvider","_ref","children","activeThemes","chartTheme","setChartTheme","Provider","value"],"sources":["../src/ChartThemeProvider.tsx"],"sourcesContent":["import { createContext, ReactNode, useEffect, useState } from 'react';\nimport { useTheme } from '@deephaven/components';\nimport defaultChartTheme, { ChartTheme } from './ChartTheme';\n\nexport type ChartThemeContextValue = ChartTheme;\n\nexport const ChartThemeContext = createContext<ChartThemeContextValue | null>(\n null\n);\n\nexport interface ChartThemeProviderProps {\n children: ReactNode;\n}\n\n/*\n * Provides a chart theme based on the active themes from the ThemeProvider.\n */\nexport function ChartThemeProvider({\n children,\n}: ChartThemeProviderProps): JSX.Element {\n const { activeThemes } = useTheme();\n\n const [chartTheme, setChartTheme] = useState<ChartTheme | null>(null);\n\n // The `ThemeProvider` that supplies `activeThemes` also provides the corresponding\n // CSS theme variables to the DOM by dynamically rendering <style> tags whenever\n // the `activeThemes` change. Painting the latest CSS variables to the DOM may\n // not happen until after `ChartThemeProvider` is rendered, but they should be\n // available by the time the effect runs. Therefore, it is important to derive\n // the chart theme in an effect instead of deriving in a `useMemo` to ensure\n // we have the latest CSS variables.\n useEffect(() => {\n if (activeThemes != null) {\n setChartTheme(defaultChartTheme());\n }\n }, [activeThemes]);\n\n return (\n <ChartThemeContext.Provider value={chartTheme}>\n {children}\n </ChartThemeContext.Provider>\n );\n}\n"],"mappings":"AAAA,SAASA,aAAa,EAAaC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACrE,SAASC,QAAQ,QAAQ,uBAAuB;AAAC,OAC1CC,iBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAIxB,OAAO,IAAMC,iBAAiB,gBAAGP,aAAa,CAC5C,IACF,CAAC;AAMD;AACA;AACA;AACA,OAAO,SAASQ,kBAAkBA,CAAAC,IAAA,EAEO;EAAA,IAFN;IACjCC;EACuB,CAAC,GAAAD,IAAA;EACxB,IAAM;IAAEE;EAAa,CAAC,GAAGR,QAAQ,CAAC,CAAC;EAEnC,IAAM,CAACS,UAAU,EAAEC,aAAa,CAAC,GAAGX,QAAQ,CAAoB,IAAI,CAAC;;EAErE;EACA;EACA;EACA;EACA;EACA;EACA;EACAD,SAAS,CAAC,MAAM;IACd,IAAIU,YAAY,IAAI,IAAI,EAAE;MACxBE,aAAa,CAACT,iBAAiB,CAAC,CAAC,CAAC;IACpC;EACF,CAAC,EAAE,CAACO,YAAY,CAAC,CAAC;EAElB,oBACEL,IAAA,CAACC,iBAAiB,CAACO,QAAQ;IAACC,KAAK,EAAEH,UAAW;IAAAF,QAAA,EAC3CA;EAAQ,CACiB,CAAC;AAEjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createPlotlyComponent.d.ts","sourceRoot":"","sources":["../../src/plotly/createPlotlyComponent.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;;AAK/D,wBAIoE"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/useChartTheme.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/useChartTheme.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|