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,3 @@
1
+ import { default as EditGroup } from './index.vue';
2
+
3
+ export { EditGroup };
@@ -0,0 +1,3 @@
1
+ import { default as EditHistory } from './index.vue';
2
+
3
+ export { EditHistory };
@@ -0,0 +1,3 @@
1
+ import { default as EditRange } from './index.vue';
2
+
3
+ export { EditRange };
@@ -0,0 +1,3 @@
1
+ import { default as EditRule } from './index.vue';
2
+
3
+ export { EditRule };
@@ -0,0 +1,3 @@
1
+ import { default as EditSelect } from './index.vue';
2
+
3
+ export { EditSelect };
@@ -0,0 +1,3 @@
1
+ import { default as EditShapeBox } from './index.vue';
2
+
3
+ export { EditShapeBox };
@@ -0,0 +1,3 @@
1
+ import { default as EditShortcutKey } from './index.vue';
2
+
3
+ export { EditShortcutKey };
@@ -0,0 +1,9 @@
1
+ import { UploadCustomRequestOptions } from 'naive-ui';
2
+
3
+ export declare const useFile: () => {
4
+ importUploadFileListRef: import('vue').Ref<any, any>;
5
+ importBeforeUpload: ({ file }: {
6
+ file: any;
7
+ }) => boolean;
8
+ importCustomRequest: (options: UploadCustomRequestOptions) => void;
9
+ };
@@ -0,0 +1,3 @@
1
+ export declare const syncData: () => void;
2
+ export declare const syncDataToPreview: () => void;
3
+ export declare const useSyncUpdate: () => void;
@@ -0,0 +1,3 @@
1
+ import { default as EditTools } from './index.vue';
2
+
3
+ export { EditTools };
@@ -0,0 +1 @@
1
+ export declare const exportHandle: () => void;
@@ -0,0 +1,3 @@
1
+ import { default as EditWatermark } from './index.vue';
2
+
3
+ export { EditWatermark };
@@ -0,0 +1,13 @@
1
+ import { CreateComponentType, CreateComponentGroupType, PickCreateComponentType } from '../../../../packages/index.d';
2
+
3
+ export declare const dragHandle: (e: DragEvent) => Promise<void>;
4
+ export declare const dragoverHandle: (e: DragEvent) => void;
5
+ export declare const mousedownHandleUnStop: (e: MouseEvent, item?: CreateComponentType | CreateComponentGroupType | undefined) => void;
6
+ export declare const mousedownBoxSelect: (e: MouseEvent, item?: CreateComponentType | CreateComponentGroupType | undefined) => void;
7
+ export declare const useMouseHandle: () => {
8
+ mouseClickHandle: (e: MouseEvent, item: CreateComponentType | CreateComponentGroupType) => void;
9
+ mousedownHandle: (e: MouseEvent, item: CreateComponentType | CreateComponentGroupType) => void;
10
+ mouseenterHandle: (e: MouseEvent, item: CreateComponentType | CreateComponentGroupType) => void;
11
+ mouseleaveHandle: (e: MouseEvent, item: CreateComponentType | CreateComponentGroupType) => void;
12
+ };
13
+ export declare const useMousePointHandle: (e: MouseEvent, point: string, attr: PickCreateComponentType<'attr'>) => void;
@@ -0,0 +1 @@
1
+ export declare const useLayout: (fn: () => Promise<void>) => void;
@@ -0,0 +1,17 @@
1
+ import { PickCreateComponentType } from '../../../../packages/index.d';
2
+
3
+ declare type AttrType = PickCreateComponentType<'attr'>;
4
+ export declare const useComponentStyle: (attr: AttrType, index: number) => {};
5
+ export declare const useSizeStyle: (attr: AttrType, scale?: number | undefined) => {
6
+ width?: undefined;
7
+ height?: undefined;
8
+ } | {
9
+ width: string;
10
+ height: string;
11
+ };
12
+ export declare const usePointStyle: (point: string, index: number, attr: PickCreateComponentType<'attr'>, cursorResize: string[]) => {
13
+ left: string;
14
+ top: string;
15
+ cursor: string;
16
+ };
17
+ export {};
@@ -0,0 +1,3 @@
1
+ import { default as ContentEdit } from './index.vue';
2
+
3
+ export { ContentEdit };
@@ -0,0 +1,3 @@
1
+ import { default as HeaderLeftBtn } from './index.vue';
2
+
3
+ export { HeaderLeftBtn };
@@ -0,0 +1,3 @@
1
+ import { default as HeaderRightBtn } from './index.vue';
2
+
3
+ export { HeaderRightBtn };
@@ -0,0 +1,3 @@
1
+ import { default as HeaderTitle } from './index.vue';
2
+
3
+ export { HeaderTitle };
@@ -0,0 +1,3 @@
1
+ import { default as LayersGroupListItem } from './index.vue';
2
+
3
+ export { LayersGroupListItem };
@@ -0,0 +1,3 @@
1
+ import { default as LayersListItem } from './index.vue';
2
+
3
+ export { LayersListItem };
@@ -0,0 +1,3 @@
1
+ import { default as LayersStatus } from './index.vue';
2
+
3
+ export { LayersStatus };
@@ -0,0 +1,3 @@
1
+ import { default as ContentLayers } from './index.vue';
2
+
3
+ export { ContentLayers };
@@ -0,0 +1,3 @@
1
+ import { default as ContentLoad } from './index.vue';
2
+
3
+ export { ContentLoad };
@@ -0,0 +1,12 @@
1
+ import { MenuEnum } from '../../../enums/editPageEnum';
2
+
3
+
4
+ export interface MenuOptionsItemType {
5
+ type?: string
6
+ label?: string
7
+ key: MenuEnum | string
8
+ icon?: Function
9
+ fnHandle?: Function
10
+ disabled?: boolean
11
+ hidden?: boolean
12
+ }
@@ -0,0 +1,38 @@
1
+ export declare const winKeyboardValue: {
2
+ up: string;
3
+ right: string;
4
+ down: string;
5
+ left: string;
6
+ copy: string;
7
+ cut: string;
8
+ parse: string;
9
+ delete: string;
10
+ back: string;
11
+ forward: string;
12
+ group: string;
13
+ unGroup: string;
14
+ lock: string;
15
+ unLock: string;
16
+ hide: string;
17
+ show: string;
18
+ };
19
+ export declare const macKeyboardValue: {
20
+ up: string;
21
+ right: string;
22
+ down: string;
23
+ left: string;
24
+ copy: string;
25
+ cut: string;
26
+ parse: string;
27
+ delete: string;
28
+ back: string;
29
+ forward: string;
30
+ group: string;
31
+ unGroup: string;
32
+ lock: string;
33
+ unLock: string;
34
+ hide: string;
35
+ show: string;
36
+ };
37
+ export declare const useAddKeyboard: () => void;
38
+ export declare const useRemoveKeyboard: () => void;
@@ -0,0 +1,5 @@
1
+ import { ChartEditStorage } from '../../../store/modules/chartEditStore/chartEditStore.d';
2
+
3
+ export declare const useSync: () => {
4
+ updateComponent: (projectData: ChartEditStorage, isReplace?: boolean, changeId?: boolean) => Promise<void>;
5
+ };
@@ -0,0 +1,3 @@
1
+ import { default as PreviewRenderGroup } from './index.vue';
2
+
3
+ export { PreviewRenderGroup };
@@ -0,0 +1,3 @@
1
+ import { default as PreviewRenderList } from './index.vue';
2
+
3
+ export { PreviewRenderList };
@@ -0,0 +1,5 @@
1
+ import { ChartEditStorageType } from '../index.d';
2
+
3
+ export declare const useComInstall: (localStorageInfo: ChartEditStorageType) => {
4
+ show: import('vue').Ref<boolean, boolean>;
5
+ };
@@ -0,0 +1,17 @@
1
+ import { ChartEditStorageType } from '../index.d';
2
+
3
+ export declare const SCALE_KEY = "scale-value";
4
+ export declare const useScale: (localStorageInfo: ChartEditStorageType) => {
5
+ entityRef: import('vue').Ref<any, any>;
6
+ previewRef: import('vue').Ref<any, any>;
7
+ scaleRef: import('vue').Ref<{
8
+ width: number;
9
+ height: number;
10
+ }, {
11
+ width: number;
12
+ height: number;
13
+ } | {
14
+ width: number;
15
+ height: number;
16
+ }>;
17
+ };
@@ -0,0 +1,3 @@
1
+ import { ChartEditStorageType } from '../index.d';
2
+
3
+ export declare const useStore: (localStorageInfo: ChartEditStorageType) => void;
@@ -0,0 +1 @@
1
+ export declare const dragCanvas: (e: MouseEvent) => void;
@@ -0,0 +1,4 @@
1
+ export * from './style';
2
+ export * from './storage';
3
+ export * from './keyboard';
4
+ export * from './drag';
@@ -0,0 +1 @@
1
+ export declare const keyRecordHandle: () => void;
@@ -0,0 +1,6 @@
1
+ import { ChartEditStorage } from '../../../store/modules/chartEditStore/chartEditStore.d';
2
+
3
+ export interface ChartEditStorageType extends ChartEditStorage {
4
+ id: string;
5
+ }
6
+ export declare const getSessionStorageInfo: () => ChartEditStorageType | undefined;
@@ -0,0 +1,26 @@
1
+ import { PickCreateComponentType } from '../../../packages/index.d';
2
+ import { EditCanvasConfigType } from '../../../store/modules/chartEditStore/chartEditStore.d';
3
+
4
+ declare type AttrType = PickCreateComponentType<'attr'>;
5
+ declare type StatusType = PickCreateComponentType<'status'>;
6
+ declare type PreviewConfig = PickCreateComponentType<'preview'>;
7
+ export declare const getComponentAttrStyle: (attr: AttrType, index: number) => {
8
+ zIndex: number;
9
+ left: string;
10
+ top: string;
11
+ };
12
+ export declare const getSizeStyle: (attr: AttrType, scale?: number | undefined) => {
13
+ width: string;
14
+ height: string;
15
+ };
16
+ export declare const getStatusStyle: (attr: StatusType) => {
17
+ display: string;
18
+ };
19
+ export declare const getPreviewConfigStyle: (previewConfig: PreviewConfig) => Partial<CSSStyleDeclaration>;
20
+ export declare const getEditCanvasConfigStyle: (canvas: EditCanvasConfigType) => {
21
+ background: string | undefined;
22
+ position: "relative";
23
+ width: string;
24
+ height: string;
25
+ };
26
+ export {};
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "go-view-worker",
3
+ "version": "0.0.1",
4
+ "author": "TroyFu",
5
+ "description": "go-view-worker base on go-view, quick to build drag and drop app",
6
+ "main": "dist/go-view-worker.js",
7
+ "module": "dist/go-view-worker.js",
8
+ "types": "dist/types/packages/index.d.ts",
9
+ "type": "module",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/MvM-OLO/go-view-worker.git"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/go-view-worker.js",
17
+ "types": "./dist/types/packages/index.d.ts"
18
+ },
19
+ "./init": {
20
+ "import": "./dist/init.js",
21
+ "types": "./dist/types/packages/init.d.ts"
22
+ },
23
+ "./dist/*": "./dist/*"
24
+ },
25
+ "files": [
26
+ "dist"
27
+ ],
28
+ "engines": {
29
+ "node": ">=16.14"
30
+ },
31
+ "scripts": {
32
+ "dev": "vite --host",
33
+ "build": "vite build",
34
+ "build:lib": "vite build --config vite.lib.config.ts",
35
+ "preview": "vite preview",
36
+ "new": "plop --plopfile ./plop/plopfile.js",
37
+ "lint": "eslint --ext .js,.jsx,.ts,.tsx,.vue src",
38
+ "lint:fix": "eslint --ext .js,.jsx,.ts,.tsx,.vue src --fix"
39
+ },
40
+ "dependencies": {
41
+ "@vicons/ionicons5": "~0.11.0",
42
+ "animate.css": "^4.1.1",
43
+ "color": "^4.2.3",
44
+ "dayjs": "^1.10.0",
45
+ "dom-helpers": "^5.2.1",
46
+ "html2canvas": "^1.0.0",
47
+ "iconify-icon": "^1.0.8",
48
+ "keymaster": "^1.6.0",
49
+ "lodash": "^4.17.0",
50
+ "mitt": "^3.0.0",
51
+ "postcss-pxtorem": "^6.1.0",
52
+ "screenfull": "^6.0.0",
53
+ "vue-draggable-plus": "^0.6.1",
54
+ "vue3-lazyload": "^0.2.5-beta",
55
+ "vue3-sketch-ruler": "^1.3.3"
56
+ },
57
+ "devDependencies": {
58
+ "@commitlint/cli": "^17.0.2",
59
+ "@commitlint/config-conventional": "^17.0.2",
60
+ "@iconify/json": "^2.2.158",
61
+ "@types/color": "^3.0.3",
62
+ "@types/keymaster": "^1.6.30",
63
+ "@types/lodash": "^4.14.184",
64
+ "@types/node": "^16.11.26",
65
+ "@typescript-eslint/eslint-plugin": "^5.18.0",
66
+ "@typescript-eslint/parser": "^5.18.0",
67
+ "@vicons/carbon": "^0.12.0",
68
+ "@vitejs/plugin-vue": "^4.2.3",
69
+ "@vitejs/plugin-vue-jsx": "^3.0.1",
70
+ "@vue/compiler-sfc": "^3.2.31",
71
+ "@vueuse/core": "^7.7.1",
72
+ "axios": ">=0.27.0 <2.0.0",
73
+ "commitlint": "^17.0.2",
74
+ "default-passive-events": "^2.0.0",
75
+ "eslint": "^8.12.0",
76
+ "eslint-config-prettier": "^8.5.0",
77
+ "eslint-plugin-import": "^2.26.0",
78
+ "eslint-plugin-prettier": "^4.0.0",
79
+ "eslint-plugin-vue": "^8.5.0",
80
+ "husky": "^8.0.1",
81
+ "mockjs": "^1.1.0",
82
+ "naive-ui": "2.40.3",
83
+ "pinia": "^2.0.13",
84
+ "plop": "^3.0.5",
85
+ "prettier": "^2.6.2",
86
+ "sass": "1.49.11",
87
+ "sass-loader": "^12.6.0",
88
+ "typescript": "4.6.3",
89
+ "vite": "4.3.6",
90
+ "vite-plugin-compression": "^0.5.1",
91
+ "vite-plugin-dts": "^4.5.4",
92
+ "vite-plugin-importer": "^0.2.5",
93
+ "vite-plugin-mock": "^2.9.6",
94
+ "vue": "^3.5.12",
95
+ "vue-echarts": "^6.0.2",
96
+ "vue-router": "4.0.12",
97
+ "vue-tsc": "^0.28.10"
98
+ }
99
+ }