leiting-bim 2.1.48 → 2.1.52

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 (410) hide show
  1. package/package.json +16 -2
  2. package/plugins/cesium-core/dist/cesium-core.mjs +587 -535
  3. package/plugins/cesium-core/dist/cesium-core.mjs.map +1 -0
  4. package/plugins/cesium-core/dist/cesium-core.umd.js +19 -18
  5. package/plugins/cesium-core/dist/cesium-core.umd.js.map +1 -0
  6. package/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +76 -73
  7. package/plugins/cesium-vue/dist/_commonjsHelpers-DaMA6jEr.js +1 -0
  8. package/plugins/cesium-vue/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  9. package/plugins/cesium-vue/dist/components/basic-audio.js +3 -2
  10. package/plugins/cesium-vue/dist/components/basic-audio.js.map +1 -0
  11. package/plugins/cesium-vue/dist/components/basic-video.js +3 -2
  12. package/plugins/cesium-vue/dist/components/basic-video.js.map +1 -0
  13. package/plugins/cesium-vue/dist/components/card-carousel.js +2 -1
  14. package/plugins/cesium-vue/dist/components/card-carousel.js.map +1 -0
  15. package/plugins/cesium-vue/dist/components/card-content.js +13 -12
  16. package/plugins/cesium-vue/dist/components/card-content.js.map +1 -0
  17. package/plugins/cesium-vue/dist/components/card-page.js +2 -1
  18. package/plugins/cesium-vue/dist/components/card-page.js.map +1 -0
  19. package/plugins/cesium-vue/dist/components/carousel-img.js +6 -5
  20. package/plugins/cesium-vue/dist/components/carousel-img.js.map +1 -0
  21. package/plugins/cesium-vue/dist/components/echarts-pro.js +2 -1
  22. package/plugins/cesium-vue/dist/components/echarts-pro.js.map +1 -0
  23. package/plugins/cesium-vue/dist/components/marker-bubble.js +5 -4
  24. package/plugins/cesium-vue/dist/components/marker-bubble.js.map +1 -0
  25. package/plugins/cesium-vue/dist/components/marker-default.js +6 -5
  26. package/plugins/cesium-vue/dist/components/marker-default.js.map +1 -0
  27. package/plugins/cesium-vue/dist/components/marker-html.js +6 -5
  28. package/plugins/cesium-vue/dist/components/marker-html.js.map +1 -0
  29. package/plugins/cesium-vue/dist/components/marker-manage.js +112 -94
  30. package/plugins/cesium-vue/dist/components/marker-manage.js.map +1 -0
  31. package/plugins/cesium-vue/dist/components/marker-text.js +6 -5
  32. package/plugins/cesium-vue/dist/components/marker-text.js.map +1 -0
  33. package/plugins/cesium-vue/dist/components/measurement.js +4 -3
  34. package/plugins/cesium-vue/dist/components/measurement.js.map +1 -0
  35. package/plugins/cesium-vue/dist/components/position-picker/index.d.ts +58 -0
  36. package/plugins/cesium-vue/dist/components/position-picker.d.ts +6 -0
  37. package/plugins/cesium-vue/dist/components/position-picker.js +243 -0
  38. package/plugins/cesium-vue/dist/components/position-picker.js.map +1 -0
  39. package/plugins/cesium-vue/dist/create-DynflqE1.js +1 -0
  40. package/plugins/cesium-vue/dist/create-DynflqE1.js.map +1 -0
  41. package/plugins/cesium-vue/dist/{index-B03tSn8_.js → index-C0pspk3x.js} +3 -2
  42. package/plugins/cesium-vue/dist/index-C0pspk3x.js.map +1 -0
  43. package/plugins/cesium-vue/dist/index-CUs_hd1V.js +1 -0
  44. package/plugins/cesium-vue/dist/index-CUs_hd1V.js.map +1 -0
  45. package/plugins/cesium-vue/dist/index.d.ts +3 -1
  46. package/plugins/cesium-vue/dist/index.js +31 -27
  47. package/plugins/cesium-vue/dist/index.js.map +1 -0
  48. package/plugins/cesium-vue/package.json +4 -0
  49. package/plugins/theme-chalk/dist/debug.log +1 -0
  50. package/plugins/.gitmodules +0 -4
  51. package/plugins/README.md +0 -2
  52. package/plugins/build.cjs +0 -63
  53. package/plugins/cesium-core/pnpm-lock.yaml +0 -872
  54. package/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +0 -546
  55. package/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +0 -489
  56. package/plugins/cesium-core/src/components/MarkerEvent.ts +0 -92
  57. package/plugins/cesium-core/src/components/Material/MaterialManager.ts +0 -129
  58. package/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +0 -116
  59. package/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +0 -236
  60. package/plugins/cesium-core/src/components/Material/index.ts +0 -3
  61. package/plugins/cesium-core/src/components/TooltipManager.ts +0 -52
  62. package/plugins/cesium-core/src/components/draw/DrawTool.ts +0 -55
  63. package/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +0 -159
  64. package/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +0 -113
  65. package/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +0 -70
  66. package/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +0 -112
  67. package/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +0 -115
  68. package/plugins/cesium-core/src/components/draw/types.ts +0 -28
  69. package/plugins/cesium-core/src/components/entity/EntityLayer.ts +0 -453
  70. package/plugins/cesium-core/src/components/gltf/GLTFManage.ts +0 -799
  71. package/plugins/cesium-core/src/components/gltf/index.ts +0 -1
  72. package/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +0 -416
  73. package/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +0 -552
  74. package/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +0 -289
  75. package/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +0 -139
  76. package/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +0 -427
  77. package/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +0 -356
  78. package/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +0 -516
  79. package/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +0 -472
  80. package/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +0 -250
  81. package/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +0 -185
  82. package/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +0 -561
  83. package/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +0 -361
  84. package/plugins/cesium-core/src/components/measurement/index.ts +0 -13
  85. package/plugins/cesium-core/src/components/measurement/types.ts +0 -57
  86. package/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +0 -556
  87. package/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +0 -286
  88. package/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +0 -174
  89. package/plugins/cesium-core/src/components/roaming/index.ts +0 -3
  90. package/plugins/cesium-core/src/components/roaming/types.ts +0 -71
  91. package/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +0 -98
  92. package/plugins/cesium-core/src/components/utils/uuid.ts +0 -7
  93. package/plugins/cesium-core/src/index.ts +0 -17
  94. package/plugins/cesium-core/src/test/measurement/index.html +0 -166
  95. package/plugins/cesium-core/src/test/roaming/c.gltf +0 -1
  96. package/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
  97. package/plugins/cesium-core/src/test/roaming/index.html +0 -51
  98. package/plugins/cesium-core/src/test/roaming/path.html +0 -448
  99. package/plugins/cesium-core/src/test/roaming/view.html +0 -520
  100. package/plugins/cesium-core/stats.html +0 -4949
  101. package/plugins/cesium-core/tsconfig.json +0 -14
  102. package/plugins/cesium-core/vite.config.ts +0 -35
  103. package/plugins/cesium-vue/src/assets/icons/icon-001.png +0 -0
  104. package/plugins/cesium-vue/src/assets/icons/icon-002.png +0 -0
  105. package/plugins/cesium-vue/src/assets/icons/icon-003.png +0 -0
  106. package/plugins/cesium-vue/src/assets/icons/icon-004.png +0 -0
  107. package/plugins/cesium-vue/src/assets/icons/icon-005.png +0 -0
  108. package/plugins/cesium-vue/src/assets/icons/icon-006.png +0 -0
  109. package/plugins/cesium-vue/src/assets/icons/icon-007.png +0 -0
  110. package/plugins/cesium-vue/src/assets/icons/icon-008.png +0 -0
  111. package/plugins/cesium-vue/src/assets/icons/icon-009.png +0 -0
  112. package/plugins/cesium-vue/src/assets/icons/icon-010.png +0 -0
  113. package/plugins/cesium-vue/src/assets/icons/icon-011.png +0 -0
  114. package/plugins/cesium-vue/src/assets/icons/icon-012.png +0 -0
  115. package/plugins/cesium-vue/src/assets/img/Card3-BG.png +0 -0
  116. package/plugins/cesium-vue/src/assets/img/card_bg3.png +0 -0
  117. package/plugins/cesium-vue/src/components/basic-audio/index.ts +0 -6
  118. package/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +0 -119
  119. package/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +0 -6
  120. package/plugins/cesium-vue/src/components/basic-video/index.ts +0 -7
  121. package/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +0 -58
  122. package/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +0 -14
  123. package/plugins/cesium-vue/src/components/card-carousel/index.ts +0 -7
  124. package/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +0 -124
  125. package/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +0 -60
  126. package/plugins/cesium-vue/src/components/card-content/index.ts +0 -7
  127. package/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +0 -41
  128. package/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +0 -22
  129. package/plugins/cesium-vue/src/components/card-page/index.ts +0 -7
  130. package/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +0 -102
  131. package/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +0 -37
  132. package/plugins/cesium-vue/src/components/carousel-img/index.ts +0 -7
  133. package/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +0 -84
  134. package/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +0 -8
  135. package/plugins/cesium-vue/src/components/echarts-pro/index.ts +0 -7
  136. package/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +0 -107
  137. package/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +0 -12
  138. package/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +0 -55
  139. package/plugins/cesium-vue/src/components/marker-bubble/index.ts +0 -7
  140. package/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +0 -235
  141. package/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +0 -35
  142. package/plugins/cesium-vue/src/components/marker-default/index.ts +0 -7
  143. package/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +0 -19
  144. package/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +0 -12
  145. package/plugins/cesium-vue/src/components/marker-html/index.ts +0 -7
  146. package/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +0 -21
  147. package/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +0 -12
  148. package/plugins/cesium-vue/src/components/marker-manage/index.ts +0 -9
  149. package/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +0 -106
  150. package/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +0 -8
  151. package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +0 -466
  152. package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +0 -148
  153. package/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +0 -45
  154. package/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +0 -75
  155. package/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +0 -154
  156. package/plugins/cesium-vue/src/components/marker-text/index.ts +0 -7
  157. package/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +0 -14
  158. package/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +0 -10
  159. package/plugins/cesium-vue/src/components/measurement/index.ts +0 -7
  160. package/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +0 -183
  161. package/plugins/cesium-vue/src/components/measurement/src/measurement.ts +0 -20
  162. package/plugins/cesium-vue/src/index.ts +0 -89
  163. package/plugins/cesium-vue/stats.html +0 -4949
  164. package/plugins/cesium-vue/tsconfig.json +0 -18
  165. package/plugins/cesium-vue/vite.config.ts +0 -62
  166. package/plugins/plugins/README.md +0 -2
  167. package/plugins/plugins/build.cjs +0 -63
  168. package/plugins/plugins/cesium-core/dist/cesium-core.mjs +0 -5881
  169. package/plugins/plugins/cesium-core/dist/cesium-core.mjs.map +0 -1
  170. package/plugins/plugins/cesium-core/dist/cesium-core.umd.js +0 -77
  171. package/plugins/plugins/cesium-core/dist/cesium-core.umd.js.map +0 -1
  172. package/plugins/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +0 -73
  173. package/plugins/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +0 -152
  174. package/plugins/plugins/cesium-core/dist/components/MarkerEvent.d.ts +0 -38
  175. package/plugins/plugins/cesium-core/dist/components/Material/MaterialManager.d.ts +0 -49
  176. package/plugins/plugins/cesium-core/dist/components/Material/help/PolylineFlowMaterialProperty.d.ts +0 -10
  177. package/plugins/plugins/cesium-core/dist/components/Material/help/dynamicImgMaterial.d.ts +0 -16
  178. package/plugins/plugins/cesium-core/dist/components/Material/index.d.ts +0 -3
  179. package/plugins/plugins/cesium-core/dist/components/TooltipManager.d.ts +0 -11
  180. package/plugins/plugins/cesium-core/dist/components/draw/DrawTool.d.ts +0 -10
  181. package/plugins/plugins/cesium-core/dist/components/draw/handlers/CircleDrawer.d.ts +0 -16
  182. package/plugins/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +0 -14
  183. package/plugins/plugins/cesium-core/dist/components/draw/handlers/PointDrawer.d.ts +0 -12
  184. package/plugins/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +0 -14
  185. package/plugins/plugins/cesium-core/dist/components/draw/handlers/RectangleDrawer.d.ts +0 -13
  186. package/plugins/plugins/cesium-core/dist/components/draw/types.d.ts +0 -29
  187. package/plugins/plugins/cesium-core/dist/components/entity/EntityLayer.d.ts +0 -65
  188. package/plugins/plugins/cesium-core/dist/components/gltf/GLTFManage.d.ts +0 -141
  189. package/plugins/plugins/cesium-core/dist/components/gltf/index.d.ts +0 -1
  190. package/plugins/plugins/cesium-core/dist/components/measurement/MeasurementTool.d.ts +0 -34
  191. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/AreaMeasure.d.ts +0 -23
  192. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CircleMeasure.d.ts +0 -21
  193. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CoordinateMeasure.d.ts +0 -16
  194. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/HorizontalMeasure.d.ts +0 -25
  195. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/PolylineDistanceMeasure.d.ts +0 -24
  196. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RectangleMeasure.d.ts +0 -22
  197. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RegularPolygonMeasure.d.ts +0 -23
  198. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/SpaceMeasure.d.ts +0 -20
  199. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TerrainHeightMeasure.d.ts +0 -18
  200. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TriangleMeasure.d.ts +0 -24
  201. package/plugins/plugins/cesium-core/dist/components/measurement/handlers/VerticalMeasure.d.ts +0 -23
  202. package/plugins/plugins/cesium-core/dist/components/measurement/index.d.ts +0 -13
  203. package/plugins/plugins/cesium-core/dist/components/measurement/types.d.ts +0 -42
  204. package/plugins/plugins/cesium-core/dist/components/primitive/PrimitiveManager.d.ts +0 -50
  205. package/plugins/plugins/cesium-core/dist/components/roaming/CameraRoamTool.d.ts +0 -27
  206. package/plugins/plugins/cesium-core/dist/components/roaming/PathRoamTool.d.ts +0 -23
  207. package/plugins/plugins/cesium-core/dist/components/roaming/index.d.ts +0 -3
  208. package/plugins/plugins/cesium-core/dist/components/roaming/types.d.ts +0 -66
  209. package/plugins/plugins/cesium-core/dist/components/utils/convertGeoJsonToEntityData.d.ts +0 -1
  210. package/plugins/plugins/cesium-core/dist/components/utils/uuid.d.ts +0 -1
  211. package/plugins/plugins/cesium-core/dist/index.d.ts +0 -12
  212. package/plugins/plugins/cesium-core/package.json +0 -26
  213. package/plugins/plugins/cesium-core/pnpm-lock.yaml +0 -872
  214. package/plugins/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +0 -546
  215. package/plugins/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +0 -489
  216. package/plugins/plugins/cesium-core/src/components/MarkerEvent.ts +0 -92
  217. package/plugins/plugins/cesium-core/src/components/Material/MaterialManager.ts +0 -129
  218. package/plugins/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +0 -116
  219. package/plugins/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +0 -236
  220. package/plugins/plugins/cesium-core/src/components/Material/index.ts +0 -3
  221. package/plugins/plugins/cesium-core/src/components/TooltipManager.ts +0 -52
  222. package/plugins/plugins/cesium-core/src/components/draw/DrawTool.ts +0 -55
  223. package/plugins/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +0 -159
  224. package/plugins/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +0 -113
  225. package/plugins/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +0 -70
  226. package/plugins/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +0 -112
  227. package/plugins/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +0 -115
  228. package/plugins/plugins/cesium-core/src/components/draw/types.ts +0 -28
  229. package/plugins/plugins/cesium-core/src/components/entity/EntityLayer.ts +0 -453
  230. package/plugins/plugins/cesium-core/src/components/gltf/GLTFManage.ts +0 -799
  231. package/plugins/plugins/cesium-core/src/components/gltf/index.ts +0 -1
  232. package/plugins/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +0 -416
  233. package/plugins/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +0 -451
  234. package/plugins/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +0 -267
  235. package/plugins/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +0 -139
  236. package/plugins/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +0 -418
  237. package/plugins/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +0 -352
  238. package/plugins/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +0 -388
  239. package/plugins/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +0 -379
  240. package/plugins/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +0 -246
  241. package/plugins/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +0 -185
  242. package/plugins/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +0 -541
  243. package/plugins/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +0 -360
  244. package/plugins/plugins/cesium-core/src/components/measurement/index.ts +0 -13
  245. package/plugins/plugins/cesium-core/src/components/measurement/types.ts +0 -57
  246. package/plugins/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +0 -556
  247. package/plugins/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +0 -286
  248. package/plugins/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +0 -174
  249. package/plugins/plugins/cesium-core/src/components/roaming/index.ts +0 -3
  250. package/plugins/plugins/cesium-core/src/components/roaming/types.ts +0 -71
  251. package/plugins/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +0 -98
  252. package/plugins/plugins/cesium-core/src/components/utils/uuid.ts +0 -7
  253. package/plugins/plugins/cesium-core/src/index.ts +0 -17
  254. package/plugins/plugins/cesium-core/src/test/measurement/index.html +0 -166
  255. package/plugins/plugins/cesium-core/src/test/roaming/c.gltf +0 -1
  256. package/plugins/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
  257. package/plugins/plugins/cesium-core/src/test/roaming/index.html +0 -51
  258. package/plugins/plugins/cesium-core/src/test/roaming/path.html +0 -448
  259. package/plugins/plugins/cesium-core/src/test/roaming/view.html +0 -520
  260. package/plugins/plugins/cesium-core/stats.html +0 -4949
  261. package/plugins/plugins/cesium-core/tsconfig.json +0 -14
  262. package/plugins/plugins/cesium-core/vite.config.ts +0 -35
  263. package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts +0 -18
  264. package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts.map +0 -1
  265. package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts +0 -92
  266. package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts.map +0 -1
  267. package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts +0 -82
  268. package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts.map +0 -1
  269. package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts +0 -152
  270. package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts.map +0 -1
  271. package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts +0 -21
  272. package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts.map +0 -1
  273. package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts +0 -69
  274. package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts.map +0 -1
  275. package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts +0 -21
  276. package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts.map +0 -1
  277. package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts +0 -68
  278. package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts.map +0 -1
  279. package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts +0 -78
  280. package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts.map +0 -1
  281. package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts +0 -48
  282. package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts.map +0 -1
  283. package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts +0 -48
  284. package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts.map +0 -1
  285. package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts +0 -164
  286. package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts.map +0 -1
  287. package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts +0 -30
  288. package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts.map +0 -1
  289. package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts +0 -78
  290. package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts.map +0 -1
  291. package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts +0 -82
  292. package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts.map +0 -1
  293. package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts +0 -67
  294. package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts.map +0 -1
  295. package/plugins/plugins/cesium-vue/dist/index.css +0 -1
  296. package/plugins/plugins/cesium-vue/dist/index.d.ts +0 -30
  297. package/plugins/plugins/cesium-vue/dist/index.d.ts.map +0 -1
  298. package/plugins/plugins/cesium-vue/dist/index.js +0 -10087
  299. package/plugins/plugins/cesium-vue/dist/index.js.map +0 -1
  300. package/plugins/plugins/cesium-vue/dist/index.umd.cjs +0 -46
  301. package/plugins/plugins/cesium-vue/dist/index.umd.cjs.map +0 -1
  302. package/plugins/plugins/cesium-vue/package.json +0 -48
  303. package/plugins/plugins/cesium-vue/src/assets/icons/icon-001.png +0 -0
  304. package/plugins/plugins/cesium-vue/src/assets/icons/icon-002.png +0 -0
  305. package/plugins/plugins/cesium-vue/src/assets/icons/icon-003.png +0 -0
  306. package/plugins/plugins/cesium-vue/src/assets/icons/icon-004.png +0 -0
  307. package/plugins/plugins/cesium-vue/src/assets/icons/icon-005.png +0 -0
  308. package/plugins/plugins/cesium-vue/src/assets/icons/icon-006.png +0 -0
  309. package/plugins/plugins/cesium-vue/src/assets/icons/icon-007.png +0 -0
  310. package/plugins/plugins/cesium-vue/src/assets/icons/icon-008.png +0 -0
  311. package/plugins/plugins/cesium-vue/src/assets/icons/icon-009.png +0 -0
  312. package/plugins/plugins/cesium-vue/src/assets/icons/icon-010.png +0 -0
  313. package/plugins/plugins/cesium-vue/src/assets/icons/icon-011.png +0 -0
  314. package/plugins/plugins/cesium-vue/src/assets/icons/icon-012.png +0 -0
  315. package/plugins/plugins/cesium-vue/src/assets/img/Card3-BG.png +0 -0
  316. package/plugins/plugins/cesium-vue/src/assets/img/card_bg3.png +0 -0
  317. package/plugins/plugins/cesium-vue/src/components/basic-audio/index.ts +0 -11
  318. package/plugins/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +0 -110
  319. package/plugins/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +0 -6
  320. package/plugins/plugins/cesium-vue/src/components/basic-video/index.ts +0 -12
  321. package/plugins/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +0 -99
  322. package/plugins/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +0 -13
  323. package/plugins/plugins/cesium-vue/src/components/camera-roam/index.ts +0 -4
  324. package/plugins/plugins/cesium-vue/src/components/camera-roam/src/CameraRoam.vue +0 -434
  325. package/plugins/plugins/cesium-vue/src/components/camera-roam/src/cameraRoam.ts +0 -28
  326. package/plugins/plugins/cesium-vue/src/components/card-carousel/index.ts +0 -12
  327. package/plugins/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +0 -124
  328. package/plugins/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +0 -60
  329. package/plugins/plugins/cesium-vue/src/components/card-content/index.ts +0 -12
  330. package/plugins/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +0 -41
  331. package/plugins/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +0 -22
  332. package/plugins/plugins/cesium-vue/src/components/card-page/index.ts +0 -12
  333. package/plugins/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +0 -102
  334. package/plugins/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +0 -37
  335. package/plugins/plugins/cesium-vue/src/components/carousel-img/index.ts +0 -12
  336. package/plugins/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +0 -15
  337. package/plugins/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +0 -6
  338. package/plugins/plugins/cesium-vue/src/components/echarts-pro/index.ts +0 -12
  339. package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +0 -107
  340. package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +0 -12
  341. package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +0 -55
  342. package/plugins/plugins/cesium-vue/src/components/marker-bubble/index.ts +0 -12
  343. package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +0 -235
  344. package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +0 -35
  345. package/plugins/plugins/cesium-vue/src/components/marker-default/index.ts +0 -12
  346. package/plugins/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +0 -19
  347. package/plugins/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +0 -12
  348. package/plugins/plugins/cesium-vue/src/components/marker-html/index.ts +0 -12
  349. package/plugins/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +0 -21
  350. package/plugins/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +0 -12
  351. package/plugins/plugins/cesium-vue/src/components/marker-manage/index.ts +0 -14
  352. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +0 -106
  353. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +0 -8
  354. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +0 -466
  355. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +0 -148
  356. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +0 -45
  357. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +0 -75
  358. package/plugins/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +0 -154
  359. package/plugins/plugins/cesium-vue/src/components/marker-text/index.ts +0 -12
  360. package/plugins/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +0 -14
  361. package/plugins/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +0 -10
  362. package/plugins/plugins/cesium-vue/src/components/measurement/index.ts +0 -12
  363. package/plugins/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +0 -183
  364. package/plugins/plugins/cesium-vue/src/components/measurement/src/measurement.ts +0 -20
  365. package/plugins/plugins/cesium-vue/src/components/path-roam/index.ts +0 -4
  366. package/plugins/plugins/cesium-vue/src/components/path-roam/src/PathRoam.vue +0 -429
  367. package/plugins/plugins/cesium-vue/src/components/path-roam/src/pathRoam.ts +0 -28
  368. package/plugins/plugins/cesium-vue/src/components/test/CardMarker.vue +0 -150
  369. package/plugins/plugins/cesium-vue/src/components/test/CesiumMarker.vue +0 -34
  370. package/plugins/plugins/cesium-vue/src/components/test/CesiumViewer.vue +0 -77
  371. package/plugins/plugins/cesium-vue/src/components/test/MyLabel.vue +0 -25
  372. package/plugins/plugins/cesium-vue/src/components/test/index.ts +0 -28
  373. package/plugins/plugins/cesium-vue/src/index.ts +0 -83
  374. package/plugins/plugins/cesium-vue/stats.html +0 -4949
  375. package/plugins/plugins/cesium-vue/tsconfig.json +0 -18
  376. package/plugins/plugins/cesium-vue/vite.config.ts +0 -56
  377. package/plugins/plugins/theme-chalk/dist/theme-chalk.css +0 -819
  378. package/plugins/plugins/theme-chalk/index.less +0 -11
  379. package/plugins/plugins/theme-chalk/package.json +0 -27
  380. package/plugins/plugins/theme-chalk/src/basicAudio.less +0 -41
  381. package/plugins/plugins/theme-chalk/src/basicVideo.less +0 -17
  382. package/plugins/plugins/theme-chalk/src/cameraRoam.less +0 -239
  383. package/plugins/plugins/theme-chalk/src/cardCarousel.less +0 -71
  384. package/plugins/plugins/theme-chalk/src/cardContent.less +0 -73
  385. package/plugins/plugins/theme-chalk/src/cardPage.less +0 -61
  386. package/plugins/plugins/theme-chalk/src/carouselImg.less +0 -34
  387. package/plugins/plugins/theme-chalk/src/marker.less +0 -107
  388. package/plugins/plugins/theme-chalk/src/markerManage.less +0 -25
  389. package/plugins/plugins/theme-chalk/src/measurement.less +0 -106
  390. package/plugins/plugins/theme-chalk/src/mixins/config.less +0 -4
  391. package/plugins/plugins/theme-chalk/src/mixins/mixins.less +0 -64
  392. package/plugins/plugins/theme-chalk/src/pathRoam.less +0 -198
  393. package/plugins/plugins/utils/create.ts +0 -45
  394. package/plugins/plugins/utils/package.json +0 -12
  395. package/plugins/plugins/utils/uuid.ts +0 -43
  396. package/plugins/plugins/utils/with-install.ts +0 -10
  397. package/plugins/theme-chalk/index.less +0 -11
  398. package/plugins/theme-chalk/src/basicAudio.less +0 -44
  399. package/plugins/theme-chalk/src/basicVideo.less +0 -17
  400. package/plugins/theme-chalk/src/cameraRoam.less +0 -239
  401. package/plugins/theme-chalk/src/cardCarousel.less +0 -71
  402. package/plugins/theme-chalk/src/cardContent.less +0 -73
  403. package/plugins/theme-chalk/src/cardPage.less +0 -61
  404. package/plugins/theme-chalk/src/carouselImg.less +0 -66
  405. package/plugins/theme-chalk/src/marker.less +0 -107
  406. package/plugins/theme-chalk/src/markerManage.less +0 -25
  407. package/plugins/theme-chalk/src/measurement.less +0 -106
  408. package/plugins/theme-chalk/src/mixins/config.less +0 -4
  409. package/plugins/theme-chalk/src/mixins/mixins.less +0 -64
  410. package/plugins/theme-chalk/src/pathRoam.less +0 -198
