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
@@ -0,0 +1,243 @@
1
+ import { p as U, c as q, w as z } from "../create-DynflqE1.js";
2
+ import { defineComponent as A, inject as H, ref as C, onMounted as Y, watch as S, onUnmounted as G, openBlock as g, createElementBlock as k, normalizeClass as d, unref as c, createElementVNode as v, withDirectives as J, withKeys as Q, vModelText as X, Fragment as Z, renderList as ee, toDisplayString as O, createCommentVNode as te } from "vue";
3
+ const ie = {
4
+ modelValue: {
5
+ type: Object,
6
+ default: null
7
+ },
8
+ Cesium: {
9
+ type: Object,
10
+ required: !1
11
+ },
12
+ viewer: {
13
+ type: Object,
14
+ required: !1
15
+ },
16
+ label: {
17
+ type: String,
18
+ default: "位置"
19
+ },
20
+ tiandituKey: {
21
+ type: String,
22
+ default: ""
23
+ }
24
+ }, ne = ["onClick"], oe = /* @__PURE__ */ A({
25
+ name: `${U}-position-picker`,
26
+ __name: "PositionPicker",
27
+ props: ie,
28
+ emits: ["update:modelValue", "change"],
29
+ setup(_, { emit: D }) {
30
+ const a = _, V = D, u = q("position-picker"), x = H("leitingMethods");
31
+ let s = null, r = null, w = !1;
32
+ const f = C(null), b = C(null), y = `cx-position-picker-${Math.random().toString(36).slice(2)}`, h = C(""), p = C([]), I = (e, t) => {
33
+ !e || !t || (s = e, r = t, E(), L(a.modelValue));
34
+ }, E = () => {
35
+ const e = s, t = r;
36
+ if (!e || !t || f.value) return;
37
+ const i = new e.ScreenSpaceEventHandler(t.scene.canvas);
38
+ i.setInputAction((n) => {
39
+ const o = M(n.position);
40
+ if (!o) return;
41
+ const l = e.Cartographic.fromCartesian(o), m = e.Math.toDegrees(l.longitude), P = e.Math.toDegrees(l.latitude), F = l.height || 0;
42
+ N([m, P, F]);
43
+ }, e.ScreenSpaceEventType.LEFT_CLICK), f.value = i;
44
+ }, M = (e) => {
45
+ const t = s, i = r;
46
+ if (!t || !i || !e) return null;
47
+ const n = i.camera.getPickRay(e), o = i.scene.globe.pick(n, i.scene);
48
+ return o || (i.scene.pickPositionSupported ? i.scene.pickPosition(e) : null);
49
+ }, B = (e) => {
50
+ const t = s, i = r;
51
+ if (!t || !i) return;
52
+ let n = i.entities.getById(y);
53
+ n ? n.position = e : n = i.entities.add({
54
+ id: y,
55
+ position: e,
56
+ point: {
57
+ pixelSize: 10,
58
+ color: t.Color.YELLOW,
59
+ outlineColor: t.Color.BLACK,
60
+ outlineWidth: 1,
61
+ disableDepthTestDistance: Number.POSITIVE_INFINITY
62
+ },
63
+ label: {
64
+ text: a.label,
65
+ font: "14px sans-serif",
66
+ fillColor: t.Color.WHITE,
67
+ outlineColor: t.Color.BLACK,
68
+ outlineWidth: 2,
69
+ style: t.LabelStyle.FILL_AND_OUTLINE,
70
+ verticalOrigin: t.VerticalOrigin.TOP,
71
+ pixelOffset: new t.Cartesian2(0, -16)
72
+ }
73
+ });
74
+ }, K = () => {
75
+ const e = s, t = r;
76
+ if (!e || !t) return null;
77
+ const i = t.camera, n = i.position.clone();
78
+ return {
79
+ destination: {
80
+ x: n.x,
81
+ y: n.y,
82
+ z: n.z
83
+ },
84
+ orientation: {
85
+ heading: i.heading,
86
+ pitch: i.pitch,
87
+ roll: i.roll
88
+ },
89
+ duration: 1
90
+ };
91
+ }, N = (e) => {
92
+ const t = s;
93
+ if (!t || !r) return;
94
+ const n = t.Cartesian3.fromDegrees(e[0], e[1], e[2] || 0);
95
+ B(n);
96
+ const o = K(), l = o ? {
97
+ position: e,
98
+ cameraPoint: o
99
+ } : null;
100
+ V("update:modelValue", l), V("change", l);
101
+ }, L = (e) => {
102
+ if (!e) return;
103
+ const t = s, i = r;
104
+ if (!t || !i) return;
105
+ const [n, o, l] = e.position || [];
106
+ if (typeof n != "number" || typeof o != "number") return;
107
+ const m = t.Cartesian3.fromDegrees(n, o, l || 0);
108
+ B(m), e.cameraPoint && i.camera.flyTo({
109
+ ...e.cameraPoint
110
+ });
111
+ }, R = () => {
112
+ if (!a.tiandituKey || !h.value) {
113
+ p.value = [];
114
+ return;
115
+ }
116
+ const e = h.value.trim();
117
+ if (!e) {
118
+ p.value = [];
119
+ return;
120
+ }
121
+ const t = `{"keyWord":"${e}","queryType":12,"start":0,"count":10,"specify":"156000000"}`, i = `https://api.tianditu.gov.cn/v2/search?postStr=${encodeURIComponent(
122
+ t
123
+ )}&type=query&tk=${a.tiandituKey}`;
124
+ fetch(i).then((n) => n.json()).then((n) => {
125
+ const o = n?.pois || [];
126
+ n?.area && o.unshift(n.area), p.value = o;
127
+ }).catch(() => {
128
+ p.value = [];
129
+ });
130
+ }, W = (e, t = 1e3) => {
131
+ const i = s, n = r;
132
+ if (!i || !n) return;
133
+ const [o, l] = e.split(",").map((P) => parseFloat(P)), m = i.Cartesian3.fromDegrees(o, l, t);
134
+ n.camera.flyTo({
135
+ destination: m,
136
+ duration: 3
137
+ });
138
+ }, $ = (e) => {
139
+ e?.lonlat && W(e.lonlat);
140
+ }, j = (e) => {
141
+ if (!b.value || !e) return null;
142
+ const t = new e.Viewer(b.value, {
143
+ animation: !1,
144
+ timeline: !1,
145
+ homeButton: !1,
146
+ sceneModePicker: !1,
147
+ baseLayerPicker: !0,
148
+ fullscreenButton: !1,
149
+ geocoder: !1,
150
+ navigationHelpButton: !1,
151
+ infoBox: !1,
152
+ selectionIndicator: !1
153
+ });
154
+ return w = !0, t;
155
+ }, T = () => {
156
+ if (s && r)
157
+ return;
158
+ const e = c(x);
159
+ let t = a.Cesium, i = a.viewer;
160
+ if (!t && e?.getCesium && (t = e.getCesium()), !i && e?.getViewer && (i = e.getViewer()), !t && window.Cesium && (t = window.Cesium), t && i)
161
+ I(t, i);
162
+ else if (t && !i) {
163
+ const n = j(t);
164
+ n && I(t, n);
165
+ }
166
+ };
167
+ return Y(() => {
168
+ T();
169
+ }), S(
170
+ () => [a.Cesium, a.viewer],
171
+ ([e, t]) => {
172
+ e && t && !r && I(e, t);
173
+ }
174
+ ), S(
175
+ () => x?.value,
176
+ () => {
177
+ T();
178
+ },
179
+ { deep: !1 }
180
+ ), S(
181
+ () => a.modelValue,
182
+ (e) => {
183
+ if (e && s && r)
184
+ L(e);
185
+ else if (!e && r) {
186
+ const t = r, i = t.entities.getById(y);
187
+ i && t.entities.remove(i);
188
+ }
189
+ },
190
+ { deep: !0 }
191
+ ), G(() => {
192
+ const e = r;
193
+ if (e) {
194
+ const t = e.entities.getById(y);
195
+ t && e.entities.remove(t), w && typeof e.destroy == "function" && e.destroy();
196
+ }
197
+ s = null, r = null, w = !1, f.value && (f.value.destroy?.(), f.value = null);
198
+ }), (e, t) => (g(), k("div", {
199
+ class: d(c(u).b("position-picker"))
200
+ }, [
201
+ v("div", {
202
+ class: d(c(u).be("position-picker", "search"))
203
+ }, [
204
+ J(v("input", {
205
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => h.value = i),
206
+ class: d(c(u).be("position-picker", "input")),
207
+ type: "text",
208
+ placeholder: "请输入地区,回车搜索",
209
+ onKeyup: Q(R, ["enter"])
210
+ }, null, 34), [
211
+ [X, h.value]
212
+ ]),
213
+ p.value.length ? (g(), k("div", {
214
+ key: 0,
215
+ class: d(c(u).be("position-picker", "result-list"))
216
+ }, [
217
+ (g(!0), k(Z, null, ee(p.value, (i) => (g(), k("div", {
218
+ key: i.id || i.name,
219
+ class: d(c(u).be("position-picker", "result-item")),
220
+ onClick: (n) => $(i)
221
+ }, [
222
+ v("div", null, O(i.name), 1),
223
+ v("div", {
224
+ class: d(c(u).be("position-picker", "result-address"))
225
+ }, O(i.address), 3)
226
+ ], 10, ne))), 128))
227
+ ], 2)) : te("", !0)
228
+ ], 2),
229
+ v("div", {
230
+ class: d(c(u).be("position-picker", "viewer")),
231
+ ref_key: "viewerContainerRef",
232
+ ref: b,
233
+ style: { width: "100%", height: "100%" }
234
+ }, null, 2)
235
+ ], 2));
236
+ }
237
+ }), le = z(oe);
238
+ export {
239
+ le as CxPositionPicker,
240
+ le as default,
241
+ ie as positionPickerProps
242
+ };
243
+ //# sourceMappingURL=position-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"position-picker.js","sources":["../../src/components/position-picker/src/positionPicker.ts","../../src/components/position-picker/src/PositionPicker.vue","../../src/components/position-picker/index.ts"],"sourcesContent":["import { ExtractPropTypes, PropType } from 'vue';\n\nexport interface CameraPoint {\n destination: {\n x: number;\n y: number;\n z: number;\n };\n orientation: {\n heading: number;\n pitch: number;\n roll: number;\n };\n duration?: number;\n}\n\nexport interface PositionValue {\n position: [number, number, number];\n cameraPoint: CameraPoint;\n}\n\nexport const positionPickerProps = {\n modelValue: {\n type: Object as PropType<PositionValue | null>,\n default: null,\n },\n Cesium: {\n type: Object as PropType<any>,\n required: false,\n },\n viewer: {\n type: Object as PropType<any>,\n required: false,\n },\n label: {\n type: String,\n default: '位置',\n },\n tiandituKey: {\n type: String,\n default: '',\n },\n} as const;\n\nexport type PositionPickerProps = ExtractPropTypes<typeof positionPickerProps>;\n\n","<template>\n <div :class=\"bem.b('position-picker')\">\n <div :class=\"bem.be('position-picker', 'search')\">\n <input\n v-model=\"keyword\"\n :class=\"bem.be('position-picker', 'input')\"\n type=\"text\"\n placeholder=\"请输入地区,回车搜索\"\n @keyup.enter=\"handleSearch\"\n />\n <div v-if=\"results.length\" :class=\"bem.be('position-picker', 'result-list')\">\n <div\n v-for=\"item in results\"\n :key=\"item.id || item.name\"\n :class=\"bem.be('position-picker', 'result-item')\"\n @click=\"handleResultClick(item)\"\n >\n <div>{{ item.name }}</div>\n <div :class=\"bem.be('position-picker', 'result-address')\">\n {{ item.address }}\n </div>\n </div>\n </div>\n </div>\n <div\n :class=\"bem.be('position-picker', 'viewer')\"\n ref=\"viewerContainerRef\"\n style=\"width: 100%; height: 100%\"\n ></div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { ref, onMounted, onUnmounted, inject, unref, Ref, watch } from 'vue';\n import { createNamespace, prefix } from '@report-components/utils/create';\n import { positionPickerProps, PositionValue, CameraPoint } from './positionPicker';\n\n defineOptions({ name: `${prefix}-position-picker` });\n const props = defineProps(positionPickerProps);\n const emits = defineEmits<{\n (e: 'update:modelValue', value: PositionValue | null): void;\n (e: 'change', value: PositionValue | null): void;\n }>();\n\n const bem = createNamespace('position-picker');\n const leitingMethods = inject('leitingMethods') as Ref<any>;\n\n let CesiumRef: any | null = null;\n let viewerRef: any | null = null;\n let isInternalViewer = false;\n const handlerRef = ref<any | null>(null);\n const viewerContainerRef = ref<HTMLElement | null>(null);\n const markerEntityId = `cx-position-picker-${Math.random().toString(36).slice(2)}`;\n\n const keyword = ref('');\n const results = ref<any[]>([]);\n\n const init = (Cesium: any, viewer: any) => {\n if (!Cesium || !viewer) return;\n CesiumRef = Cesium;\n viewerRef = viewer;\n setupClickHandler();\n applyInitialValue(props.modelValue);\n };\n\n const setupClickHandler = () => {\n const Cesium = CesiumRef;\n const viewer = viewerRef;\n if (!Cesium || !viewer || handlerRef.value) return;\n\n const handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);\n handler.setInputAction((click: any) => {\n const cartesian = pickWorldPosition(click.position);\n if (!cartesian) return;\n const cartographic = Cesium.Cartographic.fromCartesian(cartesian);\n const longitude = Cesium.Math.toDegrees(cartographic.longitude);\n const latitude = Cesium.Math.toDegrees(cartographic.latitude);\n const height = cartographic.height || 0;\n updateSelection([longitude, latitude, height]);\n }, Cesium.ScreenSpaceEventType.LEFT_CLICK);\n handlerRef.value = handler;\n };\n\n const pickWorldPosition = (position: any) => {\n const Cesium = CesiumRef;\n const viewer = viewerRef;\n if (!Cesium || !viewer || !position) return null;\n const ray = viewer.camera.getPickRay(position);\n const cartesian = viewer.scene.globe.pick(ray, viewer.scene);\n if (cartesian) return cartesian;\n if (viewer.scene.pickPositionSupported) {\n return viewer.scene.pickPosition(position);\n }\n return null;\n };\n\n const createOrUpdateMarker = (cartesian: any) => {\n const Cesium = CesiumRef;\n const viewer = viewerRef;\n if (!Cesium || !viewer) return;\n let entity = viewer.entities.getById(markerEntityId) as any;\n if (!entity) {\n entity = viewer.entities.add({\n id: markerEntityId,\n position: cartesian,\n point: {\n pixelSize: 10,\n color: Cesium.Color.YELLOW,\n outlineColor: Cesium.Color.BLACK,\n outlineWidth: 1,\n disableDepthTestDistance: Number.POSITIVE_INFINITY,\n },\n label: {\n text: props.label,\n font: '14px sans-serif',\n fillColor: Cesium.Color.WHITE,\n outlineColor: Cesium.Color.BLACK,\n outlineWidth: 2,\n style: Cesium.LabelStyle.FILL_AND_OUTLINE,\n verticalOrigin: Cesium.VerticalOrigin.TOP,\n pixelOffset: new Cesium.Cartesian2(0, -16),\n },\n });\n } else {\n entity.position = cartesian;\n }\n };\n\n const buildCameraPoint = (): CameraPoint | null => {\n const Cesium = CesiumRef;\n const viewer = viewerRef;\n if (!Cesium || !viewer) return null;\n const camera = viewer.camera;\n const destination = camera.position.clone();\n return {\n destination: {\n x: destination.x,\n y: destination.y,\n z: destination.z,\n },\n orientation: {\n heading: camera.heading,\n pitch: camera.pitch,\n roll: camera.roll,\n },\n duration: 1,\n };\n };\n\n const updateSelection = (position: [number, number, number]) => {\n const Cesium = CesiumRef;\n const viewer = viewerRef;\n if (!Cesium || !viewer) return;\n const cartesian = Cesium.Cartesian3.fromDegrees(position[0], position[1], position[2] || 0);\n createOrUpdateMarker(cartesian);\n const cameraPoint = buildCameraPoint();\n const value: PositionValue | null = cameraPoint\n ? {\n position,\n cameraPoint,\n }\n : null;\n emits('update:modelValue', value);\n emits('change', value);\n };\n\n const applyInitialValue = (value: PositionValue | null | undefined) => {\n if (!value) return;\n const Cesium = CesiumRef;\n const viewer = viewerRef;\n if (!Cesium || !viewer) return;\n const [longitude, latitude, height] = value.position || [];\n if (typeof longitude !== 'number' || typeof latitude !== 'number') return;\n const cartesian = Cesium.Cartesian3.fromDegrees(longitude, latitude, height || 0);\n createOrUpdateMarker(cartesian);\n if (value.cameraPoint) {\n viewer.camera.flyTo({\n ...value.cameraPoint,\n });\n }\n };\n\n const handleSearch = () => {\n if (!props.tiandituKey || !keyword.value) {\n results.value = [];\n return;\n }\n const key = keyword.value.trim();\n if (!key) {\n results.value = [];\n return;\n }\n const postStr = `{\"keyWord\":\"${key}\",\"queryType\":12,\"start\":0,\"count\":10,\"specify\":\"156000000\"}`;\n const url = `https://api.tianditu.gov.cn/v2/search?postStr=${encodeURIComponent(\n postStr,\n )}&type=query&tk=${props.tiandituKey}`;\n fetch(url)\n .then((response) => response.json())\n .then((data) => {\n const list = data?.pois || [];\n if (data?.area) {\n list.unshift(data.area);\n }\n results.value = list;\n })\n .catch(() => {\n results.value = [];\n });\n };\n\n const locateByCoordinates = (coordinateStr: string, altitude = 1000) => {\n const Cesium = CesiumRef;\n const viewer = viewerRef;\n if (!Cesium || !viewer) return;\n const [longitude, latitude] = coordinateStr.split(',').map((coord) => parseFloat(coord));\n const position = Cesium.Cartesian3.fromDegrees(longitude, latitude, altitude);\n viewer.camera.flyTo({\n destination: position,\n duration: 3,\n });\n };\n\n const handleResultClick = (info: any) => {\n if (!info?.lonlat) return;\n locateByCoordinates(info.lonlat);\n };\n\n const createInternalViewer = (Cesium: any) => {\n if (!viewerContainerRef.value || !Cesium) return null;\n const viewer = new Cesium.Viewer(viewerContainerRef.value, {\n animation: false,\n timeline: false,\n homeButton: false,\n sceneModePicker: false,\n baseLayerPicker: true,\n fullscreenButton: false,\n geocoder: false,\n navigationHelpButton: false,\n infoBox: false,\n selectionIndicator: false,\n });\n isInternalViewer = true;\n return viewer;\n };\n\n const load = () => {\n if (CesiumRef && viewerRef) {\n return;\n }\n const methods = unref(leitingMethods) as any;\n let Cesium = props.Cesium as any;\n let viewer = props.viewer as any;\n\n if (!Cesium && methods?.getCesium) {\n Cesium = methods.getCesium();\n }\n if (!viewer && methods?.getViewer) {\n viewer = methods.getViewer();\n }\n if (!Cesium && (window as any).Cesium) {\n Cesium = (window as any).Cesium;\n }\n\n if (Cesium && viewer) {\n init(Cesium, viewer);\n } else if (Cesium && !viewer) {\n const internalViewer = createInternalViewer(Cesium);\n if (internalViewer) {\n init(Cesium, internalViewer);\n }\n }\n };\n\n onMounted(() => {\n load();\n });\n\n watch(\n () => [props.Cesium, props.viewer],\n ([newCesium, newViewer]) => {\n if (newCesium && newViewer && !viewerRef) {\n init(newCesium as any, newViewer as any);\n }\n },\n );\n\n watch(\n () => leitingMethods?.value,\n () => {\n load();\n },\n { deep: false },\n );\n\n watch(\n () => props.modelValue,\n (val) => {\n if (val && CesiumRef && viewerRef) {\n applyInitialValue(val);\n } else if (!val && viewerRef) {\n const viewer = viewerRef;\n const entity = viewer.entities.getById(markerEntityId);\n if (entity) {\n viewer.entities.remove(entity);\n }\n }\n },\n { deep: true },\n );\n\n onUnmounted(() => {\n const viewer = viewerRef;\n if (viewer) {\n const entity = viewer.entities.getById(markerEntityId);\n if (entity) {\n viewer.entities.remove(entity);\n }\n if (isInternalViewer && typeof viewer.destroy === 'function') {\n viewer.destroy();\n }\n }\n CesiumRef = null;\n viewerRef = null;\n isInternalViewer = false;\n if (handlerRef.value) {\n handlerRef.value.destroy?.();\n handlerRef.value = null;\n }\n });\n</script>\n","import { withInstall } from '@report-components/utils/with-install';\nimport _PositionPicker from './src/PositionPicker.vue';\nexport * from './src/positionPicker';\n\nconst CxPositionPicker = withInstall(_PositionPicker);\nexport { CxPositionPicker };\nexport default CxPositionPicker;\n\n"],"names":["positionPickerProps","props","__props","emits","__emit","bem","createNamespace","leitingMethods","inject","CesiumRef","viewerRef","isInternalViewer","handlerRef","ref","viewerContainerRef","markerEntityId","keyword","results","init","Cesium","viewer","setupClickHandler","applyInitialValue","handler","click","cartesian","pickWorldPosition","cartographic","longitude","latitude","height","updateSelection","position","ray","createOrUpdateMarker","entity","buildCameraPoint","camera","destination","cameraPoint","value","handleSearch","key","postStr","url","response","data","list","locateByCoordinates","coordinateStr","altitude","coord","handleResultClick","info","createInternalViewer","load","methods","unref","internalViewer","onMounted","watch","newCesium","newViewer","val","onUnmounted","_createElementBlock","_normalizeClass","_unref","_createElementVNode","$event","_Fragment","_renderList","item","_toDisplayString","CxPositionPicker","withInstall","_PositionPicker"],"mappings":";;AAqBO,MAAMA,KAAsB;AAAA,EACjC,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,UAAU;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;AAAA,YACjBJ,EAEM,OAAA;AAAA,cAFA,OAAKF,EAAEC,EAAA9D,CAAA,EAAI,GAAE,mBAAA,gBAAA,CAAA;AAAA,YAAA,GACdoE,EAAAD,EAAK,OAAO,GAAA,CAAA;AAAA,UAAA;;;MAKvBJ,EAIO,OAAA;AAAA,QAHJ,OAAKF,EAAEC,EAAA9D,CAAA,EAAI,GAAE,mBAAA,QAAA,CAAA;AAAA,iBACV;AAAA,QAAJ,KAAIS;AAAA,QACJ,OAAA,EAAA,OAAA,QAAA,QAAA,OAAA;AAAA,MAAA;;;ICvBA4D,KAAmBC,EAAYC,EAAe;"}
@@ -29,3 +29,4 @@ export {
29
29
  a as p,
30
30
  M as w
31
31
  };
