leiting-bim 2.1.35 → 2.1.37

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 (460) hide show
  1. package/leiting-bim.es.js +2818 -2687
  2. package/leiting-bim.umd.js +9 -9
  3. package/leitingbim.css +1 -1
  4. package/package.json +1 -1
  5. package/plugins/.gitmodules +4 -0
  6. package/plugins/README.md +2 -0
  7. package/plugins/build.cjs +63 -0
  8. package/plugins/cesium-core/dist/cesium-core.mjs +6217 -0
  9. package/plugins/cesium-core/dist/cesium-core.umd.js +76 -0
  10. package/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +73 -0
  11. package/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +152 -0
  12. package/plugins/cesium-core/dist/components/MarkerEvent.d.ts +38 -0
  13. package/plugins/cesium-core/dist/components/Material/MaterialManager.d.ts +49 -0
  14. package/plugins/cesium-core/dist/components/Material/help/PolylineFlowMaterialProperty.d.ts +10 -0
  15. package/plugins/cesium-core/dist/components/Material/help/dynamicImgMaterial.d.ts +16 -0
  16. package/plugins/cesium-core/dist/components/Material/index.d.ts +3 -0
  17. package/plugins/cesium-core/dist/components/TooltipManager.d.ts +11 -0
  18. package/plugins/cesium-core/dist/components/draw/DrawTool.d.ts +10 -0
  19. package/plugins/cesium-core/dist/components/draw/handlers/CircleDrawer.d.ts +16 -0
  20. package/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +14 -0
  21. package/plugins/cesium-core/dist/components/draw/handlers/PointDrawer.d.ts +12 -0
  22. package/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +14 -0
  23. package/plugins/cesium-core/dist/components/draw/handlers/RectangleDrawer.d.ts +13 -0
  24. package/plugins/cesium-core/dist/components/draw/types.d.ts +29 -0
  25. package/plugins/cesium-core/dist/components/entity/EntityLayer.d.ts +65 -0
  26. package/plugins/cesium-core/dist/components/gltf/GLTFManage.d.ts +141 -0
  27. package/plugins/cesium-core/dist/components/gltf/index.d.ts +1 -0
  28. package/plugins/cesium-core/dist/components/measurement/MeasurementTool.d.ts +34 -0
  29. package/plugins/cesium-core/dist/components/measurement/handlers/AreaMeasure.d.ts +28 -0
  30. package/plugins/cesium-core/dist/components/measurement/handlers/CircleMeasure.d.ts +22 -0
  31. package/plugins/cesium-core/dist/components/measurement/handlers/CoordinateMeasure.d.ts +16 -0
  32. package/plugins/cesium-core/dist/components/measurement/handlers/HorizontalMeasure.d.ts +27 -0
  33. package/plugins/cesium-core/dist/components/measurement/handlers/PolylineDistanceMeasure.d.ts +25 -0
  34. package/plugins/cesium-core/dist/components/measurement/handlers/RectangleMeasure.d.ts +30 -0
  35. package/plugins/cesium-core/dist/components/measurement/handlers/RegularPolygonMeasure.d.ts +28 -0
  36. package/plugins/cesium-core/dist/components/measurement/handlers/SpaceMeasure.d.ts +21 -0
  37. package/plugins/cesium-core/dist/components/measurement/handlers/TerrainHeightMeasure.d.ts +18 -0
  38. package/plugins/cesium-core/dist/components/measurement/handlers/TriangleMeasure.d.ts +30 -0
  39. package/plugins/cesium-core/dist/components/measurement/handlers/VerticalMeasure.d.ts +23 -0
  40. package/plugins/cesium-core/dist/components/measurement/index.d.ts +13 -0
  41. package/plugins/cesium-core/dist/components/measurement/types.d.ts +42 -0
  42. package/plugins/cesium-core/dist/components/primitive/PrimitiveManager.d.ts +50 -0
  43. package/plugins/cesium-core/dist/components/roaming/CameraRoamTool.d.ts +27 -0
  44. package/plugins/cesium-core/dist/components/roaming/PathRoamTool.d.ts +23 -0
  45. package/plugins/cesium-core/dist/components/roaming/index.d.ts +3 -0
  46. package/plugins/cesium-core/dist/components/roaming/types.d.ts +66 -0
  47. package/plugins/cesium-core/dist/components/utils/convertGeoJsonToEntityData.d.ts +1 -0
  48. package/plugins/cesium-core/dist/components/utils/uuid.d.ts +1 -0
  49. package/plugins/cesium-core/dist/index.d.ts +12 -0
  50. package/plugins/cesium-core/package.json +27 -0
  51. package/plugins/cesium-core/pnpm-lock.yaml +872 -0
  52. package/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +546 -0
  53. package/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +489 -0
  54. package/plugins/cesium-core/src/components/MarkerEvent.ts +92 -0
  55. package/plugins/cesium-core/src/components/Material/MaterialManager.ts +129 -0
  56. package/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +116 -0
  57. package/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +236 -0
  58. package/plugins/cesium-core/src/components/Material/index.ts +3 -0
  59. package/plugins/cesium-core/src/components/TooltipManager.ts +52 -0
  60. package/plugins/cesium-core/src/components/draw/DrawTool.ts +55 -0
  61. package/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +159 -0
  62. package/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +113 -0
  63. package/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +70 -0
  64. package/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +112 -0
  65. package/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +115 -0
  66. package/plugins/cesium-core/src/components/draw/types.ts +28 -0
  67. package/plugins/cesium-core/src/components/entity/EntityLayer.ts +453 -0
  68. package/plugins/cesium-core/src/components/gltf/GLTFManage.ts +799 -0
  69. package/plugins/cesium-core/src/components/gltf/index.ts +1 -0
  70. package/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +416 -0
  71. package/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +552 -0
  72. package/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +289 -0
  73. package/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +139 -0
  74. package/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +427 -0
  75. package/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +356 -0
  76. package/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +516 -0
  77. package/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +472 -0
  78. package/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +250 -0
  79. package/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +185 -0
  80. package/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +561 -0
  81. package/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +361 -0
  82. package/plugins/cesium-core/src/components/measurement/index.ts +13 -0
  83. package/plugins/cesium-core/src/components/measurement/types.ts +57 -0
  84. package/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +556 -0
  85. package/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +286 -0
  86. package/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +174 -0
  87. package/plugins/cesium-core/src/components/roaming/index.ts +3 -0
  88. package/plugins/cesium-core/src/components/roaming/types.ts +71 -0
  89. package/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +98 -0
  90. package/plugins/cesium-core/src/components/utils/uuid.ts +7 -0
  91. package/plugins/cesium-core/src/index.ts +17 -0
  92. package/plugins/cesium-core/src/test/measurement/index.html +166 -0
  93. package/plugins/cesium-core/src/test/roaming/c.gltf +1 -0
  94. package/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
  95. package/plugins/cesium-core/src/test/roaming/index.html +51 -0
  96. package/plugins/cesium-core/src/test/roaming/path.html +448 -0
  97. package/plugins/cesium-core/src/test/roaming/view.html +520 -0
  98. package/plugins/cesium-core/stats.html +4949 -0
  99. package/plugins/cesium-core/tsconfig.json +14 -0
  100. package/plugins/cesium-core/vite.config.ts +35 -0
  101. package/plugins/cesium-vue/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  102. package/plugins/cesium-vue/dist/components/basic-audio/index.d.ts +13 -0
  103. package/plugins/cesium-vue/dist/components/basic-audio.d.ts +6 -0
  104. package/plugins/cesium-vue/dist/components/basic-audio.js +1295 -0
  105. package/plugins/cesium-vue/dist/components/basic-video/index.d.ts +98 -0
  106. package/plugins/cesium-vue/dist/components/basic-video.d.ts +6 -0
  107. package/plugins/cesium-vue/dist/components/basic-video.js +67 -0
  108. package/plugins/cesium-vue/dist/components/card-carousel/index.d.ts +147 -0
  109. package/plugins/cesium-vue/dist/components/card-carousel.d.ts +6 -0
  110. package/plugins/cesium-vue/dist/components/card-carousel.js +143 -0
  111. package/plugins/cesium-vue/dist/components/card-content/index.d.ts +16 -0
  112. package/plugins/cesium-vue/dist/components/card-content.d.ts +6 -0
  113. package/plugins/cesium-vue/dist/components/card-content.js +74 -0
  114. package/plugins/cesium-vue/dist/components/card-page/index.d.ts +64 -0
  115. package/plugins/cesium-vue/dist/components/card-page.d.ts +6 -0
  116. package/plugins/cesium-vue/dist/components/card-page.js +111 -0
  117. package/plugins/cesium-vue/dist/components/carousel-img/index.d.ts +34 -0
  118. package/plugins/cesium-vue/dist/components/carousel-img.d.ts +6 -0
  119. package/plugins/cesium-vue/dist/components/carousel-img.js +72 -0
  120. package/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts +63 -0
  121. package/plugins/cesium-vue/dist/components/echarts-pro.d.ts +6 -0
  122. package/plugins/cesium-vue/dist/components/echarts-pro.js +7 -0
  123. package/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts +73 -0
  124. package/plugins/cesium-vue/dist/components/marker-bubble.d.ts +6 -0
  125. package/plugins/cesium-vue/dist/components/marker-bubble.js +123 -0
  126. package/plugins/cesium-vue/dist/components/marker-default/index.d.ts +43 -0
  127. package/plugins/cesium-vue/dist/components/marker-default.d.ts +6 -0
  128. package/plugins/cesium-vue/dist/components/marker-default.js +39 -0
  129. package/plugins/cesium-vue/dist/components/marker-html/index.d.ts +43 -0
  130. package/plugins/cesium-vue/dist/components/marker-html.d.ts +6 -0
  131. package/plugins/cesium-vue/dist/components/marker-html.js +40 -0
  132. package/plugins/cesium-vue/dist/components/marker-manage/index.d.ts +159 -0
  133. package/plugins/cesium-vue/dist/components/marker-manage.d.ts +6 -0
  134. package/plugins/cesium-vue/dist/components/marker-manage.js +896 -0
  135. package/plugins/cesium-vue/dist/components/marker-text/index.d.ts +25 -0
  136. package/plugins/cesium-vue/dist/components/marker-text.d.ts +6 -0
  137. package/plugins/cesium-vue/dist/components/marker-text.js +30 -0
  138. package/plugins/cesium-vue/dist/components/measurement/index.d.ts +73 -0
  139. package/plugins/cesium-vue/dist/components/measurement.d.ts +6 -0
  140. package/plugins/cesium-vue/dist/components/measurement.js +170 -0
  141. package/plugins/cesium-vue/dist/create-DynflqE1.js +31 -0
  142. package/plugins/cesium-vue/dist/index-B03tSn8_.js +45855 -0
  143. package/plugins/cesium-vue/dist/index-CUs_hd1V.js +403 -0
  144. package/plugins/cesium-vue/dist/index.d.ts +44 -0
  145. package/plugins/cesium-vue/dist/index.js +82 -0
  146. package/plugins/cesium-vue/package.json +106 -0
  147. package/plugins/cesium-vue/src/assets/icons/icon-001.png +0 -0
  148. package/plugins/cesium-vue/src/assets/icons/icon-002.png +0 -0
  149. package/plugins/cesium-vue/src/assets/icons/icon-003.png +0 -0
  150. package/plugins/cesium-vue/src/assets/icons/icon-004.png +0 -0
  151. package/plugins/cesium-vue/src/assets/icons/icon-005.png +0 -0
  152. package/plugins/cesium-vue/src/assets/icons/icon-006.png +0 -0
  153. package/plugins/cesium-vue/src/assets/icons/icon-007.png +0 -0
  154. package/plugins/cesium-vue/src/assets/icons/icon-008.png +0 -0
  155. package/plugins/cesium-vue/src/assets/icons/icon-009.png +0 -0
  156. package/plugins/cesium-vue/src/assets/icons/icon-010.png +0 -0
  157. package/plugins/cesium-vue/src/assets/icons/icon-011.png +0 -0
  158. package/plugins/cesium-vue/src/assets/icons/icon-012.png +0 -0
  159. package/plugins/cesium-vue/src/assets/img/Card3-BG.png +0 -0
  160. package/plugins/cesium-vue/src/assets/img/card_bg3.png +0 -0
  161. package/plugins/cesium-vue/src/components/basic-audio/index.ts +6 -0
  162. package/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +119 -0
  163. package/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +6 -0
  164. package/plugins/cesium-vue/src/components/basic-video/index.ts +7 -0
  165. package/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +58 -0
  166. package/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +14 -0
  167. package/plugins/cesium-vue/src/components/card-carousel/index.ts +7 -0
  168. package/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +124 -0
  169. package/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +60 -0
  170. package/plugins/cesium-vue/src/components/card-content/index.ts +7 -0
  171. package/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +41 -0
  172. package/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +22 -0
  173. package/plugins/cesium-vue/src/components/card-page/index.ts +7 -0
  174. package/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +102 -0
  175. package/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +37 -0
  176. package/plugins/cesium-vue/src/components/carousel-img/index.ts +7 -0
  177. package/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +84 -0
  178. package/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +8 -0
  179. package/plugins/cesium-vue/src/components/echarts-pro/index.ts +7 -0
  180. package/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +107 -0
  181. package/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +12 -0
  182. package/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +55 -0
  183. package/plugins/cesium-vue/src/components/marker-bubble/index.ts +7 -0
  184. package/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +235 -0
  185. package/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +35 -0
  186. package/plugins/cesium-vue/src/components/marker-default/index.ts +7 -0
  187. package/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +19 -0
  188. package/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +12 -0
  189. package/plugins/cesium-vue/src/components/marker-html/index.ts +7 -0
  190. package/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +21 -0
  191. package/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +12 -0
  192. package/plugins/cesium-vue/src/components/marker-manage/index.ts +9 -0
  193. package/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +106 -0
  194. package/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +8 -0
  195. package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +466 -0
  196. package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +148 -0
  197. package/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +45 -0
  198. package/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +75 -0
  199. package/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +154 -0
  200. package/plugins/cesium-vue/src/components/marker-text/index.ts +7 -0
  201. package/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +14 -0
  202. package/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +10 -0
  203. package/plugins/cesium-vue/src/components/measurement/index.ts +7 -0
  204. package/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +183 -0
  205. package/plugins/cesium-vue/src/components/measurement/src/measurement.ts +20 -0
  206. package/plugins/cesium-vue/src/index.ts +89 -0
  207. package/plugins/cesium-vue/stats.html +4949 -0
  208. package/plugins/cesium-vue/tsconfig.json +18 -0
  209. package/plugins/cesium-vue/vite.config.ts +62 -0
  210. package/plugins/plugins/README.md +2 -0
  211. package/plugins/plugins/build.cjs +63 -0
  212. package/plugins/plugins/cesium-core/dist/cesium-core.mjs +5881 -0
  213. package/plugins/plugins/cesium-core/dist/cesium-core.mjs.map +1 -0
  214. package/plugins/plugins/cesium-core/dist/cesium-core.umd.js +77 -0
  215. package/plugins/plugins/cesium-core/dist/cesium-core.umd.js.map +1 -0
  216. package/plugins/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +73 -0
  217. package/plugins/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +152 -0
  218. package/plugins/plugins/cesium-core/dist/components/MarkerEvent.d.ts +38 -0
  219. package/plugins/plugins/cesium-core/dist/components/Material/MaterialManager.d.ts +49 -0
  220. package/plugins/plugins/cesium-core/dist/components/Material/help/PolylineFlowMaterialProperty.d.ts +10 -0
  221. package/plugins/plugins/cesium-core/dist/components/Material/help/dynamicImgMaterial.d.ts +16 -0
  222. package/plugins/plugins/cesium-core/dist/components/Material/index.d.ts +3 -0
  223. package/plugins/plugins/cesium-core/dist/components/TooltipManager.d.ts +11 -0
  224. package/plugins/plugins/cesium-core/dist/components/draw/DrawTool.d.ts +10 -0
  225. package/plugins/plugins/cesium-core/dist/components/draw/handlers/CircleDrawer.d.ts +16 -0
  226. package/plugins/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +14 -0
  227. package/plugins/plugins/cesium-core/dist/components/draw/handlers/PointDrawer.d.ts +12 -0
  228. package/plugins/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +14 -0
  229. package/plugins/plugins/cesium-core/dist/components/draw/handlers/RectangleDrawer.d.ts +13 -0
  230. package/plugins/plugins/cesium-core/dist/components/draw/types.d.ts +29 -0
  231. package/plugins/plugins/cesium-core/dist/components/entity/EntityLayer.d.ts +65 -0
  232. package/plugins/plugins/cesium-core/dist/components/gltf/GLTFManage.d.ts +141 -0
  233. package/plugins/plugins/cesium-core/dist/components/gltf/index.d.ts +1 -0
  234. package/plugins/plugins/cesium-core/dist/components/measurement/MeasurementTool.d.ts +34 -0
  235. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/AreaMeasure.d.ts +23 -0
  236. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CircleMeasure.d.ts +21 -0
  237. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CoordinateMeasure.d.ts +16 -0
  238. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/HorizontalMeasure.d.ts +25 -0
  239. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/PolylineDistanceMeasure.d.ts +24 -0
  240. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RectangleMeasure.d.ts +22 -0
  241. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RegularPolygonMeasure.d.ts +23 -0
  242. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/SpaceMeasure.d.ts +20 -0
  243. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TerrainHeightMeasure.d.ts +18 -0
  244. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TriangleMeasure.d.ts +24 -0
  245. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/VerticalMeasure.d.ts +23 -0
  246. package/plugins/plugins/cesium-core/dist/components/measurement/index.d.ts +13 -0
  247. package/plugins/plugins/cesium-core/dist/components/measurement/types.d.ts +42 -0
  248. package/plugins/plugins/cesium-core/dist/components/primitive/PrimitiveManager.d.ts +50 -0
  249. package/plugins/plugins/cesium-core/dist/components/roaming/CameraRoamTool.d.ts +27 -0
  250. package/plugins/plugins/cesium-core/dist/components/roaming/PathRoamTool.d.ts +23 -0
  251. package/plugins/plugins/cesium-core/dist/components/roaming/index.d.ts +3 -0
  252. package/plugins/plugins/cesium-core/dist/components/roaming/types.d.ts +66 -0
  253. package/plugins/plugins/cesium-core/dist/components/utils/convertGeoJsonToEntityData.d.ts +1 -0
  254. package/plugins/plugins/cesium-core/dist/components/utils/uuid.d.ts +1 -0
  255. package/plugins/plugins/cesium-core/dist/index.d.ts +12 -0
  256. package/plugins/plugins/cesium-core/package.json +26 -0
  257. package/plugins/plugins/cesium-core/pnpm-lock.yaml +872 -0
  258. package/plugins/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +546 -0
  259. package/plugins/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +489 -0
  260. package/plugins/plugins/cesium-core/src/components/MarkerEvent.ts +92 -0
  261. package/plugins/plugins/cesium-core/src/components/Material/MaterialManager.ts +129 -0
  262. package/plugins/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +116 -0
  263. package/plugins/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +236 -0
  264. package/plugins/plugins/cesium-core/src/components/Material/index.ts +3 -0
  265. package/plugins/plugins/cesium-core/src/components/TooltipManager.ts +52 -0
  266. package/plugins/plugins/cesium-core/src/components/draw/DrawTool.ts +55 -0
  267. package/plugins/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +159 -0
  268. package/plugins/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +113 -0
  269. package/plugins/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +70 -0
  270. package/plugins/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +112 -0
  271. package/plugins/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +115 -0
  272. package/plugins/plugins/cesium-core/src/components/draw/types.ts +28 -0
  273. package/plugins/plugins/cesium-core/src/components/entity/EntityLayer.ts +453 -0
  274. package/plugins/plugins/cesium-core/src/components/gltf/GLTFManage.ts +799 -0
  275. package/plugins/plugins/cesium-core/src/components/gltf/index.ts +1 -0
  276. package/plugins/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +416 -0
  277. package/plugins/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +451 -0
  278. package/plugins/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +267 -0
  279. package/plugins/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +139 -0
  280. package/plugins/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +418 -0
  281. package/plugins/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +352 -0
  282. package/plugins/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +388 -0
  283. package/plugins/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +379 -0
  284. package/plugins/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +246 -0
  285. package/plugins/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +185 -0
  286. package/plugins/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +541 -0
  287. package/plugins/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +360 -0
  288. package/plugins/plugins/cesium-core/src/components/measurement/index.ts +13 -0
  289. package/plugins/plugins/cesium-core/src/components/measurement/types.ts +57 -0
  290. package/plugins/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +556 -0
  291. package/plugins/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +286 -0
  292. package/plugins/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +174 -0
  293. package/plugins/plugins/cesium-core/src/components/roaming/index.ts +3 -0
  294. package/plugins/plugins/cesium-core/src/components/roaming/types.ts +71 -0
  295. package/plugins/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +98 -0
  296. package/plugins/plugins/cesium-core/src/components/utils/uuid.ts +7 -0
  297. package/plugins/plugins/cesium-core/src/index.ts +17 -0
  298. package/plugins/plugins/cesium-core/src/test/measurement/index.html +166 -0
  299. package/plugins/plugins/cesium-core/src/test/roaming/c.gltf +1 -0
  300. package/plugins/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
  301. package/plugins/plugins/cesium-core/src/test/roaming/index.html +51 -0
  302. package/plugins/plugins/cesium-core/src/test/roaming/path.html +448 -0
  303. package/plugins/plugins/cesium-core/src/test/roaming/view.html +520 -0
  304. package/plugins/plugins/cesium-core/stats.html +4949 -0
  305. package/plugins/plugins/cesium-core/tsconfig.json +14 -0
  306. package/plugins/plugins/cesium-core/vite.config.ts +35 -0
  307. package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts +18 -0
  308. package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts.map +1 -0
  309. package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts +92 -0
  310. package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts.map +1 -0
  311. package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts +82 -0
  312. package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts.map +1 -0
  313. package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts +152 -0
  314. package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts.map +1 -0
  315. package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts +21 -0
  316. package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts.map +1 -0
  317. package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts +69 -0
  318. package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts.map +1 -0
  319. package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts +21 -0
  320. package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts.map +1 -0
  321. package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts +68 -0
  322. package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts.map +1 -0
  323. package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts +78 -0
  324. package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts.map +1 -0
  325. package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts +48 -0
  326. package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts.map +1 -0
  327. package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts +48 -0
  328. package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts.map +1 -0
  329. package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts +164 -0
  330. package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts.map +1 -0
  331. package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts +30 -0
  332. package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts.map +1 -0
  333. package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts +78 -0
  334. package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts.map +1 -0
  335. package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts +82 -0
  336. package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts.map +1 -0
  337. package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts +67 -0
  338. package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts.map +1 -0
  339. package/plugins/plugins/cesium-vue/dist/index.css +1 -0
  340. package/plugins/plugins/cesium-vue/dist/index.d.ts +30 -0
  341. package/plugins/plugins/cesium-vue/dist/index.d.ts.map +1 -0
  342. package/plugins/plugins/cesium-vue/dist/index.js +10087 -0
  343. package/plugins/plugins/cesium-vue/dist/index.js.map +1 -0
  344. package/plugins/plugins/cesium-vue/dist/index.umd.cjs +46 -0
  345. package/plugins/plugins/cesium-vue/dist/index.umd.cjs.map +1 -0
  346. package/plugins/plugins/cesium-vue/package.json +48 -0
  347. package/plugins/plugins/cesium-vue/src/assets/icons/icon-001.png +0 -0
  348. package/plugins/plugins/cesium-vue/src/assets/icons/icon-002.png +0 -0
  349. package/plugins/plugins/cesium-vue/src/assets/icons/icon-003.png +0 -0
  350. package/plugins/plugins/cesium-vue/src/assets/icons/icon-004.png +0 -0
  351. package/plugins/plugins/cesium-vue/src/assets/icons/icon-005.png +0 -0
  352. package/plugins/plugins/cesium-vue/src/assets/icons/icon-006.png +0 -0
  353. package/plugins/plugins/cesium-vue/src/assets/icons/icon-007.png +0 -0
  354. package/plugins/plugins/cesium-vue/src/assets/icons/icon-008.png +0 -0
  355. package/plugins/plugins/cesium-vue/src/assets/icons/icon-009.png +0 -0
  356. package/plugins/plugins/cesium-vue/src/assets/icons/icon-010.png +0 -0
  357. package/plugins/plugins/cesium-vue/src/assets/icons/icon-011.png +0 -0
  358. package/plugins/plugins/cesium-vue/src/assets/icons/icon-012.png +0 -0
  359. package/plugins/plugins/cesium-vue/src/assets/img/Card3-BG.png +0 -0
  360. package/plugins/plugins/cesium-vue/src/assets/img/card_bg3.png +0 -0
  361. package/plugins/plugins/cesium-vue/src/components/basic-audio/index.ts +11 -0
  362. package/plugins/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +110 -0
  363. package/plugins/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +6 -0
  364. package/plugins/plugins/cesium-vue/src/components/basic-video/index.ts +12 -0
  365. package/plugins/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +99 -0
  366. package/plugins/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +13 -0
  367. package/plugins/plugins/cesium-vue/src/components/camera-roam/index.ts +4 -0
  368. package/plugins/plugins/cesium-vue/src/components/camera-roam/src/CameraRoam.vue +434 -0
  369. package/plugins/plugins/cesium-vue/src/components/camera-roam/src/cameraRoam.ts +28 -0
  370. package/plugins/plugins/cesium-vue/src/components/card-carousel/index.ts +12 -0
  371. package/plugins/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +124 -0
  372. package/plugins/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +60 -0
  373. package/plugins/plugins/cesium-vue/src/components/card-content/index.ts +12 -0
  374. package/plugins/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +41 -0
  375. package/plugins/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +22 -0
  376. package/plugins/plugins/cesium-vue/src/components/card-page/index.ts +12 -0
  377. package/plugins/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +102 -0
  378. package/plugins/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +37 -0
  379. package/plugins/plugins/cesium-vue/src/components/carousel-img/index.ts +12 -0
  380. package/plugins/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +15 -0
  381. package/plugins/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +6 -0
  382. package/plugins/plugins/cesium-vue/src/components/echarts-pro/index.ts +12 -0
  383. package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +107 -0
  384. package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +12 -0
  385. package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +55 -0
  386. package/plugins/plugins/cesium-vue/src/components/marker-bubble/index.ts +12 -0
  387. package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +235 -0
  388. package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +35 -0
  389. package/plugins/plugins/cesium-vue/src/components/marker-default/index.ts +12 -0
  390. package/plugins/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +19 -0
  391. package/plugins/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +12 -0
  392. package/plugins/plugins/cesium-vue/src/components/marker-html/index.ts +12 -0
  393. package/plugins/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +21 -0
  394. package/plugins/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +12 -0
  395. package/plugins/plugins/cesium-vue/src/components/marker-manage/index.ts +14 -0
  396. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +106 -0
  397. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +8 -0
  398. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +466 -0
  399. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +148 -0
  400. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +45 -0
  401. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +75 -0
  402. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +154 -0
  403. package/plugins/plugins/cesium-vue/src/components/marker-text/index.ts +12 -0
  404. package/plugins/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +14 -0
  405. package/plugins/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +10 -0
  406. package/plugins/plugins/cesium-vue/src/components/measurement/index.ts +12 -0
  407. package/plugins/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +183 -0
  408. package/plugins/plugins/cesium-vue/src/components/measurement/src/measurement.ts +20 -0
  409. package/plugins/plugins/cesium-vue/src/components/path-roam/index.ts +4 -0
  410. package/plugins/plugins/cesium-vue/src/components/path-roam/src/PathRoam.vue +429 -0
  411. package/plugins/plugins/cesium-vue/src/components/path-roam/src/pathRoam.ts +28 -0
  412. package/plugins/plugins/cesium-vue/src/components/test/CardMarker.vue +150 -0
  413. package/plugins/plugins/cesium-vue/src/components/test/CesiumMarker.vue +34 -0
  414. package/plugins/plugins/cesium-vue/src/components/test/CesiumViewer.vue +77 -0
  415. package/plugins/plugins/cesium-vue/src/components/test/MyLabel.vue +25 -0
  416. package/plugins/plugins/cesium-vue/src/components/test/index.ts +28 -0
  417. package/plugins/plugins/cesium-vue/src/index.ts +83 -0
  418. package/plugins/plugins/cesium-vue/stats.html +4949 -0
  419. package/plugins/plugins/cesium-vue/tsconfig.json +18 -0
  420. package/plugins/plugins/cesium-vue/vite.config.ts +56 -0
  421. package/plugins/plugins/theme-chalk/dist/theme-chalk.css +819 -0
  422. package/plugins/plugins/theme-chalk/index.less +11 -0
  423. package/plugins/plugins/theme-chalk/package.json +27 -0
  424. package/plugins/plugins/theme-chalk/src/basicAudio.less +41 -0
  425. package/plugins/plugins/theme-chalk/src/basicVideo.less +17 -0
  426. package/plugins/plugins/theme-chalk/src/cameraRoam.less +239 -0
  427. package/plugins/plugins/theme-chalk/src/cardCarousel.less +71 -0
  428. package/plugins/plugins/theme-chalk/src/cardContent.less +73 -0
  429. package/plugins/plugins/theme-chalk/src/cardPage.less +61 -0
  430. package/plugins/plugins/theme-chalk/src/carouselImg.less +34 -0
  431. package/plugins/plugins/theme-chalk/src/marker.less +107 -0
  432. package/plugins/plugins/theme-chalk/src/markerManage.less +25 -0
  433. package/plugins/plugins/theme-chalk/src/measurement.less +106 -0
  434. package/plugins/plugins/theme-chalk/src/mixins/config.less +4 -0
  435. package/plugins/plugins/theme-chalk/src/mixins/mixins.less +64 -0
  436. package/plugins/plugins/theme-chalk/src/pathRoam.less +198 -0
  437. package/plugins/plugins/utils/create.ts +45 -0
  438. package/plugins/plugins/utils/package.json +12 -0
  439. package/plugins/plugins/utils/uuid.ts +43 -0
  440. package/plugins/plugins/utils/with-install.ts +10 -0
  441. package/plugins/theme-chalk/dist/theme-chalk.css +852 -0
  442. package/plugins/theme-chalk/index.less +11 -0
  443. package/plugins/theme-chalk/package.json +27 -0
  444. package/plugins/theme-chalk/src/basicAudio.less +44 -0
  445. package/plugins/theme-chalk/src/basicVideo.less +17 -0
  446. package/plugins/theme-chalk/src/cameraRoam.less +239 -0
  447. package/plugins/theme-chalk/src/cardCarousel.less +71 -0
  448. package/plugins/theme-chalk/src/cardContent.less +73 -0
  449. package/plugins/theme-chalk/src/cardPage.less +61 -0
  450. package/plugins/theme-chalk/src/carouselImg.less +66 -0
  451. package/plugins/theme-chalk/src/marker.less +107 -0
  452. package/plugins/theme-chalk/src/markerManage.less +25 -0
  453. package/plugins/theme-chalk/src/measurement.less +106 -0
  454. package/plugins/theme-chalk/src/mixins/config.less +4 -0
  455. package/plugins/theme-chalk/src/mixins/mixins.less +64 -0
  456. package/plugins/theme-chalk/src/pathRoam.less +198 -0
  457. package/plugins/utils/create.ts +45 -0
  458. package/plugins/utils/package.json +12 -0
  459. package/plugins/utils/uuid.ts +43 -0
  460. package/plugins/utils/with-install.ts +10 -0
