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,10 @@
1
+ import { PackagesType, ConfigType } from '../../../packages/index.d';
2
+
3
+
4
+ export { ConfigType }
5
+
6
+ export { PackagesType }
7
+ export interface PackagesStoreType {
8
+ packagesList: PackagesType,
9
+ newPhoto?: ConfigType
10
+ }
@@ -0,0 +1,31 @@
1
+ export enum ToolsStatusEnum {
2
+ DOCK = 'dock',
3
+ ASIDE = 'aside',
4
+ }
5
+
6
+ export enum SettingStoreEnums {
7
+ // 拖拽页面左侧表单分类只有一项的时候是否隐藏
8
+ HIDE_PACKAGE_ONE_CATEGORY = 'hidePackageOneCategory',
9
+ // 切换语言是否进行路由刷新
10
+ CHANGE_LANG_RELOAD = 'changeLangReload',
11
+ // 侧边栏折叠是否隐藏全部
12
+ ASIDE_ALL_COLLAPSED = 'asideAllCollapsed',
13
+ // 图表移动时按方向键移动的距离
14
+ CHART_MOVE_DISTANCE = 'chartMoveDistance',
15
+ // 图表拖拽时的吸附距离(px)
16
+ CHART_ALIGN_RANGE = 'chartAlignRange',
17
+ // 图表工具栏状态(侧边工具状态)
18
+ CHART_TOOLS_STATUS = 'chartToolsStatus',
19
+ // 图表工具栏状态隐藏
20
+ CHART_TOOLS_STATUS_HIDE = 'chartToolsStatusHide'
21
+ }
22
+
23
+ export interface SettingStoreType {
24
+ [SettingStoreEnums.HIDE_PACKAGE_ONE_CATEGORY]: boolean
25
+ [SettingStoreEnums.CHANGE_LANG_RELOAD]: boolean
26
+ [SettingStoreEnums.ASIDE_ALL_COLLAPSED]: boolean
27
+ [SettingStoreEnums.CHART_MOVE_DISTANCE]: number
28
+ [SettingStoreEnums.CHART_ALIGN_RANGE]: number
29
+ [SettingStoreEnums.CHART_TOOLS_STATUS]: ToolsStatusEnum
30
+ [SettingStoreEnums.CHART_TOOLS_STATUS_HIDE]: boolean
31
+ }
@@ -0,0 +1,13 @@
1
+ import { AsyncComponentLoader } from 'vue';
2
+
3
+ /**
4
+ * * 动态注册组件
5
+ */
6
+ export declare const componentInstall: <T>(key: string, node: T) => void;
7
+ /**
8
+ * * 异步加载组件
9
+ * @param loader
10
+ * @returns
11
+ */
12
+ export declare const loadAsyncComponent: (loader: AsyncComponentLoader<any>) => any;
13
+ export declare const loadSkeletonAsyncComponent: (loader: AsyncComponentLoader<any>) => any;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * *获取上传的文件数据
3
+ * @param { File } file 文件对象
4
+ */
5
+ export declare const readFile: (file: File) => Promise<unknown>;
6
+ /**
7
+ * * 通过 a 标签下载数据
8
+ * @param url
9
+ * @param filename
10
+ * @param fileSuffix
11
+ */
12
+ export declare const downloadByA: (url: string, filename?: number, fileSuffix?: string | undefined) => void;
13
+ /**
14
+ * * 下载数据
15
+ * @param { string } content 数据内容
16
+ * @param { ?string } filename 文件名称(默认随机字符)
17
+ * @param { ?string } fileSuffix 文件名称(默认随机字符)
18
+ */
19
+ export declare const downloadTextFile: (content: string, filename?: number, fileSuffix?: string | undefined) => void;
@@ -0,0 +1,8 @@
1
+ export * from './utils';
2
+ export * from './router';
3
+ export * from './storage';
4
+ export * from './style';
5
+ export * from './plugin';
6
+ export * from './components';
7
+ export * from './type';
8
+ export * from './file';
@@ -0,0 +1,30 @@
1
+ import { DialogEnum } from '../enums/pluginEnum';
2
+
3
+ export declare const loadingStart: () => void;
4
+ export declare const loadingFinish: () => void;
5
+ export declare const loadingError: () => void;
6
+ /**
7
+ * * render 对话框
8
+ * @param { Object} params 配置参数, 详见 https://www.naiveui.com/zh-CN/light/components/dialog
9
+ * ```
10
+ * 最简易的 demo
11
+ * goDialog({
12
+ * onPositiveCallback: () => {}
13
+ * })
14
+ * ```
15
+ */
16
+ export declare const goDialog: (params: {
17
+ [T: string]: any;
18
+ type?: DialogEnum | undefined;
19
+ title?: string | (() => any) | undefined;
20
+ message?: string | undefined;
21
+ positiveText?: string | undefined;
22
+ negativeText?: string | undefined;
23
+ closeNegativeText?: boolean | undefined;
24
+ isMaskClosable?: boolean | undefined;
25
+ onPositiveCallback: Function;
26
+ onNegativeCallback?: Function | undefined;
27
+ promise?: boolean | undefined;
28
+ promiseResCallback?: Function | undefined;
29
+ promiseRejCallback?: Function | undefined;
30
+ }) => void;
@@ -0,0 +1,77 @@
1
+ import { ResultEnum } from '../enums/httpEnum';
2
+
3
+ /**
4
+ * * 根据名字跳转路由
5
+ * @param pageName
6
+ * @param isReplace
7
+ * @param windowOpen
8
+ */
9
+ export declare const routerTurnByName: (pageName: string, isReplace?: boolean | undefined, windowOpen?: boolean | undefined) => void;
10
+ /**
11
+ * * 根据名称获取路由信息
12
+ * @param pageName
13
+ * @param pageName
14
+ */
15
+ export declare const fetchPathByName: (pageName: string, p?: string | undefined) => any;
16
+ /**
17
+ * * 根据路径跳转路由
18
+ * @param path
19
+ * @param query
20
+ * @param isReplace
21
+ * @param windowOpen
22
+ */
23
+ export declare const routerTurnByPath: (path: string, query?: (string | number)[] | undefined, isReplace?: boolean | undefined, windowOpen?: boolean | undefined) => Window | null | undefined;
24
+ /**
25
+ * * 错误页重定向
26
+ * @param icon
27
+ * @returns
28
+ */
29
+ export declare const redirectErrorPage: (code: ResultEnum) => false | undefined;
30
+ /**
31
+ * * 重新加载当前路由页面
32
+ */
33
+ export declare const reloadRoutePage: () => void;
34
+ /**
35
+ * * 退出
36
+ */
37
+ export declare const logout: () => void;
38
+ /**
39
+ * * 新开页面
40
+ * @param url
41
+ */
42
+ export declare const openNewWindow: (url: string) => Window | null;
43
+ /**
44
+ * * 打开项目文档
45
+ * @param url
46
+ */
47
+ export declare const openDoc: () => void;
48
+ /**
49
+ * * 打开码云仓库地址
50
+ * @param url
51
+ */
52
+ export declare const openGiteeSourceCode: () => void;
53
+ /**
54
+ * * 判断是否是预览页
55
+ * @returns boolean
56
+ */
57
+ export declare const isPreview: () => boolean;
58
+ /**
59
+ * * 获取当前路由下的参数
60
+ * @returns object
61
+ */
62
+ export declare const fetchRouteParams: () => import('vue-router').RouteParams | undefined;
63
+ /**
64
+ * * 通过硬解析获取当前路由下的参数
65
+ * @returns object
66
+ */
67
+ export declare const fetchRouteParamsLocation: () => string;
68
+ /**
69
+ * * 回到主页面
70
+ * @param confirm
71
+ */
72
+ export declare const goHome: () => void;
73
+ /**
74
+ * * 判断是否登录(现阶段是有 login 数据即可)
75
+ * @return boolean
76
+ */
77
+ export declare const loginCheck: () => boolean;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * * 存储本地会话数据
3
+ * @param k 键名
4
+ * @param v 键值(无需stringiiy)
5
+ * @returns RemovableRef
6
+ */
7
+ export declare const setLocalStorage: <T>(k: string, v: T) => false | undefined;
8
+ /**
9
+ * * 获取本地会话数据
10
+ * @param k 键名
11
+ * @returns any
12
+ */
13
+ export declare const getLocalStorage: (k: string) => any;
14
+ /**
15
+ * * 清除本地会话数据
16
+ * @param name
17
+ */
18
+ export declare const clearLocalStorage: (name: string) => void;
19
+ /**
20
+ * * 存储临时会话数据
21
+ * @param k 键名
22
+ * @param v 键值
23
+ * @returns RemovableRef
24
+ */
25
+ export declare const setSessionStorage: <T>(k: string, v: T) => false | undefined;
26
+ /**
27
+ * * 获取临时会话数据
28
+ * @returns any
29
+ */
30
+ export declare const getSessionStorage: (k: string) => any;
31
+ /**
32
+ * * 清除本地会话数据
33
+ * @param name
34
+ */
35
+ export declare const clearSessioStorage: (name: string) => void;
@@ -0,0 +1,154 @@
1
+ import { PickCreateComponentType } from '../packages/index.d';
2
+ import { EditCanvasConfigType } from '../store/modules/chartEditStore/chartEditStore.d';
3
+ import { CustomColorsType } from '../settings/chartThemes/index';
4
+
5
+ declare type StylesType = PickCreateComponentType<'styles'>;
6
+ export declare const animationsClass: (animations: string[]) => string;
7
+ export declare const getFilterStyle: (styles?: {
8
+ animations: string[];
9
+ filterShow: boolean;
10
+ opacity: number;
11
+ saturate: number;
12
+ contrast: number;
13
+ hueRotate: number;
14
+ brightness: number;
15
+ rotateZ: number;
16
+ rotateX: number;
17
+ rotateY: number;
18
+ skewX: number;
19
+ skewY: number;
20
+ blendMode: string;
21
+ } | EditCanvasConfigType | undefined) => {
22
+ opacity?: undefined;
23
+ filter?: undefined;
24
+ } | {
25
+ opacity: number;
26
+ filter: string;
27
+ };
28
+ export declare const getTransformStyle: (styles: StylesType) => {
29
+ transform: string;
30
+ };
31
+ export declare const getBlendModeStyle: (styles: StylesType) => {
32
+ 'mix-blend-mode'?: undefined;
33
+ } | {
34
+ 'mix-blend-mode': string;
35
+ };
36
+ /**
37
+ * * hsla 转换
38
+ * @param color 颜色
39
+ * @param alpha 默认1
40
+ * @returns
41
+ */
42
+ export declare function alpha(color: string, alpha?: number): string;
43
+ /**
44
+ * * 颜色透明
45
+ * rgba(10, 10, 10, 0.8) -> rgba(10, 10, 10, 0.4)
46
+ * @param color 颜色
47
+ * @param concentration 0~1 浓度
48
+ * @returns
49
+ */
50
+ export declare function fade(color: string, fade: number): string;
51
+ /**
52
+ * * 颜色变亮
53
+ * hsl(100, 50%, 10%) -> hsl(100, 50%, 50%)
54
+ * @param color 颜色
55
+ * @param concentration 0~1 浓度
56
+ * @returns
57
+ */
58
+ export declare function lighten(color: string, concentration: number): string;
59
+ /**
60
+ * * 颜色变暗
61
+ * hsl(100, 50%, 50%) -> hsl(100, 50%, 25%)
62
+ * @param color 颜色
63
+ * @param concentration 0~1 浓度
64
+ * @returns
65
+ */
66
+ export declare function darken(color: string, concentration: number): string;
67
+ /**
68
+ * * hsl 转成16进制
69
+ * @param hsl
70
+ * @returns
71
+ */
72
+ export declare function hslToHexa(hslString: string): string;
73
+ export declare function hslToHex(hslString: string): string;
74
+ /**
75
+ * * 修改主题色
76
+ * @param themeName 主题名称
77
+ * @returns
78
+ */
79
+ export declare const setHtmlTheme: (themeName?: string | undefined) => void;
80
+ /**
81
+ * * 合并基础颜色和自定义颜色
82
+ * @param chartDefaultColors
83
+ * @param customColor
84
+ * @returns
85
+ */
86
+ export declare const colorCustomMerge: (customColor?: CustomColorsType[] | undefined) => {
87
+ dark: {
88
+ color: string[];
89
+ name: string;
90
+ };
91
+ customed: {
92
+ color: string[];
93
+ name: string;
94
+ };
95
+ macarons: {
96
+ color: string[];
97
+ name: string;
98
+ };
99
+ walden: {
100
+ color: string[];
101
+ name: string;
102
+ };
103
+ purplePassion: {
104
+ color: string[];
105
+ name: string;
106
+ };
107
+ vintage: {
108
+ color: string[];
109
+ name: string;
110
+ };
111
+ chalk: {
112
+ color: string[];
113
+ name: string;
114
+ };
115
+ westeros: {
116
+ color: string[];
117
+ name: string;
118
+ };
119
+ wonderland: {
120
+ color: string[];
121
+ name: string;
122
+ };
123
+ essos: {
124
+ color: string[];
125
+ name: string;
126
+ };
127
+ shine: {
128
+ color: string[];
129
+ name: string;
130
+ };
131
+ roma: {
132
+ color: string[];
133
+ name: string;
134
+ };
135
+ };
136
+ /**
137
+ * * 合并基础渐变颜色和自定义渐变颜色
138
+ * @param customColor
139
+ */
140
+ export declare const colorGradientCustomMerge: (customColor?: CustomColorsType[] | undefined) => {
141
+ dark: string[];
142
+ customed: string[];
143
+ macarons: string[];
144
+ walden: string[];
145
+ purplePassion: string[];
146
+ vintage: string[];
147
+ chalk: string[];
148
+ westeros: string[];
149
+ wonderland: string[];
150
+ essos: string[];
151
+ shine: string[];
152
+ roma: string[];
153
+ };
154
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare function isString(p: any): p is string;
2
+ export declare function isNumber(p: any): p is number;
3
+ export declare function isBoolean(p: any): p is boolean;
4
+ export declare function isUndefined(p: any): p is undefined;
5
+ export declare function isNull(p: any): p is null;
6
+ export declare function isArray(p: any): p is [];
7
+ export declare const toNumber: (number: number | string, toFixedNumber?: number) => number;
8
+ export declare const toString: (str: any) => any;
@@ -0,0 +1,128 @@
1
+ import { RequestHttpIntervalEnum, RequestParamsObjType } from '../enums/httpEnum';
2
+ import { CreateComponentType, CreateComponentGroupType } from '../packages/index.d';
3
+
4
+ /**
5
+ * * 判断是否是开发环境
6
+ * @return { Boolean }
7
+ */
8
+ export declare const isDev: () => boolean;
9
+ /**
10
+ * * 生成一个不重复的ID
11
+ * @param { Number } randomLength
12
+ */
13
+ export declare const getUUID: (randomLength?: number) => string;
14
+ /**
15
+ * * render 图标
16
+ * @param icon 图标
17
+ * @param set 设置项
18
+ */
19
+ export declare const renderIcon: (icon: any, set?: {}) => () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
20
+ [key: string]: any;
21
+ }>;
22
+ /**
23
+ * * render 语言
24
+ * @param lang 语言标识
25
+ * @param set 设置项
26
+ * @param tag 要渲染成的标签
27
+ */
28
+ export declare const renderLang: (lang: string, set?: {}, tag?: string) => () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
29
+ [key: string]: any;
30
+ }>;
31
+ /**
32
+ * * 获取错误处理图片,默认 404 图
33
+ * @returns url
34
+ */
35
+ export declare const requireErrorImg: () => string;
36
+ /**
37
+ * * 全屏操作函数
38
+ * @param isFullscreen
39
+ * @param isEnabled
40
+ * @returns
41
+ */
42
+ export declare const screenfullFn: (isFullscreen?: boolean | undefined, isEnabled?: boolean | undefined) => boolean | undefined;
43
+ /**
44
+ * 修改元素位置
45
+ * @param target 对象
46
+ * @param x X轴
47
+ * @param y Y轴
48
+ */
49
+ export declare const setComponentPosition: (target: CreateComponentType | CreateComponentGroupType, x?: number | undefined, y?: number | undefined) => void;
50
+ /**
51
+ * * 设置元素属性
52
+ * @param HTMLElement 元素
53
+ * @param key 键名
54
+ * @param value 键值
55
+ */
56
+ export declare const setDomAttribute: <K extends keyof CSSStyleDeclaration, V extends CSSStyleDeclaration[K]>(HTMLElement: HTMLElement, key: K, value: V) => void;
57
+ /**
58
+ * * 判断是否是 mac
59
+ * @returns boolean
60
+ */
61
+ export declare const isMac: () => boolean;
62
+ /**
63
+ * * file转url
64
+ */
65
+ export declare const fileToUrl: (file: File) => string;
66
+ /**
67
+ * * file转base64
68
+ */
69
+ export declare const fileTobase64: (file: File, callback: Function) => void;
70
+ /**
71
+ * * 挂载监听
72
+ */
73
+ export declare const addEventListener: <K extends keyof WindowEventMap>(target: HTMLElement | Document, type: K, listener: any, delay?: number | undefined, options?: boolean | AddEventListenerOptions | undefined) => void;
74
+ /**
75
+ * * 卸载监听
76
+ */
77
+ export declare const removeEventListener: <K extends keyof WindowEventMap>(target: HTMLElement | Document, type: K, listener: any) => void;
78
+ /**
79
+ * * 截取画面为图片并下载
80
+ * @param html 需要截取的 DOM
81
+ */
82
+ export declare const canvasCut: (html: HTMLElement | null, callback?: Function | undefined) => void;
83
+ /**
84
+ * * 函数过滤器
85
+ * @param data 数据值
86
+ * @param res 返回顶级对象
87
+ * @param funcStr 函数字符串
88
+ * @param isToString 是否转为字符串
89
+ * @param errorCallBack 错误回调函数
90
+ * @param successCallBack 成功回调函数
91
+ * @returns
92
+ */
93
+ export declare const newFunctionHandle: (data: any, res: any, funcStr?: string | undefined, isToString?: boolean | undefined, errorCallBack?: Function | undefined, successCallBack?: Function | undefined) => any;
94
+ /**
95
+ * * 处理请求事件单位
96
+ * @param num 时间间隔
97
+ * @param unit RequestHttpIntervalEnum
98
+ * @return number 秒数
99
+ */
100
+ export declare const intervalUnitHandle: (num: number, unit: RequestHttpIntervalEnum) => number;
101
+ /**
102
+ * * 对象转换 cookie 格式
103
+ * @param obj
104
+ * @returns string
105
+ */
106
+ export declare const objToCookie: (obj: RequestParamsObjType) => string;
107
+ /**
108
+ * * 设置按下键盘按键的底部展示
109
+ * @param keyCode
110
+ * @returns
111
+ */
112
+ export declare const setKeyboardDressShow: (keyCode?: number | undefined) => void;
113
+ /**
114
+ * * JSON序列化,支持函数和 undefined
115
+ * @param data
116
+ */
117
+ export declare const JSONStringify: <T>(data: T) => string;
118
+ export declare const evalFn: (fn: string) => any;
119
+ /**
120
+ * * JSON反序列化,支持函数和 undefined
121
+ * @param data
122
+ */
123
+ export declare const JSONParse: (data: string) => any;
124
+ /**
125
+ * * 修改顶部标题
126
+ * @param title
127
+ */
128
+ export declare const setTitle: (title?: string | undefined) => void;
@@ -0,0 +1,3 @@
1
+ import { default as ContentBox } from './index.vue';
2
+
3
+ export { ContentBox };
@@ -0,0 +1,3 @@
1
+ import { default as ChartsItemBox } from './index.vue';
2
+
3
+ export { ChartsItemBox };
@@ -0,0 +1,3 @@
1
+ import { default as ChartsOptionContent } from './index.vue';
2
+
3
+ export { ChartsOptionContent };
@@ -0,0 +1,3 @@
1
+ import { default as ChartsSearch } from './index.vue';
2
+
3
+ export { ChartsSearch };
@@ -0,0 +1,11 @@
1
+ export declare const useAsideHook: (options?: never[]) => {
2
+ getCharts: {
3
+ value: boolean;
4
+ };
5
+ BarChartIcon: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('vue').EmitsOptions, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ themeColor: import('vue').Ref<string, string>;
7
+ selectOptions: import('vue').Ref<any, any>;
8
+ selectValue: import('vue').Ref<string, string>;
9
+ clickItemHandle: (key: string, item: any) => void;
10
+ menuOptions: any;
11
+ };
@@ -0,0 +1,10 @@
1
+ export declare const useLayoutStore: () => {
2
+ themeColor: import('vue').Ref<string, string>;
3
+ setItem: <T extends keyof import('../../../../store/modules/chartLayoutStore/chartLayoutStore').ChartLayoutType, K extends import('../../../../store/modules/chartLayoutStore/chartLayoutStore').ChartLayoutType[T]>(key: T, value: K, computedScale?: boolean) => void;
4
+ getCharts: import('vue').Ref<boolean, boolean>;
5
+ };
6
+ export declare const themeColor: import('vue').Ref<string, string>;
7
+ export declare const setItem: (...args: any[]) => void;
8
+ export declare const getCharts: {
9
+ value: boolean;
10
+ };
@@ -0,0 +1,3 @@
1
+ import { default as ContentCharts } from './index.vue';
2
+
3
+ export { ContentCharts };
@@ -0,0 +1,3 @@
1
+ import { default as CreateColorRender } from './index.vue';
2
+
3
+ export { CreateColorRender };
@@ -0,0 +1,2 @@
1
+ export declare const includes: string[];
2
+ export declare const option: (color: string[]) => any;
@@ -0,0 +1,3 @@
1
+ import { default as CreateColorRenderChart } from './index.vue';
2
+
3
+ export { CreateColorRenderChart };
@@ -0,0 +1,2 @@
1
+ export declare const includes: string[];
2
+ export declare const option: (color: string[]) => any;
@@ -0,0 +1,3 @@
1
+ import { default as CanvasPage } from './index.vue';
2
+
3
+ export { CanvasPage };
@@ -0,0 +1,57 @@
1
+ import { Ref } from 'vue';
2
+ import { CreateComponentType, CreateComponentGroupType } from '../../../../../packages/index.d';
3
+
4
+ export declare const useTargetData: () => {
5
+ targetData: Ref<CreateComponentType | CreateComponentGroupType, CreateComponentType | CreateComponentGroupType>;
6
+ chartEditStore: import('pinia').Store<"useChartEditStore", import('../../../../../store/modules/chartEditStore/chartEditStore').ChartEditStoreType, {
7
+ getMousePosition(): import('../../../../../store/modules/chartEditStore/chartEditStore').MousePositionType;
8
+ getRightMenuShow(): boolean;
9
+ getEditCanvas(): import('../../../../../store/modules/chartEditStore/chartEditStore').EditCanvasType;
10
+ getEditCanvasConfig(): import('../../../../../store/modules/chartEditStore/chartEditStore').EditCanvasConfigType;
11
+ getTargetChart(): import('../../../../../store/modules/chartEditStore/chartEditStore').TargetChartType;
12
+ getRecordChart(): import('../../../../../store/modules/chartEditStore/chartEditStore').RecordChartType | undefined;
13
+ getRequestGlobalConfig(): import('../../../../../store/modules/chartEditStore/chartEditStore').RequestGlobalConfigType;
14
+ getComponentList(): (CreateComponentType | CreateComponentGroupType)[];
15
+ }, {
16
+ getStorageInfo(): import('../../../../../store/modules/chartEditStore/chartEditStore').ChartEditStorage;
17
+ getSelectIdSortList(ids?: string[] | undefined): string[];
18
+ setEditCanvas<T extends keyof import('../../../../../store/modules/chartEditStore/chartEditStore').EditCanvasType, K extends import('../../../../../store/modules/chartEditStore/chartEditStore').EditCanvasType[T]>(key: T, value: K): void;
19
+ setEditCanvasConfig<T_1 extends keyof import('../../../../../store/modules/chartEditStore/chartEditStore').EditCanvasConfigType, K_1 extends import('../../../../../store/modules/chartEditStore/chartEditStore').EditCanvasConfigType[T_1]>(key: T_1, value: K_1): void;
20
+ setRightMenuShow(value: boolean): void;
21
+ setTargetHoverChart(hoverId?: string | undefined): void;
22
+ setTargetSelectChart(selectId?: string | string[] | undefined, push?: boolean): void;
23
+ setRecordChart(item: import('../../../../../store/modules/chartEditStore/chartEditStore').RecordChartType | undefined): void;
24
+ setMousePosition(x?: number | undefined, y?: number | undefined, startX?: number | undefined, startY?: number | undefined): void;
25
+ fetchTargetIndex(id?: string | undefined): number;
26
+ idPreFormat(id?: string | string[] | undefined): string[];
27
+ addComponentList(componentInstance: CreateComponentType | CreateComponentGroupType | (CreateComponentType | CreateComponentGroupType)[], isHead?: boolean, isHistory?: boolean): void;
28
+ removeComponentList(id?: string | string[] | undefined, isHistory?: boolean): void;
29
+ resetComponentPosition(item: CreateComponentType | CreateComponentGroupType, isForward: boolean): void;
30
+ moveComponentList(item: (CreateComponentType | CreateComponentGroupType)[]): void;
31
+ updateComponentList(index: number, newData: CreateComponentType | CreateComponentGroupType): void;
32
+ setPageStyle<T_2 extends keyof CSSStyleDeclaration>(key: T_2, value: any): void;
33
+ setBothEnds(isEnd?: boolean, isHistory?: boolean): void;
34
+ setTop(isHistory?: boolean): void;
35
+ setBottom(isHistory?: boolean): void;
36
+ wrap(isDown?: boolean, isHistory?: boolean): void;
37
+ setUp(isHistory?: boolean): void;
38
+ setDown(isHistory?: boolean): void;
39
+ setCopy(isCut?: boolean): void;
40
+ setCut(): void;
41
+ setParse(): void;
42
+ setBackAndSetForwardHandle(HistoryItem: import('../../../../../store/modules/chartHistoryStore/chartHistoryStore').HistoryItemType, isForward?: boolean): void;
43
+ setBack(): void;
44
+ setForward(): void;
45
+ setMove(keyboardValue: import('../../../../../enums/editPageEnum').MenuEnum): void;
46
+ setGroup(id?: string | string[] | undefined, isHistory?: boolean): void;
47
+ setUnGroup(ids?: string[] | undefined, callBack?: ((e: CreateComponentType[]) => void) | undefined, isHistory?: boolean): void;
48
+ setLock(status?: boolean, isHistory?: boolean): void;
49
+ setUnLock(isHistory?: boolean): void;
50
+ setHide(status?: boolean, isHistory?: boolean): void;
51
+ setShow(isHistory?: boolean): void;
52
+ setPageSize(scale: number): void;
53
+ computedScale(): void;
54
+ listenerScale(): Function;
55
+ setScale(scale: number, force?: boolean): void;
56
+ }>;
57
+ };
@@ -0,0 +1,3 @@
1
+ import { default as ContentConfigurations } from './index.vue';
2
+
3
+ export { ContentConfigurations };
@@ -0,0 +1,3 @@
1
+ import { default as EditAlignLine } from './index.vue';
2
+
3
+ export { EditAlignLine };
@@ -0,0 +1,3 @@
1
+ import { default as EditBottom } from './index.vue';
2
+
3
+ export { EditBottom };