@hg2/dataview-core 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/dist/ColorList-36f5fb1f.js +195 -0
  2. package/dist/ColorList-36f5fb1f.js.map +1 -0
  3. package/dist/StylesSetting-e13e1698.js +348 -0
  4. package/dist/StylesSetting-e13e1698.js.map +1 -0
  5. package/dist/api/axios.d.ts +2 -0
  6. package/dist/api/http.d.ts +15 -0
  7. package/dist/api/mock/graph.json.d.ts +102 -0
  8. package/dist/api/mock/heatMapData.json.d.ts +202 -0
  9. package/dist/api/mock/index.d.ts +22 -0
  10. package/dist/api/mock/map.json.d.ts +12 -0
  11. package/dist/api/mock/sankey.json.d.ts +89 -0
  12. package/dist/api/mock/scatter.json.d.ts +59 -0
  13. package/dist/api/mock/test.mock.d.ts +226 -0
  14. package/dist/api/mock/treemap.json.d.ts +53 -0
  15. package/dist/api/mock/vchart/bar.json.d.ts +19 -0
  16. package/dist/api/mock/vchart.mock.d.ts +15 -0
  17. package/dist/components/GoAppProvider/index.d.ts +2 -0
  18. package/dist/components/GoAppProvider/index.vue.d.ts +9 -0
  19. package/dist/components/GoIconify/index.d.ts +2 -0
  20. package/dist/components/GoIconify/index.vue.d.ts +46 -0
  21. package/dist/components/GoLangSelect/index.d.ts +2 -0
  22. package/dist/components/GoLangSelect/index.vue.d.ts +2 -0
  23. package/dist/components/GoLoading/LoadingSkeleton.vue.d.ts +2 -0
  24. package/dist/components/GoLoading/index.d.ts +4 -0
  25. package/dist/components/GoLoading/index.vue.d.ts +2 -0
  26. package/dist/components/GoSkeleton/index.d.ts +2 -0
  27. package/dist/components/GoSkeleton/index.vue.d.ts +23 -0
  28. package/dist/components/GoSystemInfo/index.d.ts +2 -0
  29. package/dist/components/GoSystemInfo/index.vue.d.ts +12 -0
  30. package/dist/components/GoSystemSet/index.d.ts +12 -0
  31. package/dist/components/GoSystemSet/index.vue.d.ts +12 -0
  32. package/dist/components/GoThemeSelect/index.d.ts +2 -0
  33. package/dist/components/GoThemeSelect/index.vue.d.ts +2 -0
  34. package/dist/components/I18n/index.d.ts +2 -0
  35. package/dist/components/I18n/index.vue.d.ts +2 -0
  36. package/dist/components/Pages/ChartGlobImage/index.d.ts +2 -0
  37. package/dist/components/Pages/ChartGlobImage/index.vue.d.ts +14 -0
  38. package/dist/components/Pages/ChartItemSetting/CollapseItem.vue.d.ts +32 -0
  39. package/dist/components/Pages/ChartItemSetting/GlobalSettingPosition.vue.d.ts +19 -0
  40. package/dist/components/Pages/ChartItemSetting/NameSetting.vue.d.ts +14 -0
  41. package/dist/components/Pages/ChartItemSetting/PositionSetting.vue.d.ts +38 -0
  42. package/dist/components/Pages/ChartItemSetting/SettingItem.vue.d.ts +27 -0
  43. package/dist/components/Pages/ChartItemSetting/SettingItemBox.vue.d.ts +43 -0
  44. package/dist/components/Pages/ChartItemSetting/SizeSetting.vue.d.ts +39 -0
  45. package/dist/components/Pages/ChartItemSetting/StylesSetting.vue.d.ts +60 -0
  46. package/dist/components/Pages/ChartItemSetting/index.d.ts +9 -0
  47. package/dist/components/Pages/Flipper/index.d.ts +3 -0
  48. package/dist/components/Pages/Flipper/index.vue.d.ts +88 -0
  49. package/dist/components/Pages/MonacoEditor/index.d.ts +3 -0
  50. package/dist/components/Pages/MonacoEditor/index.hook.d.ts +8 -0
  51. package/dist/components/Pages/MonacoEditor/index.vue.d.ts +68 -0
  52. package/dist/components/Pages/ThemeColorSelect/components/ColorList.vue.d.ts +18 -0
  53. package/dist/components/Pages/ThemeColorSelect/index.d.ts +2 -0
  54. package/dist/components/Pages/ThemeColorSelect/index.vue.d.ts +4 -0
  55. package/dist/components/Plugins/DialogContent/index.d.ts +2 -0
  56. package/dist/components/Plugins/DialogContent/index.vue.d.ts +2 -0
  57. package/dist/components/Plugins/LoadingContent/index.d.ts +2 -0
  58. package/dist/components/Plugins/LoadingContent/index.vue.d.ts +2 -0
  59. package/dist/components/Plugins/MessageContent/index.d.ts +2 -0
  60. package/dist/components/Plugins/MessageContent/index.vue.d.ts +2 -0
  61. package/dist/components/Tips/MacOsControlBtn/index.d.ts +2 -0
  62. package/dist/components/Tips/MacOsControlBtn/index.vue.d.ts +59 -0
  63. package/dist/config-135cbd37.js +78 -0
  64. package/dist/config-135cbd37.js.map +1 -0
  65. package/dist/config-2f4d03cf.js +50 -0
  66. package/dist/config-2f4d03cf.js.map +1 -0
  67. package/dist/config-2feff12a.js +51 -0
  68. package/dist/config-2feff12a.js.map +1 -0
  69. package/dist/config-34a249a9.js +50 -0
  70. package/dist/config-34a249a9.js.map +1 -0
  71. package/dist/config-54932c86.js +61 -0
  72. package/dist/config-54932c86.js.map +1 -0
  73. package/dist/config-63dc5f82.js +62 -0
  74. package/dist/config-63dc5f82.js.map +1 -0
  75. package/dist/config-6ff94944.js +58 -0
  76. package/dist/config-6ff94944.js.map +1 -0
  77. package/dist/config-70c69137.js +51 -0
  78. package/dist/config-70c69137.js.map +1 -0
  79. package/dist/config-72cb7427.js +53 -0
  80. package/dist/config-72cb7427.js.map +1 -0
  81. package/dist/config-99706c47.js +58 -0
  82. package/dist/config-99706c47.js.map +1 -0
  83. package/dist/config-a6eb66af.js +51 -0
  84. package/dist/config-a6eb66af.js.map +1 -0
  85. package/dist/config-ac8d451f.js +127 -0
  86. package/dist/config-ac8d451f.js.map +1 -0
  87. package/dist/config-b11b8271.js +53 -0
  88. package/dist/config-b11b8271.js.map +1 -0
  89. package/dist/config-bda687c7.js +52 -0
  90. package/dist/config-bda687c7.js.map +1 -0
  91. package/dist/config-fe590ea6.js +57 -0
  92. package/dist/config-fe590ea6.js.map +1 -0
  93. package/dist/engines/index.d.ts +2 -0
  94. package/dist/engines/registry.d.ts +24 -0
  95. package/dist/enums/editPageEnum.d.ts +55 -0
  96. package/dist/enums/eventEnum.d.ts +32 -0
  97. package/dist/enums/fileTypeEnum.d.ts +7 -0
  98. package/dist/enums/httpEnum.d.ts +96 -0
  99. package/dist/enums/pageEnum.d.ts +0 -0
  100. package/dist/enums/pluginEnum.d.ts +6 -0
  101. package/dist/enums/storageEnum.d.ts +8 -0
  102. package/dist/enums/styleEnum.d.ts +14 -0
  103. package/dist/hooks/index.d.ts +8 -0
  104. package/dist/hooks/useChartDataFetch.hook.d.ts +13 -0
  105. package/dist/hooks/useChartDataPondFetch.hook.d.ts +12 -0
  106. package/dist/hooks/useChartInteract.hook.d.ts +8 -0
  107. package/dist/hooks/useCode.hook.d.ts +2 -0
  108. package/dist/hooks/useLang.hook.d.ts +372 -0
  109. package/dist/hooks/useLifeHandler.hook.d.ts +9 -0
  110. package/dist/hooks/usePreviewScale.hook.d.ts +32 -0
  111. package/dist/hooks/useTheme.hook.d.ts +18 -0
  112. package/dist/i18n/en/index.d.ts +21 -0
  113. package/dist/i18n/index.d.ts +48 -0
  114. package/dist/i18n/zh/index.d.ts +21 -0
  115. package/dist/index-10b2feb6.js +204 -0
  116. package/dist/index-10b2feb6.js.map +1 -0
  117. package/dist/index-148f6c33.js +1183 -0
  118. package/dist/index-148f6c33.js.map +1 -0
  119. package/dist/index-237a6823.js +26562 -0
  120. package/dist/index-237a6823.js.map +1 -0
  121. package/dist/index-3307e922.js +156 -0
  122. package/dist/index-3307e922.js.map +1 -0
  123. package/dist/index-33aae9d2.js +319 -0
  124. package/dist/index-33aae9d2.js.map +1 -0
  125. package/dist/index-556d7d7c.js +228 -0
  126. package/dist/index-556d7d7c.js.map +1 -0
  127. package/dist/index-617f36ae.js +156 -0
  128. package/dist/index-617f36ae.js.map +1 -0
  129. package/dist/index-62e07d83.js +54 -0
  130. package/dist/index-62e07d83.js.map +1 -0
  131. package/dist/index-66f7ab2a.js +590 -0
  132. package/dist/index-66f7ab2a.js.map +1 -0
  133. package/dist/index-6701793b.js +1811 -0
  134. package/dist/index-6701793b.js.map +1 -0
  135. package/dist/index-8d8dc1d2.js +132 -0
  136. package/dist/index-8d8dc1d2.js.map +1 -0
  137. package/dist/index-985f409d.js +461 -0
  138. package/dist/index-985f409d.js.map +1 -0
  139. package/dist/index-b2e0e39b.js +215 -0
  140. package/dist/index-b2e0e39b.js.map +1 -0
  141. package/dist/index-b58bfc89.js +419 -0
  142. package/dist/index-b58bfc89.js.map +1 -0
  143. package/dist/index-b5b7a570.js +103 -0
  144. package/dist/index-b5b7a570.js.map +1 -0
  145. package/dist/index-be12782c.js +1013 -0
  146. package/dist/index-be12782c.js.map +1 -0
  147. package/dist/index-be75d4d8.js +101 -0
  148. package/dist/index-be75d4d8.js.map +1 -0
  149. package/dist/index-c7145ef3.js +137 -0
  150. package/dist/index-c7145ef3.js.map +1 -0
  151. package/dist/index-ca8cd72a.js +74 -0
  152. package/dist/index-ca8cd72a.js.map +1 -0
  153. package/dist/index-cfca17b8.js +138 -0
  154. package/dist/index-cfca17b8.js.map +1 -0
  155. package/dist/index-d3c1c990.js +257 -0
  156. package/dist/index-d3c1c990.js.map +1 -0
  157. package/dist/index-ea4311bb.js +414 -0
  158. package/dist/index-ea4311bb.js.map +1 -0
  159. package/dist/index-ed584e70.js +729 -0
  160. package/dist/index-ed584e70.js.map +1 -0
  161. package/dist/index-f0c7797f.js +385 -0
  162. package/dist/index-f0c7797f.js.map +1 -0
  163. package/dist/index-f43eed8d.js +307 -0
  164. package/dist/index-f43eed8d.js.map +1 -0
  165. package/dist/index.d.ts +5 -0
  166. package/dist/index.js +57 -0
  167. package/dist/index.js.map +1 -0
  168. package/dist/layout/components/LayoutFooter/index.d.ts +2 -0
  169. package/dist/layout/components/LayoutFooter/index.vue.d.ts +9 -0
  170. package/dist/layout/components/LayoutHeader/index.d.ts +2 -0
  171. package/dist/layout/components/LayoutHeader/index.vue.d.ts +12 -0
  172. package/dist/layout/components/LayoutHeaderPro/index.d.ts +2 -0
  173. package/dist/layout/components/LayoutHeaderPro/index.vue.d.ts +12 -0
  174. package/dist/layout/components/LayoutMain/index.d.ts +2 -0
  175. package/dist/layout/components/LayoutMain/index.vue.d.ts +2 -0
  176. package/dist/layout/components/LayoutTransitionMain/index.d.ts +2 -0
  177. package/dist/layout/components/LayoutTransitionMain/index.vue.d.ts +2 -0
  178. package/dist/lib/GoViewEditor.vue.d.ts +48 -0
  179. package/dist/lib/GoViewPreview.vue.d.ts +25 -0
  180. package/dist/lib/index.d.ts +28 -0
  181. package/dist/lib/skills/index.d.ts +2 -0
  182. package/dist/lib/skills/registry.d.ts +2 -0
  183. package/dist/lib/skills/types.d.ts +72 -0
  184. package/dist/logo-9c1d9d16.js +5 -0
  185. package/dist/logo-9c1d9d16.js.map +1 -0
  186. package/dist/noData-63b54dc3.js +5 -0
  187. package/dist/noData-63b54dc3.js.map +1 -0
  188. package/dist/packages/components/Decorates/Borders/Border01/config.d.ts +16 -0
  189. package/dist/packages/components/Decorates/Borders/Border01/index.d.ts +2 -0
  190. package/dist/packages/components/Decorates/Borders/Border02/config.d.ts +14 -0
  191. package/dist/packages/components/Decorates/Borders/Border02/index.d.ts +2 -0
  192. package/dist/packages/components/Decorates/Borders/Border03/config.d.ts +14 -0
  193. package/dist/packages/components/Decorates/Borders/Border03/index.d.ts +2 -0
  194. package/dist/packages/components/Decorates/Borders/Border04/config.d.ts +24 -0
  195. package/dist/packages/components/Decorates/Borders/Border04/index.d.ts +2 -0
  196. package/dist/packages/components/Decorates/Borders/Border05/config.d.ts +14 -0
  197. package/dist/packages/components/Decorates/Borders/Border05/index.d.ts +2 -0
  198. package/dist/packages/components/Decorates/Borders/Border06/config.d.ts +14 -0
  199. package/dist/packages/components/Decorates/Borders/Border06/index.d.ts +2 -0
  200. package/dist/packages/components/Decorates/Borders/Border07/config.d.ts +14 -0
  201. package/dist/packages/components/Decorates/Borders/Border07/index.d.ts +2 -0
  202. package/dist/packages/components/Decorates/Borders/Border08/config.d.ts +18 -0
  203. package/dist/packages/components/Decorates/Borders/Border08/index.d.ts +2 -0
  204. package/dist/packages/components/Decorates/Borders/Border09/config.d.ts +14 -0
  205. package/dist/packages/components/Decorates/Borders/Border09/index.d.ts +2 -0
  206. package/dist/packages/components/Decorates/Borders/Border10/config.d.ts +14 -0
  207. package/dist/packages/components/Decorates/Borders/Border10/index.d.ts +2 -0
  208. package/dist/packages/components/Decorates/Borders/Border11/config.d.ts +14 -0
  209. package/dist/packages/components/Decorates/Borders/Border11/index.d.ts +2 -0
  210. package/dist/packages/components/Decorates/Borders/Border12/config.d.ts +14 -0
  211. package/dist/packages/components/Decorates/Borders/Border12/index.d.ts +2 -0
  212. package/dist/packages/components/Decorates/Borders/Border13/config.d.ts +14 -0
  213. package/dist/packages/components/Decorates/Borders/Border13/index.d.ts +2 -0
  214. package/dist/packages/components/Decorates/Borders/index.d.ts +2 -0
  215. package/dist/packages/components/Decorates/Decorates/Decorates01/config.d.ts +18 -0
  216. package/dist/packages/components/Decorates/Decorates/Decorates01/index.d.ts +2 -0
  217. package/dist/packages/components/Decorates/Decorates/Decorates02/config.d.ts +16 -0
  218. package/dist/packages/components/Decorates/Decorates/Decorates02/index.d.ts +2 -0
  219. package/dist/packages/components/Decorates/Decorates/Decorates03/config.d.ts +27 -0
  220. package/dist/packages/components/Decorates/Decorates/Decorates03/index.d.ts +2 -0
  221. package/dist/packages/components/Decorates/Decorates/Decorates04/config.d.ts +14 -0
  222. package/dist/packages/components/Decorates/Decorates/Decorates04/index.d.ts +2 -0
  223. package/dist/packages/components/Decorates/Decorates/Decorates05/config.d.ts +14 -0
  224. package/dist/packages/components/Decorates/Decorates/Decorates05/index.d.ts +2 -0
  225. package/dist/packages/components/Decorates/Decorates/Decorates06/config.d.ts +27 -0
  226. package/dist/packages/components/Decorates/Decorates/Decorates06/index.d.ts +2 -0
  227. package/dist/packages/components/Decorates/Decorates/index.d.ts +2 -0
  228. package/dist/packages/components/Decorates/FlowChart/FlowChartLine/config.d.ts +22 -0
  229. package/dist/packages/components/Decorates/FlowChart/FlowChartLine/index.d.ts +2 -0
  230. package/dist/packages/components/Decorates/FlowChart/index.d.ts +2 -0
  231. package/dist/packages/components/Decorates/Mores/CirclePoint/config.d.ts +29 -0
  232. package/dist/packages/components/Decorates/Mores/CirclePoint/index.d.ts +2 -0
  233. package/dist/packages/components/Decorates/Mores/Clock/config.d.ts +18 -0
  234. package/dist/packages/components/Decorates/Mores/Clock/index.d.ts +2 -0
  235. package/dist/packages/components/Decorates/Mores/CountDown/config.d.ts +35 -0
  236. package/dist/packages/components/Decorates/Mores/CountDown/index.d.ts +2 -0
  237. package/dist/packages/components/Decorates/Mores/FlipperNumber/config.d.ts +31 -0
  238. package/dist/packages/components/Decorates/Mores/FlipperNumber/index.d.ts +2 -0
  239. package/dist/packages/components/Decorates/Mores/FullScreen/config.d.ts +25 -0
  240. package/dist/packages/components/Decorates/Mores/FullScreen/index.d.ts +2 -0
  241. package/dist/packages/components/Decorates/Mores/Number/config.d.ts +32 -0
  242. package/dist/packages/components/Decorates/Mores/Number/index.d.ts +2 -0
  243. package/dist/packages/components/Decorates/Mores/PipelineH/config.d.ts +27 -0
  244. package/dist/packages/components/Decorates/Mores/PipelineH/index.d.ts +2 -0
  245. package/dist/packages/components/Decorates/Mores/PipelineV/config.d.ts +27 -0
  246. package/dist/packages/components/Decorates/Mores/PipelineV/index.d.ts +2 -0
  247. package/dist/packages/components/Decorates/Mores/TimeCommon/config.d.ts +47 -0
  248. package/dist/packages/components/Decorates/Mores/TimeCommon/index.d.ts +2 -0
  249. package/dist/packages/components/Decorates/Mores/index.d.ts +2 -0
  250. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/Utils/arc.d.ts +11 -0
  251. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/Utils/common.d.ts +34 -0
  252. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/interfaces/IEvents.d.ts +3 -0
  253. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/interfaces/IWord.d.ts +6 -0
  254. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Assets.d.ts +13 -0
  255. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Basic.d.ts +22 -0
  256. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Earth.d.ts +98 -0
  257. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Resources.d.ts +16 -0
  258. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Word.d.ts +25 -0
  259. package/dist/packages/components/Decorates/Three/ThreeEarth01/config.d.ts +43 -0
  260. package/dist/packages/components/Decorates/Three/ThreeEarth01/data.json.d.ts +87 -0
  261. package/dist/packages/components/Decorates/Three/ThreeEarth01/index.d.ts +2 -0
  262. package/dist/packages/components/Decorates/Three/index.d.ts +2 -0
  263. package/dist/packages/components/Decorates/index.d.ts +15 -0
  264. package/dist/packages/components/Icons/Common/index.d.ts +21 -0
  265. package/dist/packages/components/Icons/Default/Icon/config.d.ts +27 -0
  266. package/dist/packages/components/Icons/Default/Icon/index.d.ts +2 -0
  267. package/dist/packages/components/Icons/MaterialLine/index.d.ts +21 -0
  268. package/dist/packages/components/Icons/Weather/index.d.ts +21 -0
  269. package/dist/packages/components/Icons/index.d.ts +13 -0
  270. package/dist/packages/components/Informations/Mores/CardCustom/config.d.ts +42 -0
  271. package/dist/packages/components/Informations/Mores/CardCustom/index.d.ts +2 -0
  272. package/dist/packages/components/Informations/Mores/Iframe/config.d.ts +23 -0
  273. package/dist/packages/components/Informations/Mores/Iframe/index.d.ts +2 -0
  274. package/dist/packages/components/Informations/Mores/Image/config.d.ts +16 -0
  275. package/dist/packages/components/Informations/Mores/Image/index.d.ts +2 -0
  276. package/dist/packages/components/Informations/Mores/ImageCarousel/config.d.ts +36 -0
  277. package/dist/packages/components/Informations/Mores/ImageCarousel/index.d.ts +2 -0
  278. package/dist/packages/components/Informations/Mores/MissingComponent/config.d.ts +20 -0
  279. package/dist/packages/components/Informations/Mores/MissingComponent/index.d.ts +2 -0
  280. package/dist/packages/components/Informations/Mores/Video/config.d.ts +20 -0
  281. package/dist/packages/components/Informations/Mores/Video/index.d.ts +2 -0
  282. package/dist/packages/components/Informations/Mores/index.d.ts +2 -0
  283. package/dist/packages/components/Informations/index.d.ts +1 -0
  284. package/dist/packages/components/Photos/Private/index.d.ts +23 -0
  285. package/dist/packages/components/Photos/Share/index.d.ts +21 -0
  286. package/dist/packages/components/Photos/index.d.ts +9 -0
  287. package/dist/packages/index.d.ts +252 -0
  288. package/dist/packages/public/chart.d.ts +8 -0
  289. package/dist/packages/public/index.d.ts +2 -0
  290. package/dist/packages/public/publicConfig.d.ts +80 -0
  291. package/dist/packages/registry.d.ts +34 -0
  292. package/dist/plugins/customComponents.d.ts +6 -0
  293. package/dist/plugins/directives.d.ts +6 -0
  294. package/dist/plugins/icon.d.ts +110 -0
  295. package/dist/plugins/index.d.ts +4 -0
  296. package/dist/plugins/initFunction.d.ts +4 -0
  297. package/dist/plugins/naive.d.ts +2 -0
  298. package/dist/pondIndex.vue_vue_type_style_index_0_scoped_3ac883be_lang-8afe2387.js +2371 -0
  299. package/dist/pondIndex.vue_vue_type_style_index_0_scoped_3ac883be_lang-8afe2387.js.map +1 -0
  300. package/dist/published/chartItemSetting.d.ts +1 -0
  301. package/dist/published/chartThemes.d.ts +1 -0
  302. package/dist/published/designSetting.d.ts +1 -0
  303. package/dist/published/eventEnums.d.ts +1 -0
  304. package/dist/published/hooks.d.ts +1 -0
  305. package/dist/published/informationTypes.d.ts +1 -0
  306. package/dist/published/plugins.d.ts +1 -0
  307. package/dist/published/public.d.ts +1 -0
  308. package/dist/published/scaleHook.d.ts +1 -0
  309. package/dist/published/store.d.ts +1 -0
  310. package/dist/published/types.d.ts +1 -0
  311. package/dist/published/utils.d.ts +1 -0
  312. package/dist/published/vchartAxisTheme.d.ts +2 -0
  313. package/dist/published/vchartThemes.d.ts +1 -0
  314. package/dist/runtime.d.ts +10 -0
  315. package/dist/settings/animations/index.d.ts +7 -0
  316. package/dist/settings/chartThemes/global.theme.json.d.ts +113 -0
  317. package/dist/settings/chartThemes/index.d.ts +194 -0
  318. package/dist/settings/chartThemes/themes/chalk.json.d.ts +15 -0
  319. package/dist/settings/chartThemes/themes/customed.json.d.ts +16 -0
  320. package/dist/settings/chartThemes/themes/dark.json.d.ts +16 -0
  321. package/dist/settings/chartThemes/themes/essos.json.d.ts +13 -0
  322. package/dist/settings/chartThemes/themes/macarons.json.d.ts +27 -0
  323. package/dist/settings/chartThemes/themes/purple-passion.json.d.ts +13 -0
  324. package/dist/settings/chartThemes/themes/roma.json.d.ts +27 -0
  325. package/dist/settings/chartThemes/themes/shine.json.d.ts +15 -0
  326. package/dist/settings/chartThemes/themes/vintage.json.d.ts +17 -0
  327. package/dist/settings/chartThemes/themes/walden.json.d.ts +13 -0
  328. package/dist/settings/chartThemes/themes/westeros.json.d.ts +13 -0
  329. package/dist/settings/chartThemes/themes/wonderland.json.d.ts +13 -0
  330. package/dist/settings/designColor.json.d.ts +3680 -0
  331. package/dist/settings/designColorRecommend.json.d.ts +33 -0
  332. package/dist/settings/designSetting.d.ts +32 -0
  333. package/dist/settings/pathConst.d.ts +3 -0
  334. package/dist/settings/systemSetting.d.ts +10 -0
  335. package/dist/settings/vchartThemes/index.d.ts +138 -0
  336. package/dist/store/index.d.ts +12 -0
  337. package/dist/store/modules/chartEditStore/chartEditStore.d.ts +213 -0
  338. package/dist/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
  339. package/dist/store/modules/chartHistoryStore/chartHistoryStore.d.ts +77 -0
  340. package/dist/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
  341. package/dist/store/modules/designStore/designStore.d.ts +18 -0
  342. package/dist/store/modules/langStore/langStore.d.ts +5 -0
  343. package/dist/store/modules/packagesStore/packagesStore.d.ts +6 -0
  344. package/dist/store/modules/settingStore/settingStore.d.ts +31 -0
  345. package/dist/style.css +7 -0
  346. package/dist/types/global.d.ts +31 -0
  347. package/dist/types/shims-vue.d.ts +5 -0
  348. package/dist/useSyncUpdate.hook-f291c525.js +43 -0
  349. package/dist/useSyncUpdate.hook-f291c525.js.map +1 -0
  350. package/dist/useTargetData.hook-832cc980.js +13 -0
  351. package/dist/useTargetData.hook-832cc980.js.map +1 -0
  352. package/dist/utils/components.d.ts +12 -0
  353. package/dist/utils/crypto.d.ts +12 -0
  354. package/dist/utils/file.d.ts +19 -0
  355. package/dist/utils/index.d.ts +9 -0
  356. package/dist/utils/plugin.d.ts +29 -0
  357. package/dist/utils/router.d.ts +20 -0
  358. package/dist/utils/storage.d.ts +35 -0
  359. package/dist/utils/style.d.ts +141 -0
  360. package/dist/utils/type.d.ts +8 -0
  361. package/dist/utils/utils.d.ts +127 -0
  362. package/dist/views/chart/ContentBox/index.d.ts +2 -0
  363. package/dist/views/chart/ContentBox/index.vue.d.ts +87 -0
  364. package/dist/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +2 -0
  365. package/dist/views/chart/ContentCharts/components/ChartsItemBox/index.vue.d.ts +22 -0
  366. package/dist/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +2 -0
  367. package/dist/views/chart/ContentCharts/components/ChartsOptionContent/index.vue.d.ts +14 -0
  368. package/dist/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +2 -0
  369. package/dist/views/chart/ContentCharts/components/ChartsSearch/index.vue.d.ts +14 -0
  370. package/dist/views/chart/ContentCharts/hooks/useAside.hook.d.ts +17 -0
  371. package/dist/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +5 -0
  372. package/dist/views/chart/ContentCharts/index.d.ts +2 -0
  373. package/dist/views/chart/ContentCharts/index.vue.d.ts +2 -0
  374. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/ChartThemeColor/index.vue.d.ts +2 -0
  375. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColor/index.vue.d.ts +14 -0
  376. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +2 -0
  377. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.vue.d.ts +16 -0
  378. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
  379. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +2 -0
  380. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.vue.d.ts +16 -0
  381. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
  382. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/VChartThemeColor/index.vue.d.ts +2 -0
  383. package/dist/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +2 -0
  384. package/dist/views/chart/ContentConfigurations/components/CanvasPage/index.vue.d.ts +2 -0
  385. package/dist/views/chart/ContentConfigurations/components/ChartAnimation/index.vue.d.ts +2 -0
  386. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.d.ts +2 -0
  387. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.vue.d.ts +2 -0
  388. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.d.ts +2 -0
  389. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue.d.ts +22 -0
  390. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMonacoEditor/index.d.ts +2 -0
  391. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMonacoEditor/index.vue.d.ts +2 -0
  392. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/displayTable.vue.d.ts +8 -0
  393. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/index.d.ts +2 -0
  394. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/index.vue.d.ts +10 -0
  395. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.d.ts +2 -0
  396. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.vue.d.ts +14 -0
  397. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondList/index.d.ts +2 -0
  398. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondList/index.vue.d.ts +8 -0
  399. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/index.d.ts +2 -0
  400. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/index.vue.d.ts +2 -0
  401. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalConfig/index.d.ts +2 -0
  402. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalConfig/index.vue.d.ts +2 -0
  403. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalHeaderTable/index.d.ts +2 -0
  404. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalHeaderTable/index.vue.d.ts +14 -0
  405. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeader/index.d.ts +2 -0
  406. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeader/index.vue.d.ts +8 -0
  407. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeaderTable/index.d.ts +2 -0
  408. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeaderTable/index.vue.d.ts +33 -0
  409. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.d.ts +2 -0
  410. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.vue.d.ts +8 -0
  411. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/index.d.ts +3 -0
  412. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/index.vue.d.ts +20 -0
  413. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/pondIndex.vue.d.ts +20 -0
  414. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataStatic/index.d.ts +2 -0
  415. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataStatic/index.vue.d.ts +2 -0
  416. package/dist/views/chart/ContentConfigurations/components/ChartData/hooks/useFile.hooks.d.ts +9 -0
  417. package/dist/views/chart/ContentConfigurations/components/ChartData/index.d.ts +104 -0
  418. package/dist/views/chart/ContentConfigurations/components/ChartData/index.vue.d.ts +2 -0
  419. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/importTemplate.d.ts +4 -0
  420. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/index.d.ts +2 -0
  421. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/index.vue.d.ts +2 -0
  422. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventBaseHandle/index.d.ts +2 -0
  423. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventBaseHandle/index.vue.d.ts +2 -0
  424. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventInteraction/index.d.ts +2 -0
  425. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventInteraction/index.vue.d.ts +2 -0
  426. package/dist/views/chart/ContentConfigurations/components/ChartEvent/index.vue.d.ts +2 -0
  427. package/dist/views/chart/ContentConfigurations/components/ChartSetting/index.vue.d.ts +2 -0
  428. package/dist/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +56 -0
  429. package/dist/views/chart/ContentConfigurations/index.d.ts +2 -0
  430. package/dist/views/chart/ContentConfigurations/index.vue.d.ts +2 -0
  431. package/dist/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +2 -0
  432. package/dist/views/chart/ContentEdit/components/EditAlignLine/index.vue.d.ts +2 -0
  433. package/dist/views/chart/ContentEdit/components/EditBottom/index.d.ts +2 -0
  434. package/dist/views/chart/ContentEdit/components/EditBottom/index.vue.d.ts +4 -0
  435. package/dist/views/chart/ContentEdit/components/EditGroup/index.d.ts +2 -0
  436. package/dist/views/chart/ContentEdit/components/EditGroup/index.vue.d.ts +22 -0
  437. package/dist/views/chart/ContentEdit/components/EditHistory/index.d.ts +2 -0
  438. package/dist/views/chart/ContentEdit/components/EditHistory/index.vue.d.ts +2 -0
  439. package/dist/views/chart/ContentEdit/components/EditRange/index.d.ts +2 -0
  440. package/dist/views/chart/ContentEdit/components/EditRange/index.vue.d.ts +9 -0
  441. package/dist/views/chart/ContentEdit/components/EditRule/index.d.ts +2 -0
  442. package/dist/views/chart/ContentEdit/components/EditRule/index.vue.d.ts +13 -0
  443. package/dist/views/chart/ContentEdit/components/EditSelect/index.d.ts +2 -0
  444. package/dist/views/chart/ContentEdit/components/EditSelect/index.vue.d.ts +2 -0
  445. package/dist/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +2 -0
  446. package/dist/views/chart/ContentEdit/components/EditShapeBox/index.vue.d.ts +31 -0
  447. package/dist/views/chart/ContentEdit/components/EditShortcutKey/ShortcutKeyModal.vue.d.ts +12 -0
  448. package/dist/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +2 -0
  449. package/dist/views/chart/ContentEdit/components/EditShortcutKey/index.vue.d.ts +2 -0
  450. package/dist/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +8 -0
  451. package/dist/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
  452. package/dist/views/chart/ContentEdit/components/EditTools/index.d.ts +12 -0
  453. package/dist/views/chart/ContentEdit/components/EditTools/index.vue.d.ts +2 -0
  454. package/dist/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
  455. package/dist/views/chart/ContentEdit/components/EditWatermark/index.d.ts +2 -0
  456. package/dist/views/chart/ContentEdit/components/EditWatermark/index.vue.d.ts +2 -0
  457. package/dist/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +12 -0
  458. package/dist/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
  459. package/dist/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +16 -0
  460. package/dist/views/chart/ContentEdit/index.d.ts +2 -0
  461. package/dist/views/chart/ContentEdit/index.vue.d.ts +2 -0
  462. package/dist/views/chart/ContentHeader/headerLeftBtn/index.d.ts +2 -0
  463. package/dist/views/chart/ContentHeader/headerLeftBtn/index.vue.d.ts +2 -0
  464. package/dist/views/chart/ContentHeader/headerRightBtn/index.d.ts +2 -0
  465. package/dist/views/chart/ContentHeader/headerRightBtn/index.vue.d.ts +4 -0
  466. package/dist/views/chart/ContentHeader/headerTitle/index.d.ts +2 -0
  467. package/dist/views/chart/ContentHeader/headerTitle/index.vue.d.ts +4 -0
  468. package/dist/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +2 -0
  469. package/dist/views/chart/ContentLayers/components/LayersGroupListItem/index.vue.d.ts +25 -0
  470. package/dist/views/chart/ContentLayers/components/LayersListItem/index.d.ts +2 -0
  471. package/dist/views/chart/ContentLayers/components/LayersListItem/index.vue.d.ts +34 -0
  472. package/dist/views/chart/ContentLayers/components/LayersStatus/index.d.ts +2 -0
  473. package/dist/views/chart/ContentLayers/components/LayersStatus/index.vue.d.ts +40 -0
  474. package/dist/views/chart/ContentLayers/enums.d.ts +0 -0
  475. package/dist/views/chart/ContentLayers/index.d.ts +2 -0
  476. package/dist/views/chart/ContentLayers/index.vue.d.ts +2 -0
  477. package/dist/views/chart/ContentLoad/index.d.ts +2 -0
  478. package/dist/views/chart/ContentLoad/index.vue.d.ts +2 -0
  479. package/dist/views/chart/hooks/useContextMenu.hook.d.ts +10 -0
  480. package/dist/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
  481. package/dist/views/chart/hooks/useScale.hook.d.ts +24 -0
  482. package/dist/views/chart/hooks/useSync.hook.d.ts +4 -0
  483. package/dist/views/chart/index.vue.d.ts +13 -0
  484. package/dist/views/preview/components/PreviewRenderGroup/index.d.ts +2 -0
  485. package/dist/views/preview/components/PreviewRenderGroup/index.vue.d.ts +38 -0
  486. package/dist/views/preview/components/PreviewRenderList/index.d.ts +2 -0
  487. package/dist/views/preview/components/PreviewRenderList/index.vue.d.ts +2 -0
  488. package/dist/views/preview/hooks/useComInstall.hook.d.ts +4 -0
  489. package/dist/views/preview/hooks/useScale.hook.d.ts +16 -0
  490. package/dist/views/preview/hooks/useStore.hook.d.ts +2 -0
  491. package/dist/views/preview/index.d.ts +4 -0
  492. package/dist/views/preview/suspenseIndex.vue.d.ts +5 -0
  493. package/dist/views/preview/utils/drag.d.ts +1 -0
  494. package/dist/views/preview/utils/index.d.ts +4 -0
  495. package/dist/views/preview/utils/keyboard.d.ts +1 -0
  496. package/dist/views/preview/utils/storage.d.ts +5 -0
  497. package/dist/views/preview/utils/style.d.ts +25 -0
  498. package/package.json +136 -0