@@ -0,0 +1,896 @@
1
+ import { w as ne } from "../create-DynflqE1.js";
2
+ import { h as y, markRaw as p, render as C, defineComponent as ie, inject as oe, onMounted as le, watch as _, onUnmounted as se, renderSlot as ge, unref as fe } from "vue";
3
+ import { MaterialManager as N, MarkerEventBus as L, HtmlOverlayLabelPool as A, BufferedHierarchicalAggregator as de, EntityLayerManager as he, getPolylineFlowMaterialProperty as ue, getDynamicImgMaterial as me, getWallMaterial as W, MarkerEventKey as b } from "@report-components/cesium-core";
4
+ import { CxCardCarousel as D } from "./card-carousel.js";
5
+ import { CxMarkerDefault as k } from "./marker-default.js";
6
+ import { CxMarkerHtml as ce } from "./marker-html.js";
7
+ import { i as O, b as H, a as u, S as T, d as G, c as v, e as U, f as ye, g as $, M as V, h as w, j as pe, k as Ce, l as Me, m as q, n as z, o as Te, p as be, q as Le, r as we, s as Pe, t as X, u as xe, v as Oe, w as ve, x as Se } from "../index-B03tSn8_.js";
8
+ const Ee = {
9
+ id: { type: String, default: "marker" },
10
+ Cesium: { type: Object },
11
+ viewer: { type: Object },
12
+ aggregatorOptions: { type: Object },
13
+ tagListeningOptions: {
14
+ type: Array
15
+ },
16
+ themeConfig: { type: Object }
17
+ // Optional override
18
+ };
19
+ var M = /* @__PURE__ */ ((t) => (t.左建选中模型 = "MODEL_LEFT_CLICK", t.标记左键点击 = "TAG_LEFT_CLICK", t.标记移入 = "TAG_MOUSEENTER", t.标记移出 = "TAG_MOUSELEAVE", t.模型位置保存 = "SAVE_REGION", t.模型加载完成 = "MODEL_READY", t))(M || {}), Ie = "[object Symbol]";
20
+ function S(t) {
21
+ return typeof t == "symbol" || O(t) && H(t) == Ie;
22
+ }
23
+ function Y(t, e) {
24
+ for (var r = -1, a = t == null ? 0 : t.length, n = Array(a); ++r < a; )
25
+ n[r] = e(t[r], r, t);
26
+ return n;
27
+ }
28
+ var K = T ? T.prototype : void 0, F = K ? K.toString : void 0;
29
+ function Z(t) {
30
+ if (typeof t == "string")
31
+ return t;
32
+ if (u(t))
33
+ return Y(t, Z) + "";
34
+ if (S(t))
35
+ return F ? F.call(t) : "";
36
+ var e = t + "";
37
+ return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
38
+ }
39
+ function J(t) {
40
+ return t;
41
+ }
42
+ function _e(t, e, r) {
43
+ switch (r.length) {
44
+ case 0:
45
+ return t.call(e);
46
+ case 1:
47
+ return t.call(e, r[0]);
48
+ case 2:
49
+ return t.call(e, r[0], r[1]);
50
+ case 3:
51
+ return t.call(e, r[0], r[1], r[2]);
52
+ }
53
+ return t.apply(e, r);
54
+ }
55
+ var Ae = 800, De = 16, ke = Date.now;
56
+ function Ge(t) {
57
+ var e = 0, r = 0;
58
+ return function() {
59
+ var a = ke(), n = De - (a - r);
60
+ if (r = a, n > 0) {
61
+ if (++e >= Ae)
62
+ return arguments[0];
63
+ } else
64
+ e = 0;
65
+ return t.apply(void 0, arguments);
66
+ };
67
+ }
68
+ function Ke(t) {
69
+ return function() {
70
+ return t;
71
+ };
72
+ }
73
+ var Fe = G ? function(t, e) {
74
+ return G(t, "toString", {
75
+ configurable: !0,
76
+ enumerable: !1,
77
+ value: Ke(e),
78
+ writable: !0
79
+ });
80
+ } : J, Q = Ge(Fe), R = Math.max;
81
+ function j(t, e, r) {
82
+ return e = R(e === void 0 ? t.length - 1 : e, 0), function() {
83
+ for (var a = arguments, n = -1, o = R(a.length - e, 0), i = Array(o); ++n < o; )
84
+ i[n] = a[e + n];
85
+ n = -1;
86
+ for (var s = Array(e + 1); ++n < e; )
87
+ s[n] = a[n];
88
+ return s[e] = r(i), _e(t, this, s);
89
+ };
90
+ }
91
+ function Re(t, e) {
92
+ return Q(j(t, e, J), t + "");
93
+ }
94
+ function Be(t, e, r) {
95
+ if (!v(r))
96
+ return !1;
97
+ var a = typeof e;
98
+ return (a == "number" ? U(r) && ye(e, r.length) : a == "string" && e in r) ? $(r[e], t) : !1;
99
+ }
100
+ function Ne(t) {
101
+ return Re(function(e, r) {
102
+ var a = -1, n = r.length, o = n > 1 ? r[n - 1] : void 0, i = n > 2 ? r[2] : void 0;
103
+ for (o = t.length > 3 && typeof o == "function" ? (n--, o) : void 0, i && Be(r[0], r[1], i) && (o = n < 3 ? void 0 : o, n = 1), e = Object(e); ++a < n; ) {
104
+ var s = r[a];
105
+ s && t(e, s, a, o);
106
+ }
107
+ return e;
108
+ });
109
+ }
110
+ var We = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, He = /^\w*$/;
111
+ function Ue(t, e) {
112
+ if (u(t))
113
+ return !1;
114
+ var r = typeof t;
115
+ return r == "number" || r == "symbol" || r == "boolean" || t == null || S(t) ? !0 : He.test(t) || !We.test(t) || e != null && t in Object(e);
116
+ }
117
+ var $e = "Expected a function";
118
+ function E(t, e) {
119
+ if (typeof t != "function" || e != null && typeof e != "function")
120
+ throw new TypeError($e);
121
+ var r = function() {
122
+ var a = arguments, n = e ? e.apply(this, a) : a[0], o = r.cache;
123
+ if (o.has(n))
124
+ return o.get(n);
125
+ var i = t.apply(this, a);
126
+ return r.cache = o.set(n, i) || o, i;
127
+ };
128
+ return r.cache = new (E.Cache || V)(), r;
129
+ }
130
+ E.Cache = V;
131
+ var Ve = 500;
132
+ function qe(t) {
133
+ var e = E(t, function(a) {
134
+ return r.size === Ve && r.clear(), a;
135
+ }), r = e.cache;
136
+ return e;
137
+ }
138
+ var ze = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Xe = /\\(\\)?/g, Ye = qe(function(t) {
139
+ var e = [];
140
+ return t.charCodeAt(0) === 46 && e.push(""), t.replace(ze, function(r, a, n, o) {
141
+ e.push(n ? o.replace(Xe, "$1") : a || r);
142
+ }), e;
143
+ });
144
+ function Ze(t) {
145
+ return t == null ? "" : Z(t);
146
+ }
147
+ function I(t, e) {
148
+ return u(t) ? t : Ue(t, e) ? [t] : Ye(Ze(t));
149
+ }
150
+ function ee(t) {
151
+ if (typeof t == "string" || S(t))
152
+ return t;
153
+ var e = t + "";
154
+ return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
155
+ }
156
+ function Je(t, e) {
157
+ e = I(e, t);
158
+ for (var r = 0, a = e.length; t != null && r < a; )
159
+ t = t[ee(e[r++])];
160
+ return r && r == a ? t : void 0;
161
+ }
162
+ var B = T ? T.isConcatSpreadable : void 0;
163
+ function Qe(t) {
164
+ return u(t) || w(t) || !!(B && t && t[B]);
165
+ }
166
+ function je(t, e, r, a, n) {
167
+ var o = -1, i = t.length;
168
+ for (r || (r = Qe), n || (n = []); ++o < i; ) {
169
+ var s = t[o];
170
+ r(s) ? pe(n, s) : n[n.length] = s;
171
+ }
172
+ return n;
173
+ }
174
+ function et(t) {
175
+ var e = t == null ? 0 : t.length;
176
+ return e ? je(t) : [];
177
+ }
178
+ function tt(t) {
179
+ return Q(j(t, void 0, et), t + "");
180
+ }
181
+ var rt = "[object Object]", at = Function.prototype, nt = Object.prototype, te = at.toString, it = nt.hasOwnProperty, ot = te.call(Object);
182
+ function re(t) {
183
+ if (!O(t) || H(t) != rt)
184
+ return !1;
185
+ var e = Ce(t);
186
+ if (e === null)
187
+ return !0;
188
+ var r = it.call(e, "constructor") && e.constructor;
189
+ return typeof r == "function" && r instanceof r && te.call(r) == ot;
190
+ }
191
+ function lt(t, e, r) {
192
+ var a = -1, n = t.length;
193
+ e < 0 && (e = -e > n ? 0 : n + e), r = r > n ? n : r, r < 0 && (r += n), n = e > r ? 0 : r - e >>> 0, e >>>= 0;
194
+ for (var o = Array(n); ++a < n; )
195
+ o[a] = t[a + e];
196
+ return o;
197
+ }
198
+ function st(t) {
199
+ return function(e, r, a) {
200
+ for (var n = -1, o = Object(e), i = a(e), s = i.length; s--; ) {
201
+ var g = i[++n];
202
+ if (r(o[g], g, o) === !1)
203
+ break;
204
+ }
205
+ return e;
206
+ };
207
+ }
208
+ var gt = st();
209
+ function P(t, e, r) {
210
+ (r !== void 0 && !$(t[e], r) || r === void 0 && !(e in t)) && Me(t, e, r);
211
+ }
212
+ function ft(t) {
213
+ return O(t) && U(t);
214
+ }
215
+ function x(t, e) {
216
+ if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
217
+ return t[e];
218
+ }
219
+ function dt(t) {
220
+ return q(t, z(t));
221
+ }
222
+ function ht(t, e, r, a, n, o, i) {
223
+ var s = x(t, r), g = x(e, r), d = i.get(g);
224
+ if (d) {
225
+ P(t, r, d);
226
+ return;
227
+ }
228
+ var l = o ? o(s, g, r + "", t, e, i) : void 0, f = l === void 0;
229
+ if (f) {
230
+ var h = u(g), m = !h && Te(g), c = !h && !m && be(g);
231
+ l = g, h || m || c ? u(s) ? l = s : ft(s) ? l = Le(s) : m ? (f = !1, l = we(g, !0)) : c ? (f = !1, l = Pe(g, !0)) : l = [] : re(g) || w(g) ? (l = s, w(s) ? l = dt(s) : (!v(s) || X(s)) && (l = xe(g))) : f = !1;
232
+ }
233
+ f && (i.set(g, l), n(l, g, a, o, i), i.delete(g)), P(t, r, l);
234
+ }
235
+ function ae(t, e, r, a, n) {
236
+ t !== e && gt(e, function(o, i) {
237
+ if (n || (n = new Oe()), v(o))
238
+ ht(t, e, i, r, ae, a, n);
239
+ else {
240
+ var s = a ? a(x(t, i), o, i + "", t, e, n) : void 0;
241
+ s === void 0 && (s = o), P(t, i, s);
242
+ }
243
+ }, z);
244
+ }
245
+ function ut(t) {
246
+ var e = t == null ? 0 : t.length;
247
+ return e ? t[e - 1] : void 0;
248
+ }
249
+ function mt(t, e) {
250
+ return e.length < 2 ? t : Je(t, lt(e, 0, -1));
251
+ }
252
+ var ct = Ne(function(t, e, r) {
253
+ ae(t, e, r);
254
+ });
255
+ function yt(t, e) {
256
+ return e = I(e, t), t = mt(t, e), t == null || delete t[ee(ut(e))];
257
+ }
258
+ function pt(t) {
259
+ return re(t) ? void 0 : t;
260
+ }
261
+ var Ct = 1, Mt = 2, Tt = 4, bt = tt(function(t, e) {
262
+ var r = {};
263
+ if (t == null)
264
+ return r;
265
+ var a = !1;
266
+ e = Y(e, function(o) {
267
+ return o = I(o, t), a || (a = o.length > 1), o;
268
+ }), q(t, ve(t), r), a && (r = Se(r, Ct | Mt | Tt, pt));
269
+ for (var n = e.length; n--; )
270
+ yt(r, e[n]);
271
+ return r;
272
+ });
273
+ class Lt {
274
+ labelId;
275
+ cardId;
276
+ opt;
277
+ entityList = /* @__PURE__ */ new Map();
278
+ MaterialManager;
279
+ instance;
280
+ constructor(e) {
281
+ this.labelId = e.labelId, this.cardId = e.cardId, this.opt = e, this.MaterialManager = e.MaterialManager || new N(), this.instance = this.initCore(e, e.eventBus, e.cardEventBus);
282
+ }
283
+ //初始化标记管理
284
+ initCore(e, r, a) {
285
+ let { Cesium: n, viewer: o, aggregatorOptions: i } = e;
286
+ r || (r = new L()), a || (a = new L());
287
+ const s = new A(n, o, this.labelId, r), g = new A(n, o, this.cardId, a, !1), d = new de(n, o, {
288
+ //聚合
289
+ threshold: i?.threshold || 2,
290
+ displayLimit: i?.displayLimit || 1e3,
291
+ maxLevel: i?.maxLevel || 20,
292
+ debugCurrentGrids: i?.debugCurrentGrids || !1,
293
+ groupByTheme: i?.groupByTheme ?? !0,
294
+ //clusterTheme: aggregatorOptions?.clusterTheme || 'Tag1007', // 这里可以改成你自定义的默认聚合点主题k
295
+ pointTheme: i?.pointTheme || "Tag1001",
296
+ // 普通点的默认主题
297
+ centralPointMode: i?.centralPointMode || "firstPoint",
298
+ // 普通点的默认主题
299
+ ...i,
300
+ labelPool: s
301
+ }), l = this.MaterialManager, f = new he(
302
+ //实体图层管理
303
+ n,
304
+ o,
305
+ l,
306
+ d,
307
+ g
308
+ );
309
+ return { materialManager: l, entityLayerManager: f, cardPool: g, labelPool: s, aggregator: d, eventBus: r, cardEventBus: a };
310
+ }
311
+ //添加标记
312
+ set(e) {
313
+ this.entityList.clear(), e.forEach((r) => {
314
+ this.entityList.set(r.id, r);
315
+ }), this.instance.entityLayerManager.removeLayer("Layer_default"), this.instance.entityLayerManager.addLayer("Layer_default"), this.instance.entityLayerManager.addGroupsToLayer(
316
+ "Layer_default",
317
+ Array.from(this.entityList.values())
318
+ );
319
+ }
320
+ //添加
321
+ add(e) {
322
+ let r = [];
323
+ u(e) ? r = e : r.push(e), r.forEach((a) => {
324
+ this.entityList.set(a.id, a);
325
+ }), this.instance.entityLayerManager.getLayer("Layer_default") || this.instance.entityLayerManager.addLayer("Layer_default"), this.instance.entityLayerManager.addGroupsToLayer("Layer_default", r);
326
+ }
327
+ //更新标记
328
+ update(e, r = !0) {
329
+ let a = [];
330
+ u(e) ? a = e : a.push(e);
331
+ const n = a.map((o) => {
332
+ const i = this.entityList.get(o.id);
333
+ if (!i) return;
334
+ let s = ct({}, i, o);
335
+ return this.entityList.set(o.id, s), s;
336
+ }).filter(Boolean);
337
+ r && this.instance.entityLayerManager.updateGroupToLayer("Layer_default", n);
338
+ }
339
+ //获取标记
340
+ getById(e) {
341
+ return this.entityList.get(e);
342
+ }
343
+ getOptions() {
344
+ return new Promise((e) => {
345
+ e({
346
+ entityList: Array.from(this.entityList.values())
347
+ });
348
+ });
349
+ }
350
+ //删除标记
351
+ delete(e) {
352
+ let r = [];
353
+ u(e) ? r = e : r.push(e), r.forEach((a) => {
354
+ this.entityList.delete(a);
355
+ }), this.instance.entityLayerManager.removeGroups("Layer_default", r);
356
+ }
357
+ setMarkerAggregationEnabled(e, r) {
358
+ this.instance.aggregator.setThreshold(e ? r || 2 : 9999999);
359
+ }
360
+ setDebugCurrentGridsEnabled(e) {
361
+ this.instance.aggregator.setDebugCurrentGrids(e || !1);
362
+ }
363
+ }
364
+ function wt({
365
+ Cesium: t,
366
+ options: e,
367
+ MaterialManager: r
368
+ }) {
369
+ if (e.data?.theme) {
370
+ if (e.data?.lineType == "1") {
371
+ let a = ue(t, {
372
+ color: new t.Color.fromCssColorString(e?.options?.color || "#ffffff"),
373
+ duration: 100
374
+ });
375
+ r.register({
376
+ themeKey: e.data?.theme,
377
+ material: a,
378
+ category: "polyline"
379
+ });
380
+ } else if (e.data?.lineType == "2") {
381
+ let a = new t.PolylineArrowMaterialProperty(
382
+ t.Color.fromCssColorString(e?.options?.color || "red")
383
+ );
384
+ r.register({
385
+ themeKey: e.data?.theme,
386
+ material: a,
387
+ category: "polyline"
388
+ });
389
+ } else if (e.data?.lineType == "3") {
390
+ let a = new t.PolylineOutlineMaterialProperty({
391
+ color: t.Color.fromCssColorString(e?.options?.color || "red"),
392
+ outlineWidth: 0
393
+ });
394
+ r.register({
395
+ themeKey: e.data?.theme,
396
+ material: a,
397
+ category: "polyline"
398
+ });
399
+ } else if (e.data?.lineType == "4") {
400
+ let a = new t.PolylineDashMaterialProperty({
401
+ color: t.Color.fromCssColorString(e?.options?.color || "red"),
402
+ dashLength: Number(e?.options?.dashLength || 30)
403
+ //短划线长度
404
+ });
405
+ r.register({
406
+ themeKey: e.data?.theme,
407
+ material: a,
408
+ category: "polyline"
409
+ });
410
+ } else if (e.data?.lineType == "5") {
411
+ let a = me(t, {
412
+ image: e.img,
413
+ color: new t.Color.fromCssColorString(e?.options?.color || "#ffffff"),
414
+ duration: 5e3,
415
+ // freely: 'vertical',
416
+ direction: "-",
417
+ count: 1
418
+ });
419
+ r.register({
420
+ themeKey: e.data?.theme,
421
+ material: a,
422
+ category: "polyline"
423
+ });
424
+ }
425
+ }
426
+ }
427
+ function Pt({
428
+ Cesium: t,
429
+ options: e,
430
+ MaterialManager: r
431
+ }) {
432
+ if (e.data?.theme) {
433
+ if (e.data?.polygonType == "colorMode") {
434
+ let a = new t.Color.fromCssColorString(e?.options?.color || "#ffffff");
435
+ r.register({
436
+ themeKey: e.data?.theme,
437
+ material: a,
438
+ category: "polygon"
439
+ });
440
+ } else if (e.data?.polygonType == "img") {
441
+ let a = new t.ImageMaterialProperty({
442
+ image: e.img
443
+ });
444
+ r.register({
445
+ themeKey: e.data?.theme,
446
+ material: a,
447
+ category: "polygon"
448
+ });
449
+ } else if (e.data?.polygonType == "DynamicImgMaterial") {
450
+ let a = W(t, {
451
+ image: e.img,
452
+ color: new t.Color.fromCssColorString(e?.options?.color),
453
+ duration: 5e3,
454
+ freely: e.data?.freely || "vertical",
455
+ direction: "+",
456
+ count: 1
457
+ });
458
+ r.register({
459
+ themeKey: e.data?.theme,
460
+ material: a,
461
+ category: "polygon"
462
+ });
463
+ }
464
+ }
465
+ }
466
+ function xt({
467
+ Cesium: t,
468
+ options: e,
469
+ MaterialManager: r
470
+ }) {
471
+ if (e.data?.theme) {
472
+ if (e.data?.wallType == "img") {
473
+ let a = new t.ImageMaterialProperty({
474
+ image: e.img
475
+ });
476
+ r.register({
477
+ themeKey: e.data?.theme,
478
+ material: a,
479
+ category: "wall"
480
+ });
481
+ } else if (e.data?.wallType == "DynamicImgMaterial") {
482
+ let a = W(t, {
483
+ image: e.img,
484
+ // color: new Cesium.Color.fromCssColorString(options?.options?.color),
485
+ duration: 5e3,
486
+ freely: e.data?.freely || "vertical",
487
+ direction: "+",
488
+ count: 1
489
+ });
490
+ r.register({
491
+ themeKey: e.data?.theme,
492
+ material: a,
493
+ category: "wall"
494
+ });
495
+ }
496
+ }
497
+ }
498
+ class Ot extends Lt {
499
+ constructor(e) {
500
+ const {
501
+ labelId: r = "report-marker",
502
+ cardId: a = "report-marker",
503
+ tagThemeConfig: n = [],
504
+ lineThemeConfig: o = [],
505
+ cardThemeConfig: i = [],
506
+ runListener: s = () => {
507
+ },
508
+ MaterialManager: g = new N(),
509
+ aggregatorOptions: d
510
+ } = e, l = [...n], f = [...o], h = [...i], m = {
511
+ clusterTheme: "Tag1007",
512
+ pointTheme: "Tag1001",
513
+ centralPointMode: "firstPoint",
514
+ debugCurrentGrids: !1,
515
+ ...d || {}
516
+ }, c = {
517
+ ...e,
518
+ labelId: r,
519
+ cardId: a,
520
+ MaterialManager: g,
521
+ aggregatorOptions: m,
522
+ eventBus: new L()
523
+ };
524
+ super(c), this.opt = { ...this.opt, ...c }, this.initTagListener(this.instance.eventBus, this.opt), this.loadTabThemeConfig(l), this.loadLineThemeConfig(f), this.loadCardThemeConfig(h), this.initDefaultLineMaterials(), this.initDefaultTagTheme();
525
+ }
526
+ initDefaultTagTheme() {
527
+ this.setTagTheme({
528
+ comType: 4,
529
+ data: {
530
+ theme: "default",
531
+ options: {
532
+ textStyle: {
533
+ width: "max-content",
534
+ backgroundColor: "rgba(0, 0, 0, 0.7)",
535
+ borderRadius: "5px",
536
+ padding: "4px 8px"
537
+ }
538
+ }
539
+ }
540
+ });
541
+ }
542
+ initDefaultLineMaterials() {
543
+ const e = this.opt.Cesium;
544
+ if (!e) return;
545
+ const r = {
546
+ themeBeUnderConstructionRailway: {
547
+ material: new e.PolylineDashMaterialProperty({
548
+ color: e.Color.fromCssColorString("white"),
549
+ gapColor: e.Color.fromCssColorString("black"),
550
+ dashLength: 50,
551
+ dashPattern: parseInt("1111111111111110", 2)
552
+ })
553
+ },
554
+ themeRailway: {
555
+ material: new e.PolylineDashMaterialProperty({
556
+ color: e.Color.BLACK,
557
+ gapColor: e.Color.WHITE,
558
+ dashLength: 48
559
+ //短划线长度
560
+ })
561
+ },
562
+ themeNewRailway: {
563
+ material: new e.PolylineOutlineMaterialProperty({
564
+ color: e.Color.RED,
565
+ outlineWidth: 0,
566
+ outlineColor: e.Color.BLACK
567
+ })
568
+ },
569
+ themePlanningRailway: {
570
+ material: new e.PolylineOutlineMaterialProperty({
571
+ color: e.Color.fromCssColorString("rgb(162, 83, 188)"),
572
+ outlineWidth: 0,
573
+ outlineColor: e.Color.BLACK
574
+ })
575
+ },
576
+ themePlanLine: {
577
+ material: new e.PolylineOutlineMaterialProperty({
578
+ color: e.Color.fromCssColorString("rgb(5,11,233)"),
579
+ outlineWidth: 0,
580
+ outlineColor: e.Color.BLACK
581
+ })
582
+ },
583
+ themeExpressway: {
584
+ material: new e.PolylineOutlineMaterialProperty({
585
+ color: e.Color.fromCssColorString("rgb(255,255, 0)"),
586
+ outlineWidth: 6,
587
+ outlineColor: e.Color.fromCssColorString("rgb(102, 176 ,8)")
588
+ })
589
+ },
590
+ themeNationalHighway: {
591
+ material: new e.PolylineOutlineMaterialProperty({
592
+ color: e.Color.fromCssColorString("rgb(160 ,119, 0)"),
593
+ outlineWidth: 6,
594
+ outlineColor: e.Color.fromCssColorString("rgb(68 ,33, 24)")
595
+ })
596
+ },
597
+ themeProvincialRoad: {
598
+ material: new e.PolylineOutlineMaterialProperty({
599
+ color: e.Color.fromCssColorString("rgb(160 ,119, 0)"),
600
+ outlineWidth: 6,
601
+ outlineColor: e.Color.fromCssColorString("rgb(68 ,33, 24)")
602
+ })
603
+ },
604
+ themeCityBoundary: {
605
+ material: new e.PolylineDashMaterialProperty({
606
+ color: e.Color.fromCssColorString("rgb(162, 83, 188)"),
607
+ gapColor: e.Color.fromCssColorString("0000"),
608
+ dashLength: 50,
609
+ dashPattern: parseInt("1111111111100100", 2)
610
+ })
611
+ },
612
+ themeProvincialBoundaries: {
613
+ material: new e.PolylineDashMaterialProperty({
614
+ // color: Cesium.Color.fromCssColorString('rgb(162, 83, 188)'),
615
+ color: e.Color.fromCssColorString("rgb(162, 83, 188)"),
616
+ gapColor: e.Color.fromCssColorString("0000"),
617
+ dashLength: 50,
618
+ dashPattern: parseInt("1111111100100100", 2)
619
+ })
620
+ }
621
+ };
622
+ Object.entries(r).forEach(([a, n]) => {
623
+ this.MaterialManager.has(a, "polyline") || this.MaterialManager.register({
624
+ themeKey: a,
625
+ material: n.material,
626
+ category: "polyline"
627
+ });
628
+ });
629
+ }
630
+ // Initialize dynamic themes from data
631
+ initThemes(e) {
632
+ if (!e) return;
633
+ e.tag && this.loadTabThemeConfig(e.tag), e.card && this.loadCardThemeConfig(e.card);
634
+ const r = this.opt.Cesium, a = this.instance.materialManager || this.opt.MaterialManager;
635
+ if (e.line?.length > 0)
636
+ for (let n of e.line)
637
+ wt({
638
+ options: n,
639
+ Cesium: r,
640
+ MaterialManager: a
641
+ });
642
+ if (e.polygon?.length > 0)
643
+ for (let n of e.polygon)
644
+ Pt({
645
+ options: n,
646
+ Cesium: r,
647
+ MaterialManager: a
648
+ });
649
+ if (e.wall?.length > 0)
650
+ for (let n of e.wall)
651
+ xt({
652
+ options: n,
653
+ Cesium: r,
654
+ MaterialManager: a
655
+ });
656
+ }
657
+ extractOnEvents(e) {
658
+ const r = {};
659
+ for (const a in e)
660
+ a.startsWith("on") && typeof e[a] == "function" && (r[a] = e[a]);
661
+ return r;
662
+ }
663
+ //注册标记主题
664
+ loadTabThemeConfig(e) {
665
+ e.forEach((r) => {
666
+ this.setTagTheme(r);
667
+ });
668
+ }
669
+ //注册默认的线配置
670
+ loadLineThemeConfig(e) {
671
+ e.forEach((r) => {
672
+ this.MaterialManager.has(r.data.theme, "polyline") || r.material && this.MaterialManager.register({
673
+ themeKey: r.data.theme,
674
+ material: r.material,
675
+ category: "polyline"
676
+ });
677
+ });
678
+ }
679
+ loadCardThemeConfig(e) {
680
+ let r = this.instance.cardPool;
681
+ e.forEach((a) => {
682
+ r.registerTheme(a.data.theme, {
683
+ createElement(n, o) {
684
+ let i = o.data.data, s;
685
+ return a.comType == 1 ? s = y(p(D), {
686
+ data: i || {},
687
+ imgSrc: a.data.img,
688
+ styleConfig: {
689
+ paddingTop: "50px",
690
+ paddingRight: "18px",
691
+ paddingBottom: "10px",
692
+ paddingLeft: "95px",
693
+ backgroundColor: "rgba(0,0,0,0)",
694
+ borderRadius: 0,
695
+ width: "682px",
696
+ height: "445px"
697
+ },
698
+ titleConfig: {
699
+ show: !0,
700
+ width: "600px",
701
+ height: "50px",
702
+ left: "79px",
703
+ top: "0px"
704
+ },
705
+ bgClass: [a.data.theme]
706
+ }) : a.comType == 3 && (s = y(p(D), {
707
+ data: i || {},
708
+ imgSrc: a.data.img,
709
+ styleConfig: {
710
+ paddingTop: "55px",
711
+ paddingRight: "12px",
712
+ paddingBottom: "17px",
713
+ paddingLeft: "83px",
714
+ backgroundColor: "rgba(0,0,0,0)",
715
+ borderRadius: 0,
716
+ width: "365px",
717
+ height: "353px"
718
+ },
719
+ titleConfig: {
720
+ show: !0,
721
+ width: "285px",
722
+ height: "50px",
723
+ left: "79px",
724
+ top: "0px"
725
+ },
726
+ bgClass: [a.data.theme]
727
+ // titleConfig: themeOptions.options.titleConfig,
728
+ // pageInfoConfig: themeOptions.options.pageInfoConfig,
729
+ })), C(s, n), () => C(null, n);
730
+ },
731
+ options: {
732
+ offset: a.data.pixelOffset,
733
+ ...a.data || {}
734
+ }
735
+ });
736
+ });
737
+ }
738
+ //注册主题
739
+ setTagTheme(e) {
740
+ let { labelPool: r } = this.instance;
741
+ r.registerTheme(e.data.theme, {
742
+ createElement(a, n) {
743
+ let o = n.data?.billboard?.[0];
744
+ const i = bt(o, ["position", "options"]);
745
+ let s, g = {
746
+ ...i,
747
+ text: o?.options?.text,
748
+ isFullLink: e?.isFullLink ?? !1,
749
+ img: e?.data?.options?.img,
750
+ textStyle: e?.data?.options?.textStyle
751
+ };
752
+ return n.data?.gridKey ? s = y(p(k), {
753
+ text: n.data?.count,
754
+ isFullLink: e.isFullLink ?? !1,
755
+ img: e?.data.options.img,
756
+ textStyle: {
757
+ display: "block !important",
758
+ "font-size": "12px !important",
759
+ minWidth: "20px",
760
+ maxWidth: "max-content",
761
+ position: "absolute",
762
+ left: "63%",
763
+ top: "-8px",
764
+ background: "#f00",
765
+ "border-radius": "50%",
766
+ height: "20px",
767
+ "line-height": "20px",
768
+ "text-align": "center",
769
+ color: "white"
770
+ }
771
+ }) : e.comType == 4 ? s = y(p(ce), g) : s = y(p(k), g), C(s, a), () => C(null, a);
772
+ },
773
+ options: {
774
+ offset: e?.data?.pixelOffset || {}
775
+ }
776
+ });
777
+ }
778
+ //标记监听事件
779
+ initTagListener(e, r) {
780
+ let { viewer: a, tagListeningOptions: n } = r;
781
+ e.addListener(b.Click, {
782
+ name: "marker:click",
783
+ fn: (o) => {
784
+ r.runListener?.(M.标记左键点击, o.data), X(o.data?.onClick) && o.data?.onClick(o.data), o.data?.cameraPoint && o.data?.billboard[0]?.isFlyToCameraPoint && a?.camera?.flyTo({
785
+ duration: 1,
786
+ ...o.data?.cameraPoint
787
+ });
788
+ }
789
+ }), e.addListener(b.MouseEnter, {
790
+ name: "marker:mouseenter",
791
+ fn: (o) => {
792
+ let i = this.opt.Cesium, s = { x: 0, y: 0 };
793
+ try {
794
+ if (o.data?.billboard?.[0]?.position?.length > 2) {
795
+ let g = o.data?.billboard[0]?.position, d = i.Cartesian3.fromDegrees(g[0], g[1], g[3] || 0), l = this.instance.labelPool.toWindowCoordinates(d);
796
+ s.x = l.x, s.y = l.y;
797
+ }
798
+ } catch (g) {
799
+ console.log(g);
800
+ }
801
+ r.runListener?.(M.标记移入, o.data, s);
802
+ }
803
+ }), e.addListener(b.MouseLeave, {
804
+ name: "marker:mouseleave",
805
+ fn: (o) => {
806
+ let i = this.opt.Cesium, s = { x: 0, y: 0 };
807
+ try {
808
+ if (o.data?.billboard?.[0]?.position?.length > 2) {
809
+ let g = o.data?.billboard[0]?.position, d = i.Cartesian3.fromDegrees(g[0], g[1], g[3] || 0), l = this.instance.labelPool.toWindowCoordinates(d);
810
+ s.x = l.x, s.y = l.y;
811
+ }
812
+ } catch (g) {
813
+ console.log(g);
814
+ }
815
+ r.runListener?.(M.标记移出, o.data, s);
816
+ }
817
+ }), n?.forEach((o) => {
818
+ e.addListener(o.key, o.ListenerItem, o.overwrite);
819
+ });
820
+ }
821
+ // 兼容旧模式的材质注册
822
+ setMaterial(e) {
823
+ const { type: r, material: a, materialKey: n, cover: o } = e, i = r ? r.toLowerCase() : "default";
824
+ this.MaterialManager.register({
825
+ themeKey: n,
826
+ // 兼容传入的是 { material: ... } 结构或者直接是材质对象
827
+ material: a?.material || a,
828
+ force: o,
829
+ category: i
830
+ });
831
+ }
832
+ }
833
+ const vt = /* @__PURE__ */ ie({
834
+ __name: "MarkerManage",
835
+ props: Ee,
836
+ emits: ["register", "load", "marker-event"],
837
+ setup(t, { expose: e, emit: r }) {
838
+ const a = t, n = r, o = oe("leitingMethods");
839
+ let i = null;
840
+ const s = (l = {}) => {
841
+ if (i) return i;
842
+ const f = {
843
+ ...a,
844
+ ...l,
845
+ Cesium: l.Cesium || a.Cesium,
846
+ viewer: l.viewer || a.viewer,
847
+ runListener: (h, m, ...c) => {
848
+ n("marker-event", { key: h, data: m, args: c });
849
+ }
850
+ };
851
+ return !f.Cesium || !f.viewer ? null : (i = new Ot(f), l.methods && (l.methods.setTagTheme = i.setTagTheme.bind(i), l.methods.setMaterial = i.setMaterial.bind(i), l.methods.setEntityList = i.set.bind(i), l.methods.addComItem = i.add.bind(i), l.methods.deleteComItem = i.delete.bind(i), l.methods.updateComItem = i.update.bind(i), l.methods.getEntityByID = i.getById.bind(i), l.methods.getOptions = i.getOptions.bind(i)), n("load", i), i);
852
+ }, g = {
853
+ init: s,
854
+ set: (l) => i?.set(l),
855
+ add: (l) => i?.add(l),
856
+ update: (l, f) => i?.update(l, f),
857
+ getById: (l) => i?.getById(l),
858
+ getOptions: () => i?.getOptions(),
859
+ delete: (l) => i?.delete(l),
860
+ setMarkerAggregationEnabled: (l, f) => i?.setMarkerAggregationEnabled(l, f),
861
+ setDebugCurrentGridsEnabled: (l) => i?.setDebugCurrentGridsEnabled(l),
862
+ initThemes: (l) => i?.initThemes(l),
863
+ setTagTheme: (l) => i?.setTagTheme(l),
864
+ setMaterial: (l) => i?.setMaterial(l)
865
+ };
866
+ e(g), n("register", g);
867
+ function d() {
868
+ if (i) return i;
869
+ const l = fe(o), f = l?.getCesium?.(), h = l?.getViewer?.();
870
+ f && h ? s({ Cesium: f, viewer: h, methods: l }) : a.Cesium && a.viewer && s({ methods: l });
871
+ }
872
+ return le(() => {
873
+ d();
874
+ }), _(
875
+ () => [a.Cesium, a.viewer],
876
+ ([l, f]) => {
877
+ l && f && !i && d();
878
+ }
879
+ ), _(
880
+ () => o?.value,
881
+ (l, f) => {
882
+ d();
883
+ },
884
+ { deep: !1 }
885
+ ), se(() => {
886
+ }), (l, f) => ge(l.$slots, "default");
887
+ }
888
+ }), Gt = ne(vt);
889
+ export {
890
+ Gt as CxMarkerManage,
891
+ Ot as MarkerManage,
892
+ Lt as MarkerManagerCore,
893
+ M as ReportListenerKey,
894
+ Gt as default,
895
+ Ee as markerManageProps
896
+ };