@gm-pc/vision 1.25.0-beta.0 → 1.25.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/package.json +2 -2
- package/src/chart/bar/components/table_chart.tsx +106 -106
- package/src/chart/bar/core/config.ts +257 -257
- package/src/chart/bar/core/index.ts +9 -9
- package/src/chart/bar/core/utils.ts +8 -8
- package/src/chart/bar/index.less +132 -132
- package/src/chart/bar/index.tsx +18 -18
- package/src/chart/bar/stories.tsx +420 -420
- package/src/chart/base/index.ts +135 -135
- package/src/chart/line/core/config.ts +209 -209
- package/src/chart/line/core/index.ts +9 -9
- package/src/chart/line/core/utils.ts +49 -49
- package/src/chart/line/index.tsx +12 -12
- package/src/chart/line/stories.tsx +234 -234
- package/src/chart/pie/core/config.ts +199 -199
- package/src/chart/pie/core/index.ts +9 -9
- package/src/chart/pie/index.tsx +12 -12
- package/src/chart/pie/stories.tsx +39 -39
- package/src/common/hooks/useChart.ts +40 -40
- package/src/common/utils/dom.ts +22 -22
- package/src/index.ts +11 -11
- package/src/theme/index.ts +8 -8
- package/src/theme/ocean/chart.ts +40 -40
- package/src/theme/ocean/index.ts +495 -495
- package/src/theme/sunset/chart.ts +40 -40
- package/src/theme/sunset/index.ts +495 -495
- package/src/theme/utils/create-style-by-sheet.ts +1303 -1303
- package/src/types/common.ts +41 -41
- package/src/types/theme.ts +552 -552
- package/tsconfig.json +3 -3
package/src/types/common.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Chart, Geometry } from '@antv/g2'
|
|
2
|
-
|
|
3
|
-
export interface ChartOptions {
|
|
4
|
-
/** 图表宽度 */
|
|
5
|
-
width?: number
|
|
6
|
-
/** 图表高度 */
|
|
7
|
-
height?: number
|
|
8
|
-
/** 自适应宽高 */
|
|
9
|
-
autoFit?: boolean
|
|
10
|
-
/** 边距 */
|
|
11
|
-
padding?: number
|
|
12
|
-
/** 主题 */
|
|
13
|
-
theme?: string
|
|
14
|
-
xFieldName?: string
|
|
15
|
-
yFieldName?: Array<any>
|
|
16
|
-
position: string
|
|
17
|
-
label?: boolean | ((data: Record<string, any>) => string)
|
|
18
|
-
adjust?: string
|
|
19
|
-
color: string
|
|
20
|
-
coordinate?: {
|
|
21
|
-
actions: 'transpose' | string
|
|
22
|
-
[key: string]: any
|
|
23
|
-
}
|
|
24
|
-
[key: string]: any
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** 图表实例配置的参数 */
|
|
28
|
-
export interface Instance {
|
|
29
|
-
geometry?: Geometry
|
|
30
|
-
chart: Chart
|
|
31
|
-
options: ChartOptions
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface useChartOptions {
|
|
35
|
-
options: ChartOptions
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ChartProps {
|
|
39
|
-
data: Record<string, any>[]
|
|
40
|
-
options: ChartOptions
|
|
41
|
-
}
|
|
1
|
+
import { Chart, Geometry } from '@antv/g2'
|
|
2
|
+
|
|
3
|
+
export interface ChartOptions {
|
|
4
|
+
/** 图表宽度 */
|
|
5
|
+
width?: number
|
|
6
|
+
/** 图表高度 */
|
|
7
|
+
height?: number
|
|
8
|
+
/** 自适应宽高 */
|
|
9
|
+
autoFit?: boolean
|
|
10
|
+
/** 边距 */
|
|
11
|
+
padding?: number
|
|
12
|
+
/** 主题 */
|
|
13
|
+
theme?: string
|
|
14
|
+
xFieldName?: string
|
|
15
|
+
yFieldName?: Array<any>
|
|
16
|
+
position: string
|
|
17
|
+
label?: boolean | ((data: Record<string, any>) => string)
|
|
18
|
+
adjust?: string
|
|
19
|
+
color: string
|
|
20
|
+
coordinate?: {
|
|
21
|
+
actions: 'transpose' | string
|
|
22
|
+
[key: string]: any
|
|
23
|
+
}
|
|
24
|
+
[key: string]: any
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** 图表实例配置的参数 */
|
|
28
|
+
export interface Instance {
|
|
29
|
+
geometry?: Geometry
|
|
30
|
+
chart: Chart
|
|
31
|
+
options: ChartOptions
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface useChartOptions {
|
|
35
|
+
options: ChartOptions
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ChartProps {
|
|
39
|
+
data: Record<string, any>[]
|
|
40
|
+
options: ChartOptions
|
|
41
|
+
}
|