@wonderflow/charts 12.8.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/cartesian-base/cartesian-base-axis.d.ts +15 -0
- package/dist/components/cartesian-base/cartesian-base-axis.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base-axis.js +53 -0
- package/dist/components/cartesian-base/cartesian-base-grid.d.ts +23 -0
- package/dist/components/cartesian-base/cartesian-base-grid.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base-grid.js +35 -0
- package/dist/components/cartesian-base/cartesian-base-legend.d.ts +7 -0
- package/dist/components/cartesian-base/cartesian-base-legend.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base-legend.js +35 -0
- package/dist/components/cartesian-base/cartesian-base.d.ts +78 -0
- package/dist/components/cartesian-base/cartesian-base.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base.js +98 -0
- package/dist/components/cartesian-base/cartesian-base.module.css +1 -0
- package/dist/components/cartesian-base/cartesian-base.test.d.ts +2 -0
- package/dist/components/cartesian-base/cartesian-base.test.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base.test.js +51 -0
- package/dist/components/cartesian-base/index.d.ts +3 -0
- package/dist/components/cartesian-base/index.d.ts.map +1 -0
- package/dist/components/cartesian-base/index.js +16 -0
- package/dist/components/empty-state/empty-state.d.ts +16 -0
- package/dist/components/empty-state/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.js +31 -0
- package/dist/components/empty-state/empty-state.test.d.ts +2 -0
- package/dist/components/empty-state/empty-state.test.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.test.js +67 -0
- package/dist/components/empty-state/index.d.ts +2 -0
- package/dist/components/empty-state/index.d.ts.map +1 -0
- package/dist/components/empty-state/index.js +16 -0
- package/dist/components/headings/headings.d.ts +27 -0
- package/dist/components/headings/headings.d.ts.map +1 -0
- package/dist/components/headings/headings.js +31 -0
- package/dist/components/headings/headings.test.d.ts +2 -0
- package/dist/components/headings/headings.test.d.ts.map +1 -0
- package/dist/components/headings/headings.test.js +14 -0
- package/dist/components/headings/index.d.ts +3 -0
- package/dist/components/headings/index.d.ts.map +1 -0
- package/dist/components/headings/index.js +16 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +21 -0
- package/dist/components/line-chart/index.d.ts +3 -0
- package/dist/components/line-chart/index.d.ts.map +1 -0
- package/dist/components/line-chart/index.js +16 -0
- package/dist/components/line-chart/line-chart.d.ts +57 -0
- package/dist/components/line-chart/line-chart.d.ts.map +1 -0
- package/dist/components/line-chart/line-chart.js +68 -0
- package/dist/components/line-chart/line-chart.test.d.ts +2 -0
- package/dist/components/line-chart/line-chart.test.d.ts.map +1 -0
- package/dist/components/line-chart/line-chart.test.js +20 -0
- package/dist/components/loader/bar-chart-loader.d.ts +11 -0
- package/dist/components/loader/bar-chart-loader.d.ts.map +1 -0
- package/dist/components/loader/bar-chart-loader.js +3 -0
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/index.d.ts.map +1 -0
- package/dist/components/loader/index.js +16 -0
- package/dist/components/loader/line-chart-loader.d.ts +11 -0
- package/dist/components/loader/line-chart-loader.d.ts.map +1 -0
- package/dist/components/loader/line-chart-loader.js +3 -0
- package/dist/components/loader/loader.d.ts +10 -0
- package/dist/components/loader/loader.d.ts.map +1 -0
- package/dist/components/loader/loader.js +35 -0
- package/dist/components/loader/loader.test.d.ts +2 -0
- package/dist/components/loader/loader.test.d.ts.map +1 -0
- package/dist/components/loader/loader.test.js +50 -0
- package/dist/components/placeholder/index.d.ts +3 -0
- package/dist/components/placeholder/index.d.ts.map +1 -0
- package/dist/components/placeholder/index.js +16 -0
- package/dist/components/placeholder/placeholder.d.ts +9 -0
- package/dist/components/placeholder/placeholder.d.ts.map +1 -0
- package/dist/components/placeholder/placeholder.js +19 -0
- package/dist/components/placeholder/placeholder.test.d.ts +2 -0
- package/dist/components/placeholder/placeholder.test.d.ts.map +1 -0
- package/dist/components/placeholder/placeholder.test.js +15 -0
- package/dist/components/shapes/index.d.ts +2 -0
- package/dist/components/shapes/index.d.ts.map +1 -0
- package/dist/components/shapes/index.js +16 -0
- package/dist/components/shapes/lines/index.d.ts +2 -0
- package/dist/components/shapes/lines/index.d.ts.map +1 -0
- package/dist/components/shapes/lines/index.js +16 -0
- package/dist/components/shapes/lines/lines-marker-labels.d.ts +3 -0
- package/dist/components/shapes/lines/lines-marker-labels.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-marker-labels.js +72 -0
- package/dist/components/shapes/lines/lines-overlay.d.ts +3 -0
- package/dist/components/shapes/lines/lines-overlay.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-overlay.js +52 -0
- package/dist/components/shapes/lines/lines-series.d.ts +3 -0
- package/dist/components/shapes/lines/lines-series.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-series.js +58 -0
- package/dist/components/shapes/lines/lines-tooltip.d.ts +3 -0
- package/dist/components/shapes/lines/lines-tooltip.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-tooltip.js +107 -0
- package/dist/components/shapes/lines/lines.d.ts +3 -0
- package/dist/components/shapes/lines/lines.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines.js +28 -0
- package/dist/components/shapes/lines/lines.module.css +1 -0
- package/dist/components/shapes/lines/lines.test.d.ts +2 -0
- package/dist/components/shapes/lines/lines.test.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines.test.js +142 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +16 -0
- package/dist/components/tooltip/tooltip.d.ts +35 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +37 -0
- package/dist/components/tooltip/tooltip.module.css +1 -0
- package/dist/components/tooltip/tooltip.test.d.ts +2 -0
- package/dist/components/tooltip/tooltip.test.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.test.js +20 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/providers/cartesian.d.ts +20 -0
- package/dist/providers/cartesian.d.ts.map +1 -0
- package/dist/providers/cartesian.js +43 -0
- package/dist/providers/data.d.ts +11 -0
- package/dist/providers/data.d.ts.map +1 -0
- package/dist/providers/data.js +32 -0
- package/dist/providers/index.d.ts +6 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +20 -0
- package/dist/providers/layout.d.ts +14 -0
- package/dist/providers/layout.d.ts.map +1 -0
- package/dist/providers/layout.js +34 -0
- package/dist/providers/style-config.d.ts +11 -0
- package/dist/providers/style-config.d.ts.map +1 -0
- package/dist/providers/style-config.js +29 -0
- package/dist/providers/theme.d.ts +10 -0
- package/dist/providers/theme.d.ts.map +1 -0
- package/dist/providers/theme.js +29 -0
- package/dist/style-config/axis.d.ts +3 -0
- package/dist/style-config/axis.d.ts.map +1 -0
- package/dist/style-config/axis.js +86 -0
- package/dist/style-config/cartesian.d.ts +3 -0
- package/dist/style-config/cartesian.d.ts.map +1 -0
- package/dist/style-config/cartesian.js +31 -0
- package/dist/style-config/colors.d.ts +9 -0
- package/dist/style-config/colors.d.ts.map +1 -0
- package/dist/style-config/colors.js +271 -0
- package/dist/style-config/grid.d.ts +7 -0
- package/dist/style-config/grid.d.ts.map +1 -0
- package/dist/style-config/grid.js +24 -0
- package/dist/style-config/headings.d.ts +3 -0
- package/dist/style-config/headings.d.ts.map +1 -0
- package/dist/style-config/headings.js +39 -0
- package/dist/style-config/index.d.ts +10 -0
- package/dist/style-config/index.d.ts.map +1 -0
- package/dist/style-config/index.js +24 -0
- package/dist/style-config/legend.d.ts +3 -0
- package/dist/style-config/legend.d.ts.map +1 -0
- package/dist/style-config/legend.js +18 -0
- package/dist/style-config/linear-gradient.d.ts +3 -0
- package/dist/style-config/linear-gradient.d.ts.map +1 -0
- package/dist/style-config/linear-gradient.js +20 -0
- package/dist/style-config/lines.d.ts +3 -0
- package/dist/style-config/lines.d.ts.map +1 -0
- package/dist/style-config/lines.js +39 -0
- package/dist/style-config/themes.d.ts +5 -0
- package/dist/style-config/themes.d.ts.map +1 -0
- package/dist/style-config/themes.js +86 -0
- package/dist/style-config/tooltip.d.ts +8 -0
- package/dist/style-config/tooltip.d.ts.map +1 -0
- package/dist/style-config/tooltip.js +56 -0
- package/dist/style-config/viewport.d.ts +3 -0
- package/dist/style-config/viewport.d.ts.map +1 -0
- package/dist/style-config/viewport.js +30 -0
- package/dist/types/axis.d.ts +108 -0
- package/dist/types/axis.d.ts.map +1 -0
- package/dist/types/axis.js +16 -0
- package/dist/types/cartesian.d.ts +58 -0
- package/dist/types/cartesian.d.ts.map +1 -0
- package/dist/types/cartesian.js +20 -0
- package/dist/types/colors.d.ts +9 -0
- package/dist/types/colors.d.ts.map +1 -0
- package/dist/types/colors.js +16 -0
- package/dist/types/grid.d.ts +14 -0
- package/dist/types/grid.d.ts.map +1 -0
- package/dist/types/grid.js +1 -0
- package/dist/types/headings.d.ts +26 -0
- package/dist/types/headings.d.ts.map +1 -0
- package/dist/types/headings.js +16 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +27 -0
- package/dist/types/legend.d.ts +4 -0
- package/dist/types/legend.d.ts.map +1 -0
- package/dist/types/legend.js +16 -0
- package/dist/types/line-chart.d.ts +53 -0
- package/dist/types/line-chart.d.ts.map +1 -0
- package/dist/types/line-chart.js +16 -0
- package/dist/types/linear-gradient.d.ts +5 -0
- package/dist/types/linear-gradient.d.ts.map +1 -0
- package/dist/types/linear-gradient.js +16 -0
- package/dist/types/lines.d.ts +25 -0
- package/dist/types/lines.d.ts.map +1 -0
- package/dist/types/lines.js +16 -0
- package/dist/types/main.d.ts +11 -0
- package/dist/types/main.d.ts.map +1 -0
- package/dist/types/main.js +20 -0
- package/dist/types/themes.d.ts +31 -0
- package/dist/types/themes.d.ts.map +1 -0
- package/dist/types/themes.js +16 -0
- package/dist/types/tooltip.d.ts +23 -0
- package/dist/types/tooltip.d.ts.map +1 -0
- package/dist/types/tooltip.js +16 -0
- package/dist/types/viewport.d.ts +8 -0
- package/dist/types/viewport.d.ts.map +1 -0
- package/dist/types/viewport.js +16 -0
- package/dist/utils/axis.d.ts +60 -0
- package/dist/utils/axis.d.ts.map +1 -0
- package/dist/utils/axis.js +401 -0
- package/dist/utils/axis.test.d.ts +2 -0
- package/dist/utils/axis.test.d.ts.map +1 -0
- package/dist/utils/axis.test.js +1071 -0
- package/dist/utils/colors.d.ts +8 -0
- package/dist/utils/colors.d.ts.map +1 -0
- package/dist/utils/colors.js +33 -0
- package/dist/utils/colors.test.d.ts +2 -0
- package/dist/utils/colors.test.d.ts.map +1 -0
- package/dist/utils/colors.test.js +31 -0
- package/dist/utils/data.d.ts +14 -0
- package/dist/utils/data.d.ts.map +1 -0
- package/dist/utils/data.js +116 -0
- package/dist/utils/data.test.d.ts +2 -0
- package/dist/utils/data.test.d.ts.map +1 -0
- package/dist/utils/data.test.js +371 -0
- package/dist/utils/format.d.ts +15 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +41 -0
- package/dist/utils/format.test.d.ts +2 -0
- package/dist/utils/format.test.d.ts.map +1 -0
- package/dist/utils/format.test.js +101 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +22 -0
- package/dist/utils/lines.d.ts +52 -0
- package/dist/utils/lines.d.ts.map +1 -0
- package/dist/utils/lines.js +190 -0
- package/dist/utils/lines.test.d.ts +2 -0
- package/dist/utils/lines.test.d.ts.map +1 -0
- package/dist/utils/lines.test.js +498 -0
- package/dist/utils/math.d.ts +13 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/math.js +89 -0
- package/dist/utils/math.test.d.ts +2 -0
- package/dist/utils/math.test.d.ts.map +1 -0
- package/dist/utils/math.test.js +142 -0
- package/dist/utils/metadata.d.ts +6 -0
- package/dist/utils/metadata.d.ts.map +1 -0
- package/dist/utils/metadata.js +36 -0
- package/dist/utils/metadata.test.d.ts +2 -0
- package/dist/utils/metadata.test.d.ts.map +1 -0
- package/dist/utils/metadata.test.js +102 -0
- package/dist/utils/viewport.d.ts +3 -0
- package/dist/utils/viewport.d.ts.map +1 -0
- package/dist/utils/viewport.js +29 -0
- package/dist/utils/viewport.test.d.ts +2 -0
- package/dist/utils/viewport.test.d.ts.map +1 -0
- package/dist/utils/viewport.test.js +63 -0
- package/package.json +106 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../src/style-config/viewport.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,mBAAmB,EAAE,mBAcjC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 viewportStyleConfig = {
|
|
17
|
+
small: {
|
|
18
|
+
maxWidth: 250,
|
|
19
|
+
maxHeight: 120,
|
|
20
|
+
numTicks: 3,
|
|
21
|
+
},
|
|
22
|
+
medium: {
|
|
23
|
+
maxWidth: 500,
|
|
24
|
+
maxHeight: 250,
|
|
25
|
+
numTicks: 5,
|
|
26
|
+
},
|
|
27
|
+
large: {
|
|
28
|
+
numTicks: 10,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ScaleBand, ScaleLinear, ScaleTime } from '@visx/vendor/d3-scale';
|
|
2
|
+
import { Except } from 'type-fest';
|
|
3
|
+
import { AxisProps } from './cartesian';
|
|
4
|
+
export declare type AxisOrientation = 'top' | 'left' | 'right' | 'bottom';
|
|
5
|
+
export declare type DominantBaseline = 'auto' | 'middle' | 'hanging';
|
|
6
|
+
export declare type TextAnchor = 'end' | 'middle' | 'start';
|
|
7
|
+
export declare type StrokeLinecap = 'butt' | 'round' | 'square';
|
|
8
|
+
export declare type CartesianAxis = AxisProps & {
|
|
9
|
+
top: number;
|
|
10
|
+
left: number;
|
|
11
|
+
scale: ScaleBand<string> | ScaleLinear<number, number> | ScaleTime<number, number>;
|
|
12
|
+
};
|
|
13
|
+
export declare type AxisOffsetProps = Pick<AxisProps, 'domain' | 'orientation' | 'label' | 'hideAxisLine' | 'hideTickLabel' | 'hideTicks' | 'tickFormat'>;
|
|
14
|
+
export declare type AxisElements = {
|
|
15
|
+
orientation: AxisOrientation;
|
|
16
|
+
offset: number;
|
|
17
|
+
tickLabelMaxChar: number;
|
|
18
|
+
tickLabelMaxLength: number;
|
|
19
|
+
tickLength: number;
|
|
20
|
+
tickLabelOffset: number;
|
|
21
|
+
tickLabelHeight: number;
|
|
22
|
+
tickLabelSize: number;
|
|
23
|
+
axisLabel: number;
|
|
24
|
+
labelOffset: number;
|
|
25
|
+
axisLine: number;
|
|
26
|
+
};
|
|
27
|
+
export declare type AxisSystemElements = Record<AxisOrientation, AxisElements | undefined>;
|
|
28
|
+
export declare type CartesianxAxisSystem = Record<AxisOrientation, CartesianAxis | undefined>;
|
|
29
|
+
export declare type LabelProps = {
|
|
30
|
+
fontFamily: string;
|
|
31
|
+
fontSize: number;
|
|
32
|
+
fontWeight: number;
|
|
33
|
+
textAnchor: TextAnchor;
|
|
34
|
+
};
|
|
35
|
+
export declare type TickLabelProps = Except<LabelProps, 'textAnchor'>;
|
|
36
|
+
export declare type TickLineProps = {
|
|
37
|
+
length: number;
|
|
38
|
+
strokeWidth: number;
|
|
39
|
+
strokeLinecap: StrokeLinecap;
|
|
40
|
+
};
|
|
41
|
+
export declare type AxisLineProps = {
|
|
42
|
+
strokeWidth: number;
|
|
43
|
+
strokeDasharray: string;
|
|
44
|
+
};
|
|
45
|
+
export declare type AxisSpacing = {
|
|
46
|
+
labelCharExtimatedWidth: number;
|
|
47
|
+
labelHeight: number;
|
|
48
|
+
labelOffset: number;
|
|
49
|
+
tickLabelHeight: number;
|
|
50
|
+
tickLength: number;
|
|
51
|
+
};
|
|
52
|
+
export declare type VerticalAxisStyleConfig = {
|
|
53
|
+
tickLabelProps: {
|
|
54
|
+
dx: number;
|
|
55
|
+
textAnchor: TextAnchor;
|
|
56
|
+
dominantBaseline: DominantBaseline;
|
|
57
|
+
};
|
|
58
|
+
labelProps: {
|
|
59
|
+
dominantBaseline: DominantBaseline;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare type HorizontalAxisStyleConfig = {
|
|
63
|
+
tickLabelProps: {
|
|
64
|
+
dy: number;
|
|
65
|
+
dominantBaseline: DominantBaseline;
|
|
66
|
+
};
|
|
67
|
+
labelProps: {
|
|
68
|
+
dominantBaseline: DominantBaseline;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export declare type AxisElementsStyleConfig = {
|
|
72
|
+
formatting: {
|
|
73
|
+
maxCharactersLength: number;
|
|
74
|
+
omission: string;
|
|
75
|
+
};
|
|
76
|
+
labelProps: LabelProps;
|
|
77
|
+
tickLabelProps: TickLabelProps;
|
|
78
|
+
tickLineProps: TickLineProps;
|
|
79
|
+
axisLineProps: AxisLineProps;
|
|
80
|
+
spacing: AxisSpacing;
|
|
81
|
+
top: HorizontalAxisStyleConfig;
|
|
82
|
+
right: VerticalAxisStyleConfig;
|
|
83
|
+
bottom: HorizontalAxisStyleConfig;
|
|
84
|
+
left: VerticalAxisStyleConfig;
|
|
85
|
+
};
|
|
86
|
+
export declare type AxisOffsetConfig = {
|
|
87
|
+
topAxisOffset: number;
|
|
88
|
+
rightAxisOffset: number;
|
|
89
|
+
bottomAxisOffset: number;
|
|
90
|
+
leftAxisOffset: number;
|
|
91
|
+
verticalAxisOffset: number;
|
|
92
|
+
horizontalAxisOffset: number;
|
|
93
|
+
};
|
|
94
|
+
export declare type HorizontalAxisOffsetConfig = HorizontalAxisStyleConfig & {
|
|
95
|
+
labelOffset: number;
|
|
96
|
+
};
|
|
97
|
+
export declare type VerticalAxisoffsetConfig = VerticalAxisStyleConfig & {
|
|
98
|
+
labelOffset: number;
|
|
99
|
+
};
|
|
100
|
+
export declare type AxisConfig = {
|
|
101
|
+
offset: AxisOffsetConfig;
|
|
102
|
+
style: AxisElementsStyleConfig;
|
|
103
|
+
top: HorizontalAxisOffsetConfig;
|
|
104
|
+
right: VerticalAxisoffsetConfig;
|
|
105
|
+
bottom: HorizontalAxisOffsetConfig;
|
|
106
|
+
left: VerticalAxisoffsetConfig;
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=axis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axis.d.ts","sourceRoot":"","sources":["../../src/types/axis.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,oBAAY,eAAe,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAElE,oBAAY,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC7D,oBAAY,UAAU,GAAG,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I,EAAE,uBAAuB,CAAC;CAC/B,CAAA;AAED,oBAAY,gBAAgB,GAAG;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAA;AAED,oBAAY,0BAA0B,GAAG,yBAAyB,GAAG;IACnE,WAAW,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,oBAAY,wBAAwB,GAAG,uBAAuB,GAAG;IAC/D,WAAW,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,oBAAY,UAAU,GAAG;IACvB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,uBAAuB,CAAC;IAC/B,GAAG,EAAE,0BAA0B,CAAC;IAChC,KAAK,EAAE,wBAAwB,CAAC;IAChC,MAAM,EAAE,0BAA0B,CAAC;IACnC,IAAI,EAAE,wBAAwB,CAAC;CAChC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { TickFormatter } from '@visx/axis';
|
|
2
|
+
import { NumberValue } from '@visx/vendor/d3-scale';
|
|
3
|
+
import { AxisElementsStyleConfig, AxisOrientation } from './axis';
|
|
4
|
+
import { GridStyleConfig } from './grid';
|
|
5
|
+
import { HeadingsStyleConfig } from './headings';
|
|
6
|
+
import { LegendStyleConfig } from './legend';
|
|
7
|
+
import { Background } from './linear-gradient';
|
|
8
|
+
import { LinesStyleConfig } from './lines';
|
|
9
|
+
import { ScaleType } from './main';
|
|
10
|
+
import { Themes } from './themes';
|
|
11
|
+
import { ViewportStyleConfig } from './viewport';
|
|
12
|
+
export declare enum CartesianChartLayout {
|
|
13
|
+
VERTICAL = "vertical",
|
|
14
|
+
HORIZONTAL = "horizontal"
|
|
15
|
+
}
|
|
16
|
+
export declare type MarginProps = {
|
|
17
|
+
top: number;
|
|
18
|
+
right: number;
|
|
19
|
+
left: number;
|
|
20
|
+
bottom: number;
|
|
21
|
+
};
|
|
22
|
+
export declare type GridProps = {
|
|
23
|
+
hideRows?: boolean;
|
|
24
|
+
hideColumns?: boolean;
|
|
25
|
+
tickRows?: number;
|
|
26
|
+
tickColumns?: number;
|
|
27
|
+
background?: Background;
|
|
28
|
+
otherProps?: Record<string, unknown>;
|
|
29
|
+
};
|
|
30
|
+
export declare type AxisProps = {
|
|
31
|
+
domain: Array<string | number>;
|
|
32
|
+
scaleType: ScaleType;
|
|
33
|
+
orientation: AxisOrientation;
|
|
34
|
+
label?: string;
|
|
35
|
+
range?: [number, number];
|
|
36
|
+
round?: boolean;
|
|
37
|
+
nice?: boolean;
|
|
38
|
+
clamp?: boolean;
|
|
39
|
+
paddingInner?: number;
|
|
40
|
+
paddingOuter?: number;
|
|
41
|
+
numTicks?: number;
|
|
42
|
+
hideTicks?: boolean;
|
|
43
|
+
hideTickLabel?: boolean;
|
|
44
|
+
hideAxisLine?: boolean;
|
|
45
|
+
hideZero?: boolean;
|
|
46
|
+
tickFormat?: TickFormatter<NumberValue | string | Date>;
|
|
47
|
+
otherProps?: Record<string, unknown>;
|
|
48
|
+
};
|
|
49
|
+
export declare type CartesianStyleConfig = {
|
|
50
|
+
headings: HeadingsStyleConfig;
|
|
51
|
+
grid: GridStyleConfig;
|
|
52
|
+
axis: AxisElementsStyleConfig;
|
|
53
|
+
lines: LinesStyleConfig;
|
|
54
|
+
legend: LegendStyleConfig;
|
|
55
|
+
viewport: ViewportStyleConfig;
|
|
56
|
+
themes: Themes;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=cartesian.d.ts.map
|
|
@@ -0,0 +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,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,oBAAY,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,oBAAY,SAAS,GAAG;IACtB,QAAQ,CAA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C9B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 var CartesianChartLayout;
|
|
17
|
+
(function (CartesianChartLayout) {
|
|
18
|
+
CartesianChartLayout["VERTICAL"] = "vertical";
|
|
19
|
+
CartesianChartLayout["HORIZONTAL"] = "horizontal";
|
|
20
|
+
})(CartesianChartLayout || (CartesianChartLayout = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type ColorsNames = 'primary' | 'red' | 'magenta' | 'purple' | 'violet' | 'indigo' | 'blue' | 'cyan' | 'mint' | 'green' | 'dipsy' | 'yellow' | 'salmon';
|
|
2
|
+
export declare type SupportColorNames = 'brand' | 'white' | 'black';
|
|
3
|
+
export declare type NeutralsColorNames = 'white' | 'black' | 'dimmed0' | 'dimmed1' | 'dimmed2' | 'dimmed3' | 'dimmed4' | 'dimmed5' | 'dimmed6' | 'dimmed7' | 'dimmed8' | 'dimmed9';
|
|
4
|
+
export declare type KpisColorsNames = 'salesData' | 'rating1star' | 'rating2star' | 'rating3star' | 'rating4star' | 'rating5star' | 'nps' | 'unitsSold' | 'tgw' | 'sentimentIndex' | 'feedback' | 'rating' | 'votesRating' | 'votesCount' | 'subrating';
|
|
5
|
+
export declare type Gradient = '0' | '5' | '10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90' | '100';
|
|
6
|
+
export declare type Colors = Record<ColorsNames, Record<Gradient, string>> & {
|
|
7
|
+
support: Record<SupportColorNames, string>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/types/colors.ts"],"names":[],"mappings":"AAgBA,oBAAY,WAAW,GAAG,SAAS,GACjC,KAAK,GACL,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,CAAC;AAEX,oBAAY,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE5D,oBAAY,kBAAkB,GAAG,OAAO,GACtC,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAA;AAEX,oBAAY,eAAe,GAAG,WAAW,GACvC,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,KAAK,GACL,WAAW,GACX,KAAK,GACL,gBAAgB,GAChB,UAAU,GACV,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,WAAW,CAAA;AAEb,oBAAY,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAExG,oBAAY,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,GAChE;IAAE,OAAO,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Background } from './linear-gradient';
|
|
2
|
+
export declare type GridStyle = {
|
|
3
|
+
offset?: number;
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
strokeOpacity?: number;
|
|
6
|
+
strokeDasharray?: string;
|
|
7
|
+
lineStyle?: Record<string, unknown>;
|
|
8
|
+
};
|
|
9
|
+
export declare type GridStyleConfig = {
|
|
10
|
+
rows?: GridStyle;
|
|
11
|
+
columns?: GridStyle;
|
|
12
|
+
background: Background;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/types/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,oBAAY,SAAS,GAAG;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,CAAA;AAED,oBAAY,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TextAnchor } from './axis';
|
|
2
|
+
export declare type HeadingsStyleConfig = {
|
|
3
|
+
height: number;
|
|
4
|
+
fontFamily: string;
|
|
5
|
+
title: {
|
|
6
|
+
height: number;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
fontWeight: number;
|
|
9
|
+
lineHeight: number;
|
|
10
|
+
textAnchor: TextAnchor;
|
|
11
|
+
verticalAnchor: TextAnchor;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
subtitle: {
|
|
16
|
+
height: number;
|
|
17
|
+
fontSize: number;
|
|
18
|
+
fontWeight: number;
|
|
19
|
+
lineHeight: number;
|
|
20
|
+
textAnchor: TextAnchor;
|
|
21
|
+
verticalAnchor: TextAnchor;
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=headings.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './axis';
|
|
2
|
+
export * from './cartesian';
|
|
3
|
+
export * from './colors';
|
|
4
|
+
export * from './grid';
|
|
5
|
+
export * from './headings';
|
|
6
|
+
export * from './legend';
|
|
7
|
+
export * from './line-chart';
|
|
8
|
+
export * from './linear-gradient';
|
|
9
|
+
export * from './main';
|
|
10
|
+
export * from './themes';
|
|
11
|
+
export * from './tooltip';
|
|
12
|
+
export * from './viewport';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 * from './axis';
|
|
17
|
+
export * from './cartesian';
|
|
18
|
+
export * from './colors';
|
|
19
|
+
export * from './grid';
|
|
20
|
+
export * from './headings';
|
|
21
|
+
export * from './legend';
|
|
22
|
+
export * from './line-chart';
|
|
23
|
+
export * from './linear-gradient';
|
|
24
|
+
export * from './main';
|
|
25
|
+
export * from './themes';
|
|
26
|
+
export * from './tooltip';
|
|
27
|
+
export * from './viewport';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legend.d.ts","sourceRoot":"","sources":["../../src/types/legend.ts"],"names":[],"mappings":"AAgBA,oBAAY,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AxisProps } from './cartesian';
|
|
3
|
+
import { Charts } from './main';
|
|
4
|
+
export declare type LineChartIndex = Partial<AxisProps> & {
|
|
5
|
+
dataKey: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type LineChartOverlay = Partial<AxisProps> & {
|
|
8
|
+
dataKey: string;
|
|
9
|
+
style?: LineStyle;
|
|
10
|
+
rename?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type LineChartSeries = Partial<AxisProps> & {
|
|
13
|
+
dataKey: string[];
|
|
14
|
+
style?: Array<LineStyle | undefined>;
|
|
15
|
+
rename?: (...args: any) => string;
|
|
16
|
+
};
|
|
17
|
+
export declare type LineChartTooltip = {
|
|
18
|
+
extraSeriesData?: (...args: any) => string;
|
|
19
|
+
extraOverlayData?: (...args: any) => string;
|
|
20
|
+
extraContent?: React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
export declare type LineChartRenderType = 'lines' | 'curves' | 'steps';
|
|
23
|
+
export declare type LineStyle = {
|
|
24
|
+
stroke?: string;
|
|
25
|
+
strokeWidth?: string;
|
|
26
|
+
strokeOpacity?: string;
|
|
27
|
+
strokeDasharray?: string;
|
|
28
|
+
showMarker?: boolean;
|
|
29
|
+
showMarkerLabel?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare type LineChartMetadata = {
|
|
32
|
+
type: Charts;
|
|
33
|
+
renderAs?: LineChartRenderType;
|
|
34
|
+
index: string;
|
|
35
|
+
series: {
|
|
36
|
+
dataKey: string[];
|
|
37
|
+
names: string[];
|
|
38
|
+
colors: Array<string | undefined>;
|
|
39
|
+
style?: Array<LineStyle | undefined>;
|
|
40
|
+
};
|
|
41
|
+
overlay: {
|
|
42
|
+
dataKey?: string;
|
|
43
|
+
name: string;
|
|
44
|
+
color: string;
|
|
45
|
+
style?: LineStyle;
|
|
46
|
+
};
|
|
47
|
+
tooltip?: LineChartTooltip;
|
|
48
|
+
hideMissingDataConnection?: boolean;
|
|
49
|
+
showMarker?: boolean;
|
|
50
|
+
showMarkerLabel?: boolean;
|
|
51
|
+
hidePadding?: boolean;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=line-chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-chart.d.ts","sourceRoot":"","sources":["../../src/types/line-chart.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,oBAAY,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,GAAG;IAChD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,GAAG;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;A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AC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,SAAS,CAAC;KACnB,CAAC;IACF,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear-gradient.d.ts","sourceRoot":"","sources":["../../src/types/linear-gradient.ts"],"names":[],"mappings":"AAgBA,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare type LinesStyleConfig = {
|
|
2
|
+
lineIndicator: {
|
|
3
|
+
strokeWidth: number;
|
|
4
|
+
opacity: number;
|
|
5
|
+
pointerEvents: string;
|
|
6
|
+
strokeDasharray: string;
|
|
7
|
+
};
|
|
8
|
+
dataPoint: {
|
|
9
|
+
radius: number;
|
|
10
|
+
strokeWidth: number;
|
|
11
|
+
};
|
|
12
|
+
path: {
|
|
13
|
+
strokeWidth: number;
|
|
14
|
+
strokeOpacity: number;
|
|
15
|
+
};
|
|
16
|
+
segment: {
|
|
17
|
+
strokeDashArray: string;
|
|
18
|
+
};
|
|
19
|
+
marker: {
|
|
20
|
+
radius: number;
|
|
21
|
+
strokeWidth: number;
|
|
22
|
+
strokeOpacity: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=lines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lines.d.ts","sourceRoot":"","sources":["../../src/types/lines.ts"],"names":[],"mappings":"AAgBA,oBAAY,gBAAgB,GAAG;IAC7B,aAAa,EAAE;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,SAAS,EAAE;QACT,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type DeepPartial<T> = {
|
|
2
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
3
|
+
};
|
|
4
|
+
export declare type ValidTypeOf = 'undefined' | 'object' | 'boolean' | 'number' | 'string' | 'function' | 'symbol' | 'bigint';
|
|
5
|
+
export declare type Data = Array<Record<string, any>>;
|
|
6
|
+
export declare enum Charts {
|
|
7
|
+
LINE_CHART = "LINE_CHART",
|
|
8
|
+
BAR_CHART = "BAR_CHART"
|
|
9
|
+
}
|
|
10
|
+
export declare type ScaleType = 'linear' | 'label' | 'time';
|
|
11
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/types/main.ts"],"names":[],"mappings":"AAgBA,oBAAY,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC;AAEF,oBAAY,WAAW,GAAG,WAAW,GAAE,QAAQ,GAAE,SAAS,GAAE,QAAQ,GAAE,QAAQ,GAAE,UAAU,GAAE,QAAQ,GAAE,QAAQ,CAAC;AAE/G,oBAAY,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AAE9C,oBAAY,MAAM;IAChB,UAAU,eAAe;IACzB,SAAS,cAAc;CACxB;AAED,oBAAY,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 var Charts;
|
|
17
|
+
(function (Charts) {
|
|
18
|
+
Charts["LINE_CHART"] = "LINE_CHART";
|
|
19
|
+
Charts["BAR_CHART"] = "BAR_CHART";
|
|
20
|
+
})(Charts || (Charts = {}));
|