onesight-charts 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.d.ts ADDED
@@ -0,0 +1,76 @@
1
+ import { FC } from 'react';
2
+
3
+ declare module 'onesight-charts' {
4
+ export interface HorizontalBarProps {
5
+ width: string;
6
+ height: string;
7
+ data: any[];
8
+ number: number;
9
+ callBackClick: Function;
10
+ tipName: string;
11
+ tooltipOnlyShowPer: boolean;
12
+ showProportion: boolean;
13
+ color: string;
14
+ clickFlag: boolean;
15
+ }
16
+
17
+ export interface LineProps {
18
+ width: string;
19
+ height: string;
20
+ id: string;
21
+ color: string;
22
+ xAxis: any[];
23
+ tooltipClassName: string;
24
+ legendValue: boolean;
25
+ showRate: boolean;
26
+ tooltipTotalName: string;
27
+ tooltipPosition: boolean;
28
+ seriesData: {
29
+ [key: string]: number[];
30
+ };
31
+ }
32
+
33
+ export interface PieProps {
34
+ width: string;
35
+ height: string;
36
+ id: string;
37
+ color: string;
38
+ valueType: string;
39
+ seriesData: any[];
40
+ radius: number[];
41
+ emphasisRich: string;
42
+ tooltipNumShow: boolean;
43
+ tooltipPerShow: boolean;
44
+ centerShow: boolean;
45
+ centerName: string;
46
+ tooltipShow: boolean;
47
+ tooltipName: string;
48
+ legendPerShow: boolean;
49
+ legendNumShow: boolean;
50
+ legendNumber: number;
51
+ order: string[];
52
+ handleClick: Function;
53
+ }
54
+
55
+ export interface StackedBarProps {
56
+ width: string;
57
+ height: string;
58
+ special: boolean;
59
+ color: string;
60
+ yAxisData: string[];
61
+ series: any[];
62
+ }
63
+
64
+ export interface WordCloudProps {
65
+ data: any[];
66
+ smallSize: boolean;
67
+ tooltipShow: boolean;
68
+ tooltipName: string;
69
+ }
70
+
71
+ export const HorizontalBar: FC<HorizontalBarProps>;
72
+ export const Line: FC<LineProps>;
73
+ export const Pie: FC<PieProps>;
74
+ export const StackedBar: FC<StackedBarProps>;
75
+ export const WordCloud: FC<WordCloudProps>;
76
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,76 @@
1
+ import { FC } from 'react';
2
+
3
+ declare module 'onesight-charts' {
4
+ export interface HorizontalBarProps {
5
+ width: string;
6
+ height: string;
7
+ data: any[];
8
+ number: number;
9
+ callBackClick: Function;
10
+ tipName: string;
11
+ tooltipOnlyShowPer: boolean;
12
+ showProportion: boolean;
13
+ color: string;
14
+ clickFlag: boolean;
15
+ }
16
+
17
+ export interface LineProps {
18
+ width: string;
19
+ height: string;
20
+ id: string;
21
+ color: string;
22
+ xAxis: any[];
23
+ tooltipClassName: string;
24
+ legendValue: boolean;
25
+ showRate: boolean;
26
+ tooltipTotalName: string;
27
+ tooltipPosition: boolean;
28
+ seriesData: {
29
+ [key: string]: number[];
30
+ };
31
+ }
32
+
33
+ export interface PieProps {
34
+ width: string;
35
+ height: string;
36
+ id: string;
37
+ color: string;
38
+ valueType: string;
39
+ seriesData: any[];
40
+ radius: number[];
41
+ emphasisRich: string;
42
+ tooltipNumShow: boolean;
43
+ tooltipPerShow: boolean;
44
+ centerShow: boolean;
45
+ centerName: string;
46
+ tooltipShow: boolean;
47
+ tooltipName: string;
48
+ legendPerShow: boolean;
49
+ legendNumShow: boolean;
50
+ legendNumber: number;
51
+ order: string[];
52
+ handleClick: Function;
53
+ }
54
+
55
+ export interface StackedBarProps {
56
+ width: string;
57
+ height: string;
58
+ special: boolean;
59
+ color: string;
60
+ yAxisData: string[];
61
+ series: any[];
62
+ }
63
+
64
+ export interface WordCloudProps {
65
+ data: any[];
66
+ smallSize: boolean;
67
+ tooltipShow: boolean;
68
+ tooltipName: string;
69
+ }
70
+
71
+ export const HorizontalBar: FC<HorizontalBarProps>;
72
+ export const Line: FC<LineProps>;
73
+ export const Pie: FC<PieProps>;
74
+ export const StackedBar: FC<StackedBarProps>;
75
+ export const WordCloud: FC<WordCloudProps>;
76
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onesight-charts",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "description": "OneSight前端图表公共组件库",
6
6
  "license": "MIT",