@@ -0,0 +1,1811 @@
1
+ import { ref as K, onMounted as We, onUnmounted as nt, toRaw as pt, defineComponent as ne, useCssVars as Ce, computed as $, openBlock as _, createElementBlock as M, normalizeClass as ie, renderSlot as ze, Fragment as re, renderList as pe, normalizeStyle as se, unref as c, createCommentVNode as me, createElementVNode as O, createBlock as Y, withCtx as b, resolveDynamicComponent as ge, reactive as Re, watch as ue, resolveComponent as U, toRefs as De, createVNode as T, toDisplayString as de, createTextVNode as vt, watchEffect as ht, nextTick as mt, withDirectives as Ae, vShow as Ie, isRef as ft, provide as _t } from "vue";
2
+ import { m as q, E as te, z as w, a1 as X, a2 as W, a3 as Ze, V as gt, a4 as Ct, Y as Qe, a5 as Ne, W as yt, X as wt, a6 as V, Z as St, A as Oe, D as He, w as ye, _ as le, a7 as at, a8 as Be, a9 as be, aa as Xe, ab as lt, B as Tt, J as Ve, ac as xt, ad as et, u as rt, o as ct, ae as R, af as Ee, n as Et, ag as bt, p as fe, ah as ve, ai as ke, aj as kt, ak as Lt, al as Rt, s as Dt, am as tt, an as Ot, q as $t, ao as Mt, k as Ut } from "./index-237a6823.js";
3
+ import "element-plus";
4
+ import "screenfull";
5
+ import ee from "lodash/throttle";
6
+ import "html2canvas";
7
+ import "lodash/isObject";
8
+ import ot from "lodash/cloneDeep";
9
+ import "crypto-js";
10
+ import "vue3-lazyload";
11
+ import "vue3-sketch-ruler";
12
+ import Pe from "lodash/debounce";
13
+ import Z from "keymaster";
14
+ import { throttle as Fe, cloneDeep as At } from "lodash";
15
+ import { C as It } from "./index-3307e922.js";
16
+ import Ht from "lodash/reverse";
17
+ import { u as Pt } from "./useSyncUpdate.hook-f291c525.js";
18
+ import "pinia";
19
+ import "vue-i18n";
20
+ import "vue-demi";
21
+ import "lodash/merge";
22
+ import "lodash/pick";
23
+ import "highlight.js/lib/core";
24
+ import "highlight.js/lib/languages/json";
25
+ import "highlight.js/lib/languages/typescript";
26
+ import "axios";
27
+ import "element-plus/es/locale/lang/zh-cn";
28
+ import "element-plus/es/locale/lang/en";
29
+ import "three";
30
+ import "three/examples/jsm/controls/OrbitControls";
31
+ import "gsap";
32
+ import "vue3-sketch-ruler/lib/style.css";
33
+ const Yt = Symbol("scale"), Kt = () => ({
34
+ scale: K({ width: 1, height: 1 }),
35
+ SCALE_KEY: Yt
36
+ }), Nt = (e) => {
37
+ let o = () => {
38
+ };
39
+ We(async () => {
40
+ const r = q();
41
+ r.setEditCanvas(
42
+ te.EDIT_LAYOUT_DOM,
43
+ document.getElementById("go-chart-edit-layout")
44
+ ), r.setEditCanvas(
45
+ te.EDIT_CONTENT_DOM,
46
+ document.getElementById("go-chart-edit-content")
47
+ ), await e(), o = r.listenerScale();
48
+ }), nt(() => {
49
+ const r = q();
50
+ r.setEditCanvas(te.EDIT_LAYOUT_DOM, null), r.setEditCanvas(te.EDIT_CONTENT_DOM, null), o();
51
+ });
52
+ }, oe = (e) => `${X.CTRL}+${e}`, Te = (e) => `${X.SHIFT}+${e}`, j = {
53
+ [w.ARROW_UP]: oe("up"),
54
+ [w.ARROW_RIGHT]: oe("right"),
55
+ [w.ARROW_DOWN]: oe("down"),
56
+ [w.ARROW_LEFT]: oe("left"),
57
+ [w.COPY]: oe("c"),
58
+ [w.CUT]: oe("x"),
59
+ [w.PARSE]: oe("v"),
60
+ [w.DELETE]: "delete",
61
+ [w.BACK]: oe("z"),
62
+ [w.FORWORD]: oe(Te("z")),
63
+ [w.GROUP]: oe("g"),
64
+ [w.UN_GROUP]: oe(Te("g")),
65
+ [w.LOCK]: oe("l"),
66
+ [w.UNLOCK]: oe(Te("l")),
67
+ [w.HIDE]: oe("h"),
68
+ [w.SHOW]: oe(Te("h"))
69
+ }, Q = (e) => `${W.CTRL}+${e}`, xe = (e) => `${W.SHIFT}+${e}`, J = {
70
+ [w.ARROW_UP]: Q("arrowup"),
71
+ [w.ARROW_RIGHT]: Q("arrowright"),
72
+ [w.ARROW_DOWN]: Q("arrowdown"),
73
+ [w.ARROW_LEFT]: Q("arrowleft"),
74
+ [w.COPY]: Q("c"),
75
+ [w.CUT]: Q("x"),
76
+ [w.PARSE]: Q("v"),
77
+ [w.DELETE]: Q("backspace"),
78
+ [w.BACK]: Q("z"),
79
+ [w.FORWORD]: Q(xe("z")),
80
+ [w.GROUP]: Q("g"),
81
+ [w.UN_GROUP]: Q(xe("g")),
82
+ [w.LOCK]: Q("l"),
83
+ [w.UNLOCK]: Q(xe("l")),
84
+ [w.HIDE]: Q("h"),
85
+ [w.SHOW]: Q(xe("h"))
86
+ }, Bt = [
87
+ j.up,
88
+ j.right,
89
+ j.down,
90
+ j.left,
91
+ j.delete,
92
+ j.copy,
93
+ j.cut,
94
+ j.parse,
95
+ j.back,
96
+ j.forward,
97
+ j.group,
98
+ j.unGroup,
99
+ j.lock,
100
+ j.unLock,
101
+ j.hide,
102
+ j.show
103
+ ], Xt = [
104
+ J.up,
105
+ J.right,
106
+ J.down,
107
+ J.left,
108
+ J.delete,
109
+ J.copy,
110
+ J.cut,
111
+ J.parse,
112
+ J.back,
113
+ J.forward,
114
+ J.group,
115
+ J.unGroup,
116
+ J.lock,
117
+ J.unLock,
118
+ J.hide,
119
+ J.show
120
+ ], Gt = () => {
121
+ window.$KeyboardActive = {
122
+ ctrl: !1,
123
+ space: !1
124
+ }, document.onkeydown = (e) => {
125
+ const { keyCode: o } = e;
126
+ if (o == 32 && e.target == document.body && e.preventDefault(), [17, 32].includes(o) && window.$KeyboardActive)
127
+ switch (Ze(e.keyCode), o) {
128
+ case 17:
129
+ window.$KeyboardActive.ctrl = !0;
130
+ break;
131
+ case 32:
132
+ window.$KeyboardActive.space = !0;
133
+ break;
134
+ }
135
+ }, document.onkeyup = (e) => {
136
+ const { keyCode: o } = e;
137
+ if (o == 32 && e.target == document.body && e.preventDefault(), [17, 32].includes(o) && window.$KeyboardActive)
138
+ switch (Ze(), o) {
139
+ case 17:
140
+ window.$KeyboardActive.ctrl = !1;
141
+ break;
142
+ case 32:
143
+ window.$KeyboardActive.space = !1;
144
+ break;
145
+ }
146
+ };
147
+ }, Wt = () => {
148
+ const o = q(), r = (u, t) => {
149
+ switch (t) {
150
+ case u.up:
151
+ Z(t, ee(() => (o.setMove(w.ARROW_UP), !1), 50));
152
+ break;
153
+ case u.right:
154
+ Z(t, ee(() => (o.setMove(w.ARROW_RIGHT), !1), 50));
155
+ break;
156
+ case u.down:
157
+ Z(t, ee(() => (o.setMove(w.ARROW_DOWN), !1), 50));
158
+ break;
159
+ case u.left:
160
+ Z(t, ee(() => (o.setMove(w.ARROW_LEFT), !1), 50));
161
+ break;
162
+ case u.delete:
163
+ Z(t, Pe(() => (o.removeComponentList(), !1), 50));
164
+ break;
165
+ case u.copy:
166
+ Z(t, Pe(() => (o.setCopy(), !1), 50));
167
+ break;
168
+ case u.cut:
169
+ Z(t, Pe(() => (o.setCut(), !1), 50));
170
+ break;
171
+ case u.parse:
172
+ Z(t, ee(() => (o.setParse(), !1), 50));
173
+ break;
174
+ case u.back:
175
+ Z(t, ee(() => (o.setBack(), !1), 50));
176
+ break;
177
+ case u.forward:
178
+ Z(t, ee(() => (o.setForward(), !1), 50));
179
+ break;
180
+ case u.group:
181
+ Z(t, ee(() => (o.setGroup(), !1), 50));
182
+ break;
183
+ case u.unGroup:
184
+ Z(t, ee(() => (o.setUnGroup(), !1), 50));
185
+ break;
186
+ case u.lock:
187
+ Z(t, ee(() => (o.setLock(), !1), 50));
188
+ break;
189
+ case u.unLock:
190
+ Z(t, ee(() => (o.setUnLock(), !1), 50));
191
+ break;
192
+ case u.hide:
193
+ Z(t, ee(() => (o.setHide(), !1), 50));
194
+ break;
195
+ case u.show:
196
+ Z(t, ee(() => (o.setShow(), !1), 50));
197
+ break;
198
+ }
199
+ };
200
+ Bt.forEach((u) => {
201
+ r(j, u);
202
+ }), Xt.forEach((u) => {
203
+ r(J, u);
204
+ }), Gt();
205
+ }, zt = async (e) => {
206
+ e.preventDefault();
207
+ try {
208
+ gt();
209
+ const o = q(), r = e.dataTransfer.getData(Ct.DRAG_KEY);
210
+ if (!r) {
211
+ Qe();
212
+ return;
213
+ }
214
+ o.setEditCanvas(te.IS_CREATE, !1);
215
+ const u = Ne(r);
216
+ if (u.disabled)
217
+ return;
218
+ yt(u);
219
+ let t = await wt(u);
220
+ u.redirectComponent && (u.dataset && (t.option.dataset = u.dataset), t.chartConfig.title = u.title, t.chartConfig.chartFrame = u.chartFrame), V(t, e.offsetX - t.attr.w / 2, e.offsetY - t.attr.h / 2), o.addComponentList(t, !1, !0), o.setTargetSelectChart(t.id), Qe();
221
+ } catch (o) {
222
+ console.error("[hgdataview] create component failed", o), St(), window.$message.warning("图表正在研发中, 敬请期待...");
223
+ }
224
+ }, st = (e) => {
225
+ e.preventDefault(), e.stopPropagation(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy");
226
+ }, Vt = (e, o) => {
227
+ const r = q();
228
+ if (o) {
229
+ r.setTargetSelectChart(o.id);
230
+ return;
231
+ }
232
+ r.setTargetSelectChart(void 0);
233
+ }, Ft = (e, o) => {
234
+ e.stopPropagation(), e.preventDefault();
235
+ const r = q(), { onClickOutSide: u } = Oe();
236
+ o || u();
237
+ const t = e.screenX, C = e.screenY, n = e.offsetX, i = e.offsetY, h = r.getEditCanvas.scale;
238
+ r.setMousePosition(void 0, void 0, n, i);
239
+ const p = Fe((l) => {
240
+ r.setTargetSelectChart(), r.setEditCanvas(te.IS_SELECT, !0);
241
+ const a = n + l.screenX - t, L = i + l.screenY - C;
242
+ r.setMousePosition(a, L);
243
+ const s = {
244
+ // 左上角
245
+ x1: 0,
246
+ y1: 0,
247
+ // 右下角
248
+ x2: 0,
249
+ y2: 0
250
+ };
251
+ a > n && L > i ? (s.x1 = n, s.y1 = i, s.x2 = Math.round(n + (l.screenX - t) / h), s.y2 = Math.round(i + (l.screenY - C) / h)) : a > n && L < i ? (s.x1 = n, s.y1 = Math.round(i - (C - l.screenY) / h), s.x2 = Math.round(n + (l.screenX - t) / h), s.y2 = i) : a < n && L > i ? (s.x1 = Math.round(n - (t - l.screenX) / h), s.y1 = i, s.x2 = n, s.y2 = Math.round(i + (l.screenY - C) / h)) : (s.x1 = Math.round(n - (t - l.screenX) / h), s.y1 = Math.round(i - (C - l.screenY) / h), s.x2 = n, s.y2 = i), r.getComponentList.forEach((f) => {
252
+ if (!r.getTargetChart.selectId.includes(f.id)) {
253
+ const { x: v, y: S, w: y, h: g } = f.attr, d = {
254
+ // 左上角
255
+ x1: v,
256
+ y1: S,
257
+ // 右下角
258
+ x2: v + y,
259
+ y2: S + g
260
+ };
261
+ d.x1 - s.x1 >= 0 && d.y1 - s.y1 >= 0 && d.x2 - s.x2 <= 0 && d.y2 - s.y2 <= 0 && !f.status.lock && !f.status.hide && r.setTargetSelectChart(f.id, !0);
262
+ }
263
+ });
264
+ }, 30), m = () => {
265
+ p.cancel(), r.setEditCanvas(te.IS_SELECT, !1), r.setMousePosition(0, 0, 0, 0), document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", m);
266
+ };
267
+ document.addEventListener("mousemove", p), document.addEventListener("mouseup", m);
268
+ }, it = () => {
269
+ const e = q(), { onClickOutSide: o } = Oe();
270
+ return { mouseClickHandle: (n, i) => {
271
+ var h;
272
+ if (n.preventDefault(), n.stopPropagation(), !i.status.lock && (h = window.$KeyboardActive) != null && h.ctrl)
273
+ if (e.targetChart.selectId.includes(i.id)) {
274
+ const p = e.targetChart.selectId.filter((m) => m !== i.id);
275
+ e.setTargetSelectChart(p);
276
+ } else
277
+ e.setTargetSelectChart(i.id, !0);
278
+ }, mousedownHandle: (n, i) => {
279
+ var y;
280
+ if (n.preventDefault(), n.stopPropagation(), i.status.lock || (o(), n.buttons === He.LEFT && ((y = window.$KeyboardActive) != null && y.ctrl)))
281
+ return;
282
+ const h = e.getTargetChart.selectId;
283
+ if (n.buttons === He.RIGHT && h.length > 1 && h.includes(i.id) || (e.setTargetSelectChart(i.id), n.buttons === He.RIGHT))
284
+ return;
285
+ const p = e.getEditCanvas.scale, m = e.getEditCanvasConfig.width, l = e.getEditCanvasConfig.height, a = /* @__PURE__ */ new Map();
286
+ e.getTargetChart.selectId.forEach((g) => {
287
+ const d = e.fetchTargetIndex(g);
288
+ if (d !== -1) {
289
+ const { x, y: I, w: G, h: B } = pt(e.getComponentList[d]).attr;
290
+ a.set(g, { x, y: I, w: G, h: B });
291
+ }
292
+ });
293
+ const L = n.screenX, s = n.screenY;
294
+ let f = [];
295
+ e.getTargetChart.selectId.forEach((g) => {
296
+ if (!a.has(g))
297
+ return;
298
+ const d = e.fetchTargetIndex(g);
299
+ f.push(At(e.getComponentList[d]));
300
+ }), e.setMousePosition(void 0, void 0, L, s);
301
+ const v = Fe((g) => {
302
+ e.setEditCanvas(te.IS_DRAG, !0), e.setMousePosition(g.screenX, g.screenY);
303
+ let d = (g.screenX - L) / p, x = (g.screenY - s) / p;
304
+ e.getTargetChart.selectId.forEach((I) => {
305
+ if (!a.has(I))
306
+ return;
307
+ const G = e.fetchTargetIndex(I), { x: B, y: E, w: H, h: ce } = a.get(I), ae = e.getComponentList[G];
308
+ let k = Math.round(B + d), N = Math.round(E + x);
309
+ const P = 50;
310
+ k = k < -H + P ? -H + P : k, N = N < -ce + P ? -ce + P : N, k = k > m - P ? m - P : k, N = N > l - P ? l - P : N, ae && (ae.attr = Object.assign(ae.attr, {
311
+ x: k,
312
+ y: N
313
+ }));
314
+ });
315
+ }, 20), S = () => {
316
+ try {
317
+ if (e.setMousePosition(0, 0, 0, 0), e.setEditCanvas(te.IS_DRAG, !1), f.length) {
318
+ e.getTargetChart.selectId.forEach((d) => {
319
+ if (!a.has(d))
320
+ return;
321
+ const x = e.fetchTargetIndex(d), I = e.getComponentList[x];
322
+ f.forEach((G) => {
323
+ G.id === d && (G.attr = Object.assign(G.attr, {
324
+ offsetX: I.attr.x - G.attr.x,
325
+ offsetY: I.attr.y - G.attr.y
326
+ }));
327
+ });
328
+ });
329
+ const g = f.filter(
330
+ (d) => d.attr.offsetX !== 0 && d.attr.offsetY !== 0
331
+ );
332
+ g.length && e.moveComponentList(g);
333
+ }
334
+ document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", S);
335
+ } catch (g) {
336
+ console.log(g);
337
+ }
338
+ };
339
+ document.addEventListener("mousemove", v), document.addEventListener("mouseup", S);
340
+ }, mouseenterHandle: (n, i) => {
341
+ n.preventDefault(), n.stopPropagation(), e.getEditCanvas.isSelect || e.setTargetHoverChart(i.id);
342
+ }, mouseleaveHandle: (n, i) => {
343
+ n.preventDefault(), n.stopPropagation(), e.setEditCanvas(te.IS_DRAG, !1), e.setTargetHoverChart(void 0);
344
+ } };
345
+ }, qt = (e, o, r, u) => {
346
+ e.stopPropagation(), e.preventDefault();
347
+ const t = q();
348
+ t.setEditCanvas(te.IS_DRAG, !0), t.setTargetSelectChart(u);
349
+ const C = t.getEditCanvas.scale, n = r.x, i = r.y, h = r.w, p = r.h, m = e.screenX, l = e.screenY;
350
+ t.setMousePosition(m, l);
351
+ const a = Fe((s) => {
352
+ t.setMousePosition(s.screenX, s.screenY);
353
+ let f = Math.round((s.screenX - m) / C), v = Math.round((s.screenY - l) / C);
354
+ const S = /t/.test(o), y = /b/.test(o), g = /l/.test(o), d = /r/.test(o), x = p + (S ? -v : y ? v : 0), I = h + (g ? -f : d ? f : 0);
355
+ r.h = x > 0 ? x : 0, r.w = I > 0 ? I : 0, r.x = n + (g ? f : 0), r.y = i + (S ? v : 0);
356
+ }, 50), L = () => {
357
+ t.setEditCanvas(te.IS_DRAG, !1), t.setMousePosition(0, 0, 0, 0), document.removeEventListener("mousemove", a), document.removeEventListener("mouseup", L);
358
+ };
359
+ document.addEventListener("mousemove", a), document.addEventListener("mouseup", L);
360
+ }, Le = (e, o) => e ? {
361
+ zIndex: o + 1,
362
+ left: `${e.x}px`,
363
+ top: `${e.y}px`
364
+ } : {}, _e = (e, o) => e ? {
365
+ width: `${o ? o * e.w : e.w}px`,
366
+ height: `${o ? o * e.h : e.h}px`
367
+ } : {}, jt = (e, o, r, u) => {
368
+ const { w: t, h: C } = r, n = /t/.test(e), i = /b/.test(e), h = /l/.test(e), p = /r/.test(e);
369
+ let m = 0, l = 0;
370
+ return e.length === 2 ? (m = h ? 0 : t, l = n ? 0 : C) : ((n || i) && (m = t / 2, l = n ? 0 : C), (h || p) && (m = h ? 0 : t, l = Math.floor(C / 2))), {
371
+ left: `${m}px`,
372
+ top: `${l}px`,
373
+ cursor: u[o] + "-resize"
374
+ };
375
+ }, Jt = ["onMousedown"], Zt = /* @__PURE__ */ ne({
376
+ __name: "index",
377
+ props: {
378
+ item: {
379
+ type: Object,
380
+ required: !0
381
+ },
382
+ hiddenPoint: {
383
+ type: Boolean,
384
+ required: !1
385
+ }
386
+ },
387
+ setup(e) {
388
+ Ce((l) => ({
389
+ "5637417a": n.value
390
+ }));
391
+ const o = e, r = ye(), u = q(), t = ["t", "r", "b", "l", "lt", "rt", "lb", "rb"], C = ["n", "e", "s", "w", "nw", "ne", "sw", "se"], n = $(() => r.getAppTheme), i = $(() => u.getEditCanvas[te.IS_DRAG] || o.item.status.lock ? !1 : o.item.id === u.getTargetChart.hoverId), h = $(() => {
392
+ const l = o.item.id;
393
+ return o.item.status.lock ? !1 : u.getTargetChart.selectId.find((a) => a === l);
394
+ }), p = $(() => o.item.status.lock), m = $(() => o.item.status.hide);
395
+ return (l, a) => (_(), M("div", {
396
+ class: ie(["go-shape-box", { lock: p.value, hide: m.value }])
397
+ }, [
398
+ ze(l.$slots, "default", {}, void 0, !0),
399
+ e.hiddenPoint ? me("", !0) : (_(!0), M(re, { key: 0 }, pe(h.value ? t : [], (L, s) => (_(), M("div", {
400
+ class: ie(`shape-point ${L}`),
401
+ key: s,
402
+ style: se(c(jt)(L, s, e.item.attr, C)),
403
+ onMousedown: (f) => c(qt)(f, L, e.item.attr, e.item.id)
404
+ }, null, 46, Jt))), 128)),
405
+ O("div", {
406
+ class: "shape-modal",
407
+ style: se(c(_e)(e.item.attr))
408
+ }, [
409
+ O("div", {
410
+ class: ie(["shape-modal-select", { active: h.value }])
411
+ }, null, 2),
412
+ O("div", {
413
+ class: ie(["shape-modal-change", { selectActive: h.value, hoverActive: i.value }])
414
+ }, null, 2)
415
+ ], 4)
416
+ ], 2));
417
+ }
418
+ });
419
+ const Ge = /* @__PURE__ */ le(Zt, [["__scopeId", "data-v-278f2fbe"]]), Qt = { class: "go-edit-group-box" }, eo = /* @__PURE__ */ ne({
420
+ __name: "index",
421
+ props: {
422
+ groupData: {
423
+ type: Object,
424
+ required: !0
425
+ },
426
+ groupIndex: {
427
+ type: Number,
428
+ required: !0
429
+ }
430
+ },
431
+ setup(e) {
432
+ const o = q(), { handleContextMenu: r } = Oe(), { mouseenterHandle: u, mouseleaveHandle: t, mousedownHandle: C, mouseClickHandle: n } = it(), i = (m, l, a) => {
433
+ const L = (s) => l.filter((f) => s.includes(f.key));
434
+ if (o.getTargetChart.selectId.length > 1)
435
+ return L([w.GROUP, w.DELETE]);
436
+ {
437
+ const s = [];
438
+ a.status.lock ? s.push(w.LOCK) : s.push(w.UNLOCK), a.status.hide ? s.push(w.HIDE) : s.push(w.SHOW);
439
+ const f = [w.UN_GROUP];
440
+ return [
441
+ ...L(f),
442
+ Tt(),
443
+ ...m.filter((v) => !s.includes(v.key))
444
+ ];
445
+ }
446
+ }, h = $(() => at(o.getEditCanvasConfig.chartCustomThemeColorInfo)[o.getEditCanvasConfig.chartThemeColor]), p = $(() => o.getEditCanvasConfig.chartThemeSetting);
447
+ return (m, l) => (_(), M("div", Qt, [
448
+ (_(), Y(c(Ge), {
449
+ key: e.groupData.id,
450
+ "data-id": e.groupData.id,
451
+ index: e.groupIndex,
452
+ item: e.groupData,
453
+ hiddenPoint: !0,
454
+ class: ie(c(Be)(e.groupData.styles.animations)),
455
+ style: se({
456
+ ...c(Le)(e.groupData.attr, e.groupIndex),
457
+ ...c(_e)(e.groupData.attr),
458
+ ...c(be)(e.groupData.styles),
459
+ ...c(Xe)(e.groupData.styles),
460
+ ...c(lt)(e.groupData.styles)
461
+ }),
462
+ onClick: l[0] || (l[0] = (a) => c(n)(a, e.groupData)),
463
+ onMousedown: l[1] || (l[1] = (a) => c(C)(a, e.groupData)),
464
+ onMouseenter: l[2] || (l[2] = (a) => c(u)(a, e.groupData)),
465
+ onMouseleave: l[3] || (l[3] = (a) => c(t)(a, e.groupData)),
466
+ onContextmenu: l[4] || (l[4] = (a) => c(r)(a, e.groupData, i))
467
+ }, {
468
+ default: b(() => [
469
+ (_(!0), M(re, null, pe(e.groupData.groupList, (a) => (_(), Y(c(Ge), {
470
+ key: a.id,
471
+ "data-id": a.id,
472
+ index: e.groupIndex,
473
+ item: a,
474
+ hiddenPoint: !0,
475
+ style: se({
476
+ ...c(Le)(a.attr, e.groupIndex)
477
+ })
478
+ }, {
479
+ default: b(() => [
480
+ (_(), Y(ge(a.chartConfig.chartKey), {
481
+ class: ie(["edit-content-chart", c(Be)(a.styles.animations)]),
482
+ chartConfig: a,
483
+ themeSetting: p.value,
484
+ themeColor: h.value,
485
+ style: se({
486
+ ...c(_e)(a.attr),
487
+ ...c(be)(a.styles),
488
+ ...c(Xe)(a.styles)
489
+ })
490
+ }, null, 8, ["class", "chartConfig", "themeSetting", "themeColor", "style"]))
491
+ ]),
492
+ _: 2
493
+ }, 1032, ["data-id", "index", "item", "style"]))), 128))
494
+ ]),
495
+ _: 1
496
+ }, 8, ["data-id", "index", "item", "class", "style"]))
497
+ ]));
498
+ }
499
+ }), to = { class: "go-edit-align-line" }, oo = /* @__PURE__ */ ne({
500
+ __name: "index",
501
+ setup(e) {
502
+ Ce((s) => ({
503
+ "8279bb54": n.value
504
+ }));
505
+ const o = ye(), r = q(), u = Ve(), t = Re({
506
+ // 行横向row(上中下),列竖线col(左中右)
507
+ lineArr: ["rowt", "rowc", "rowb", "coll", "colc", "colr"],
508
+ // 展示线
509
+ select: /* @__PURE__ */ new Map(),
510
+ // 已经吸附
511
+ sorptioned: {
512
+ x: !1,
513
+ y: !1
514
+ }
515
+ }), C = (s) => s ? {
516
+ left: `${s.x ? s.x : 0}px`,
517
+ top: `${s.y ? s.y : 0}px`
518
+ } : {}, n = $(() => o.getAppTheme), i = $(() => u.getChartAlignRange), h = $(() => r.getEditCanvas[te.IS_DRAG]), p = (s, f) => Math.abs(s - f) <= i.value, m = $(() => r.getTargetChart.selectId), l = $(() => r.getComponentList[r.fetchTargetIndex()]), a = $(() => {
519
+ var s;
520
+ return ((s = l.value) == null ? void 0 : s.attr) || {};
521
+ }), L = $(() => ({
522
+ id: "0",
523
+ attr: {
524
+ w: ot(r.getEditCanvasConfig.width),
525
+ h: ot(r.getEditCanvasConfig.height),
526
+ x: 0,
527
+ y: 0,
528
+ offsetX: 0,
529
+ offsetY: 0,
530
+ zIndex: 0
531
+ }
532
+ }));
533
+ return ue(
534
+ () => r.getMousePosition,
535
+ ee(() => {
536
+ try {
537
+ if (!h.value || m.value.length !== 1)
538
+ return;
539
+ const s = a.value.w, f = a.value.h, v = a.value.x, S = v + s / 2, y = v + s, g = [v, S, y], d = a.value.y, x = d + f / 2, I = d + f, G = [d, x, I];
540
+ t.select.clear(), t.sorptioned.y = !1;
541
+ const B = r.getComponentList.map((E) => ({
542
+ id: E.id,
543
+ attr: E.attr
544
+ }));
545
+ B.push(L.value), t.lineArr.forEach((E) => {
546
+ B.forEach((H) => {
547
+ if (m.value[0] === H.id)
548
+ return;
549
+ const ce = H.attr.w, ae = H.attr.h, k = H.attr.x, N = k + ce / 2, P = k + ce, D = [k, N, P], A = H.attr.y, z = A + ae / 2, F = A + ae, $e = [A, z, F];
550
+ E.includes("rowt") && (p(d, A) && (t.select.set(E, { y: A }), V(l.value, v, A)), p(d, z) && (t.select.set(E, { y: z }), V(l.value, v, z)), p(d, F) && (t.select.set(E, { y: F }), V(l.value, v, F))), E.includes("rowc") && (p(x, A) && (t.select.set(E, { y: A }), V(l.value, v, A - f / 2)), p(x, z) && (t.select.set(E, { y: z }), V(l.value, v, z - f / 2)), p(x, F) && (t.select.set(E, { y: F }), V(l.value, v, F - f / 2))), E.includes("rowb") && (p(I, A) && (t.select.set(E, { y: A }), V(l.value, v, A - f)), p(I, z) && (t.select.set(E, { y: z }), V(l.value, v, z - f)), p(I, F) && (t.select.set(E, { y: F }), V(l.value, v, F - f))), E.includes("coll") && (p(v, k) && (t.select.set(E, { x: k }), V(l.value, k, d)), p(v, N) && (t.select.set(E, { x: N }), V(l.value, N, d)), p(v, P) && (t.select.set(E, { x: P }), V(l.value, P, d))), E.includes("colc") && (p(S, k) && (t.select.set(E, { x: k }), V(l.value, k - s / 2, d)), p(S, N) && (t.select.set(E, { x: N }), V(l.value, N - s / 2, d)), p(S, P) && (t.select.set(E, { x: P }), V(l.value, P - s / 2, d))), E.includes("colr") && (p(y, k) && (t.select.set(E, { x: k }), V(l.value, k - s, d)), p(y, N) && (t.select.set(E, { x: N }), V(l.value, N - s, d)), p(y, P) && (t.select.set(E, { x: P }), V(l.value, P - s, d)));
551
+ });
552
+ });
553
+ } catch (s) {
554
+ console.log(s);
555
+ }
556
+ }, 200),
557
+ {
558
+ deep: !0
559
+ }
560
+ ), ue(
561
+ () => h.value,
562
+ (s) => {
563
+ s || (t.select.clear(), t.sorptioned.y = !1);
564
+ }
565
+ ), (s, f) => (_(), M("div", to, [
566
+ (_(!0), M(re, null, pe(t.lineArr, (v) => (_(), M("div", {
567
+ class: ie(["line", [v.includes("row") ? "row" : "col", t.select.has(v) && "visible"]]),
568
+ key: v,
569
+ style: se(C(t.select.get(v)))
570
+ }, null, 6))), 128))
571
+ ]));
572
+ }
573
+ });
574
+ const so = /* @__PURE__ */ le(oo, [["__scopeId", "data-v-b6818df3"]]), no = /* @__PURE__ */ ne({
575
+ __name: "index",
576
+ setup(e) {
577
+ return (o, r) => {
578
+ const u = U("el-watermark");
579
+ return _(), Y(u, {
580
+ id: "go-edit-watermark",
581
+ content: c(xt),
582
+ font: { fontSize: 16 },
583
+ width: 500,
584
+ height: 150,
585
+ offset: [12, 80],
586
+ rotate: -15
587
+ }, null, 8, ["content"]);
588
+ };
589
+ }
590
+ });
591
+ const ao = /* @__PURE__ */ le(no, [["__scopeId", "data-v-3e99fb24"]]), lo = /* @__PURE__ */ ne({
592
+ __name: "index",
593
+ setup(e) {
594
+ Ce((i) => ({
595
+ "35a3c7d9": C.value
596
+ }));
597
+ const o = ye(), r = q(), { isSelect: u, scale: t } = De(r.getEditCanvas), C = $(() => o.getAppTheme), n = K();
598
+ return ue(
599
+ () => r.getMousePosition,
600
+ (i) => {
601
+ if (!u.value)
602
+ return;
603
+ const { startX: h, startY: p, x: m, y: l } = i, a = {
604
+ zIndex: et,
605
+ // left
606
+ x: 0,
607
+ // top
608
+ y: 0,
609
+ // 宽
610
+ w: 0,
611
+ // 高
612
+ h: 0,
613
+ // 偏移
614
+ offsetX: 0,
615
+ offsetY: 0
616
+ };
617
+ m > h && l > p ? (a.x = h, a.y = p, a.w = Math.round((m - h) / t.value), a.h = Math.round((l - p) / t.value)) : m > h && l < p ? (a.x = h, a.w = Math.round((m - h) / t.value), a.h = Math.round((p - l) / t.value), a.y = p - a.h) : m < h && l > p ? (a.y = p, a.w = Math.round((h - m) / t.value), a.h = Math.round((l - p) / t.value), a.x = h - a.w) : (a.w = Math.round((h - m) / t.value), a.h = Math.round((p - l) / t.value), a.x = h - a.w, a.y = p - a.h), n.value = {
618
+ ...Le(a, et),
619
+ ..._e(a)
620
+ };
621
+ },
622
+ {
623
+ deep: !0
624
+ }
625
+ ), (i, h) => c(u) ? (_(), M("div", {
626
+ key: 0,
627
+ class: "go-edit-select",
628
+ style: se(n.value)
629
+ }, h[0] || (h[0] = [
630
+ O("div", { class: "select-background" }, null, -1),
631
+ O("div", { class: "select-border" }, null, -1)
632
+ ]), 4)) : me("", !0);
633
+ }
634
+ });
635
+ const ro = /* @__PURE__ */ le(lo, [["__scopeId", "data-v-cde4a626"]]), co = /* @__PURE__ */ ne({
636
+ __name: "index",
637
+ setup(e) {
638
+ const o = q(), { getEditCanvasConfig: r, getEditCanvas: u } = De(o), t = $(() => ({
639
+ w: r.value.width,
640
+ h: r.value.height
641
+ })), C = $(() => {
642
+ const i = {
643
+ transform: `scale(${u.value.scale})`
644
+ };
645
+ return { ..._e(t.value), ...i };
646
+ }), n = $(() => {
647
+ const i = u.value.isCreate && { "z-index": 99999 };
648
+ return { ..._e(t.value), ...i };
649
+ });
650
+ return (i, h) => (_(), M("div", {
651
+ class: "go-edit-range go-transition",
652
+ style: se(C.value),
653
+ onMousedown: h[0] || (h[0] = (p) => c(Ft)(p, void 0))
654
+ }, [
655
+ ze(i.$slots, "default", {}, void 0, !0),
656
+ T(c(ao)),
657
+ T(c(so)),
658
+ T(c(ro)),
659
+ O("div", {
660
+ class: "go-edit-range-model",
661
+ style: se(n.value)
662
+ }, null, 4)
663
+ ], 36));
664
+ }
665
+ });
666
+ const io = /* @__PURE__ */ le(co, [["__scopeId", "data-v-a53f4e4d"]]), uo = { class: "go-sketch-rule" }, Ye = 20, po = /* @__PURE__ */ ne({
667
+ __name: "index",
668
+ setup(e) {
669
+ Ce((D) => ({
670
+ f35669d0: B.value,
671
+ e4eab06c: I.value,
672
+ "1f3b73bd": l.value
673
+ }));
674
+ const o = q(), r = rt(), u = ye();
675
+ let t = [0, 0], C = [0, 0];
676
+ const n = K(), i = K(!0), h = K(), p = K(), m = K(!1), l = K("auto"), { width: a, height: L } = De(o.getEditCanvasConfig), s = K(0), f = K(0), v = Re({ h: [], v: [] }), S = $(() => o.getEditCanvas.scale), y = K(800), g = K(600), d = () => {
677
+ const D = document.getElementById("go-chart-edit-layout");
678
+ if (D) {
679
+ const z = D.clientWidth - 20, F = D.clientHeight - 20;
680
+ z > 0 && F > 0 && (y.value = z, g.value = F);
681
+ }
682
+ }, x = $(() => `${window.innerWidth * 2}px`), I = $(() => {
683
+ const D = L.value || 600;
684
+ return `${Math.max(D * 2, 1200)}px`;
685
+ }), G = $(() => u.getDarkTheme ? {
686
+ bgColor: "#18181c",
687
+ longfgColor: "#4d4d4d",
688
+ shortfgColor: "#4d4d4d",
689
+ fontColor: "#4d4d4d",
690
+ shadowColor: "#18181c",
691
+ borderColor: "#18181c",
692
+ cornerActiveColor: "#18181c"
693
+ } : {}), B = $(() => u.getAppTheme), E = (D) => {
694
+ if (D.ctrlKey || D.metaKey) {
695
+ D.preventDefault();
696
+ let A = S.value;
697
+ if (D.wheelDelta >= 0 && S.value < 2) {
698
+ A = S.value + 0.05, o.setScale(A);
699
+ return;
700
+ }
701
+ D.wheelDelta < 0 && S.value > 0.1 && (A = S.value - 0.05, o.setScale(A));
702
+ }
703
+ }, H = () => {
704
+ if (!n.value)
705
+ return;
706
+ const D = n.value.getBoundingClientRect(), A = h.value.getBoundingClientRect();
707
+ s.value = (D.left + Ye - A.left) / S.value, f.value = (D.top + Ye - A.top) / S.value;
708
+ }, ce = (D) => {
709
+ var qe, je;
710
+ if (D.preventDefault(), D.stopPropagation(), D.which == 2)
711
+ m.value = !0;
712
+ else if (!((qe = window.$KeyboardActive) != null && qe.space))
713
+ return;
714
+ (je = document.activeElement) == null || je.blur();
715
+ const A = D.pageX, z = D.pageY, F = (Je) => {
716
+ const ut = Je.pageX - A, dt = Je.pageY - z, [Me, we] = t, [Ue, Se] = C;
717
+ t = [we, ut], C = [Se, dt], n.value.scrollLeft -= we > Me ? Math.abs(we - Me) : -Math.abs(we - Me), n.value.scrollTop -= Se > Ue ? Math.abs(Se - Ue) : -Math.abs(Se - Ue);
718
+ }, $e = () => {
719
+ window.removeEventListener("mousemove", F), window.removeEventListener("mouseup", $e), t = [0, 0], C = [0, 0], m.value = !1;
720
+ };
721
+ window.addEventListener("mousemove", F), window.addEventListener("mouseup", $e);
722
+ }, ae = () => ({
723
+ width: y.value,
724
+ height: g.value
725
+ }), k = ee(() => {
726
+ d(), i.value = !1, setTimeout(() => {
727
+ i.value = !0;
728
+ }, 10);
729
+ }, 20), N = () => {
730
+ const { width: D, height: A } = p.value.getBoundingClientRect(), { width: z, height: F } = ae();
731
+ n.value.scrollLeft = D / 2 - z / 2, n.value.scrollTop = A / 2 - F / 2;
732
+ };
733
+ ue(
734
+ () => u.getDarkTheme,
735
+ () => {
736
+ k();
737
+ }
738
+ ), ue(
739
+ () => S.value,
740
+ (D, A) => {
741
+ A !== D && r.getRePositionCanvas && r.setItemUnHandle(ct.RE_POSITION_CANVAS, !1), H(), setTimeout(() => {
742
+ N(), k();
743
+ }, 400);
744
+ }
745
+ ), ue(
746
+ () => m.value,
747
+ (D) => {
748
+ l.value = D ? "grab" : "auto";
749
+ }
750
+ );
751
+ const P = ee(() => {
752
+ k();
753
+ }, 100);
754
+ return We(() => {
755
+ n.value && (n.value.addEventListener("wheel", E, { passive: !1 }), i.value = !1, setTimeout(() => {
756
+ d(), N(), i.value = !0;
757
+ }, 200)), window.addEventListener("resize", P);
758
+ }), nt(() => {
759
+ n.value && n.value.removeEventListener("wheel", E), window.removeEventListener("resize", P);
760
+ }), window.onKeySpacePressHold = (D) => {
761
+ m.value = D;
762
+ }, (D, A) => {
763
+ const z = U("sketch-rule");
764
+ return _(), M("div", uo, [
765
+ i.value ? (_(), Y(z, {
766
+ key: 0,
767
+ thick: Ye,
768
+ scale: S.value,
769
+ width: ae().width,
770
+ height: ae().height,
771
+ startX: s.value,
772
+ startY: f.value,
773
+ lines: v,
774
+ palette: G.value
775
+ }, null, 8, ["scale", "width", "height", "startX", "startY", "lines", "palette"])) : me("", !0),
776
+ O("div", {
777
+ ref_key: "$app",
778
+ ref: n,
779
+ class: "edit-screens",
780
+ onScroll: H
781
+ }, [
782
+ O("div", {
783
+ ref_key: "$container",
784
+ ref: p,
785
+ class: "edit-screen-container",
786
+ style: se({ width: x.value })
787
+ }, [
788
+ O("div", {
789
+ ref_key: "refSketchRuleBox",
790
+ ref: h,
791
+ class: "canvas",
792
+ onMousedown: ce,
793
+ style: se({ marginLeft: "-" + (ae().width / 2 - 25) + "px" })
794
+ }, [
795
+ O("div", {
796
+ style: se({ pointerEvents: m.value ? "none" : "auto" })
797
+ }, [
798
+ ze(D.$slots, "default", {}, void 0, !0)
799
+ ], 4)
800
+ ], 36)
801
+ ], 4)
802
+ ], 544)
803
+ ]);
804
+ };
805
+ }
806
+ });
807
+ const vo = /* @__PURE__ */ le(po, [["__scopeId", "data-v-034f2fed"]]), Ke = {
808
+ [R.ADD]: "新增",
809
+ [R.DELETE]: "删除",
810
+ [R.UPDATE]: "更新",
811
+ [R.MOVE]: "移动",
812
+ [R.PASTE]: "粘贴",
813
+ [R.COPY]: "复制",
814
+ [R.CUT]: "剪切",
815
+ [R.TOP]: "置顶",
816
+ [R.BOTTOM]: "置底",
817
+ [R.UP]: "上移",
818
+ [R.DOWN]: "下移",
819
+ [R.GROUP]: "成组",
820
+ [R.UN_GROUP]: "解组",
821
+ [R.LOCK]: "锁定",
822
+ [R.UNLOCK]: "解锁",
823
+ [R.HIDE]: "隐藏",
824
+ [R.SHOW]: "显示",
825
+ [Ee.CANVAS]: "画布初始化"
826
+ }, ho = { class: "go-flex-items-center edit-history-wrapper" }, mo = {
827
+ key: 0,
828
+ class: "history-list-box"
829
+ }, fo = ["title"], _o = { class: "item-label" }, go = {
830
+ key: 1,
831
+ class: "empty-tip"
832
+ }, Co = /* @__PURE__ */ ne({
833
+ __name: "index",
834
+ setup(e) {
835
+ const {
836
+ DesktopOutlineIcon: o,
837
+ PencilIcon: r,
838
+ TrashIcon: u,
839
+ CopyIcon: t,
840
+ LayersIcon: C,
841
+ DuplicateIcon: n,
842
+ HelpOutlineIcon: i,
843
+ LockClosedOutlineIcon: h,
844
+ LockOpenOutlineIcon: p,
845
+ EyeOffOutlineIcon: m,
846
+ EyeOutlineIcon: l
847
+ } = fe.ionicons5, { StackedMoveIcon: a, Carbon3DCursorIcon: L, Carbon3DSoftwareIcon: s } = fe.carbon, f = Et(), v = (g) => {
848
+ if (g.targetType === Ee.CANVAS)
849
+ return o;
850
+ switch (g.actionType) {
851
+ case R.UPDATE:
852
+ return r;
853
+ case R.DELETE:
854
+ return u;
855
+ case R.PASTE:
856
+ return t;
857
+ case R.TOP:
858
+ return C;
859
+ case R.BOTTOM:
860
+ return C;
861
+ case R.UP:
862
+ return C;
863
+ case R.DOWN:
864
+ return C;
865
+ case R.MOVE:
866
+ return a;
867
+ case R.ADD:
868
+ return n;
869
+ case R.GROUP:
870
+ return L;
871
+ case R.UN_GROUP:
872
+ return s;
873
+ case R.LOCK:
874
+ return h;
875
+ case R.UNLOCK:
876
+ return p;
877
+ case R.HIDE:
878
+ return m;
879
+ case R.SHOW:
880
+ return l;
881
+ default:
882
+ return r;
883
+ }
884
+ }, S = (g) => {
885
+ if (g.targetType === Ee.CANVAS)
886
+ return Ke[Ee.CANVAS];
887
+ if (g.actionType === R.GROUP || g.actionType === R.UN_GROUP)
888
+ return `${Ke[g.actionType]}`;
889
+ if (g.historyData.length)
890
+ return `${Ke[g.actionType]} - ${g.historyData[0].chartConfig.title}`;
891
+ }, y = $(() => {
892
+ const d = f.getBackStack.map((x) => ({
893
+ label: S(x),
894
+ icon: v(x)
895
+ }));
896
+ return Ht(d.filter((x) => x.label));
897
+ });
898
+ return (g, d) => {
899
+ const x = U("el-button"), I = U("el-icon"), G = U("el-scrollbar"), B = U("el-popover"), E = U("el-tooltip");
900
+ return _(), M("div", ho, [
901
+ T(B, {
902
+ "show-arrow": !1,
903
+ trigger: "click",
904
+ placement: "top-start",
905
+ width: 280,
906
+ teleported: !0,
907
+ "popper-class": "edit-history-popover"
908
+ }, {
909
+ reference: b(() => [
910
+ T(x, {
911
+ class: "mr-10",
912
+ size: "small",
913
+ disabled: y.value.length === 0
914
+ }, {
915
+ default: b(() => d[0] || (d[0] = [
916
+ O("span", { class: "btn-text" }, "历史记录", -1)
917
+ ])),
918
+ _: 1,
919
+ __: [0]
920
+ }, 8, ["disabled"])
921
+ ]),
922
+ default: b(() => [
923
+ y.value.length > 0 ? (_(), M("div", mo, [
924
+ T(G, { "max-height": "400px" }, {
925
+ default: b(() => [
926
+ (_(!0), M(re, null, pe(y.value, (H, ce) => (_(), M("div", {
927
+ class: "list-item go-flex-items-center",
928
+ key: ce,
929
+ title: H.label
930
+ }, [
931
+ T(I, {
932
+ class: "item-icon",
933
+ size: 16
934
+ }, {
935
+ default: b(() => [
936
+ (_(), Y(ge(H.icon)))
937
+ ]),
938
+ _: 2
939
+ }, 1024),
940
+ O("span", _o, de(H.label), 1)
941
+ ], 8, fo))), 128))
942
+ ]),
943
+ _: 1
944
+ })
945
+ ])) : (_(), M("div", go, "暂无历史记录"))
946
+ ]),
947
+ _: 1
948
+ }),
949
+ T(E, {
950
+ content: `最多只保留${c(bt)}条记录`,
951
+ placement: "top"
952
+ }, {
953
+ default: b(() => [
954
+ T(I, {
955
+ size: 21,
956
+ class: "help-icon"
957
+ }, {
958
+ default: b(() => [
959
+ T(c(i))
960
+ ]),
961
+ _: 1
962
+ })
963
+ ]),
964
+ _: 1
965
+ }, 8, ["content"])
966
+ ]);
967
+ };
968
+ }
969
+ });
970
+ const yo = /* @__PURE__ */ le(Co, [["__scopeId", "data-v-e8fc42e1"]]), wo = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, So = { key: 0 }, To = { key: 1 }, xo = { style: { "font-size": "22px", background: "linear-gradient(90deg, var(--el-color-primary), var(--el-color-success))", "-webkit-background-clip": "text", "-webkit-text-fill-color": "transparent" } }, Eo = /* @__PURE__ */ ne({
971
+ __name: "ShortcutKeyModal",
972
+ props: {
973
+ modelShow: Boolean
974
+ },
975
+ emits: ["update:modelShow"],
976
+ setup(e, { emit: o }) {
977
+ const { CloseIcon: r } = fe.ionicons5, u = K(!1), t = o, C = e;
978
+ ue(() => C.modelShow, (h) => {
979
+ u.value = h;
980
+ });
981
+ const n = [
982
+ {
983
+ label: "拖拽画布",
984
+ win: `${X.SPACE.toUpperCase()} + 🖱️ `,
985
+ mac: `${W.SPACE.toUpperCase()} + 🖱️ `,
986
+ macSource: !0
987
+ },
988
+ {
989
+ label: "向 上/右/下/左 移动",
990
+ win: `${X.CTRL.toUpperCase()} + ↑ 或 → 或 ↓ 或 ←`,
991
+ mac: `${W.CTRL.toUpperCase()} + ↑ `
992
+ },
993
+ {
994
+ label: "锁定",
995
+ win: `${X.CTRL.toUpperCase()} + L `,
996
+ mac: `${W.CTRL.toUpperCase()} + L `
997
+ },
998
+ {
999
+ label: "解锁",
1000
+ win: `${X.CTRL.toUpperCase()} + ${X.SHIFT.toUpperCase()}+ L `,
1001
+ mac: `${W.CTRL.toUpperCase()} + ${W.SHIFT.toUpperCase()} + L `
1002
+ },
1003
+ {
1004
+ label: "展示",
1005
+ win: `${X.CTRL.toUpperCase()} + H `,
1006
+ mac: `${W.CTRL.toUpperCase()} + H `
1007
+ },
1008
+ {
1009
+ label: "隐藏",
1010
+ win: `${X.CTRL.toUpperCase()} + ${X.SHIFT.toUpperCase()} + H `,
1011
+ mac: `${W.CTRL.toUpperCase()} + ${W.SHIFT.toUpperCase()} + H `
1012
+ },
1013
+ {
1014
+ label: "删除",
1015
+ win: "Delete".toUpperCase(),
1016
+ mac: `${W.CTRL.toUpperCase()} + Backspace `
1017
+ },
1018
+ {
1019
+ label: "复制",
1020
+ win: `${X.CTRL.toUpperCase()} + C `,
1021
+ mac: `${W.CTRL.toUpperCase()} + C `
1022
+ },
1023
+ {
1024
+ label: "剪切",
1025
+ win: `${X.CTRL.toUpperCase()} + X `,
1026
+ mac: `${W.CTRL.toUpperCase()} + X `
1027
+ },
1028
+ {
1029
+ label: "粘贴",
1030
+ win: `${X.CTRL.toUpperCase()} + V `,
1031
+ mac: `${W.CTRL.toUpperCase()} + V `
1032
+ },
1033
+ {
1034
+ label: "后退",
1035
+ win: `${X.CTRL.toUpperCase()} + Z `,
1036
+ mac: `${W.CTRL.toUpperCase()} + Z `
1037
+ },
1038
+ {
1039
+ label: "前进",
1040
+ win: `${X.CTRL.toUpperCase()} + ${X.SHIFT.toUpperCase()} + Z `,
1041
+ mac: `${W.CTRL.toUpperCase()} + ${W.SHIFT.toUpperCase()} + Z `
1042
+ },
1043
+ {
1044
+ label: "多选",
1045
+ win: `${X.CTRL.toUpperCase()} + 🖱️ `,
1046
+ mac: `${W.CTRL_SOURCE_KEY.toUpperCase()} + 🖱️ `
1047
+ },
1048
+ {
1049
+ label: "创建分组",
1050
+ win: `${X.CTRL.toUpperCase()} + G / 🖱️ `,
1051
+ mac: `${W.CTRL_SOURCE_KEY.toUpperCase()} + G / 🖱️`
1052
+ },
1053
+ {
1054
+ label: "解除分组",
1055
+ win: `${X.CTRL.toUpperCase()} + ${X.SHIFT.toUpperCase()} + G `,
1056
+ mac: `${W.CTRL_SOURCE_KEY.toUpperCase()} + ${X.SHIFT.toUpperCase()} + G `
1057
+ }
1058
+ ], i = () => {
1059
+ t("update:modelShow", !1);
1060
+ };
1061
+ return (h, p) => {
1062
+ const m = U("el-table-column"), l = U("el-icon"), a = U("el-table"), L = U("el-dialog");
1063
+ return _(), Y(L, {
1064
+ modelValue: u.value,
1065
+ "onUpdate:modelValue": p[0] || (p[0] = (s) => u.value = s),
1066
+ "close-on-click-modal": !0,
1067
+ "show-close": !1,
1068
+ width: "50vw",
1069
+ onClosed: i
1070
+ }, {
1071
+ default: b(() => [
1072
+ T(a, {
1073
+ class: "model-content",
1074
+ data: n,
1075
+ border: !1,
1076
+ stripe: ""
1077
+ }, {
1078
+ default: b(() => [
1079
+ T(m, {
1080
+ prop: "label",
1081
+ label: "功能"
1082
+ }),
1083
+ T(m, {
1084
+ prop: "win",
1085
+ label: "Win 快捷键"
1086
+ }),
1087
+ T(m, { label: "Mac 快捷键" }, {
1088
+ header: b(() => [
1089
+ O("div", wo, [
1090
+ p[1] || (p[1] = O("span", null, "Mac 快捷键", -1)),
1091
+ T(l, {
1092
+ size: 20,
1093
+ class: "go-cursor-pointer",
1094
+ onClick: i
1095
+ }, {
1096
+ default: b(() => [
1097
+ T(c(r))
1098
+ ]),
1099
+ _: 1
1100
+ })
1101
+ ])
1102
+ ]),
1103
+ default: b(({ row: s }) => [
1104
+ s.macSource ? (_(), M("span", So, de(s.mac), 1)) : (_(), M("span", To, [
1105
+ O("span", xo, de(s.mac.substr(0, 1)), 1),
1106
+ vt(" + " + de(s.mac.substr(3)), 1)
1107
+ ]))
1108
+ ]),
1109
+ _: 1
1110
+ })
1111
+ ]),
1112
+ _: 1
1113
+ })
1114
+ ]),
1115
+ _: 1
1116
+ }, 8, ["modelValue"]);
1117
+ };
1118
+ }
1119
+ });
1120
+ const bo = /* @__PURE__ */ le(Eo, [["__scopeId", "data-v-3719c50c"]]), ko = { class: "go-edit-shortcut" }, Lo = /* @__PURE__ */ ne({
1121
+ __name: "index",
1122
+ setup(e) {
1123
+ const { DicomOverlayIcon: o } = fe.carbon, r = K(!1);
1124
+ return (u, t) => {
1125
+ const C = U("el-icon"), n = U("el-button"), i = U("el-tooltip");
1126
+ return _(), M("div", ko, [
1127
+ T(bo, {
1128
+ modelShow: r.value,
1129
+ "onUpdate:modelShow": t[0] || (t[0] = (h) => r.value = h)
1130
+ }, null, 8, ["modelShow"]),
1131
+ T(i, {
1132
+ content: "快捷键",
1133
+ placement: "top"
1134
+ }, {
1135
+ default: b(() => [
1136
+ T(n, {
1137
+ class: "scale-btn",
1138
+ size: "small",
1139
+ onClick: t[1] || (t[1] = (h) => r.value = !0)
1140
+ }, {
1141
+ default: b(() => [
1142
+ T(C, {
1143
+ size: 21,
1144
+ style: { color: "var(--el-text-color-secondary)" }
1145
+ }, {
1146
+ default: b(() => [
1147
+ T(c(o))
1148
+ ]),
1149
+ _: 1
1150
+ })
1151
+ ]),
1152
+ _: 1
1153
+ })
1154
+ ]),
1155
+ _: 1
1156
+ })
1157
+ ]);
1158
+ };
1159
+ }
1160
+ });
1161
+ const Ro = /* @__PURE__ */ le(Lo, [["__scopeId", "data-v-189eada8"]]), Do = { class: "go-edit-bottom" }, Oo = {
1162
+ class: "go-flex-items-center",
1163
+ style: { gap: "8px" }
1164
+ }, $o = {
1165
+ class: "bottom-ri go-flex-items-center",
1166
+ style: { gap: "8px" }
1167
+ }, Mo = /* @__PURE__ */ ne({
1168
+ __name: "index",
1169
+ setup(e) {
1170
+ Ce((y) => ({
1171
+ cee57b24: t.value
1172
+ }));
1173
+ const { LockClosedOutlineIcon: o, LockOpenOutlineIcon: r } = fe.ionicons5, u = ye(), t = K(u.getAppTheme), C = rt(), n = q(), { lockScale: i, scale: h } = De(n.getEditCanvas), p = K(null);
1174
+ let m = [
1175
+ {
1176
+ label: "200%",
1177
+ value: 200
1178
+ },
1179
+ {
1180
+ label: "150%",
1181
+ value: 150
1182
+ },
1183
+ {
1184
+ label: "100%",
1185
+ value: 100
1186
+ },
1187
+ {
1188
+ label: "50%",
1189
+ value: 50
1190
+ },
1191
+ {
1192
+ label: "自适应",
1193
+ value: 0
1194
+ }
1195
+ ];
1196
+ const l = K(""), a = (y) => {
1197
+ var g;
1198
+ if ((g = p.value) == null || g.blur(), y === 0) {
1199
+ C.setItemUnHandle(ct.RE_POSITION_CANVAS, !0), n.computedScale();
1200
+ return;
1201
+ }
1202
+ n.setScale(y / 100);
1203
+ }, L = () => {
1204
+ n.setEditCanvas(te.LOCK_SCALE, !i.value);
1205
+ }, s = K(100), f = (y) => `${y}%`, v = (y) => {
1206
+ n.setScale(y / 100);
1207
+ }, S = Re({
1208
+ 100: ""
1209
+ });
1210
+ return ht(() => {
1211
+ const y = (h.value * 100).toFixed(0);
1212
+ l.value = `${y}%`, s.value = parseInt(y);
1213
+ }), (y, g) => {
1214
+ const d = U("el-option"), x = U("el-select"), I = U("el-icon"), G = U("el-button"), B = U("el-tooltip"), E = U("el-slider");
1215
+ return _(), M("div", Do, [
1216
+ O("div", Oo, [
1217
+ T(c(yo)),
1218
+ g[2] || (g[2] = O("span", {
1219
+ id: "keyboard-dress-show",
1220
+ style: { color: "var(--el-text-color-secondary)" }
1221
+ }, null, -1))
1222
+ ]),
1223
+ O("div", $o, [
1224
+ T(Ro),
1225
+ T(x, {
1226
+ ref_key: "selectInstRef",
1227
+ ref: p,
1228
+ class: "scale-btn",
1229
+ modelValue: l.value,
1230
+ "onUpdate:modelValue": g[0] || (g[0] = (H) => l.value = H),
1231
+ size: "small",
1232
+ disabled: c(i),
1233
+ onChange: a
1234
+ }, {
1235
+ default: b(() => [
1236
+ (_(!0), M(re, null, pe(c(m), (H) => (_(), Y(d, {
1237
+ key: H.value,
1238
+ label: H.label,
1239
+ value: H.value
1240
+ }, null, 8, ["label", "value"]))), 128))
1241
+ ]),
1242
+ _: 1
1243
+ }, 8, ["modelValue", "disabled"]),
1244
+ T(B, {
1245
+ content: c(i) ? "解锁当前比例" : "锁定当前比例",
1246
+ placement: "top"
1247
+ }, {
1248
+ default: b(() => [
1249
+ T(G, {
1250
+ onClick: L,
1251
+ text: ""
1252
+ }, {
1253
+ default: b(() => [
1254
+ T(I, {
1255
+ class: ie(["lock-icon", { color: c(i) }]),
1256
+ size: 18
1257
+ }, {
1258
+ default: b(() => [
1259
+ c(i) ? (_(), Y(c(o), { key: 0 })) : (_(), Y(c(r), { key: 1 }))
1260
+ ]),
1261
+ _: 1
1262
+ }, 8, ["class"])
1263
+ ]),
1264
+ _: 1
1265
+ })
1266
+ ]),
1267
+ _: 1
1268
+ }, 8, ["content"]),
1269
+ T(E, {
1270
+ class: "scale-slider",
1271
+ modelValue: s.value,
1272
+ "onUpdate:modelValue": g[1] || (g[1] = (H) => s.value = H),
1273
+ min: 10,
1274
+ max: 200,
1275
+ step: 5,
1276
+ "format-tooltip": f,
1277
+ disabled: c(i),
1278
+ marks: S,
1279
+ onChange: v
1280
+ }, null, 8, ["modelValue", "disabled", "marks"])
1281
+ ])
1282
+ ]);
1283
+ };
1284
+ }
1285
+ });
1286
+ const Uo = /* @__PURE__ */ le(Mo, [["__scopeId", "data-v-7cd37fc7"]]), Ao = { class: "go-system-setting" }, Io = { class: "setting-header" }, Ho = { class: "setting-body" }, Po = {
1287
+ key: 0,
1288
+ class: "setting-divider"
1289
+ }, Yo = {
1290
+ key: 1,
1291
+ class: "setting-row"
1292
+ }, Ko = { class: "row-label" }, No = { class: "row-control" }, Bo = {
1293
+ key: 0,
1294
+ class: "suffix"
1295
+ }, Xo = { class: "row-desc" }, Go = /* @__PURE__ */ ne({
1296
+ __name: "index",
1297
+ props: {
1298
+ modelShow: Boolean
1299
+ },
1300
+ emits: ["update:modelShow"],
1301
+ setup(e, { emit: o }) {
1302
+ const r = e, u = o, { HelpOutlineIcon: t, CloseIcon: C } = fe.ionicons5, n = Ve(), i = K(!1), h = Re([
1303
+ {
1304
+ key: ve.ASIDE_ALL_COLLAPSED,
1305
+ value: n.getAsideAllCollapsed,
1306
+ type: "switch",
1307
+ name: "菜单折叠",
1308
+ desc: "首页菜单折叠时隐藏至界面外"
1309
+ },
1310
+ {
1311
+ key: ve.HIDE_PACKAGE_ONE_CATEGORY,
1312
+ value: n.getHidePackageOneCategory,
1313
+ type: "switch",
1314
+ name: "隐藏分类",
1315
+ desc: "工作空间表单分类只有单项时隐藏"
1316
+ },
1317
+ {
1318
+ key: ve.CHANGE_LANG_RELOAD,
1319
+ value: n.getChangeLangReload,
1320
+ type: "switch",
1321
+ name: "切换语言",
1322
+ desc: "切换语言重新加载页面",
1323
+ tip: "若遇到部分区域语言切换失败,则建议开启"
1324
+ },
1325
+ {
1326
+ key: "divider1",
1327
+ type: "divider",
1328
+ name: "",
1329
+ desc: "",
1330
+ value: ""
1331
+ },
1332
+ {
1333
+ key: ve.CHART_TOOLS_STATUS_HIDE,
1334
+ value: n.getChartToolsStatusHide,
1335
+ type: "switch",
1336
+ name: "隐藏工具栏",
1337
+ desc: "鼠标移入时,会展示切换到展开模式"
1338
+ },
1339
+ {
1340
+ key: ve.CHART_TOOLS_STATUS,
1341
+ value: n.getChartToolsStatus,
1342
+ type: "select",
1343
+ name: "工具栏展示",
1344
+ desc: "工作空间工具栏展示方式",
1345
+ options: [
1346
+ {
1347
+ label: "侧边栏",
1348
+ value: ke.ASIDE
1349
+ },
1350
+ {
1351
+ label: "底部 Dock",
1352
+ value: ke.DOCK
1353
+ }
1354
+ ]
1355
+ },
1356
+ {
1357
+ key: "divider0",
1358
+ type: "divider",
1359
+ name: "",
1360
+ desc: "",
1361
+ value: ""
1362
+ },
1363
+ {
1364
+ key: ve.CHART_MOVE_DISTANCE,
1365
+ value: n.getChartMoveDistance,
1366
+ type: "number",
1367
+ name: "移动距离",
1368
+ min: 1,
1369
+ step: 1,
1370
+ suffix: "px",
1371
+ desc: "工作空间方向键控制移动距离"
1372
+ },
1373
+ {
1374
+ key: ve.CHART_ALIGN_RANGE,
1375
+ value: n.getChartAlignRange,
1376
+ type: "number",
1377
+ name: "吸附距离",
1378
+ min: 10,
1379
+ step: 2,
1380
+ suffix: "px",
1381
+ desc: "工作空间移动图表时的吸附距离"
1382
+ }
1383
+ ]);
1384
+ ue(() => r.modelShow, (l) => {
1385
+ i.value = l;
1386
+ });
1387
+ const p = () => {
1388
+ u("update:modelShow", !1);
1389
+ }, m = (l, a) => {
1390
+ n.setItem(a.key, a.value);
1391
+ };
1392
+ return (l, a) => {
1393
+ const L = U("el-icon"), s = U("el-tooltip"), f = U("el-switch"), v = U("el-input-number"), S = U("el-option"), y = U("el-select"), g = U("el-dialog");
1394
+ return _(), Y(g, {
1395
+ modelValue: i.value,
1396
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => i.value = d),
1397
+ "show-close": !1,
1398
+ width: "560px",
1399
+ class: "go-system-setting-dialog",
1400
+ onClosed: p
1401
+ }, {
1402
+ default: b(() => [
1403
+ O("div", Ao, [
1404
+ O("div", Io, [
1405
+ a[1] || (a[1] = O("span", { class: "title" }, "系统设置", -1)),
1406
+ T(L, {
1407
+ size: 18,
1408
+ class: "close-btn",
1409
+ onClick: p
1410
+ }, {
1411
+ default: b(() => [
1412
+ T(c(C))
1413
+ ]),
1414
+ _: 1
1415
+ })
1416
+ ]),
1417
+ O("div", Ho, [
1418
+ (_(!0), M(re, null, pe(h, (d) => (_(), M(re, {
1419
+ key: d.key
1420
+ }, [
1421
+ d.type === "divider" ? (_(), M("div", Po)) : (_(), M("div", Yo, [
1422
+ O("div", Ko, [
1423
+ O("span", null, de(d.name), 1),
1424
+ d.tip ? (_(), Y(s, {
1425
+ key: 0,
1426
+ content: d.tip,
1427
+ placement: "top"
1428
+ }, {
1429
+ default: b(() => [
1430
+ T(L, {
1431
+ size: 14,
1432
+ class: "tip-icon"
1433
+ }, {
1434
+ default: b(() => [
1435
+ T(c(t))
1436
+ ]),
1437
+ _: 1
1438
+ })
1439
+ ]),
1440
+ _: 2
1441
+ }, 1032, ["content"])) : me("", !0)
1442
+ ]),
1443
+ O("div", No, [
1444
+ d.type === "switch" ? (_(), Y(f, {
1445
+ key: 0,
1446
+ modelValue: d.value,
1447
+ "onUpdate:modelValue": (x) => d.value = x,
1448
+ size: "small",
1449
+ onChange: (x) => m(x, d)
1450
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : d.type === "number" ? (_(), M(re, { key: 1 }, [
1451
+ T(v, {
1452
+ modelValue: d.value,
1453
+ "onUpdate:modelValue": (x) => d.value = x,
1454
+ size: "small",
1455
+ step: d.step || 1,
1456
+ min: d.min || 0,
1457
+ "controls-position": "right",
1458
+ onChange: (x) => m(x, d)
1459
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "step", "min", "onChange"]),
1460
+ d.suffix ? (_(), M("span", Bo, de(d.suffix), 1)) : me("", !0)
1461
+ ], 64)) : d.type === "select" ? (_(), Y(y, {
1462
+ key: 2,
1463
+ modelValue: d.value,
1464
+ "onUpdate:modelValue": (x) => d.value = x,
1465
+ size: "small",
1466
+ onChange: (x) => m(x, d)
1467
+ }, {
1468
+ default: b(() => [
1469
+ (_(!0), M(re, null, pe(d.options, (x) => (_(), Y(S, {
1470
+ key: x.value,
1471
+ label: x.label,
1472
+ value: x.value
1473
+ }, null, 8, ["label", "value"]))), 128))
1474
+ ]),
1475
+ _: 2
1476
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : me("", !0)
1477
+ ]),
1478
+ O("div", Xo, de(d.desc), 1)
1479
+ ]))
1480
+ ], 64))), 128))
1481
+ ])
1482
+ ])
1483
+ ]),
1484
+ _: 1
1485
+ }, 8, ["modelValue"]);
1486
+ };
1487
+ }
1488
+ });
1489
+ const Wo = /* @__PURE__ */ le(Go, [["__scopeId", "data-v-41af1ead"]]), zo = () => {
1490
+ const e = q();
1491
+ e.setTargetSelectChart(void 0), kt(
1492
+ Lt(e.getStorageInfo() || []),
1493
+ void 0,
1494
+ "json"
1495
+ );
1496
+ const o = document.querySelector(".go-edit-range"), r = document.getElementById("go-edit-watermark");
1497
+ if (!o || !r) {
1498
+ window.$message.error("导出失败!");
1499
+ return;
1500
+ }
1501
+ const u = e.getEditCanvas.scale;
1502
+ e.setScale(1, !0), r.style.display = "block", setTimeout(() => {
1503
+ Rt(o, () => {
1504
+ r && (r.style.display = "none"), e.setScale(u, !0);
1505
+ });
1506
+ }, 600);
1507
+ }, Vo = () => {
1508
+ const e = K(), { updateComponent: o } = Dt();
1509
+ return {
1510
+ importUploadFileListRef: e,
1511
+ importBeforeUpload: ({ file: t }) => {
1512
+ e.value = [];
1513
+ const C = t.file.type;
1514
+ return C !== tt.JSON && C !== tt.TXT ? (window.$message.warning("仅支持上传 【JSON】 格式文件,请重新上传!"), !1) : !0;
1515
+ },
1516
+ importCustomRequest: (t) => {
1517
+ const { file: C } = t;
1518
+ mt(() => {
1519
+ C ? Ot(C).then((n) => {
1520
+ $t({
1521
+ message: "请选择导入方式:",
1522
+ positiveText: "新增(可撤回)",
1523
+ negativeText: "覆盖(不可撤回)",
1524
+ negativeButtonProps: { type: "info", ghost: !1 },
1525
+ // 新增
1526
+ onPositiveCallback: async () => {
1527
+ try {
1528
+ n = Ne(n), await o(n, !1, !0), window.$message.success("导入成功!");
1529
+ } catch (i) {
1530
+ console.log(i), window.$message.error("组件导入失败,请检查文件完整性!");
1531
+ }
1532
+ },
1533
+ // 覆盖
1534
+ onNegativeCallback: async () => {
1535
+ try {
1536
+ n = Ne(n), await o(n, !0, !0), window.$message.success("导入成功!");
1537
+ } catch (i) {
1538
+ console.log(i), window.$message.error("组件导入失败,请检查文件完整性!");
1539
+ }
1540
+ }
1541
+ });
1542
+ }) : window.$message.error("导入失败,请检查数据或联系管理员!");
1543
+ });
1544
+ }
1545
+ };
1546
+ };
1547
+ var he = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.IMPORTUPLOAD = "importUpload", e))(he || {});
1548
+ const Fo = { class: "btn-item" }, qo = /* @__PURE__ */ ne({
1549
+ __name: "index",
1550
+ setup(e) {
1551
+ const { DownloadIcon: o, ShareIcon: r, PawIcon: u, SettingsSharpIcon: t, CreateIcon: C } = fe.ionicons5, n = Ve(), i = q();
1552
+ Pt();
1553
+ let h = null;
1554
+ const p = K(!1), m = K(!0), l = K(!0), { importUploadFileListRef: a, importCustomRequest: L, importBeforeUpload: s } = Vo(), f = $(() => n.getChartToolsStatus === ke.ASIDE), v = $(() => n.getChartToolsStatusHide), S = $(() => m.value && v.value), y = $(() => {
1555
+ if (!f.value)
1556
+ return I;
1557
+ const G = [];
1558
+ return I.map((B) => {
1559
+ G.unshift(B);
1560
+ }), G;
1561
+ }), g = () => {
1562
+ h = setTimeout(() => {
1563
+ m.value && (m.value = !1, l.value = !0);
1564
+ }, 200), setTimeout(() => {
1565
+ l.value = !1;
1566
+ }, 400);
1567
+ }, d = () => {
1568
+ clearTimeout(h), m.value || (m.value = !0);
1569
+ }, x = () => {
1570
+ window.$message.warning("请通过顶部【同步内容】按钮同步最新数据!"), i.setEditCanvas(te.IS_CODE_EDIT, !0);
1571
+ }, I = [
1572
+ {
1573
+ key: "import",
1574
+ type: he.IMPORTUPLOAD,
1575
+ name: "导入",
1576
+ icon: r
1577
+ },
1578
+ {
1579
+ key: "export",
1580
+ type: he.BUTTON,
1581
+ name: "导出",
1582
+ icon: o,
1583
+ handle: zo
1584
+ },
1585
+ {
1586
+ key: "edit",
1587
+ type: he.BUTTON,
1588
+ name: "编辑",
1589
+ icon: C,
1590
+ handle: x
1591
+ },
1592
+ {
1593
+ key: "setting",
1594
+ type: he.BUTTON,
1595
+ name: "设置",
1596
+ icon: t,
1597
+ handle: () => {
1598
+ p.value = !0;
1599
+ }
1600
+ }
1601
+ ];
1602
+ return (G, B) => {
1603
+ const E = U("el-icon"), H = U("el-button"), ce = U("el-upload"), ae = U("el-tooltip");
1604
+ return _(), M(re, null, [
1605
+ O("div", {
1606
+ class: ie(["go-chart-edit-tools", [c(n).getChartToolsStatus, S.value ? "isMini" : "unMini"]]),
1607
+ onClick: B[1] || (B[1] = (k) => m.value && (m.value = !1)),
1608
+ onMouseenter: g,
1609
+ onMouseleave: d
1610
+ }, [
1611
+ Ae(T(E, {
1612
+ class: "asideLogo",
1613
+ size: 22
1614
+ }, {
1615
+ default: b(() => [
1616
+ T(c(u))
1617
+ ]),
1618
+ _: 1
1619
+ }, 512), [
1620
+ [Ie, c(n).getChartToolsStatus === c(ke).ASIDE && S.value]
1621
+ ]),
1622
+ (_(!0), M(re, null, pe(y.value, (k, N) => (_(), Y(ae, {
1623
+ key: k.key,
1624
+ disabled: !f.value || v.value && l.value,
1625
+ content: k.name,
1626
+ placement: "left"
1627
+ }, {
1628
+ default: b(() => [
1629
+ O("div", Fo, [
1630
+ k.type === c(he).BUTTON ? (_(), Y(H, {
1631
+ key: 0,
1632
+ circle: f.value,
1633
+ onClick: k.handle
1634
+ }, {
1635
+ default: b(() => [
1636
+ T(E, {
1637
+ size: f.value ? 18 : 16
1638
+ }, {
1639
+ default: b(() => [
1640
+ (_(), Y(ge(k.icon)))
1641
+ ]),
1642
+ _: 2
1643
+ }, 1032, ["size"]),
1644
+ Ae(O("span", { class: "btn-text" }, de(k.name), 513), [
1645
+ [Ie, !f.value]
1646
+ ])
1647
+ ]),
1648
+ _: 2
1649
+ }, 1032, ["circle", "onClick"])) : k.type === c(he).IMPORTUPLOAD ? (_(), Y(ce, {
1650
+ key: 1,
1651
+ "file-list": c(a),
1652
+ "onUpdate:fileList": B[0] || (B[0] = (P) => ft(a) ? a.value = P : null),
1653
+ "show-file-list": !1,
1654
+ "http-request": c(L),
1655
+ "before-upload": c(s)
1656
+ }, {
1657
+ default: b(() => [
1658
+ T(H, { circle: f.value }, {
1659
+ default: b(() => [
1660
+ T(E, {
1661
+ size: f.value ? 18 : 16
1662
+ }, {
1663
+ default: b(() => [
1664
+ (_(), Y(ge(k.icon)))
1665
+ ]),
1666
+ _: 2
1667
+ }, 1032, ["size"]),
1668
+ Ae(O("span", { class: "btn-text" }, de(k.name), 513), [
1669
+ [Ie, !f.value]
1670
+ ])
1671
+ ]),
1672
+ _: 2
1673
+ }, 1032, ["circle"])
1674
+ ]),
1675
+ _: 2
1676
+ }, 1032, ["file-list", "http-request", "before-upload"])) : me("", !0)
1677
+ ])
1678
+ ]),
1679
+ _: 2
1680
+ }, 1032, ["disabled", "content"]))), 128))
1681
+ ], 34),
1682
+ T(c(Wo), {
1683
+ modelShow: p.value,
1684
+ "onUpdate:modelShow": B[2] || (B[2] = (k) => p.value = k)
1685
+ }, null, 8, ["modelShow"])
1686
+ ], 64);
1687
+ };
1688
+ }
1689
+ });
1690
+ const jo = /* @__PURE__ */ le(qo, [["__scopeId", "data-v-d2124fa0"]]), Jo = /* @__PURE__ */ ne({
1691
+ __name: "index",
1692
+ setup(e) {
1693
+ const o = q(), { handleContextMenu: r } = Oe(), u = Mt(Ut.VCHART, "vchartTheme"), { scale: t, SCALE_KEY: C } = Kt();
1694
+ _t(C, t), Nt(async () => {
1695
+ });
1696
+ const { mouseenterHandle: n, mouseleaveHandle: i, mousedownHandle: h, mouseClickHandle: p } = it(), m = (s, f, v) => {
1697
+ if (o.getTargetChart.selectId.length > 1)
1698
+ return f.filter((y) => [w.GROUP, w.DELETE].includes(y.key));
1699
+ const S = [];
1700
+ return v.status.lock ? S.push(w.LOCK) : S.push(w.UNLOCK), v.status.hide ? S.push(w.HIDE) : S.push(w.SHOW), s.filter((y) => !S.includes(y.key));
1701
+ }, l = $(() => o.getEditCanvasConfig.chartThemeSetting), a = $(() => at(o.getEditCanvasConfig.chartCustomThemeColorInfo)[o.getEditCanvasConfig.chartThemeColor]);
1702
+ $(() => o.getEditCanvasConfig.filterShow);
1703
+ const L = $(() => {
1704
+ const s = o.getEditCanvasConfig.background, f = o.getEditCanvasConfig.backgroundImage;
1705
+ return {
1706
+ ...o.getEditCanvasConfig.selectColor ? { background: s || void 0 } : { background: `url(${f}) no-repeat center center / cover !important` },
1707
+ width: "inherit",
1708
+ height: "inherit"
1709
+ };
1710
+ });
1711
+ return ue(
1712
+ () => o.getEditCanvasConfig.vChartThemeName,
1713
+ (s) => {
1714
+ u == null || u.setTheme(s);
1715
+ },
1716
+ {
1717
+ immediate: !0
1718
+ }
1719
+ ), We(() => {
1720
+ Wt();
1721
+ }), (s, f) => (_(), Y(c(It), {
1722
+ id: "go-chart-edit-layout",
1723
+ flex: !0,
1724
+ showTop: !1,
1725
+ showBottom: !0,
1726
+ depth: 1,
1727
+ xScroll: !0,
1728
+ disabledScroll: !0,
1729
+ onMousedown: c(Vt),
1730
+ onDrop: c(zt),
1731
+ onDragover: c(st),
1732
+ onDragenter: c(st)
1733
+ }, {
1734
+ aside: b(() => [
1735
+ T(c(jo))
1736
+ ]),
1737
+ bottom: b(() => [
1738
+ T(c(Uo))
1739
+ ]),
1740
+ default: b(() => [
1741
+ T(c(vo), null, {
1742
+ default: b(() => [
1743
+ O("div", {
1744
+ id: "go-chart-edit-content",
1745
+ onContextmenu: f[0] || (f[0] = //@ts-ignore
1746
+ (...v) => c(r) && c(r)(...v))
1747
+ }, [
1748
+ T(c(io), null, {
1749
+ default: b(() => [
1750
+ O("div", {
1751
+ style: se({
1752
+ ...c(be)(c(o).getEditCanvasConfig),
1753
+ ...L.value
1754
+ })
1755
+ }, [
1756
+ (_(!0), M(re, null, pe(c(o).getComponentList, (v, S) => (_(), M("div", {
1757
+ key: v.id
1758
+ }, [
1759
+ v.isGroup ? (_(), Y(c(eo), {
1760
+ key: 0,
1761
+ groupData: v,
1762
+ groupIndex: S
1763
+ }, null, 8, ["groupData", "groupIndex"])) : (_(), Y(c(Ge), {
1764
+ key: 1,
1765
+ "data-id": v.id,
1766
+ index: S,
1767
+ style: se({
1768
+ ...c(Le)(v.attr, S),
1769
+ ...c(lt)(v.styles)
1770
+ }),
1771
+ item: v,
1772
+ onClick: (y) => c(p)(y, v),
1773
+ onMousedown: (y) => c(h)(y, v),
1774
+ onMouseenter: (y) => c(n)(y, v),
1775
+ onMouseleave: (y) => c(i)(y, v),
1776
+ onContextmenu: (y) => c(r)(y, v, m)
1777
+ }, {
1778
+ default: b(() => [
1779
+ (_(), Y(ge(v.chartConfig.chartKey), {
1780
+ class: ie(["edit-content-chart", c(Be)(v.styles.animations)]),
1781
+ chartConfig: v,
1782
+ themeSetting: l.value,
1783
+ themeColor: a.value,
1784
+ style: se({
1785
+ ...c(_e)(v.attr),
1786
+ ...c(be)(v.styles),
1787
+ ...c(Xe)(v.styles)
1788
+ })
1789
+ }, null, 8, ["class", "chartConfig", "themeSetting", "themeColor", "style"]))
1790
+ ]),
1791
+ _: 2
1792
+ }, 1032, ["data-id", "index", "style", "item", "onClick", "onMousedown", "onMouseenter", "onMouseleave", "onContextmenu"]))
1793
+ ]))), 128))
1794
+ ], 4)
1795
+ ]),
1796
+ _: 1
1797
+ })
1798
+ ], 32)
1799
+ ]),
1800
+ _: 1
1801
+ })
1802
+ ]),
1803
+ _: 1
1804
+ }, 8, ["onMousedown", "onDrop", "onDragover", "onDragenter"]));
1805
+ }
1806
+ });
1807
+ const Ds = /* @__PURE__ */ le(Jo, [["__scopeId", "data-v-d6fe3622"]]);
1808
+ export {
1809
+ Ds as default
1810
+ };
1811
+ //# sourceMappingURL=index-6701793b.js.map