go-view-worker 0.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.
Files changed (198) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +221 -0
  3. package/dist/chunks/403-382550a8.js +42 -0
  4. package/dist/chunks/404-3d357d75.js +42 -0
  5. package/dist/chunks/500-96d14fb0.js +43 -0
  6. package/dist/chunks/StylesSetting-952ff564.js +338 -0
  7. package/dist/chunks/chartEditStore-a725b558.js +4975 -0
  8. package/dist/chunks/designStore-fe92c2ba.js +6268 -0
  9. package/dist/chunks/index-00b6339d.js +588 -0
  10. package/dist/chunks/index-0472b3a5.js +173 -0
  11. package/dist/chunks/index-097ae4b0.js +436 -0
  12. package/dist/chunks/index-09e62bb4.js +284 -0
  13. package/dist/chunks/index-1cb69ab6.js +136 -0
  14. package/dist/chunks/index-32d13283.js +26 -0
  15. package/dist/chunks/index-3fd591ea.js +81 -0
  16. package/dist/chunks/index-51458edb.js +143 -0
  17. package/dist/chunks/index-54f304ef.js +89 -0
  18. package/dist/chunks/index-62a7855c.js +51 -0
  19. package/dist/chunks/index-82d00e13.js +300 -0
  20. package/dist/chunks/index-9502bd7e.js +155 -0
  21. package/dist/chunks/index-95c5f0a0.js +1664 -0
  22. package/dist/chunks/index-a410a1d3.js +250 -0
  23. package/dist/chunks/index-da8ddb02.js +13 -0
  24. package/dist/chunks/index-de0a1234.js +482 -0
  25. package/dist/chunks/index-e31a7881.js +32 -0
  26. package/dist/chunks/index-f266153a.js +1985 -0
  27. package/dist/chunks/index-f97e5ffc.js +13 -0
  28. package/dist/chunks/index-fdf7dc1e.js +88 -0
  29. package/dist/chunks/index-fec9f9f8.js +368 -0
  30. package/dist/chunks/index.vue_vue_type_script_setup_true_lang-c6159a17.js +3357 -0
  31. package/dist/chunks/lodash-c80b695e.js +3680 -0
  32. package/dist/chunks/router-106a6abc.js +57 -0
  33. package/dist/chunks/useKeyboard.hook-da88451a.js +341 -0
  34. package/dist/chunks/useSyncUpdate.hook-5517a8ad.js +40 -0
  35. package/dist/chunks/useTargetData.hook-28a7e43b.js +12 -0
  36. package/dist/chunks/wrapper-4c15ca94.js +28 -0
  37. package/dist/favicon.ico +0 -0
  38. package/dist/go-view-worker.js +23 -0
  39. package/dist/init.js +688 -0
  40. package/dist/style.css +7 -0
  41. package/dist/types/packages/index.d.ts +12 -0
  42. package/dist/types/packages/init.d.ts +6 -0
  43. package/dist/types/packages/utils/resize.d.ts +1 -0
  44. package/dist/types/src/components/GoAppProvider/index.d.ts +3 -0
  45. package/dist/types/src/components/GoIconify/index.d.ts +3 -0
  46. package/dist/types/src/components/GoLoading/index.d.ts +5 -0
  47. package/dist/types/src/components/GoReload/index.d.ts +3 -0
  48. package/dist/types/src/components/GoSkeleton/index.d.ts +3 -0
  49. package/dist/types/src/components/GoSystemInfo/index.d.ts +3 -0
  50. package/dist/types/src/components/GoSystemSet/index.d.ts +3 -0
  51. package/dist/types/src/components/GoThemeSelect/index.d.ts +3 -0
  52. package/dist/types/src/components/GoUserInfo/index.d.ts +3 -0
  53. package/dist/types/src/components/Pages/ChartGlobImage/index.d.ts +3 -0
  54. package/dist/types/src/components/Pages/ChartItemSetting/index.d.ts +11 -0
  55. package/dist/types/src/components/Pages/Flipper/index.d.ts +4 -0
  56. package/dist/types/src/components/Pages/ThemeColorSelect/index.d.ts +3 -0
  57. package/dist/types/src/components/Pages/VChartItemSetting/index.d.ts +8 -0
  58. package/dist/types/src/components/Plugins/DialogContent/index.d.ts +3 -0
  59. package/dist/types/src/components/Plugins/LoadingContent/index.d.ts +3 -0
  60. package/dist/types/src/components/Plugins/MessageContent/index.d.ts +3 -0
  61. package/dist/types/src/components/Tips/MacOsControlBtn/index.d.ts +3 -0
  62. package/dist/types/src/directives/index.d.ts +2 -0
  63. package/dist/types/src/enums/editPageEnum.d.ts +55 -0
  64. package/dist/types/src/enums/eventEnum.d.ts +32 -0
  65. package/dist/types/src/enums/fileTypeEnum.d.ts +7 -0
  66. package/dist/types/src/enums/httpEnum.d.ts +96 -0
  67. package/dist/types/src/enums/pageEnum.d.ts +34 -0
  68. package/dist/types/src/enums/pluginEnum.d.ts +6 -0
  69. package/dist/types/src/enums/storageEnum.d.ts +10 -0
  70. package/dist/types/src/enums/styleEnum.d.ts +14 -0
  71. package/dist/types/src/hooks/index.d.ts +6 -0
  72. package/dist/types/src/hooks/useCanvasInitOptions.hook.d.ts +8 -0
  73. package/dist/types/src/hooks/useChartDataPondFetch.hook.d.ts +8 -0
  74. package/dist/types/src/hooks/useChartInteract.hook.d.ts +9 -0
  75. package/dist/types/src/hooks/useLang.hook.d.ts +126 -0
  76. package/dist/types/src/hooks/useLifeHandler.hook.d.ts +10 -0
  77. package/dist/types/src/hooks/usePreviewScale.hook.d.ts +32 -0
  78. package/dist/types/src/hooks/useTheme.hook.d.ts +7 -0
  79. package/dist/types/src/layout/components/LayoutFooter/index.d.ts +3 -0
  80. package/dist/types/src/layout/components/LayoutHeader/index.d.ts +3 -0
  81. package/dist/types/src/layout/components/LayoutHeaderPro/index.d.ts +3 -0
  82. package/dist/types/src/layout/components/LayoutMain/index.d.ts +3 -0
  83. package/dist/types/src/layout/components/LayoutTransitionMain/index.d.ts +3 -0
  84. package/dist/types/src/main.d.ts +1 -0
  85. package/dist/types/src/packages/chartConfiguration/echarts/axis.d.ts +24 -0
  86. package/dist/types/src/packages/chartConfiguration/echarts/index.d.ts +4 -0
  87. package/dist/types/src/packages/chartConfiguration/echarts/label.d.ts +10 -0
  88. package/dist/types/src/packages/chartConfiguration/echarts/legend.d.ts +18 -0
  89. package/dist/types/src/packages/chartConfiguration/echarts/line.d.ts +8 -0
  90. package/dist/types/src/packages/chartConfiguration/vcharts/index.d.ts +3 -0
  91. package/dist/types/src/packages/chartConfiguration/vcharts/label.d.ts +14 -0
  92. package/dist/types/src/packages/chartConfiguration/vcharts/legends.d.ts +27 -0
  93. package/dist/types/src/packages/chartConfiguration/vcharts/style.d.ts +18 -0
  94. package/dist/types/src/packages/components/Charts/Bars/BarCommon/config.d.ts +63 -0
  95. package/dist/types/src/packages/components/Charts/Bars/BarCommon/index.d.ts +3 -0
  96. package/dist/types/src/packages/components/Charts/Bars/index.d.ts +2 -0
  97. package/dist/types/src/packages/components/Charts/index.d.ts +8 -0
  98. package/dist/types/src/packages/components/Photos/Private/index.d.ts +17 -0
  99. package/dist/types/src/packages/components/Photos/Share/index.d.ts +14 -0
  100. package/dist/types/src/packages/components/Photos/index.d.ts +9 -0
  101. package/dist/types/src/packages/index.d.ts +214 -0
  102. package/dist/types/src/packages/public/index.d.ts +2 -0
  103. package/dist/types/src/packages/public/publicConfig.d.ts +81 -0
  104. package/dist/types/src/packages/public/vChart.d.ts +14 -0
  105. package/dist/types/src/plugins/customComponents.d.ts +7 -0
  106. package/dist/types/src/plugins/directives.d.ts +7 -0
  107. package/dist/types/src/plugins/icon.d.ts +111 -0
  108. package/dist/types/src/plugins/index.d.ts +5 -0
  109. package/dist/types/src/plugins/initFunction.d.ts +4 -0
  110. package/dist/types/src/plugins/naive.d.ts +3 -0
  111. package/dist/types/src/router/base.d.ts +7 -0
  112. package/dist/types/src/router/constant.d.ts +5 -0
  113. package/dist/types/src/router/index.d.ts +6 -0
  114. package/dist/types/src/router/modules/chart.route.d.ts +4 -0
  115. package/dist/types/src/router/modules/index.d.ts +5 -0
  116. package/dist/types/src/router/modules/preview.route.d.ts +4 -0
  117. package/dist/types/src/router/router-guards.d.ts +3 -0
  118. package/dist/types/src/router/types.d.ts +26 -0
  119. package/dist/types/src/settings/animations/index.d.ts +7 -0
  120. package/dist/types/src/settings/chartThemes/index.d.ts +195 -0
  121. package/dist/types/src/settings/designSetting.d.ts +33 -0
  122. package/dist/types/src/settings/pathConst.d.ts +3 -0
  123. package/dist/types/src/settings/systemSetting.d.ts +11 -0
  124. package/dist/types/src/settings/vchartThemes/index.d.ts +139 -0
  125. package/dist/types/src/store/index.d.ts +5 -0
  126. package/dist/types/src/store/modules/chartEditStore/chartEditStore.d.ts +215 -0
  127. package/dist/types/src/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
  128. package/dist/types/src/store/modules/chartHistoryStore/chartHistoryStore.d.ts +79 -0
  129. package/dist/types/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
  130. package/dist/types/src/store/modules/designStore/designStore.d.ts +20 -0
  131. package/dist/types/src/store/modules/globalConfigStore/globalConfigStore.d.ts +183 -0
  132. package/dist/types/src/store/modules/langStore/langStore.d.ts +6 -0
  133. package/dist/types/src/store/modules/packagesStore/packagesStore.d.ts +10 -0
  134. package/dist/types/src/store/modules/settingStore/settingStore.d.ts +31 -0
  135. package/dist/types/src/utils/components.d.ts +13 -0
  136. package/dist/types/src/utils/file.d.ts +19 -0
  137. package/dist/types/src/utils/index.d.ts +8 -0
  138. package/dist/types/src/utils/plugin.d.ts +30 -0
  139. package/dist/types/src/utils/router.d.ts +77 -0
  140. package/dist/types/src/utils/storage.d.ts +35 -0
  141. package/dist/types/src/utils/style.d.ts +154 -0
  142. package/dist/types/src/utils/type.d.ts +8 -0
  143. package/dist/types/src/utils/utils.d.ts +128 -0
  144. package/dist/types/src/views/chart/ContentBox/index.d.ts +3 -0
  145. package/dist/types/src/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +3 -0
  146. package/dist/types/src/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +3 -0
  147. package/dist/types/src/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +3 -0
  148. package/dist/types/src/views/chart/ContentCharts/hooks/useAside.hook.d.ts +11 -0
  149. package/dist/types/src/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +10 -0
  150. package/dist/types/src/views/chart/ContentCharts/index.d.ts +3 -0
  151. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +3 -0
  152. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
  153. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +3 -0
  154. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
  155. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +3 -0
  156. package/dist/types/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +57 -0
  157. package/dist/types/src/views/chart/ContentConfigurations/index.d.ts +3 -0
  158. package/dist/types/src/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +3 -0
  159. package/dist/types/src/views/chart/ContentEdit/components/EditBottom/index.d.ts +3 -0
  160. package/dist/types/src/views/chart/ContentEdit/components/EditGroup/index.d.ts +3 -0
  161. package/dist/types/src/views/chart/ContentEdit/components/EditHistory/index.d.ts +3 -0
  162. package/dist/types/src/views/chart/ContentEdit/components/EditRange/index.d.ts +3 -0
  163. package/dist/types/src/views/chart/ContentEdit/components/EditRule/index.d.ts +3 -0
  164. package/dist/types/src/views/chart/ContentEdit/components/EditSelect/index.d.ts +3 -0
  165. package/dist/types/src/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +3 -0
  166. package/dist/types/src/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +3 -0
  167. package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +9 -0
  168. package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
  169. package/dist/types/src/views/chart/ContentEdit/components/EditTools/index.d.ts +3 -0
  170. package/dist/types/src/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
  171. package/dist/types/src/views/chart/ContentEdit/components/EditWatermark/index.d.ts +3 -0
  172. package/dist/types/src/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +13 -0
  173. package/dist/types/src/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
  174. package/dist/types/src/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +17 -0
  175. package/dist/types/src/views/chart/ContentEdit/index.d.ts +3 -0
  176. package/dist/types/src/views/chart/ContentHeader/headerLeftBtn/index.d.ts +3 -0
  177. package/dist/types/src/views/chart/ContentHeader/headerRightBtn/index.d.ts +3 -0
  178. package/dist/types/src/views/chart/ContentHeader/headerTitle/index.d.ts +3 -0
  179. package/dist/types/src/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +3 -0
  180. package/dist/types/src/views/chart/ContentLayers/components/LayersListItem/index.d.ts +3 -0
  181. package/dist/types/src/views/chart/ContentLayers/components/LayersStatus/index.d.ts +3 -0
  182. package/dist/types/src/views/chart/ContentLayers/enums.d.ts +0 -0
  183. package/dist/types/src/views/chart/ContentLayers/index.d.ts +3 -0
  184. package/dist/types/src/views/chart/ContentLoad/index.d.ts +3 -0
  185. package/dist/types/src/views/chart/hooks/useContextMenu.hook.d.ts +12 -0
  186. package/dist/types/src/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
  187. package/dist/types/src/views/chart/hooks/useSync.hook.d.ts +5 -0
  188. package/dist/types/src/views/preview/components/PreviewRenderGroup/index.d.ts +3 -0
  189. package/dist/types/src/views/preview/components/PreviewRenderList/index.d.ts +3 -0
  190. package/dist/types/src/views/preview/hooks/useComInstall.hook.d.ts +5 -0
  191. package/dist/types/src/views/preview/hooks/useScale.hook.d.ts +17 -0
  192. package/dist/types/src/views/preview/hooks/useStore.hook.d.ts +3 -0
  193. package/dist/types/src/views/preview/utils/drag.d.ts +1 -0
  194. package/dist/types/src/views/preview/utils/index.d.ts +4 -0
  195. package/dist/types/src/views/preview/utils/keyboard.d.ts +1 -0
  196. package/dist/types/src/views/preview/utils/storage.d.ts +6 -0
  197. package/dist/types/src/views/preview/utils/style.d.ts +26 -0
  198. package/package.json +99 -0