32
+ //# sourceMappingURL=create-DynflqE1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-DynflqE1.js","sources":["../../utils/with-install.ts","../../utils/create.ts"],"sourcesContent":["import type { Plugin, App } from \"vue\";\r\n\r\nexport type SFCWithInstall<T> = T & Plugin;\r\nexport function withInstall<T>(comp: T) {\r\n (comp as SFCWithInstall<T>).install = function (app: App) {\r\n const { name } = comp as unknown as { name: string };\r\n app.component(name, comp as SFCWithInstall<T>); //将组件注册成全局的\r\n };\r\n return comp as SFCWithInstall<T>;\r\n}\r\n","// block 代码块 element 元素 modifier 装饰 state 状态\r\nfunction _bem(prefixName: string, blockSuffix: string, element: string, modifier: string) {\r\n if (blockSuffix) {\r\n prefixName += `-${blockSuffix}`;\r\n }\r\n if (element) {\r\n prefixName += `__${element}`;\r\n }\r\n if (modifier) {\r\n prefixName += `--${modifier}`;\r\n }\r\n return prefixName;\r\n}\r\n\r\nfunction createBEM(prefixName: string) {\r\n const b = (blockSuffix: string = '') => _bem(prefixName, blockSuffix, '', '');\r\n const e = (element: string = '') => (element ? _bem(prefixName, '', element, '') : '');\r\n const m = (modifier: string = '') => (modifier ? _bem(prefixName, '', '', modifier) : '');\r\n const be = (blockSuffix: string = '', element: string = '') =>\r\n blockSuffix && element ? _bem(prefixName, blockSuffix, element, '') : '';\r\n const bm = (blockSuffix: string = '', modifier: string = '') =>\r\n blockSuffix && modifier ? _bem(prefixName, blockSuffix, '', modifier) : '';\r\n const em = (element: string = '', modifier: string = '') =>\r\n element && modifier ? _bem(prefixName, '', element, modifier) : '';\r\n const bem = (blockSuffix: string = '', element: string = '', modifier: string = '') =>\r\n blockSuffix && element && modifier ? _bem(prefixName, blockSuffix, element, modifier) : '';\r\n const is = (name: string, state: string | boolean) => (state ? `is-${name}` : '');\r\n return {\r\n b,\r\n e,\r\n m,\r\n be,\r\n bm,\r\n em,\r\n bem,\r\n is,\r\n };\r\n}\r\n\r\nexport const prefix = 'cx';\r\nexport function createNamespace(name: string) {\r\n const prefixName = `${prefix}-${name}`;\r\n return createBEM(prefixName);\r\n}\r\n\r\n"],"names":["withInstall","comp","app","name","_bem","prefixName","blockSuffix","element","modifier","createBEM","state","prefix","createNamespace"],"mappings":"AAGO,SAASA,EAAeC,GAAS;AACrC,SAAAA,EAA2B,UAAU,SAAUC,GAAU;AACxD,UAAM,EAAE,MAAAC,MAASF;AACjB,IAAAC,EAAI,UAAUC,GAAMF,CAAyB;AAAA,EAC/C,GACOA;AACT;ACRA,SAASG,EAAKC,GAAoBC,GAAqBC,GAAiBC,GAAkB;AACxF,SAAIF,MACFD,KAAc,IAAIC,CAAW,KAE3BC,MACFF,KAAc,KAAKE,CAAO,KAExBC,MACFH,KAAc,KAAKG,CAAQ,KAEtBH;AACT;AAEA,SAASI,EAAUJ,GAAoB;AAarC,SAAO;AAAA,IACL,GAbQ,CAACC,IAAsB,OAAOF,EAAKC,GAAYC,GAAa,IAAI,EAAE;AAAA,IAc1E,GAbQ,CAACC,IAAkB,OAAQA,IAAUH,EAAKC,GAAY,IAAIE,GAAS,EAAE,IAAI;AAAA,IAcjF,GAbQ,CAACC,IAAmB,OAAQA,IAAWJ,EAAKC,GAAY,IAAI,IAAIG,CAAQ,IAAI;AAAA,IAcpF,IAbS,CAACF,IAAsB,IAAIC,IAAkB,OACtDD,KAAeC,IAAUH,EAAKC,GAAYC,GAAaC,GAAS,EAAE,IAAI;AAAA,IAatE,IAZS,CAACD,IAAsB,IAAIE,IAAmB,OACvDF,KAAeE,IAAWJ,EAAKC,GAAYC,GAAa,IAAIE,CAAQ,IAAI;AAAA,IAYxE,IAXS,CAACD,IAAkB,IAAIC,IAAmB,OACnDD,KAAWC,IAAWJ,EAAKC,GAAY,IAAIE,GAASC,CAAQ,IAAI;AAAA,IAWhE,KAVU,CAACF,IAAsB,IAAIC,IAAkB,IAAIC,IAAmB,OAC9EF,KAAeC,KAAWC,IAAWJ,EAAKC,GAAYC,GAAaC,GAASC,CAAQ,IAAI;AAAA,IAUxF,IATS,CAACL,GAAcO,MAA6BA,IAAQ,MAAMP,CAAI,KAAK;AAAA,EAS5E;AAEJ;AAEO,MAAMQ,IAAS;AACf,SAASC,EAAgBT,GAAc;AAC5C,QAAME,IAAa,GAAGM,CAAM,IAAIR,CAAI;AACpC,SAAOM,EAAUJ,CAAU;AAC7B;"}
@@ -1,5 +1,5 @@
1
1
  import { p as OP, w as kP } from "./create-DynflqE1.js";
