@wonderflow/charts 12.11.0 → 13.0.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.
- package/dist/components/bar-chart/bar-chart.d.ts +33 -5
- package/dist/components/bar-chart/bar-chart.d.ts.map +1 -1
- package/dist/components/bar-chart/bar-chart.js +20 -45
- package/dist/components/bar-chart/bar-chart.test.js +7 -1
- package/dist/components/cartesian-base/cartesian-base-axis.d.ts.map +1 -1
- package/dist/components/cartesian-base/cartesian-base-axis.js +10 -11
- package/dist/components/cartesian-base/cartesian-base-legend.d.ts.map +1 -1
- package/dist/components/cartesian-base/cartesian-base-legend.js +3 -3
- package/dist/components/cartesian-base/cartesian-base.d.ts +27 -0
- package/dist/components/cartesian-base/cartesian-base.d.ts.map +1 -1
- package/dist/components/cartesian-base/cartesian-base.js +7 -3
- package/dist/components/cartesian-base/cartesian-base.module.css +1 -1
- package/dist/components/headings/headings.d.ts +19 -2
- package/dist/components/headings/headings.d.ts.map +1 -1
- package/dist/components/headings/headings.js +72 -6
- package/dist/components/headings/headings.module.css +1 -0
- package/dist/components/headings/headings.test.d.ts +1 -1
- package/dist/components/headings/headings.test.d.ts.map +1 -1
- package/dist/components/headings/headings.test.js +37 -3
- package/dist/components/line-chart/line-chart.d.ts +29 -13
- package/dist/components/line-chart/line-chart.d.ts.map +1 -1
- package/dist/components/line-chart/line-chart.js +4 -2
- package/dist/components/line-chart/line-chart.test.js +2 -2
- package/dist/components/loader/bar-chart-loader.d.ts.map +1 -1
- package/dist/components/loader/bar-chart-loader.js +1 -1
- package/dist/components/loader/loader.js +2 -2
- package/dist/components/loader/loader.test.js +4 -2
- package/dist/components/shapes/bars/bars-average.d.ts +3 -0
- package/dist/components/shapes/bars/bars-average.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-average.js +30 -0
- package/dist/components/shapes/bars/bars-overlay.d.ts +6 -0
- package/dist/components/shapes/bars/bars-overlay.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-overlay.js +59 -0
- package/dist/components/shapes/bars/bars-series.d.ts +6 -0
- package/dist/components/shapes/bars/bars-series.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-series.js +56 -0
- package/dist/components/shapes/bars/bars-tooltip.d.ts +3 -0
- package/dist/components/shapes/bars/bars-tooltip.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-tooltip.js +85 -0
- package/dist/components/shapes/bars/bars-trendline.d.ts +3 -0
- package/dist/components/shapes/bars/bars-trendline.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-trendline.js +43 -0
- package/dist/components/shapes/bars/bars.d.ts.map +1 -1
- package/dist/components/shapes/bars/bars.js +25 -18
- package/dist/components/shapes/bars/bars.module.css +1 -1
- package/dist/components/shapes/bars/bars.test.js +39 -8
- package/dist/components/shapes/bars/index.d.ts +5 -0
- package/dist/components/shapes/bars/index.d.ts.map +1 -1
- package/dist/components/shapes/bars/index.js +6 -1
- package/dist/components/shapes/lines/lines-average.d.ts.map +1 -1
- package/dist/components/shapes/lines/lines-average.js +8 -46
- package/dist/components/shapes/lines/lines-marker-labels.d.ts.map +1 -1
- package/dist/components/shapes/lines/lines-marker-labels.js +10 -10
- package/dist/components/shapes/lines/lines-overlay.d.ts.map +1 -1
- package/dist/components/shapes/lines/lines-overlay.js +21 -26
- package/dist/components/shapes/lines/lines-series.d.ts.map +1 -1
- package/dist/components/shapes/lines/lines-series.js +6 -19
- package/dist/components/shapes/lines/lines-tooltip.d.ts.map +1 -1
- package/dist/components/shapes/lines/lines-tooltip.js +20 -27
- package/dist/components/shapes/lines/lines-trendline.d.ts +3 -0
- package/dist/components/shapes/lines/lines-trendline.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-trendline.js +43 -0
- package/dist/components/shapes/lines/lines.d.ts.map +1 -1
- package/dist/components/shapes/lines/lines.js +2 -1
- package/dist/components/shapes/lines/lines.test.js +29 -8
- package/dist/hooks/hooks.test.d.ts.map +1 -1
- package/dist/hooks/hooks.test.js +157 -5
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/useAverage.d.ts +82 -0
- package/dist/hooks/useAverage.d.ts.map +1 -0
- package/dist/hooks/useAverage.js +83 -0
- package/dist/hooks/useBarChart.d.ts +16 -0
- package/dist/hooks/useBarChart.d.ts.map +1 -0
- package/dist/hooks/useBarChart.js +104 -0
- package/dist/hooks/useBars.d.ts +52 -0
- package/dist/hooks/useBars.d.ts.map +1 -0
- package/dist/hooks/useBars.js +82 -0
- package/dist/hooks/useCartesian.d.ts +11 -2
- package/dist/hooks/useCartesian.d.ts.map +1 -1
- package/dist/hooks/useCartesian.js +16 -5
- package/dist/hooks/useLineChart.d.ts +3 -27
- package/dist/hooks/useLineChart.d.ts.map +1 -1
- package/dist/hooks/useLineChart.js +22 -13
- package/dist/hooks/useLines.d.ts +48 -0
- package/dist/hooks/useLines.d.ts.map +1 -0
- package/dist/hooks/useLines.js +70 -0
- package/dist/hooks/useTrendline.d.ts +56 -0
- package/dist/hooks/useTrendline.d.ts.map +1 -0
- package/dist/hooks/useTrendline.js +84 -0
- package/dist/providers/cartesian.d.ts +5 -1
- package/dist/providers/cartesian.d.ts.map +1 -1
- package/dist/providers/cartesian.js +19 -3
- package/dist/providers/data.d.ts +6 -7
- package/dist/providers/data.d.ts.map +1 -1
- package/dist/providers/data.js +4 -3
- package/dist/style-config/axis.js +3 -3
- package/dist/style-config/bars.d.ts +3 -0
- package/dist/style-config/bars.d.ts.map +1 -0
- package/dist/style-config/bars.js +33 -0
- package/dist/style-config/cartesian.d.ts.map +1 -1
- package/dist/style-config/cartesian.js +2 -0
- package/dist/style-config/colors.d.ts +1 -4
- package/dist/style-config/colors.d.ts.map +1 -1
- package/dist/style-config/colors.js +30 -36
- package/dist/style-config/headings.d.ts.map +1 -1
- package/dist/style-config/headings.js +16 -1
- package/dist/style-config/lines.d.ts.map +1 -1
- package/dist/style-config/lines.js +6 -0
- package/dist/style-config/themes.d.ts.map +1 -1
- package/dist/style-config/themes.js +18 -0
- package/dist/types/bar-chart.d.ts +20 -15
- package/dist/types/bar-chart.d.ts.map +1 -1
- package/dist/types/bar-chart.js +1 -39
- package/dist/types/bars.d.ts +29 -0
- package/dist/types/bars.d.ts.map +1 -0
- package/dist/types/bars.js +16 -0
- package/dist/types/cartesian.d.ts +3 -0
- package/dist/types/cartesian.d.ts.map +1 -1
- package/dist/types/headings.d.ts +15 -0
- package/dist/types/headings.d.ts.map +1 -1
- package/dist/types/headings.js +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -1
- package/dist/types/line-chart.d.ts +12 -12
- package/dist/types/line-chart.d.ts.map +1 -1
- package/dist/types/lines.d.ts +6 -0
- package/dist/types/lines.d.ts.map +1 -1
- package/dist/types/main.d.ts +14 -1
- package/dist/types/main.d.ts.map +1 -1
- package/dist/types/themes.d.ts +9 -0
- package/dist/types/themes.d.ts.map +1 -1
- package/dist/utils/axis.d.ts +12 -2
- package/dist/utils/axis.d.ts.map +1 -1
- package/dist/utils/axis.js +52 -15
- package/dist/utils/axis.test.js +72 -8
- package/dist/utils/bars.d.ts +15 -0
- package/dist/utils/bars.d.ts.map +1 -0
- package/dist/utils/bars.js +71 -0
- package/dist/utils/bars.test.d.ts +2 -0
- package/dist/utils/bars.test.d.ts.map +1 -0
- package/dist/utils/bars.test.js +95 -0
- package/dist/utils/data.d.ts +9 -6
- package/dist/utils/data.d.ts.map +1 -1
- package/dist/utils/data.js +87 -15
- package/dist/utils/data.test.js +173 -80
- package/dist/utils/format.d.ts +1 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +2 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -1
- package/dist/utils/lines.test.js +25 -0
- package/dist/utils/metadata.d.ts +7 -8
- package/dist/utils/metadata.d.ts.map +1 -1
- package/dist/utils/metadata.js +3 -20
- package/dist/utils/metadata.test.js +3 -56
- package/dist/utils/viewport.test.js +8 -0
- package/package.json +4 -2
package/dist/providers/data.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare type DataContextProps = {
|
|
2
|
+
import { CartesianChartMetadata, Data } from '../types';
|
|
3
|
+
export declare type DataContextProps<T extends CartesianChartMetadata> = {
|
|
5
4
|
data: Data;
|
|
6
5
|
filteredData: Data;
|
|
7
|
-
metadata?:
|
|
6
|
+
metadata?: T;
|
|
8
7
|
};
|
|
9
|
-
export declare type DataProviderProps = DataContextProps
|
|
10
|
-
export declare const DataContext: import("react").Context<DataContextProps
|
|
8
|
+
export declare type DataProviderProps = DataContextProps<CartesianChartMetadata>;
|
|
9
|
+
export declare const DataContext: import("react").Context<DataContextProps<CartesianChartMetadata>>;
|
|
11
10
|
export declare const DataProvider: FCChildren<DataProviderProps>;
|
|
12
|
-
export declare
|
|
11
|
+
export declare function useDataContext<T extends CartesianChartMetadata>(): DataContextProps<T>;
|
|
13
12
|
//# sourceMappingURL=data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/providers/data.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/providers/data.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAExD,oBAAY,gBAAgB,CAAC,CAAC,SAAS,sBAAsB,IAAI;IAC/D,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC;CACd,CAAC;AAEF,oBAAY,iBAAiB,GAAG,gBAAgB,CAAC,sBAAsB,CAAC,CAAA;AAQxE,eAAO,MAAM,WAAW,mEAAuE,CAAC;AAEhG,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,iBAAiB,CAStD,CAAC;AAEF,wBAAgB,cAAc,CAC9B,CAAC,SAAS,sBAAsB,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAUvD"}
|
package/dist/providers/data.js
CHANGED
|
@@ -22,13 +22,14 @@ const defaultData = {
|
|
|
22
22
|
};
|
|
23
23
|
export const DataContext = createContext(defaultData);
|
|
24
24
|
export const DataProvider = ({ children, data, filteredData, metadata, }) => (_jsx(DataContext.Provider, { value: { data, metadata, filteredData }, children: children }));
|
|
25
|
-
export
|
|
25
|
+
export function useDataContext() {
|
|
26
26
|
const context = useContext(DataContext);
|
|
27
27
|
if (!context) {
|
|
28
28
|
// eslint-disable-next-line no-console
|
|
29
29
|
console.error('useDataContext() must be used inside DataProvider to access context data.');
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const typedContext = context;
|
|
32
|
+
return typedContext ?? defaultData;
|
|
33
|
+
}
|
|
33
34
|
DataContext.displayName = 'DataContext';
|
|
34
35
|
DataProvider.displayName = 'DataProvider';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2023 Wonderflow Design Team
|
|
2
|
+
* Copyright 2023-2024 Wonderflow Design Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -48,7 +48,7 @@ export const axisStyleConfig = {
|
|
|
48
48
|
top: {
|
|
49
49
|
tickLabelProps: {
|
|
50
50
|
dy: -12,
|
|
51
|
-
dominantBaseline: '
|
|
51
|
+
dominantBaseline: 'middle',
|
|
52
52
|
},
|
|
53
53
|
labelProps: {
|
|
54
54
|
dominantBaseline: 'auto',
|
|
@@ -67,7 +67,7 @@ export const axisStyleConfig = {
|
|
|
67
67
|
bottom: {
|
|
68
68
|
tickLabelProps: {
|
|
69
69
|
dy: 4,
|
|
70
|
-
dominantBaseline: '
|
|
70
|
+
dominantBaseline: 'middle',
|
|
71
71
|
},
|
|
72
72
|
labelProps: {
|
|
73
73
|
dominantBaseline: 'auto',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bars.d.ts","sourceRoot":"","sources":["../../src/style-config/bars.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,eAAe,EAAE,eAiB7B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023-2024 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export const barsStyleConfig = {
|
|
17
|
+
maxSize: 24,
|
|
18
|
+
paddingOuter: 1,
|
|
19
|
+
paddingInner: 0.2,
|
|
20
|
+
paddingInnerGroup: 0.1,
|
|
21
|
+
paddingOuterGroup: 0,
|
|
22
|
+
bar: {
|
|
23
|
+
rx: 4,
|
|
24
|
+
opacity: 1,
|
|
25
|
+
},
|
|
26
|
+
background: {
|
|
27
|
+
rx: 0,
|
|
28
|
+
opacity: 0.7,
|
|
29
|
+
},
|
|
30
|
+
overlay: {
|
|
31
|
+
opacity: 0.7,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartesian.d.ts","sourceRoot":"","sources":["../../src/style-config/cartesian.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"cartesian.d.ts","sourceRoot":"","sources":["../../src/style-config/cartesian.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAW1D,eAAO,MAAM,oBAAoB,EAAE,oBAUlC,CAAC"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { axisStyleConfig } from './axis';
|
|
17
|
+
import { barsStyleConfig } from './bars';
|
|
17
18
|
import { brushStyleConfig } from './brush';
|
|
18
19
|
import { gridStyleConfig } from './grid';
|
|
19
20
|
import { headingsStyleConfig } from './headings';
|
|
@@ -23,6 +24,7 @@ import { themes } from './themes';
|
|
|
23
24
|
import { viewportStyleConfig } from './viewport';
|
|
24
25
|
export const cartesianStyleConfig = {
|
|
25
26
|
axis: axisStyleConfig,
|
|
27
|
+
bars: barsStyleConfig,
|
|
26
28
|
brush: brushStyleConfig,
|
|
27
29
|
headings: headingsStyleConfig,
|
|
28
30
|
grid: gridStyleConfig,
|
|
@@ -2,8 +2,5 @@ import { Colors, KpisColorsNames, NeutralsColorNames, ThemeVariants } from '../t
|
|
|
2
2
|
export declare const colors: Colors;
|
|
3
3
|
export declare const colorPaletteKpis: Record<KpisColorsNames, string>;
|
|
4
4
|
export declare const colorPaletteNeutrals: Record<NeutralsColorNames, string>;
|
|
5
|
-
export declare const
|
|
6
|
-
overlay: string;
|
|
7
|
-
series: string[];
|
|
8
|
-
}>;
|
|
5
|
+
export declare const colorPaletteDefault: Record<ThemeVariants, string[]>;
|
|
9
6
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/style-config/colors.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,aAAa,EAC3D,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,MAAM,EAAE,MA4LpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAgB5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAanE,CAAC;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/style-config/colors.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,aAAa,EAC3D,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,MAAM,EAAE,MA4LpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAgB5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAanE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,CA6B/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2023 Wonderflow Design Team
|
|
2
|
+
* Copyright 2023-2024 Wonderflow Design Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -233,39 +233,33 @@ export const colorPaletteNeutrals = {
|
|
|
233
233
|
dimmed8: colors.primary[80],
|
|
234
234
|
dimmed9: colors.primary[90],
|
|
235
235
|
};
|
|
236
|
-
export const
|
|
237
|
-
light:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
],
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
colors.purple[30],
|
|
266
|
-
colors.dipsy[20],
|
|
267
|
-
colors.indigo[30],
|
|
268
|
-
colors.mint[30],
|
|
269
|
-
],
|
|
270
|
-
},
|
|
236
|
+
export const colorPaletteDefault = {
|
|
237
|
+
light: [
|
|
238
|
+
colors.green[40],
|
|
239
|
+
colors.red[30],
|
|
240
|
+
colors.blue[40],
|
|
241
|
+
colors.yellow[40],
|
|
242
|
+
colors.magenta[40],
|
|
243
|
+
colors.cyan[40],
|
|
244
|
+
colors.violet[40],
|
|
245
|
+
colors.salmon[40],
|
|
246
|
+
colors.purple[40],
|
|
247
|
+
colors.dipsy[40],
|
|
248
|
+
colors.indigo[40],
|
|
249
|
+
colors.mint[40],
|
|
250
|
+
],
|
|
251
|
+
dark: [
|
|
252
|
+
colors.green[20],
|
|
253
|
+
colors.red[20],
|
|
254
|
+
colors.blue[20],
|
|
255
|
+
colors.yellow[20],
|
|
256
|
+
colors.magenta[30],
|
|
257
|
+
colors.cyan[20],
|
|
258
|
+
colors.violet[20],
|
|
259
|
+
colors.salmon[20],
|
|
260
|
+
colors.purple[30],
|
|
261
|
+
colors.dipsy[20],
|
|
262
|
+
colors.indigo[30],
|
|
263
|
+
colors.mint[30],
|
|
264
|
+
],
|
|
271
265
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../src/style-config/headings.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../src/style-config/headings.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,mBAAmB,EAAE,mBAsCjC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2023 Wonderflow Design Team
|
|
2
|
+
* Copyright 2023-2024 Wonderflow Design Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -36,4 +36,19 @@ export const headingsStyleConfig = {
|
|
|
36
36
|
x: 0,
|
|
37
37
|
y: 21,
|
|
38
38
|
},
|
|
39
|
+
menu: {
|
|
40
|
+
backdropFilter: 'unset',
|
|
41
|
+
background: 'transparent',
|
|
42
|
+
borderRadius: 'unset',
|
|
43
|
+
border: 'unset',
|
|
44
|
+
boxShadow: 'unset',
|
|
45
|
+
color: 'unset',
|
|
46
|
+
lineHeight: 'unset',
|
|
47
|
+
overflow: 'none',
|
|
48
|
+
minWidth: '100px',
|
|
49
|
+
minHeight: '10px',
|
|
50
|
+
maxWidth: '350px',
|
|
51
|
+
maxHeight: 'unset',
|
|
52
|
+
pointerEvents: 'unset',
|
|
53
|
+
},
|
|
39
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lines.d.ts","sourceRoot":"","sources":["../../src/style-config/lines.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"lines.d.ts","sourceRoot":"","sources":["../../src/style-config/lines.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,gBAAgB,EAAE,gBAyC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/style-config/themes.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGzC,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/style-config/themes.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGzC,eAAO,MAAM,UAAU,EAAE,KAyDxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAyDvB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAGpB,CAAC"}
|
|
@@ -22,6 +22,11 @@ export const themeLight = {
|
|
|
22
22
|
headings: {
|
|
23
23
|
title: colorPaletteNeutrals.dimmed9,
|
|
24
24
|
subtitle: colorPaletteNeutrals.dimmed7,
|
|
25
|
+
button: {
|
|
26
|
+
background: 'hsl(220 16% 85% / 40%)',
|
|
27
|
+
hover: 'hsl(221 10% 56% / 40%)',
|
|
28
|
+
foreground: 'hsl(0 0% 0%)',
|
|
29
|
+
},
|
|
25
30
|
},
|
|
26
31
|
axis: {
|
|
27
32
|
label: colorPaletteNeutrals.dimmed8,
|
|
@@ -48,6 +53,10 @@ export const themeLight = {
|
|
|
48
53
|
average: colorPaletteNeutrals.dimmed8,
|
|
49
54
|
averageFontColor: colorPaletteNeutrals.dimmed0,
|
|
50
55
|
},
|
|
56
|
+
bars: {
|
|
57
|
+
backgroundColor: colorPaletteNeutrals.dimmed1,
|
|
58
|
+
overlayColor: colorPaletteNeutrals.dimmed1,
|
|
59
|
+
},
|
|
51
60
|
brush: {
|
|
52
61
|
handle: {
|
|
53
62
|
fill: colorPaletteNeutrals.dimmed0,
|
|
@@ -71,6 +80,11 @@ export const themeDark = {
|
|
|
71
80
|
headings: {
|
|
72
81
|
title: colorPaletteNeutrals.dimmed0,
|
|
73
82
|
subtitle: colorPaletteNeutrals.dimmed2,
|
|
83
|
+
button: {
|
|
84
|
+
background: 'hsl(0 0% 7% / 80%)',
|
|
85
|
+
hover: 'hsl(0 0% 11% / 80%)',
|
|
86
|
+
foreground: 'hsl(0 0% 100%)',
|
|
87
|
+
},
|
|
74
88
|
},
|
|
75
89
|
axis: {
|
|
76
90
|
label: colorPaletteNeutrals.dimmed2,
|
|
@@ -97,6 +111,10 @@ export const themeDark = {
|
|
|
97
111
|
average: colorPaletteNeutrals.dimmed0,
|
|
98
112
|
averageFontColor: colorPaletteNeutrals.dimmed8,
|
|
99
113
|
},
|
|
114
|
+
bars: {
|
|
115
|
+
backgroundColor: colorPaletteNeutrals.dimmed6,
|
|
116
|
+
overlayColor: colorPaletteNeutrals.dimmed6,
|
|
117
|
+
},
|
|
100
118
|
brush: {
|
|
101
119
|
handle: {
|
|
102
120
|
fill: colorPaletteNeutrals.dimmed0,
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AxisProps } from './cartesian';
|
|
3
|
-
import { Charts, SortingType } from './main';
|
|
3
|
+
import { AverageType, Charts, SortingType, TrendlineType } from './main';
|
|
4
4
|
export declare type BarChartIndex = Partial<AxisProps> & {
|
|
5
5
|
dataKey: string;
|
|
6
6
|
};
|
|
7
|
-
export declare type BarChartOverlay = Partial<AxisProps> & {
|
|
8
|
-
dataKey: string;
|
|
9
|
-
style?: BarStyle;
|
|
10
|
-
rename?: string;
|
|
11
|
-
};
|
|
12
7
|
export declare type BarChartSeries = Partial<AxisProps> & {
|
|
13
8
|
dataKey: string[];
|
|
14
|
-
groupBy?: string[];
|
|
15
9
|
style?: Array<BarStyle | undefined>;
|
|
16
10
|
rename?: (...args: any) => string;
|
|
11
|
+
showBackground?: boolean;
|
|
17
12
|
};
|
|
18
13
|
export declare type BarChartTooltip = {
|
|
19
14
|
extraSeriesData?: (...args: any) => string;
|
|
@@ -22,6 +17,7 @@ export declare type BarChartTooltip = {
|
|
|
22
17
|
};
|
|
23
18
|
export declare type BarStyle = {
|
|
24
19
|
fill?: string;
|
|
20
|
+
showLabel?: boolean;
|
|
25
21
|
};
|
|
26
22
|
export declare type BarChartMetadata = {
|
|
27
23
|
type: Charts;
|
|
@@ -31,19 +27,28 @@ export declare type BarChartMetadata = {
|
|
|
31
27
|
series: {
|
|
32
28
|
dataKey: string[];
|
|
33
29
|
names: string[];
|
|
34
|
-
colors:
|
|
30
|
+
colors: string[];
|
|
35
31
|
style?: Array<BarStyle | undefined>;
|
|
32
|
+
average: AverageType | undefined;
|
|
33
|
+
trendline: TrendlineType[] | undefined;
|
|
34
|
+
showBackground?: boolean;
|
|
36
35
|
};
|
|
37
36
|
overlay: {
|
|
38
|
-
dataKey?: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
style?: BarStyle
|
|
37
|
+
dataKey?: string[];
|
|
38
|
+
names: string[] | undefined;
|
|
39
|
+
colors: string[] | undefined;
|
|
40
|
+
style?: Array<BarStyle | undefined>;
|
|
41
|
+
average: AverageType | undefined;
|
|
42
|
+
trendline: TrendlineType[] | undefined;
|
|
43
|
+
showBackground?: boolean;
|
|
42
44
|
};
|
|
43
45
|
tooltip?: BarChartTooltip;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
preventTooltipDisplay?: boolean;
|
|
47
|
+
showLabel?: boolean;
|
|
48
|
+
showAverage?: boolean;
|
|
49
|
+
showTrendline?: boolean;
|
|
50
|
+
showBackground?: boolean;
|
|
47
51
|
hidePadding?: boolean;
|
|
52
|
+
fixedBarSize?: boolean;
|
|
48
53
|
};
|
|
49
54
|
//# sourceMappingURL=bar-chart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar-chart.d.ts","sourceRoot":"","sources":["../../src/types/bar-chart.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,WAAW,EAA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CAAC;QACjB,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;QACpC,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;QACjC,SAAS,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;QACvC,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,OAAO,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;QACpC,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;QACjC,SAAS,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;QACvC,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA"}
|
package/dist/types/bar-chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2023 Wonderflow Design Team
|
|
2
|
+
* Copyright 2023-2024 Wonderflow Design Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,41 +14,3 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export {};
|
|
17
|
-
// const dataStructure = [
|
|
18
|
-
// {
|
|
19
|
-
// product: 'productA',
|
|
20
|
-
// continents: [
|
|
21
|
-
// {
|
|
22
|
-
// name: 'europe',
|
|
23
|
-
// value: 100,
|
|
24
|
-
// countries: [
|
|
25
|
-
// {
|
|
26
|
-
// name: 'italy',
|
|
27
|
-
// value: 100,
|
|
28
|
-
// },
|
|
29
|
-
// {
|
|
30
|
-
// name: 'france',
|
|
31
|
-
// value: 100,
|
|
32
|
-
// },
|
|
33
|
-
// ],
|
|
34
|
-
// },
|
|
35
|
-
// {
|
|
36
|
-
// name: 'africa',
|
|
37
|
-
// value: 100,
|
|
38
|
-
// countries: [
|
|
39
|
-
// {
|
|
40
|
-
// name: 'algeria',
|
|
41
|
-
// value: 100,
|
|
42
|
-
// },
|
|
43
|
-
// {
|
|
44
|
-
// name: 'tunisia',
|
|
45
|
-
// value: 100,
|
|
46
|
-
// },
|
|
47
|
-
// ],
|
|
48
|
-
// },
|
|
49
|
-
// ],
|
|
50
|
-
// },
|
|
51
|
-
// ];
|
|
52
|
-
// const index = dataStructure[0].product; // 'product'
|
|
53
|
-
// const series = dataStructure[0].continents[0].value; // 'continents[x].value'
|
|
54
|
-
// const groupBy = dataStructure[0].continents[0].name; // 'continents[x].name'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare type BarsStyleConfig = {
|
|
2
|
+
maxSize: number;
|
|
3
|
+
paddingOuter: number;
|
|
4
|
+
paddingInner: number;
|
|
5
|
+
paddingOuterGroup: number;
|
|
6
|
+
paddingInnerGroup: number;
|
|
7
|
+
bar: {
|
|
8
|
+
rx: number;
|
|
9
|
+
opacity: number;
|
|
10
|
+
};
|
|
11
|
+
background: {
|
|
12
|
+
rx: number;
|
|
13
|
+
opacity: number;
|
|
14
|
+
};
|
|
15
|
+
overlay: {
|
|
16
|
+
opacity: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare type Bar = {
|
|
20
|
+
color: string;
|
|
21
|
+
height: number;
|
|
22
|
+
index: number;
|
|
23
|
+
key: string;
|
|
24
|
+
value: number;
|
|
25
|
+
width: number;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=bars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bars.d.ts","sourceRoot":"","sources":["../../src/types/bars.ts"],"names":[],"mappings":"AAgBA,oBAAY,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,GAAG,EAAE;QACH,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAA;AAED,oBAAY,GAAG,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023-2024 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TickFormatter } from '@visx/axis';
|
|
2
2
|
import { NumberValue } from '@visx/vendor/d3-scale';
|
|
3
3
|
import { AxisElementsStyleConfig, AxisOrientation } from './axis';
|
|
4
|
+
import { BarsStyleConfig } from './bars';
|
|
4
5
|
import { BrushElementStyleConfig } from './brush';
|
|
5
6
|
import { GridStyleConfig } from './grid';
|
|
6
7
|
import { HeadingsStyleConfig } from './headings';
|
|
@@ -39,6 +40,7 @@ export declare type AxisProps = {
|
|
|
39
40
|
clamp?: boolean;
|
|
40
41
|
paddingInner?: number;
|
|
41
42
|
paddingOuter?: number;
|
|
43
|
+
padding?: number;
|
|
42
44
|
numTicks?: number;
|
|
43
45
|
hideTicks?: boolean;
|
|
44
46
|
hideTickLabel?: boolean;
|
|
@@ -53,6 +55,7 @@ export declare type CartesianStyleConfig = {
|
|
|
53
55
|
headings: HeadingsStyleConfig;
|
|
54
56
|
grid: GridStyleConfig;
|
|
55
57
|
lines: LinesStyleConfig;
|
|
58
|
+
bars: BarsStyleConfig;
|
|
56
59
|
legend: LegendStyleConfig;
|
|
57
60
|
themes: Themes;
|
|
58
61
|
viewport: ViewportStyleConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartesian.d.ts","sourceRoot":"","sources":["../../src/types/cartesian.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,E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B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,aAAa,CAAC,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,CAAA;AAED,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,KAAK,EAAE,uBAAuB,CAAC;IAC/B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,mBAAmB,CAAC;CAC/B,CAAA"}
|
package/dist/types/headings.d.ts
CHANGED
|
@@ -22,5 +22,20 @@ export declare type HeadingsStyleConfig = {
|
|
|
22
22
|
x: number;
|
|
23
23
|
y: number;
|
|
24
24
|
};
|
|
25
|
+
menu: {
|
|
26
|
+
backdropFilter: string;
|
|
27
|
+
background: string;
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
border: string;
|
|
30
|
+
boxShadow: string;
|
|
31
|
+
color: string;
|
|
32
|
+
lineHeight: string;
|
|
33
|
+
overflow: string;
|
|
34
|
+
minWidth: string;
|
|
35
|
+
minHeight: string;
|
|
36
|
+
maxWidth: string;
|
|
37
|
+
maxHeight: string;
|
|
38
|
+
pointerEvents: string;
|
|
39
|
+
};
|
|
25
40
|
};
|
|
26
41
|
//# sourceMappingURL=headings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../src/types/headings.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,oBAAY,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,UAAU,CAAC;QACvB,cAAc,EAAE,UAAU,CAAC;QAC3B,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IACF,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,UAAU,CAAC;QACvB,cAAc,EAAE,UAAU,CAAC;QAC3B,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;CACH,CAAA"}
|
|
1
|
+
{"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../src/types/headings.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,oBAAY,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,UAAU,CAAC;QACvB,cAAc,EAAE,UAAU,CAAC;QAC3B,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IACF,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,UAAU,CAAC;QACvB,cAAc,EAAE,UAAU,CAAC;QAC3B,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IACF,IAAI,EAAE;QACJ,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAA"}
|
package/dist/types/headings.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './axis';
|
|
2
2
|
export * from './bar-chart';
|
|
3
|
+
export * from './bars';
|
|
4
|
+
export * from './brush';
|
|
3
5
|
export * from './cartesian';
|
|
4
6
|
export * from './colors';
|
|
5
7
|
export * from './grid';
|
|
@@ -7,6 +9,7 @@ export * from './headings';
|
|
|
7
9
|
export * from './legend';
|
|
8
10
|
export * from './line-chart';
|
|
9
11
|
export * from './linear-gradient';
|
|
12
|
+
export * from './lines';
|
|
10
13
|
export * from './main';
|
|
11
14
|
export * from './themes';
|
|
12
15
|
export * from './tooltip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAgBA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAgBA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2023 Wonderflow Design Team
|
|
2
|
+
* Copyright 2023-2024 Wonderflow Design Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export * from './axis';
|
|
17
17
|
export * from './bar-chart';
|
|
18
|
+
export * from './bars';
|
|
19
|
+
export * from './brush';
|
|
18
20
|
export * from './cartesian';
|
|
19
21
|
export * from './colors';
|
|
20
22
|
export * from './grid';
|
|
@@ -22,6 +24,7 @@ export * from './headings';
|
|
|
22
24
|
export * from './legend';
|
|
23
25
|
export * from './line-chart';
|
|
24
26
|
export * from './linear-gradient';
|
|
27
|
+
export * from './lines';
|
|
25
28
|
export * from './main';
|
|
26
29
|
export * from './themes';
|
|
27
30
|
export * from './tooltip';
|