@hg2/dataview-core 2.0.0 → 2.0.1

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,6 +1,5 @@
1
1
  import { BaseEvent, EventLife, InteractEvents, InteractEventOn, InteractActionsType } from '../enums/eventEnum';
2
2
  import { GlobalThemeJsonType } from '../settings/chartThemes/index';
3
- import { vChartGlobalThemeJsonType } from '../settings/vchartThemes/index';
4
3
  import { RequestConfigType } from '../store/modules/chartEditStore/chartEditStore.d';
5
4
  export enum ChartFrameEnum {
6
5
  // 支持 dataset 的 echarts 框架
@@ -158,10 +157,11 @@ export interface PublicConfigType {
158
157
  }
159
158
 
160
159
  export type CommonComponentOption = Record<string, any>
160
+ export type VChartOption = Record<string, any>
161
161
 
162
162
  export type HgDataViewOptionByFrame = {
163
163
  [ChartFrameEnum.ECHARTS]: GlobalThemeJsonType
164
- [ChartFrameEnum.VCHART]: vChartGlobalThemeJsonType
164
+ [ChartFrameEnum.VCHART]: VChartOption
165
165
  [ChartFrameEnum.NAIVE_UI]: CommonComponentOption
166
166
  [ChartFrameEnum.COMMON]: CommonComponentOption
167
167
  [ChartFrameEnum.STATIC]: CommonComponentOption
@@ -192,7 +192,7 @@ export type CommonComponentConfig = ConfigType & {
192
192
  }
193
193
 
194
194
  export type EchartsCreateComponentType = CreateComponentTypeBase<GlobalThemeJsonType, EchartsComponentConfig>
195
- export type VChartCreateComponentType = CreateComponentTypeBase<vChartGlobalThemeJsonType, VChartComponentConfig>
195
+ export type VChartCreateComponentType = CreateComponentTypeBase<VChartOption, VChartComponentConfig>
196
196
  export type CommonCreateComponentType = CreateComponentTypeBase<CommonComponentOption, CommonComponentConfig>
197
197
 
198
198
  export type CreateComponentType =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hg2/dataview-core",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -56,11 +56,6 @@
56
56
  "import": "./dist/published/chartThemes.js",
57
57
  "default": "./dist/published/chartThemes.js"
58
58
  },
59
- "./vchart-themes": {
60
- "types": "./dist/published/vchartThemes.d.ts",
61
- "import": "./dist/published/vchartThemes.js",
62
- "default": "./dist/published/vchartThemes.js"
63
- },
64
59
  "./chart-item-setting": {
65
60
  "types": "./dist/published/chartItemSetting.d.ts",
66
61
  "import": "./dist/published/chartItemSetting.js",
@@ -86,11 +81,6 @@
86
81
  "import": "./dist/published/designSetting.js",
87
82
  "default": "./dist/published/designSetting.js"
88
83
  },
89
- "./vchart-axis-theme": {
90
- "types": "./dist/published/vchartAxisTheme.d.ts",
91
- "import": "./dist/published/vchartAxisTheme.js",
92
- "default": "./dist/published/vchartAxisTheme.js"
93
- },
94
84
  "./style": "./dist/style.css"
95
85
  },
96
86
  "dependencies": {
@@ -102,8 +92,6 @@
102
92
  "@types/crypto-js": "^4.1.1",
103
93
  "@types/keymaster": "^1.6.30",
104
94
  "@types/lodash": "4.14.182",
105
- "@visactor/vchart": "^2.0.0",
106
- "@visactor/vchart-theme": "^1.12.2",
107
95
  "animate.css": "^4.1.1",
108
96
  "axios": "^1.4.0",
109
97
  "color": "^4.2.3",
@@ -133,4 +121,4 @@
133
121
  "vue3-sketch-ruler": "^1.3.3",
134
122
  "vuedraggable": "^4.1.0"
135
123
  }
136
- }
124
+ }
@@ -1,2 +0,0 @@
1
- import { default as axisThemeJson } from '../settings/vchartThemes/axis.theme.json';
2
- export default axisThemeJson;
@@ -1 +0,0 @@
1
- export * from '../settings/vchartThemes';
@@ -1,138 +0,0 @@
1
- import { default as themeJson } from './global.theme.json';
2
- type ThemeJsonType = typeof themeJson;
3
- export type FontType = {
4
- fontSize: number;
5
- fontFamily: string;
6
- fontWeight: string;
7
- fill: string;
8
- dy?: number;
9
- dx?: number;
10
- angle?: number;
11
- [T: string]: any;
12
- };
13
- export interface vChartGlobalThemeJsonType extends Partial<ThemeJsonType> {
14
- dataset?: any;
15
- [T: string]: any;
16
- }
17
- export declare const vChartGlobalThemeJson: {
18
- dataset: null;
19
- legends: {
20
- visible: boolean;
21
- position: string;
22
- orient: string;
23
- item: {
24
- visible: boolean;
25
- align: string;
26
- shape: string;
27
- label: {
28
- style: {
29
- fontSize: number;
30
- fill: string;
31
- fontFamily: string;
32
- fontWeight: string;
33
- };
34
- };
35
- };
36
- }[];
37
- tooltip: {
38
- visible: boolean;
39
- style: {
40
- panel: {
41
- padding: {
42
- top: number;
43
- bottom: number;
44
- left: number;
45
- right: number;
46
- };
47
- backgroundColor: string;
48
- border: {
49
- color: string;
50
- width: number;
51
- radius: number;
52
- };
53
- shadow: {
54
- x: number;
55
- y: number;
56
- blur: number;
57
- spread: number;
58
- color: string;
59
- };
60
- };
61
- titleLabel: {
62
- fontSize: number;
63
- fill: string;
64
- fontWeight: string;
65
- fontFamily: string;
66
- align: string;
67
- lineHeight: number;
68
- };
69
- keyLabel: {
70
- fontSize: number;
71
- fill: string;
72
- fontWeight: string;
73
- fontFamily: string;
74
- align: string;
75
- lineHeight: number;
76
- };
77
- valueLabel: {
78
- fontSize: number;
79
- fill: string;
80
- fontWeight: string;
81
- fontFamily: string;
82
- align: string;
83
- lineHeight: number;
84
- };
85
- shape: {
86
- size: number;
87
- spacing: number;
88
- shapeLineWidth: number;
89
- };
90
- spaceRow: number;
91
- };
92
- };
93
- label: {
94
- visible: boolean;
95
- position: string;
96
- offset: number;
97
- type: string;
98
- style: {
99
- fontSize: number;
100
- fill: string;
101
- fontFamily: string;
102
- fontWeight: string;
103
- angle: number;
104
- dx: number;
105
- dy: number;
106
- };
107
- };
108
- bar: {
109
- style: {
110
- width: number;
111
- cornerRadius: number;
112
- fillOpacity: number;
113
- opacity: number;
114
- texture: string;
115
- };
116
- };
117
- line: {
118
- style: {
119
- lineWidth: number;
120
- lineCap: string;
121
- curveType: string;
122
- };
123
- };
124
- point: {
125
- visible: boolean;
126
- style: {
127
- symbolType: string;
128
- size: number;
129
- fillOpacity: number;
130
- lineWidth: number;
131
- stroke: string;
132
- strokeOpacity: number;
133
- dx: number;
134
- dy: number;
135
- };
136
- };
137
- };
138
- export {};