2
- import { ref as pC, onMounted as dC, nextTick as VP, onBeforeUnmount as gC, markRaw as BP, defineComponent as zP, useTemplateRef as GP, watch as FP, createElementBlock as HP, openBlock as WP, normalizeStyle as UP, createElementVNode as $P, unref as f_ } from "vue";
2
+ import { ref as pC, onMounted as dC, nextTick as VP, onBeforeUnmount as gC, markRaw as BP, defineComponent as zP, useTemplateRef as GP, watch as FP, openBlock as HP, createElementBlock as WP, normalizeStyle as UP, createElementVNode as $P, unref as f_ } from "vue";
3
3
  import { c as YP, d as XP } from "./index-CUs_hd1V.js";
4
4
  import { g as ZP } from "./_commonjsHelpers-DaMA6jEr.js";
5
5
  /*! *****************************************************************************
@@ -45812,7 +45812,7 @@ const uJ = /* @__PURE__ */ ZP(lJ), fJ = {
45812
45812
  () => ({ ...e }),
45813
45813
  () => o(),
45814
45814
  { deep: !0 }
45815
- ), (u, f) => (WP(), HP("div", {
45815
+ ), (u, f) => (HP(), WP("div", {
45816
45816
  style: UP([{ height: u.height, width: u.width }, { display: "inline-block" }])
45817
45817
  }, [
45818
45818
  $P("div", {
@@ -45853,3 +45853,4 @@ export {
45853
45853
  Hf as x,
45854
45854
  fJ as y
45855
45855
  };
45856
+ //# sourceMappingURL=index-C0pspk3x.js.map