@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.
@@ -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
+ }