@semcore/d3-chart 2.2.2 → 2.2.5
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/CHANGELOG.md +22 -1
- package/lib/cjs/Area.js +9 -9
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +19 -17
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +11 -11
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +12 -12
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/ClipPath.js +1 -1
- package/lib/cjs/ClipPath.js.map +1 -1
- package/lib/cjs/Donut.js +8 -8
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +9 -9
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +8 -8
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +11 -11
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +4 -4
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +8 -8
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Plot.js +4 -4
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/RadialTree.js +99 -59
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/ReferenceLine.js +10 -10
- package/lib/cjs/ReferenceLine.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +2 -1
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +7 -7
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +8 -8
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +8 -8
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +15 -11
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +9 -9
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/createElement.js +1 -1
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/radial-tree.shadow.css +0 -1
- package/lib/cjs/types/index.d.ts +3 -0
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/Area.js +9 -9
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +19 -17
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +11 -11
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +12 -12
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/ClipPath.js +1 -1
- package/lib/es6/ClipPath.js.map +1 -1
- package/lib/es6/Donut.js +8 -8
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +9 -9
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +8 -8
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +11 -11
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +4 -4
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +8 -8
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Plot.js +4 -4
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/RadialTree.js +99 -59
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/ReferenceLine.js +10 -10
- package/lib/es6/ReferenceLine.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +2 -1
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +7 -7
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +8 -8
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +8 -8
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +15 -11
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +9 -9
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/color.js.map +1 -1
- package/lib/es6/createElement.js +1 -1
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/radial-tree.shadow.css +0 -1
- package/lib/es6/types/index.d.ts +3 -0
- package/lib/es6/utils.js.map +1 -1
- package/lib/types/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/Area.jsx +0 -137
- package/src/Axis.jsx +0 -314
- package/src/Bar.jsx +0 -149
- package/src/Bubble.jsx +0 -165
- package/src/ClipPath.jsx +0 -47
- package/src/Donut.jsx +0 -319
- package/src/Dots.jsx +0 -97
- package/src/GroupBar.jsx +0 -76
- package/src/HorizontalBar.jsx +0 -135
- package/src/Hover.jsx +0 -153
- package/src/Line.jsx +0 -89
- package/src/Plot.jsx +0 -79
- package/src/RadialTree.tsx +0 -767
- package/src/ReferenceLine.jsx +0 -146
- package/src/ResponsiveContainer.jsx +0 -84
- package/src/ScatterPlot.jsx +0 -112
- package/src/StackBar.jsx +0 -105
- package/src/StackedArea.jsx +0 -65
- package/src/Tooltip.jsx +0 -145
- package/src/Venn.jsx +0 -114
- package/src/color.js +0 -21
- package/src/createElement.jsx +0 -135
- package/src/index.js +0 -27
- package/src/style/area.shadow.css +0 -37
- package/src/style/axis.shadow.css +0 -85
- package/src/style/bar.shadow.css +0 -21
- package/src/style/bubble.shadow.css +0 -45
- package/src/style/donut.shadow.css +0 -24
- package/src/style/dot.shadow.css +0 -29
- package/src/style/hover.shadow.css +0 -9
- package/src/style/line.shadow.css +0 -29
- package/src/style/plot.shadow.css +0 -6
- package/src/style/radial-tree.shadow.css +0 -34
- package/src/style/reference-line.shadow.css +0 -37
- package/src/style/scatterplot.shadow.css +0 -27
- package/src/style/tooltip.shadow.css +0 -36
- package/src/style/var.css +0 -125
- package/src/style/venn.shadow.css +0 -29
- package/src/types/Area.d.ts +0 -48
- package/src/types/Axis.d.ts +0 -64
- package/src/types/Bar.d.ts +0 -52
- package/src/types/Bubble.d.ts +0 -32
- package/src/types/ClipPath.d.ts +0 -26
- package/src/types/Donut.d.ts +0 -46
- package/src/types/GroupBar.d.ts +0 -20
- package/src/types/HorizontalBar.d.ts +0 -29
- package/src/types/Hover.d.ts +0 -15
- package/src/types/Line.d.ts +0 -50
- package/src/types/Plot.d.ts +0 -16
- package/src/types/ReferenceLine.d.ts +0 -31
- package/src/types/ResponsiveContainer.d.ts +0 -20
- package/src/types/ScatterPlot.d.ts +0 -27
- package/src/types/StackBar.d.ts +0 -26
- package/src/types/StackedArea.d.ts +0 -26
- package/src/types/Tooltip.d.ts +0 -33
- package/src/types/Venn.d.ts +0 -45
- package/src/types/context.d.ts +0 -6
- package/src/types/index.d.ts +0 -56
- package/src/utils.ts +0 -227
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@import '@semcore/utils/style/var.css';
|
|
2
|
-
@import '@semcore/d3-chart/src/style/var.css';
|
|
3
|
-
|
|
4
|
-
STooltip {
|
|
5
|
-
font-size: var(--fs-100);
|
|
6
|
-
line-height: var(--lh-100);
|
|
7
|
-
position: relative;
|
|
8
|
-
background-color: #fff;
|
|
9
|
-
border-radius: 6px;
|
|
10
|
-
border: 1px solid var(--gray-100);
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
box-shadow: var(--box-shadow-popper);
|
|
13
|
-
padding: 12px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
STitle {
|
|
17
|
-
color: var(--gray-500);
|
|
18
|
-
margin-bottom: 8px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
SDotGroup {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
SDot {
|
|
27
|
-
width: 8px;
|
|
28
|
-
height: 8px;
|
|
29
|
-
border-radius: 50%;
|
|
30
|
-
margin-right: 8px;
|
|
31
|
-
background: var(--blue-03);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
SDot[color] {
|
|
35
|
-
background: var(--color);
|
|
36
|
-
}
|
package/src/style/var.css
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--blue-01: #c4e5fe;
|
|
3
|
-
--blue-02: #8ecdff;
|
|
4
|
-
--blue-03: #2bb3ff;
|
|
5
|
-
--blue-04: #008ff8;
|
|
6
|
-
--blue-05: #006dca;
|
|
7
|
-
--green-01: #9ef2c9;
|
|
8
|
-
--green-02: #59ddaa;
|
|
9
|
-
--green-03: #00c192;
|
|
10
|
-
--green-04: #009f81;
|
|
11
|
-
--green-05: #007c65;
|
|
12
|
-
--orange-01: #ffdca2;
|
|
13
|
-
--orange-02: #ffb26e;
|
|
14
|
-
--orange-03: #ff8c43;
|
|
15
|
-
--orange-04: #ff622d;
|
|
16
|
-
--orange-05: #c33909;
|
|
17
|
-
--pink-01: #ffd3ff;
|
|
18
|
-
--pink-02: #ffa9fa;
|
|
19
|
-
--pink-03: #f67cf2;
|
|
20
|
-
--pink-04: #e14adf;
|
|
21
|
-
--pink-05: #b229b9;
|
|
22
|
-
--violet-01: #edd9ff;
|
|
23
|
-
--violet-02: #dcb8ff;
|
|
24
|
-
--violet-03: #c695ff;
|
|
25
|
-
--violet-04: #ab6cfe;
|
|
26
|
-
--violet-05: #8649e1;
|
|
27
|
-
--red-01: #ffd7df;
|
|
28
|
-
--red-02: #ffaeb5;
|
|
29
|
-
--red-03: #ff8786;
|
|
30
|
-
--red-04: #ff4953;
|
|
31
|
-
--red-05: #d1002f;
|
|
32
|
-
--yellow-01: #fce081;
|
|
33
|
-
--yellow-02: #fdc23c;
|
|
34
|
-
--yellow-03: #ef9800;
|
|
35
|
-
--yellow-04: #d87900;
|
|
36
|
-
--yellow-05: #a75800;
|
|
37
|
-
--salad-01: #c7ee96;
|
|
38
|
-
--salad-02: #9bd85d;
|
|
39
|
-
--salad-03: #66c030;
|
|
40
|
-
--salad-04: #35a21e;
|
|
41
|
-
--salad-05: #0a7e22;
|
|
42
|
-
--gray-01: #c4c7cf;
|
|
43
|
-
|
|
44
|
-
--gray-50: #f4f5f9;
|
|
45
|
-
--gray-100: #e0e1e9;
|
|
46
|
-
--gray-200: #c4c7cf;
|
|
47
|
-
--gray-300: #a9abb6;
|
|
48
|
-
--gray-400: #8a8e9b;
|
|
49
|
-
--gray-500: #6c6e79;
|
|
50
|
-
--gray-600: #484a54;
|
|
51
|
-
--gray-700: #2b2e38;
|
|
52
|
-
--gray-800: #191b23;
|
|
53
|
-
--blue-50: #e9f7ff;
|
|
54
|
-
--blue-100: #c4e5fe;
|
|
55
|
-
--blue-200: #8ecdff;
|
|
56
|
-
--blue-300: #2bb3ff;
|
|
57
|
-
--blue-400: #008ff8;
|
|
58
|
-
--blue-500: #006dca;
|
|
59
|
-
--blue-600: #044792;
|
|
60
|
-
--blue-700: #002b5f;
|
|
61
|
-
--blue-800: #001b3d;
|
|
62
|
-
--green-100: #9ef2c9;
|
|
63
|
-
--green-200: #59ddaa;
|
|
64
|
-
--green-300: #00c192;
|
|
65
|
-
--green-400: #009f81;
|
|
66
|
-
--green-50: #dbfee8;
|
|
67
|
-
--green-500: #007c65;
|
|
68
|
-
--green-600: #055345;
|
|
69
|
-
--green-700: #00342d;
|
|
70
|
-
--green-800: #00201e;
|
|
71
|
-
--salad-100: #c7ee96;
|
|
72
|
-
--salad-200: #9bd85d;
|
|
73
|
-
--salad-300: #66c030;
|
|
74
|
-
--salad-400: #35a21e;
|
|
75
|
-
--salad-50: #ecfbcd;
|
|
76
|
-
--salad-500: #0a7e22;
|
|
77
|
-
--salad-600: #005613;
|
|
78
|
-
--salad-700: #003509;
|
|
79
|
-
--salad-800: #002203;
|
|
80
|
-
--orange-50: #fff3d9;
|
|
81
|
-
--orange-100: #ffdca2;
|
|
82
|
-
--orange-200: #ffb26e;
|
|
83
|
-
--orange-300: #ff8c43;
|
|
84
|
-
--orange-400: #ff622d;
|
|
85
|
-
--orange-500: #c33909;
|
|
86
|
-
--orange-600: #8b1500;
|
|
87
|
-
--orange-700: #551200;
|
|
88
|
-
--orange-800: #351000;
|
|
89
|
-
--yellow-100: #fce081;
|
|
90
|
-
--yellow-200: #fdc23c;
|
|
91
|
-
--yellow-300: #ef9800;
|
|
92
|
-
--yellow-400: #d87900;
|
|
93
|
-
--yellow-50: #fdf7c8;
|
|
94
|
-
--yellow-500: #a75800;
|
|
95
|
-
--yellow-600: #743a00;
|
|
96
|
-
--yellow-700: #462500;
|
|
97
|
-
--yellow-800: #2c1600;
|
|
98
|
-
--red-100: #ffd7df;
|
|
99
|
-
--red-200: #ffaeb5;
|
|
100
|
-
--red-300: #ff8786;
|
|
101
|
-
--red-400: #ff4953;
|
|
102
|
-
--red-50: #fff0f7;
|
|
103
|
-
--red-500: #d1002f;
|
|
104
|
-
--red-600: #8e0016;
|
|
105
|
-
--red-700: #58000a;
|
|
106
|
-
--red-800: #410101;
|
|
107
|
-
--pink-100: #ffd3ff;
|
|
108
|
-
--pink-200: #ffa9fa;
|
|
109
|
-
--pink-300: #f67cf2;
|
|
110
|
-
--pink-400: #e14adf;
|
|
111
|
-
--pink-50: #fff0ff;
|
|
112
|
-
--pink-500: #b229b9;
|
|
113
|
-
--pink-600: #7d0480;
|
|
114
|
-
--pink-700: #4d0050;
|
|
115
|
-
--pink-800: #340439;
|
|
116
|
-
--violet-100: #edd9ff;
|
|
117
|
-
--violet-200: #dcb8ff;
|
|
118
|
-
--violet-300: #c695ff;
|
|
119
|
-
--violet-400: #ab6cfe;
|
|
120
|
-
--violet-50: #f9f2ff;
|
|
121
|
-
--violet-500: #8649e1;
|
|
122
|
-
--violet-600: #5925ab;
|
|
123
|
-
--violet-700: #421984;
|
|
124
|
-
--violet-800: #220358;
|
|
125
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
@import '@semcore/d3-chart/src/style/var.css';
|
|
2
|
-
|
|
3
|
-
SCircle {
|
|
4
|
-
fill: var(--green-02);
|
|
5
|
-
stroke: #fff;
|
|
6
|
-
stroke-width: 2px;
|
|
7
|
-
fill-opacity: 0.5;
|
|
8
|
-
transition-property: cx, cy;
|
|
9
|
-
transition-duration: var(--duration);
|
|
10
|
-
transition-timing-function: ease-in-out;
|
|
11
|
-
|
|
12
|
-
&:hover {
|
|
13
|
-
fill-opacity: 0.7;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
SCircle[color] {
|
|
18
|
-
fill: var(--color);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
SIntersection {
|
|
22
|
-
stroke: #fff;
|
|
23
|
-
stroke-width: 2px;
|
|
24
|
-
fill-opacity: 0;
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
fill-opacity: 0.1;
|
|
28
|
-
}
|
|
29
|
-
}
|
package/src/types/Area.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
import { CurveFactory } from 'd3-shape';
|
|
4
|
-
|
|
5
|
-
export interface IAreaProps extends IContext {
|
|
6
|
-
/** Field from data for XAxis */
|
|
7
|
-
x?: string;
|
|
8
|
-
/** Field from data for YAxis*/
|
|
9
|
-
y?: string;
|
|
10
|
-
/** Line color
|
|
11
|
-
* @default '#50aef4'*/
|
|
12
|
-
color?: string;
|
|
13
|
-
/** Element hide property */
|
|
14
|
-
hide?: boolean;
|
|
15
|
-
/** Curve method */
|
|
16
|
-
curve?: CurveFactory;
|
|
17
|
-
/** Animation duration in ms
|
|
18
|
-
* @default 500
|
|
19
|
-
*/
|
|
20
|
-
duration?: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IAreaDotsProps extends IContext {
|
|
24
|
-
/** Show all Dot */
|
|
25
|
-
display?: boolean;
|
|
26
|
-
/** Hide property */
|
|
27
|
-
hide?: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface IAreaDotsContext {
|
|
31
|
-
/** Value element of data */
|
|
32
|
-
value?: any;
|
|
33
|
-
/** Index element of data */
|
|
34
|
-
index?: number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface IAreaNullProps extends IContext {
|
|
38
|
-
/** Hide property */
|
|
39
|
-
hide?: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare const Area: (<T>(props: CProps<IAreaProps & T>) => ReturnEl) & {
|
|
43
|
-
Dots: <T>(props: CProps<IAreaDotsProps & T, IAreaDotsContext>) => ReturnEl;
|
|
44
|
-
Null: <T>(props: CProps<IAreaNullProps & T>) => ReturnEl;
|
|
45
|
-
Line: <T>(props: CProps<IContext & T>) => ReturnEl;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default Area;
|
package/src/types/Axis.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
|
|
4
|
-
export interface IXAxisProps extends IContext {
|
|
5
|
-
/** The position of the axis relative chart
|
|
6
|
-
* @default 'button' */
|
|
7
|
-
position?: 'top' | 'right' | 'bottom' | 'left' | number;
|
|
8
|
-
/** Element hide property
|
|
9
|
-
* @default false */
|
|
10
|
-
hide?: boolean;
|
|
11
|
-
/** Values for axis ticks */
|
|
12
|
-
ticks?: any[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface IYAxisProps extends IContext {
|
|
16
|
-
/** The position of the axis relative chart
|
|
17
|
-
* @default 'left' */
|
|
18
|
-
position?: 'top' | 'right' | 'bottom' | 'left' | number;
|
|
19
|
-
/** Element hide property
|
|
20
|
-
* @default true */
|
|
21
|
-
hide?: boolean;
|
|
22
|
-
/** Values for axis ticks */
|
|
23
|
-
ticks?: any[];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface IAxisTicksProps extends IContext {
|
|
27
|
-
/** The position of the axis relative chart */
|
|
28
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
29
|
-
/** Element hide property */
|
|
30
|
-
hide?: boolean;
|
|
31
|
-
/** Values for axis ticks */
|
|
32
|
-
ticks?: any[];
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface IAxisGridProps extends IContext {
|
|
36
|
-
/** Values for axis ticks */
|
|
37
|
-
ticks?: any[];
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface IAxisTitleProps extends IContext {
|
|
41
|
-
/** The position of the axis relative chart */
|
|
42
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface IAxisTicksContext {
|
|
46
|
-
/** Value element of data */
|
|
47
|
-
value: any;
|
|
48
|
-
/** Index element of data */
|
|
49
|
-
index: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare const XAxis: (<T>(props: CProps<IXAxisProps & T>) => ReturnEl) & {
|
|
53
|
-
Ticks: <T>(props: CProps<IAxisTicksProps & T, IAxisTicksContext>) => ReturnEl;
|
|
54
|
-
Grid: <T>(props: CProps<IAxisGridProps & T>) => ReturnEl;
|
|
55
|
-
Title: <T>(props: CProps<IAxisTitleProps & T>) => ReturnEl;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
declare const YAxis: (<T>(props: CProps<IYAxisProps & T>) => ReturnEl) & {
|
|
59
|
-
Ticks: <T>(props: CProps<IAxisTicksProps & T, IAxisTicksContext>) => ReturnEl;
|
|
60
|
-
Grid: <T>(props: CProps<IAxisGridProps & T>) => ReturnEl;
|
|
61
|
-
Title: <T>(props: CProps<IAxisTitleProps & T>) => ReturnEl;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export { XAxis, YAxis };
|
package/src/types/Bar.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
|
|
4
|
-
export interface IBarProps extends IContext {
|
|
5
|
-
/** Field from data for XAxis */
|
|
6
|
-
x?: string;
|
|
7
|
-
/** Field from data for YAxis */
|
|
8
|
-
y?: string;
|
|
9
|
-
/** Line color
|
|
10
|
-
* @default '#50aef4'*/
|
|
11
|
-
color?: string;
|
|
12
|
-
/** Element hide property */
|
|
13
|
-
hide?: boolean;
|
|
14
|
-
/** Animation duration in ms
|
|
15
|
-
* @default 500
|
|
16
|
-
*/
|
|
17
|
-
duration?: number;
|
|
18
|
-
/** Radius of curvature
|
|
19
|
-
* @default 2
|
|
20
|
-
*/
|
|
21
|
-
r?: number | number[];
|
|
22
|
-
/** Minimal height
|
|
23
|
-
* @default 4
|
|
24
|
-
*/
|
|
25
|
-
hMin?: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface IBarContext {
|
|
29
|
-
/** Value element of data */
|
|
30
|
-
value: any;
|
|
31
|
-
/** Index element of data */
|
|
32
|
-
index: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface IBackgroundProps extends IContext {
|
|
36
|
-
/** Coordinate x */
|
|
37
|
-
x?: number | string;
|
|
38
|
-
/** Coordinate y */
|
|
39
|
-
y?: number | string;
|
|
40
|
-
/** Value element of data */
|
|
41
|
-
value?: any;
|
|
42
|
-
/** Width rect */
|
|
43
|
-
width?: number | string;
|
|
44
|
-
/** Height rect */
|
|
45
|
-
height?: number | string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare const Bar: (<T>(props: CProps<IBarProps & T, IBarContext>) => ReturnEl) & {
|
|
49
|
-
Background: <T>(props: CProps<IBackgroundProps & T>) => ReturnEl;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export default Bar;
|
package/src/types/Bubble.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
|
|
4
|
-
export interface IBubbleProps extends IContext {
|
|
5
|
-
/** Field from data for XAxis */
|
|
6
|
-
x: string;
|
|
7
|
-
/** Field from data for YAxis */
|
|
8
|
-
y: string;
|
|
9
|
-
/** Field from data for circle radius */
|
|
10
|
-
value: string;
|
|
11
|
-
/** Field from data for circle label */
|
|
12
|
-
label?: string;
|
|
13
|
-
/** Circle color */
|
|
14
|
-
color?: string;
|
|
15
|
-
/** Cross in the center of the bubble
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
markedCross?: boolean;
|
|
19
|
-
/** Animation duration in ms
|
|
20
|
-
* @default 500
|
|
21
|
-
*/
|
|
22
|
-
duration?: number;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface IBubbleContext {
|
|
26
|
-
/** Index element of data */
|
|
27
|
-
index: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare const Bubble: <T>(props: CProps<IBubbleProps & T, IBubbleContext>) => ReturnEl;
|
|
31
|
-
|
|
32
|
-
export default Bubble;
|
package/src/types/ClipPath.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
3
|
-
|
|
4
|
-
export interface IClipPath {
|
|
5
|
-
/**
|
|
6
|
-
* HTML tag name for the displayed item
|
|
7
|
-
* @default rect
|
|
8
|
-
*/
|
|
9
|
-
tag?: string;
|
|
10
|
-
/**
|
|
11
|
-
* HTML selector
|
|
12
|
-
*/
|
|
13
|
-
id?: string;
|
|
14
|
-
/**
|
|
15
|
-
* CSS property
|
|
16
|
-
*/
|
|
17
|
-
transition?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Function which run after mounted clipPath
|
|
20
|
-
*/
|
|
21
|
-
setAttributeTag?: (rect: React.ReactNode) => void;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare const ClipPath: <T>(props: CProps<IClipPath & T>) => ReturnEl;
|
|
25
|
-
|
|
26
|
-
export default ClipPath;
|
package/src/types/Donut.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
|
|
4
|
-
export interface IDonutProps extends IContext {
|
|
5
|
-
/** Inner radius
|
|
6
|
-
* @default 0
|
|
7
|
-
* */
|
|
8
|
-
innerRadius?: number;
|
|
9
|
-
/** Outer radius
|
|
10
|
-
* @default calculated by the formula from width, height
|
|
11
|
-
* */
|
|
12
|
-
outerRadius?: number;
|
|
13
|
-
/** Semi donut */
|
|
14
|
-
halfsize?: boolean;
|
|
15
|
-
/** Animation duration in ms
|
|
16
|
-
* @default 500
|
|
17
|
-
*/
|
|
18
|
-
duration?: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IPieProps extends IContext {
|
|
22
|
-
/**
|
|
23
|
-
* Name of the field in the data
|
|
24
|
-
* */
|
|
25
|
-
dataKey: string;
|
|
26
|
-
/** Color pie
|
|
27
|
-
@default #50aef4
|
|
28
|
-
**/
|
|
29
|
-
color?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Active sector
|
|
32
|
-
* */
|
|
33
|
-
active?: boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface IEmptyDataProps extends IContext {}
|
|
37
|
-
|
|
38
|
-
export interface ILabelProps extends IContext {}
|
|
39
|
-
|
|
40
|
-
declare const Donut: (<T>(props: CProps<IDonutProps & T>) => ReturnEl) & {
|
|
41
|
-
Pie: <T>(props: CProps<IPieProps & T>) => ReturnEl;
|
|
42
|
-
EmptyData: <T>(props: CProps<IEmptyDataProps & T>) => ReturnEl;
|
|
43
|
-
Label: <T>(props: CProps<ILabelProps & T>) => ReturnEl;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export default Donut;
|
package/src/types/GroupBar.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import { IBarContext, IBarProps } from './Bar';
|
|
3
|
-
import { IHorizontalBarProps } from './HorizontalBar';
|
|
4
|
-
import IContext from './context';
|
|
5
|
-
|
|
6
|
-
export interface IGroupBarProps extends IContext {
|
|
7
|
-
/** Field from data for XAxis */
|
|
8
|
-
x?: string;
|
|
9
|
-
/** Field from data for YAxis */
|
|
10
|
-
y?: string;
|
|
11
|
-
/** Scale for group bars */
|
|
12
|
-
scaleGroup?: any;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare const GroupBar: (<T>(props: CProps<IGroupBarProps & T>) => ReturnEl) & {
|
|
16
|
-
Bar: <T>(props: CProps<IBarProps & T, IBarContext>) => ReturnEl;
|
|
17
|
-
HorizontalBar: <T>(props: CProps<IHorizontalBarProps & T, IBarContext>) => ReturnEl;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default GroupBar;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
import { IBarContext, IBackgroundProps } from './Bar';
|
|
4
|
-
|
|
5
|
-
export interface IHorizontalBarProps extends IContext {
|
|
6
|
-
/** Field from data for XAxis */
|
|
7
|
-
x?: string;
|
|
8
|
-
/** Field from data for YAxis */
|
|
9
|
-
y?: string;
|
|
10
|
-
/** Line color
|
|
11
|
-
* @default '#50aef4'*/
|
|
12
|
-
color?: string;
|
|
13
|
-
/** Animation duration in ms
|
|
14
|
-
* @default 500
|
|
15
|
-
*/
|
|
16
|
-
duration?: number;
|
|
17
|
-
/** Radius of curvature
|
|
18
|
-
* @default 2
|
|
19
|
-
*/
|
|
20
|
-
r?: number | number[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare const HorizontalBar: (<T>(
|
|
24
|
-
props: CProps<IHorizontalBarProps & T, IBarContext>,
|
|
25
|
-
) => ReturnEl) & {
|
|
26
|
-
Background: <T>(props: CProps<IBackgroundProps & T>) => ReturnEl;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default HorizontalBar;
|
package/src/types/Hover.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
|
|
4
|
-
export interface IHoverProps extends IContext {
|
|
5
|
-
/** Field from data for XAxis */
|
|
6
|
-
x?: string;
|
|
7
|
-
/** Field from data for YAxis */
|
|
8
|
-
y?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare const HoverLine: <T>(props: CProps<IHoverProps & T>) => ReturnEl;
|
|
12
|
-
|
|
13
|
-
declare const HoverRect: <T>(props: CProps<IHoverProps & T>) => ReturnEl;
|
|
14
|
-
|
|
15
|
-
export { HoverLine, HoverRect };
|
package/src/types/Line.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
import { CurveFactory } from 'd3-shape';
|
|
4
|
-
import { IFadeInOutProps } from '@semcore/animation';
|
|
5
|
-
|
|
6
|
-
export interface ILineProps extends IContext {
|
|
7
|
-
/** Field from data for XAxis */
|
|
8
|
-
x?: string;
|
|
9
|
-
/** Field from data for YAxis */
|
|
10
|
-
y?: string;
|
|
11
|
-
/** Line color
|
|
12
|
-
* @default '#50aef4'*/
|
|
13
|
-
color?: string;
|
|
14
|
-
/** Element hide property */
|
|
15
|
-
hide?: boolean;
|
|
16
|
-
/** Curve method */
|
|
17
|
-
curve?: CurveFactory;
|
|
18
|
-
/** Animation duration in ms
|
|
19
|
-
* @default 500
|
|
20
|
-
*/
|
|
21
|
-
duration?: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface ILineDotsProps extends IContext, IFadeInOutProps {
|
|
25
|
-
/** Show all Dot */
|
|
26
|
-
display?: boolean;
|
|
27
|
-
/** Hide property */
|
|
28
|
-
hide?: boolean;
|
|
29
|
-
/** Index active of element */
|
|
30
|
-
activeIndex?: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface ILineDotsContext {
|
|
34
|
-
/** Value element of data */
|
|
35
|
-
value?: any;
|
|
36
|
-
/** Index element of data */
|
|
37
|
-
index?: number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface ILineNullProps extends IContext {
|
|
41
|
-
/** Hide property */
|
|
42
|
-
hide?: boolean;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare const Line: (<T>(props: CProps<ILineProps & T>) => ReturnEl) & {
|
|
46
|
-
Dots: <T>(props: CProps<ILineDotsProps & T, ILineDotsContext>) => ReturnEl;
|
|
47
|
-
Null: <T>(props: CProps<ILineNullProps & T>) => ReturnEl;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export default Line;
|
package/src/types/Plot.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IBoxProps } from '@semcore/flex-box';
|
|
2
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
3
|
-
import IContext from './context';
|
|
4
|
-
|
|
5
|
-
export interface IPlotProps extends IContext, IBoxProps {
|
|
6
|
-
/** Width of the svg element
|
|
7
|
-
* @default 0*/
|
|
8
|
-
width?: number;
|
|
9
|
-
/** Height of the svg element
|
|
10
|
-
* @default 0*/
|
|
11
|
-
height?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare const Plot: <T>(props: CProps<IPlotProps & T>) => ReturnEl;
|
|
15
|
-
|
|
16
|
-
export default Plot;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
|
|
4
|
-
export interface IReferenceLineProps extends IContext {
|
|
5
|
-
/** The position of the title relative reference line
|
|
6
|
-
* @default 'left' */
|
|
7
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
8
|
-
/** Value element of data */
|
|
9
|
-
value: any;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface IReferenceLineTitleProps extends IContext {
|
|
13
|
-
/** The position of the axis relative reference line */
|
|
14
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
15
|
-
/** Value element of data */
|
|
16
|
-
value: any;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface IReferenceLineBackgroundProps extends IContext {
|
|
20
|
-
/** The position of the axis relative reference line */
|
|
21
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
22
|
-
/** Value element of data */
|
|
23
|
-
value: any;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare const ReferenceLine: (<T>(props: CProps<IReferenceLineProps & T>) => ReturnEl) & {
|
|
27
|
-
Title: <T>(props: CProps<IReferenceLineTitleProps & T>) => ReturnEl;
|
|
28
|
-
Background: <T>(props: CProps<IReferenceLineBackgroundProps & T>) => ReturnEl;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default ReferenceLine;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IBoxProps } from '@semcore/flex-box';
|
|
2
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
3
|
-
|
|
4
|
-
export interface IResponsiveContainerProps extends IBoxProps {
|
|
5
|
-
/** Relation between height and width dimensions block */
|
|
6
|
-
aspect?: number;
|
|
7
|
-
/** Callback which will be called after changing the block size */
|
|
8
|
-
onResize?: (size: [number, number], entries: ResizeObserverEntry[]) => void;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface IResponsiveContainerContext {
|
|
12
|
-
width?: number;
|
|
13
|
-
height?: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare const ResponsiveContainer: <T>(
|
|
17
|
-
props: CProps<IResponsiveContainerProps & T, IResponsiveContainerContext>,
|
|
18
|
-
) => ReturnEl;
|
|
19
|
-
|
|
20
|
-
export default ResponsiveContainer;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
2
|
-
import IContext from './context';
|
|
3
|
-
|
|
4
|
-
export interface IScatterPlotProps extends IContext {
|
|
5
|
-
/** Field from data for XAxis */
|
|
6
|
-
x: string;
|
|
7
|
-
/** Field from data for YAxis */
|
|
8
|
-
y: string;
|
|
9
|
-
/** Field from data for circle value */
|
|
10
|
-
value?: string;
|
|
11
|
-
/** Circle color */
|
|
12
|
-
color?: string;
|
|
13
|
-
/** Circle value color */
|
|
14
|
-
valueColor?: string;
|
|
15
|
-
/** Animation duration in ms
|
|
16
|
-
* @default 500
|
|
17
|
-
*/
|
|
18
|
-
duration?: number;
|
|
19
|
-
/** Radius of circles
|
|
20
|
-
* @default 5.5 or 12 with value
|
|
21
|
-
*/
|
|
22
|
-
r?: number;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare const ScatterPlot: <T>(props: CProps<IScatterPlotProps & T>) => ReturnEl;
|
|
26
|
-
|
|
27
|
-
export default ScatterPlot;
|