@@ -1,75 +0,0 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import type {
3
- AggregatorOptions,
4
- ListenerItem,
5
- MarkerEventKey,
6
- } from '@report-components/cesium-core';
7
-
8
- export const markerManageProps = {
9
- id: { type: String, default: 'marker' },
10
- Cesium: { type: Object as PropType<any> },
11
- viewer: { type: Object as PropType<any> },
12
- aggregatorOptions: { type: Object as PropType<AggregatorOptions> },
13
- tagListeningOptions: {
14
- type: Array as PropType<
15
- Array<{
16
- key: MarkerEventKey;
17
- ListenerItem: ListenerItem;
18
- overwrite?: boolean;
19
- }>
20
- >,
21
- },
22
- themeConfig: { type: Object as PropType<any> }, // Optional override
23
- } as const;
24
-
25
- export type MarkerManageProps = ExtractPropTypes<typeof markerManageProps>;
26
- export interface MarkerManageOptions {
27
- Cesium: any;
28
- viewer: any;
29
- aggregatorOptions: AggregatorOptions;
30
- tagListeningOptions?: Array<{
31
- key: MarkerEventKey;
32
- ListenerItem: ListenerItem;
33
- overwrite?: boolean;
34
- }>;
35
- [key: string]: any; // Allow extra properties like MaterialManager
36
- }
37
-
38
- export interface MarkerManageMethods {
39
- init: (options: MarkerManageOptions) => any;
40
- set: (list: any) => void;
41
- add: (data: any) => void;
42
- update: (data: any[], immediately?: boolean) => void;
43
- getById: (id: string) => any;
44
- getOptions: () => Promise<any>;
45
- delete: (data: string[] | string) => void;
46
- setMarkerAggregationEnabled: (enabled: boolean, count?: number) => void;
47
- setDebugCurrentGridsEnabled: (enabled: boolean) => void;
48
- initThemes: (data: any) => void; // Added initThemes to methods
49
- }
50
-
51
- export interface ThemeInterface {
52
- data: {
53
- theme: string;
54
- lineType?: string;
55
- polygonType?: string;
56
- wallType?: string;
57
- [key: string]: any;
58
- };
59
- options?: any;
60
- img?: string;
61
- material?: any;
62
- comType?: number;
63
- [key: string]: any;
64
- }
65
- export type RegisterFn = (instance: MarkerManageMethods) => void;
66
- export type UseCesiumReturnType = [RegisterFn, MarkerManageMethods];
67
-
68
- export enum ReportListenerKey {
69
- 左建选中模型 = 'MODEL_LEFT_CLICK',
70
- 标记左键点击 = 'TAG_LEFT_CLICK',
71
- 标记移入 = 'TAG_MOUSEENTER',
72
- 标记移出 = 'TAG_MOUSELEAVE',
73
- 模型位置保存 = 'SAVE_REGION',
74
- 模型加载完成 = 'MODEL_READY',
75
- }
@@ -1,154 +0,0 @@
1
- import {
2
- getDynamicImgMaterial,
3
- getWallMaterial,
4
- getPolylineFlowMaterialProperty,
5
- } from '@report-components/cesium-core';
6
-
7
- export function createLineTheme({
8
- Cesium,
9
- options,
10
- MaterialManager,
11
- }: {
12
- Cesium: any;
13
- options: any;
14
- MaterialManager: any;
15
- }) {
16
- if (!options.data?.theme) return;
17
- // if (['2', '3', '4'].includes(options.data?.lineType)) return;
18
- if (options.data?.lineType == '1') {
19
- let material = getPolylineFlowMaterialProperty(Cesium, {
20
- color: new Cesium.Color.fromCssColorString(options?.options?.color || '#ffffff'),
21
- duration: 100,
22
- });
23
- //把材质逐步从引擎中迁移出来
24
- MaterialManager.register({
25
- themeKey: options.data?.theme,
26
- material: material,
27
- category: 'polyline',
28
- });
29
- } else if (options.data?.lineType == '2') {
30
- let material = new Cesium.PolylineArrowMaterialProperty(
31
- Cesium.Color.fromCssColorString(options?.options?.color || 'red'),
32
- );
33
- //把材质逐步从引擎中迁移出来
34
- MaterialManager.register({
35
- themeKey: options.data?.theme,
36
- material: material,
37
- category: 'polyline',
38
- });
39
- } else if (options.data?.lineType == '3') {
40
- let material = new Cesium.PolylineOutlineMaterialProperty({
41
- color: Cesium.Color.fromCssColorString(options?.options?.color || 'red'),
42
- outlineWidth: 0,
43
- });
44
- //把材质逐步从引擎中迁移出来
45
- MaterialManager.register({
46
- themeKey: options.data?.theme,
47
- material: material,
48
- category: 'polyline',
49
- });
50
- } else if (options.data?.lineType == '4') {
51
- let material = new Cesium.PolylineDashMaterialProperty({
52
- color: Cesium.Color.fromCssColorString(options?.options?.color || 'red'),
53
- dashLength: Number(options?.options?.dashLength || 30), //短划线长度
54
- });
55
- //把材质逐步从引擎中迁移出来
56
- MaterialManager.register({
57
- themeKey: options.data?.theme,
58
- material: material,
59
- category: 'polyline',
60
- });
61
- } else if (options.data?.lineType == '5') {
62
- let material = getDynamicImgMaterial(Cesium, {
63
- image: options.img,
64
- color: new Cesium.Color.fromCssColorString(options?.options?.color || '#ffffff'),
65
- duration: 5000,
66
- // freely: 'vertical',
67
- direction: '-',
68
- count: 1,
69
- });
70
- MaterialManager.register({
71
- themeKey: options.data?.theme,
72
- material: material,
73
- category: 'polyline',
74
- });
75
- }
76
- }
77
-
78
- export function createPolygonTheme({
79
- Cesium,
80
- options,
81
- MaterialManager,
82
- }: {
83
- Cesium: any;
84
- options: any;
85
- MaterialManager: any;
86
- }) {
87
- if (!options.data?.theme) return;
88
- if (options.data?.polygonType == 'colorMode') {
89
- let material = new Cesium.Color.fromCssColorString(options?.options?.color || '#ffffff');
90
- MaterialManager.register({
91
- themeKey: options.data?.theme,
92
- material: material,
93
- category: 'polygon',
94
- });
95
- } else if (options.data?.polygonType == 'img') {
96
- let material = new Cesium.ImageMaterialProperty({
97
- image: options.img,
98
- });
99
- MaterialManager.register({
100
- themeKey: options.data?.theme,
101
- material: material,
102
- category: 'polygon',
103
- });
104
- } else if (options.data?.polygonType == 'DynamicImgMaterial') {
105
- let material = getWallMaterial(Cesium, {
106
- image: options.img,
107
- color: new Cesium.Color.fromCssColorString(options?.options?.color),
108
- duration: 5000,
109
- freely: options.data?.freely || 'vertical',
110
- direction: '+',
111
- count: 1,
112
- });
113
- MaterialManager.register({
114
- themeKey: options.data?.theme,
115
- material: material,
116
- category: 'polygon',
117
- });
118
- }
119
- }
120
- export function createWallTheme({
121
- Cesium,
122
- options,
123
- MaterialManager,
124
- }: {
125
- Cesium: any;
126
- options: any;
127
- MaterialManager: any;
128
- }) {
129
- if (!options.data?.theme) return;
130
- if (options.data?.wallType == 'img') {
131
- let material = new Cesium.ImageMaterialProperty({
132
- image: options.img,
133
- });
134
- MaterialManager.register({
135
- themeKey: options.data?.theme,
136
- material: material,
137
- category: 'wall',
138
- });
139
- } else if (options.data?.wallType == 'DynamicImgMaterial') {
140
- let material = getWallMaterial(Cesium, {
141
- image: options.img,
142
- // color: new Cesium.Color.fromCssColorString(options?.options?.color),
143
- duration: 5000,
144
- freely: options.data?.freely || 'vertical',
145
- direction: '+',
146
- count: 1,
147
- });
148
- MaterialManager.register({
149
- themeKey: options.data?.theme,
150
- material: material,
151
- category: 'wall',
152
- });
153
- }
154
- }
@@ -1,12 +0,0 @@
1
- import { withInstall } from '@report-components/utils/with-install';
2
- import _MarkerText from './src/MarkerText.vue';
3
- export * from './src/MarkerText.vue';
4
-
5
- const CxMarkerText = withInstall(_MarkerText);
6
- export default CxMarkerText;
7
-
8
- declare module 'vue' {
9
- export interface GlobalComponents {
10
- CxMarkerText: typeof CxMarkerText;
11
- }
12
- }
@@ -1,14 +0,0 @@
1
- <template>
2
- <div :class="bem.b('text')">
3
- <span :class="bem.be('text', 'name')" v-if="props.text" :style="props.textStyle">{{
4
- props.text
5
- }}</span>
6
- </div>
7
- </template>
8
- <script lang="ts" setup>
9
- import { createNamespace, prefix } from '@report-components/utils/create';
10
- import { markerTextProps } from './markerText';
11
- defineOptions({ name: `${prefix}-marker-text` });
12
- const props = defineProps(markerTextProps);
13
- const bem = createNamespace('marker');
14
- </script>
@@ -1,10 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- export const markerTextProps = {
3
- text: { type: String, default: '' },
4
- textStyle: {
5
- type: Object,
6
- default: () => {},
7
- },
8
- } as const;
9
-
10
- export type MarkerTextProps = ExtractPropTypes<typeof markerTextProps>;
@@ -1,12 +0,0 @@
1
- import { withInstall } from '@report-components/utils/with-install';
2
- import _Measurement from './src/Measurement.vue';
3
- export * from './src/measurement';
4
-
5
- const CxMeasurement = withInstall(_Measurement);
6
- export default CxMeasurement;
7
-
8
- declare module 'vue' {
9
- export interface GlobalComponents {
10
- CxMeasurement: typeof CxMeasurement;
11
- }
12
- }
@@ -1,183 +0,0 @@
1
- <template>
2
- <div v-show="visible" :class="[bem.b('box'), bem.is('small', props.size === 'small')]">
3
- <div
4
- v-for="type in types"
5
- :key="type.key"
6
- :class="[bem.be('box', 'btn'), { active: activeType === type.key }]"
7
- @click="handleMeasure(type.key)"
8
- >
9
- <div :class="bem.be('box', 'icon')">
10
- <img :src="type.icon" :alt="type.label" />
11
- </div>
12
- {{ type.label }}
13
- </div>
14
- <div :class="bem.be('box', 'btn')" @click="handleSpecifiedClear">
15
- <div :class="bem.be('box', 'icon')">
16
- <img :src="iconClear" alt="指定清除" />
17
- </div>
18
- 指定清除
19
- </div>
20
- <div :class="bem.be('box', 'btn')" @click="handleClear">
21
- <div :class="bem.be('box', 'icon')">
22
- <img :src="iconClear" alt="清除" />
23
- </div>
24
- 清除全部
25
- </div>
26
- </div>
27
- <div :id="overlayContainerId" :class="bem.be('box', 'container')"></div>
28
- </template>
29
-
30
- <script setup lang="ts">
31
- import { ref, onMounted, onUnmounted, unref, inject, Ref, watch } from 'vue';
32
- import { createNamespace, prefix } from '@report-components/utils/create';
33
- import { measurementProps } from './measurement';
34
- import { MeasurementTool } from '@report-components/cesium-core';
35
-
36
- // Icons
37
- import iconClear from '../../../assets/icons/icon-001.png';
38
- import iconCoordinate from '../../../assets/icons/icon-002.png';
39
- import iconRegular from '../../../assets/icons/icon-003.png';
40
- import iconRectangle from '../../../assets/icons/icon-004.png';
41
- import iconCircle from '../../../assets/icons/icon-005.png';
42
- import iconArea from '../../../assets/icons/icon-006.png';
43
- import iconHeight from '../../../assets/icons/icon-007.png';
44
- import iconVertical from '../../../assets/icons/icon-008.png';
45
- import iconHorizontal from '../../../assets/icons/icon-009.png';
46
- import iconPolyline from '../../../assets/icons/icon-010.png';
47
- import iconTriangle from '../../../assets/icons/icon-011.png';
48
- import iconSpace from '../../../assets/icons/icon-012.png';
49
-
50
- defineOptions({ name: `${prefix}-measurement` });
51
- const props = defineProps(measurementProps);
52
- const bem = createNamespace('measurement');
53
- const overlayContainerId = props.overlayContainerId || 'cx-measurement-overlay';
54
-
55
- const types = [
56
- { key: 'horizontal', label: '水平测距', icon: iconHorizontal },
57
- { key: 'vertical', label: '垂直测距', icon: iconVertical },
58
- { key: 'space', label: '空间测距', icon: iconSpace },
59
- { key: 'triangle', label: '三角测量', icon: iconTriangle },
60
- { key: 'polyline', label: '折线测距', icon: iconPolyline },
61
- { key: 'area', label: '面积测量', icon: iconArea },
62
- { key: 'circle', label: '圆形测量', icon: iconCircle },
63
- { key: 'rectangle', label: '矩形测量', icon: iconRectangle },
64
- { key: 'regularPolygon', label: '正多边形', icon: iconRegular },
65
- { key: 'terrainHeight', label: '地形高度', icon: iconHeight },
66
- { key: 'coordinate', label: '坐标查询', icon: iconCoordinate },
67
- ];
68
-
69
- const activeType = ref('');
70
- const visible = ref(false);
71
- const tool = ref<MeasurementTool | null>(null);
72
- let cesiumInstance: any = null;
73
- const leitingMethods = inject('leitingMethods') as Ref<any>;
74
- const init = (Cesium: any, viewer: any) => {
75
- if (!Cesium || !viewer) return;
76
- cesiumInstance = Cesium;
77
- tool.value = new MeasurementTool({ Cesium, viewer });
78
- };
79
-
80
- const handleMeasure = (type: string) => {
81
- const methods = unref(leitingMethods) as any;
82
- if (!tool.value && methods) {
83
- const Cesium = methods.getCesium();
84
- const viewer = methods.getViewer();
85
- cesiumInstance = Cesium;
86
- tool.value = new MeasurementTool({ Cesium, viewer });
87
- }
88
- if (!tool.value || !cesiumInstance) return;
89
-
90
- if (type === 'clear') {
91
- handleClear();
92
- return;
93
- }
94
- // 同类型连续测量:保持选中状态,直接再次启动测量
95
- activeType.value = type;
96
- tool.value.measure(type as any, {
97
- overlayContainerId,
98
- color: cesiumInstance.Color.YELLOW.withAlpha(0.5),
99
- lineColor: cesiumInstance.Color.fromCssColorString('#51ff00'),
100
- dashLineColor: cesiumInstance.Color.RED,
101
- pointColor: cesiumInstance.Color.YELLOW,
102
- });
103
- };
104
-
105
- const handleClear = () => {
106
- if (tool.value) {
107
- tool.value.clearAll();
108
- activeType.value = '';
109
- }
110
- };
111
-
112
- const handleSpecifiedClear = () => {
113
- if (tool.value) {
114
- tool.value.toggleSpecifiedClear(overlayContainerId);
115
- }
116
- };
117
-
118
- const open = (val: boolean) => {
119
- visible.value = val;
120
- };
121
-
122
- function load() {
123
- if (!tool.value) return tool.value;
124
- const methods = unref(leitingMethods) as any;
125
- const Cesium = methods?.getCesium?.();
126
- const viewer = methods?.getViewer?.();
127
- if (Cesium && viewer) {
128
- init(Cesium, viewer);
129
- } else if (props.Cesium && props.viewer) {
130
- init(Cesium, viewer);
131
- }
132
- }
133
- watch(
134
- () => leitingMethods?.value,
135
- (nv, ov) => {
136
- /* ... */
137
- load();
138
- },
139
- { deep: false },
140
- );
141
- onMounted(() => {
142
- load();
143
- });
144
-
145
- onUnmounted(() => {
146
- if (tool.value) {
147
- tool.value.clear();
148
- tool.value = null;
149
- }
150
- });
151
-
152
- defineExpose({
153
- init,
154
- open,
155
- tool,
156
- setMeasurementInfo(config: any) {
157
- if (tool.value) {
158
- config.measurements?.forEach((item: any) => {
159
- item.options = {
160
- overlayContainerId,
161
- color: cesiumInstance.Color.YELLOW,
162
- lineColor: cesiumInstance.Color.fromCssColorString('#51ff00'),
163
- dashLineColor: cesiumInstance.Color.RED,
164
- pointColor: cesiumInstance.Color.YELLOW,
165
- };
166
- });
167
- tool.value.setMeasurementsConfig(config);
168
- }
169
- },
170
- getMeasurementInfo() {
171
- if (tool.value) {
172
- let config = tool.value.getMeasurementsConfig();
173
- config.measurements?.forEach((item: any) => {
174
- delete item.options;
175
- });
176
- return config;
177
- }
178
- return {
179
- measurements: [],
180
- };
181
- },
182
- });
183
- </script>
@@ -1,20 +0,0 @@
1
- import { PropType } from 'vue';
2
-
3
- export const measurementProps = {
4
- Cesium: {
5
- type: Object as PropType<any>,
6
- required: false,
7
- },
8
- viewer: {
9
- type: Object as PropType<any>,
10
- required: false,
11
- },
12
- size: {
13
- type: String as PropType<'default' | 'small'>,
14
- default: 'small',
15
- },
16
- overlayContainerId: {
17
- type: String as PropType<string>,
18
- default: 'cx-measurement-overlay',
19
- },
20
- } as const;
@@ -1,4 +0,0 @@
1
- import PathRoam from './src/PathRoam.vue';
2
-
3
- export const CxPathRoam = PathRoam;
4
- export default CxPathRoam;