@@ -0,0 +1,24 @@
1
+ export declare const axisConfig: {
2
+ xposition: {
3
+ label: string;
4
+ value: string;
5
+ }[];
6
+ yposition: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ splitLint: {
11
+ lineStyle: {
12
+ type: {
13
+ label: string;
14
+ value: string;
15
+ }[];
16
+ };
17
+ };
18
+ visualMap: {
19
+ orient: {
20
+ label: string;
21
+ value: string;
22
+ }[];
23
+ };
24
+ };
@@ -0,0 +1,4 @@
1
+ export * from './axis';
2
+ export * from './line';
3
+ export * from './label';
4
+ export * from './legend';
@@ -0,0 +1,10 @@
1
+ export declare const labelConfig: {
2
+ position: {
3
+ label: string;
4
+ value: string;
5
+ }[];
6
+ fontWeight: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ };
@@ -0,0 +1,18 @@
1
+ export declare const legendConfig: {
2
+ lengendX: {
3
+ label: string;
4
+ value: string;
5
+ }[];
6
+ lengendY: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ orient: {
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ shape: {
15
+ label: string;
16
+ value: string;
17
+ }[];
18
+ };
@@ -0,0 +1,8 @@
1
+ export declare const lineConf: {
2
+ lineStyle: {
3
+ type: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ };
8
+ };
@@ -0,0 +1,3 @@
1
+ export * from './legends';
2
+ export * from './label';
3
+ export * from './style';
@@ -0,0 +1,14 @@
1
+ export declare const labelConfig: {
2
+ position: {
3
+ label: string;
4
+ value: string;
5
+ }[];
6
+ barPosition: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ linePosition: {
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ };
@@ -0,0 +1,27 @@
1
+ export declare const legendsConfig: {
2
+ orient: {
3
+ label: string;
4
+ value: string;
5
+ }[];
6
+ position: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ align: {
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ };
15
+ export declare const fontStyleConfig: {
16
+ fontWeight: ({
17
+ label: string;
18
+ value: number;
19
+ } | {
20
+ label: string;
21
+ value: string;
22
+ })[];
23
+ fontFamily: {
24
+ label: string;
25
+ value: string;
26
+ }[];
27
+ };
@@ -0,0 +1,18 @@
1
+ export declare const styleConfig: {
2
+ texture: {
3
+ label: string;
4
+ value: string;
5
+ }[];
6
+ curveType: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ lineCap: {
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ symbolType: {
15
+ label: string;
16
+ value: string;
17
+ }[];
18
+ };
@@ -0,0 +1,63 @@
1
+ import { PublicConfigClass } from '../../../../public';
2
+ import { CreateComponentType } from '../../../../index.d';
3
+
4
+ export declare const includes: string[];
5
+ export declare const seriesItem: {
6
+ type: string;
7
+ barWidth: number;
8
+ label: {
9
+ show: boolean;
10
+ position: string;
11
+ color: string;
12
+ fontSize: number;
13
+ };
14
+ itemStyle: {
15
+ color: null;
16
+ borderRadius: number;
17
+ };
18
+ };
19
+ export declare const option: {
20
+ tooltip: {
21
+ show: boolean;
22
+ trigger: string;
23
+ axisPointer: {
24
+ show: boolean;
25
+ type: string;
26
+ };
27
+ };
28
+ xAxis: {
29
+ show: boolean;
30
+ type: string;
31
+ };
32
+ yAxis: {
33
+ show: boolean;
34
+ type: string;
35
+ };
36
+ dataset: {
37
+ dimensions: string[];
38
+ source: {
39
+ product: string;
40
+ data1: number;
41
+ data2: number;
42
+ }[];
43
+ };
44
+ series: {
45
+ type: string;
46
+ barWidth: number;
47
+ label: {
48
+ show: boolean;
49
+ position: string;
50
+ color: string;
51
+ fontSize: number;
52
+ };
53
+ itemStyle: {
54
+ color: null;
55
+ borderRadius: number;
56
+ };
57
+ }[];
58
+ };
59
+ export default class Config extends PublicConfigClass implements CreateComponentType {
60
+ key: string;
61
+ chartConfig: import('../../../../index.d').ConfigType;
62
+ option: any;
63
+ }
@@ -0,0 +1,3 @@
1
+ import { ConfigType } from '../../../../index.d';
2
+
3
+ export declare const BarCommonConfig: ConfigType;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('../../..').ConfigType[];
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
2
+ export enum ChatCategoryEnum {
3
+ BAR = 'Bars'
4
+ }
5
+
6
+ export enum ChatCategoryEnumName {
7
+ BAR = '柱状图'
8
+ }
@@ -0,0 +1,17 @@
1
+ import { ChartFrameEnum, ConfigType, PackagesCategoryEnum } from '../../../index.d';
2
+ import { ChatCategoryEnum, ChatCategoryEnumName } from '../index.d';
3
+
4
+ declare const _default: (ConfigType | {
5
+ category: ChatCategoryEnum;
6
+ categoryName: ChatCategoryEnumName;
7
+ package: PackagesCategoryEnum;
8
+ chartFrame: ChartFrameEnum;
9
+ title: string;
10
+ image: string;
11
+ redirectComponent: string;
12
+ disabled: boolean;
13
+ configEvents: {
14
+ addHandle: (photoConfig: ConfigType) => void;
15
+ };
16
+ })[];
17
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { ChartFrameEnum, PackagesCategoryEnum } from '../../../index.d';
2
+ import { ChatCategoryEnum, ChatCategoryEnumName } from '../index.d';
3
+
4
+ declare const photoConfigList: {
5
+ category: ChatCategoryEnum;
6
+ categoryName: ChatCategoryEnumName;
7
+ package: PackagesCategoryEnum;
8
+ chartFrame: ChartFrameEnum;
9
+ image: string;
10
+ dataset: string;
11
+ title: string;
12
+ redirectComponent: string;
13
+ }[];
14
+ export default photoConfigList;
@@ -0,0 +1,9 @@
1
+ export enum ChatCategoryEnum {
2
+ PRIVATE = 'Private',
3
+ SHARE = 'Share'
4
+ }
5
+
6
+ export enum ChatCategoryEnumName {
7
+ PRIVATE = '私有图',
8
+ SHARE = '共享图'
9
+ }
@@ -0,0 +1,214 @@
1
+ import { BaseEvent, EventLife, InteractEvents, InteractEventOn, InteractActionsType } from '../enums/eventEnum';
2
+ import { GlobalThemeJsonType } from '../settings/chartThemes/index';
3
+ import { RequestConfigType } from '../store/modules/chartEditStore/chartEditStore.d';
4
+ import { ChatCategoryEnum, ChatCategoryEnumName } from './components/VChart/index.d';
5
+
6
+
7
+ export enum ChartFrameEnum {
8
+ // 支持 dataset 的 echarts 框架
9
+ ECHARTS = 'echarts',
10
+ // VChart 框架
11
+ VCHART = 'VChart',
12
+ // UI 组件框架
13
+ NAIVE_UI = 'naiveUI',
14
+ // 自定义带数据组件
15
+ COMMON = 'common',
16
+ // 无数据变更
17
+ STATIC = 'static'
18
+ }
19
+
20
+ // 组件配置
21
+ export type ConfigType = {
22
+ // 组件 key
23
+ key: string
24
+ // 画布组件 key
25
+ chartKey: string
26
+ // 右侧设置面板组件 key
27
+ conKey: string
28
+ // 标题
29
+ title: string
30
+ // 分类
31
+ category: string
32
+ // 分类名称
33
+ categoryName: string
34
+ // 所属包
35
+ package: PackagesCategoryEnum
36
+ // 归类
37
+ chartFrame?: ChartFrameEnum
38
+ // 预览图
39
+ image: string
40
+ // 从指定路径创建创建该组件
41
+ redirectComponent?: string
42
+ // 组件预设的 dataset 值(图片/图标)
43
+ dataset?: any
44
+ // 禁用 拖拽或双击生成组件
45
+ disabled?: boolean
46
+ // 图标
47
+ icon?: string
48
+ // 事件
49
+ configEvents?: { [T: string]: Function }
50
+ }
51
+
52
+ // 数据请求
53
+ interface requestConfig {
54
+ request: RequestConfigType
55
+ }
56
+
57
+ // Echarts 数据类型
58
+ interface EchartsDataType {
59
+ dimensions: string[]
60
+ source: any[]
61
+ }
62
+
63
+ // 组件状态
64
+ export interface StatusType {
65
+ lock: boolean
66
+ hide: boolean
67
+ }
68
+
69
+ // 滤镜/变换枚举
70
+ export enum FilterEnum {
71
+ // 是否启用
72
+ FILTERS_SHOW = 'filterShow',
73
+
74
+ // 透明度
75
+ OPACITY = 'opacity',
76
+ // 饱和度
77
+ SATURATE = 'saturate',
78
+ // 对比度
79
+ CONTRAST = 'contrast',
80
+ // 色相
81
+ HUE_ROTATE = 'hueRotate',
82
+ // 亮度
83
+ BRIGHTNESS = 'brightness',
84
+
85
+ // 旋转
86
+ ROTATE_Z = 'rotateZ',
87
+ ROTATE_X = 'rotateX',
88
+ ROTATE_Y = 'rotateY',
89
+
90
+ // 倾斜
91
+ SKEW_X = 'skewX',
92
+ SKEW_Y = 'skewY',
93
+
94
+ // 混合模式
95
+ BLEND_MODE = 'blendMode'
96
+ }
97
+
98
+ export const BlendModeEnumList = [
99
+ { label: '正常', value: 'normal' },
100
+ { label: '正片叠底', value: 'multiply' },
101
+ { label: '叠加', value: 'overlay' },
102
+ { label: '滤色', value: 'screen' },
103
+ { label: '变暗', value: 'darken' },
104
+ { label: '变亮', value: 'lighten' },
105
+ { label: '颜色减淡', value: 'color-dodge' },
106
+ { label: '颜色加深', value: 'color-burn;' },
107
+ { label: '强光', value: 'hard-light' },
108
+ { label: '柔光', value: 'soft-light' },
109
+ { label: '差值', value: 'difference' },
110
+ { label: '排除', value: 'exclusion' },
111
+ { label: '色相', value: 'hue' },
112
+ { label: '饱和度', value: 'saturation' },
113
+ { label: '颜色', value: 'color' },
114
+ { label: '亮度', value: 'luminosity' }
115
+ ]
116
+
117
+ // 组件实例类
118
+ export interface PublicConfigType {
119
+ id: string
120
+ isGroup: boolean
121
+ attr: { x: number; y: number; w: number; h: number; zIndex: number; offsetX: number; offsetY: number }
122
+ styles: {
123
+ [FilterEnum.FILTERS_SHOW]: boolean
124
+ [FilterEnum.OPACITY]: number
125
+ [FilterEnum.SATURATE]: number
126
+ [FilterEnum.CONTRAST]: number
127
+ [FilterEnum.HUE_ROTATE]: number
128
+ [FilterEnum.BRIGHTNESS]: number
129
+
130
+ [FilterEnum.ROTATE_Z]: number
131
+ [FilterEnum.ROTATE_X]: number
132
+ [FilterEnum.ROTATE_Y]: number
133
+
134
+ [FilterEnum.SKEW_X]: number
135
+ [FilterEnum.SKEW_Y]: number
136
+ [FilterEnum.BLEND_MODE]: string
137
+ // 动画
138
+ animations: string[]
139
+ }
140
+ preview?: {
141
+ // 预览超出隐藏
142
+ overFlowHidden?: boolean
143
+ }
144
+ filter?: string
145
+ status: StatusType
146
+ interactActions?: InteractActionsType[]
147
+ events: {
148
+ baseEvent: {
149
+ [K in BaseEvent]?: string
150
+ }
151
+ advancedEvents: {
152
+ [K in EventLife]?: string
153
+ }
154
+ interactEvents: {
155
+ [InteractEvents.INTERACT_ON]: InteractEventOn | undefined
156
+ [InteractEvents.INTERACT_COMPONENT_ID]: string | undefined
157
+ [InteractEvents.INTERACT_FN]: { [name: string]: string }
158
+ }[]
159
+ }
160
+ }
161
+
162
+ export interface CreateComponentType extends PublicConfigType, requestConfig {
163
+ key: string
164
+ chartConfig: ConfigType
165
+ option: GlobalThemeJsonType
166
+ groupList?: Array<CreateComponentType>
167
+ }
168
+
169
+ // 组件成组实例类
170
+ export interface CreateComponentGroupType extends CreateComponentType {
171
+ groupList: Array<CreateComponentType>
172
+ }
173
+
174
+ // 获取组件实例类中某个key对应value类型的方法
175
+ export type PickCreateComponentType<T extends keyof CreateComponentType> = Pick<CreateComponentType, T>[T]
176
+
177
+ // 包分类枚举
178
+ export enum PackagesCategoryEnum {
179
+ CHARTS = 'Charts',
180
+ // VCHART = 'VChart',
181
+ // TABLES = 'Tables',
182
+ // INFORMATIONS = 'Informations',
183
+ PHOTOS = 'Photos',
184
+ // ICONS = 'Icons',
185
+ // DECORATES = 'Decorates'
186
+ }
187
+
188
+ // 包分类名称
189
+ export enum PackagesCategoryName {
190
+ CHARTS = '图表',
191
+ // VCHART = 'VChart',
192
+ // TABLES = '列表',
193
+ // INFORMATIONS = '信息',
194
+ PHOTOS = '图片',
195
+ // ICONS = '图标',
196
+ // DECORATES = '小组件'
197
+ }
198
+
199
+ // 获取组件
200
+ export enum FetchComFlagType {
201
+ VIEW,
202
+ CONFIG
203
+ }
204
+
205
+ // 图表包类型
206
+ export type PackagesType = {
207
+ [PackagesCategoryEnum.CHARTS]: ConfigType[],
208
+ // [PackagesCategoryEnum.VCHART]: ConfigType[]
209
+ // [PackagesCategoryEnum.INFORMATIONS]: ConfigType[]
210
+ // [PackagesCategoryEnum.TABLES]: ConfigType[]
211
+ [PackagesCategoryEnum.PHOTOS]: ConfigType[]
212
+ // [PackagesCategoryEnum.ICONS]: ConfigType[]
213
+ // [PackagesCategoryEnum.DECORATES]: ConfigType[]
214
+ }
@@ -0,0 +1,2 @@
1
+ export * from './chart';
2
+ export * from './publicConfig';
@@ -0,0 +1,81 @@
1
+ import { RequestConfigType } from '../../store/modules/chartEditStore/chartEditStore.d';
2
+ import { ChartFrameEnum, PublicConfigType, CreateComponentType, CreateComponentGroupType } from '../index.d';
3
+
4
+ export declare const requestConfig: RequestConfigType;
5
+ export declare class PublicConfigClass implements PublicConfigType {
6
+ id: string;
7
+ isGroup: boolean;
8
+ attr: {
9
+ zIndex: number;
10
+ x: number;
11
+ y: number;
12
+ w: number;
13
+ h: number;
14
+ offsetX: number;
15
+ offsetY: number;
16
+ };
17
+ styles: {
18
+ filterShow: boolean;
19
+ hueRotate: number;
20
+ saturate: number;
21
+ contrast: number;
22
+ brightness: number;
23
+ opacity: number;
24
+ rotateZ: number;
25
+ rotateX: number;
26
+ rotateY: number;
27
+ skewX: number;
28
+ skewY: number;
29
+ blendMode: string;
30
+ animations: never[];
31
+ };
32
+ preview: {
33
+ overFlowHidden: boolean;
34
+ };
35
+ status: {
36
+ lock: boolean;
37
+ hide: boolean;
38
+ };
39
+ request: RequestConfigType;
40
+ filter: undefined;
41
+ events: {
42
+ baseEvent: {
43
+ click: undefined;
44
+ dblclick: undefined;
45
+ mouseenter: undefined;
46
+ mouseleave: undefined;
47
+ };
48
+ advancedEvents: {
49
+ vnodeMounted: undefined;
50
+ vnodeBeforeMount: undefined;
51
+ };
52
+ interactEvents: never[];
53
+ };
54
+ }
55
+ export declare class PublicGroupConfigClass extends PublicConfigClass implements CreateComponentGroupType {
56
+ isGroup: boolean;
57
+ chartConfig: {
58
+ key: string;
59
+ chartKey: string;
60
+ conKey: string;
61
+ category: string;
62
+ categoryName: string;
63
+ package: string;
64
+ chartFrame: ChartFrameEnum;
65
+ title: string;
66
+ image: string;
67
+ };
68
+ groupList: Array<CreateComponentType>;
69
+ key: string;
70
+ option: {};
71
+ id: string;
72
+ attr: {
73
+ w: number;
74
+ h: number;
75
+ x: number;
76
+ y: number;
77
+ offsetX: number;
78
+ offsetY: number;
79
+ zIndex: number;
80
+ };
81
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * * 合并 color 和全局配置项
3
+ * @param option 配置
4
+ * @param themeSetting 设置
5
+ * @param excludes 排除元素
6
+ * @returns object
7
+ */
8
+ export declare const mergeTheme: <T, U>(option: T, themeSetting: U, includes: string[]) => Partial<U> & T;
9
+ /**
10
+ * * vCharts option 统一前置处理
11
+ * @param option
12
+ * @return option
13
+ */
14
+ export declare const vChartOptionPrefixHandle: (option: any, includes?: string[]) => any;
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+
3
+ /**
4
+ * 全局注册自定义组件
5
+ * @param app
6
+ */
7
+ export declare function setupCustomComponents(app: App): void;
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+
3
+ /**
4
+ * 注册全局自定义指令
5
+ * @param app
6
+ */
7
+ export declare function setupDirectives(app: App): void;