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.
- package/package.json +16 -2
- package/plugins/cesium-core/dist/cesium-core.mjs +587 -535
- package/plugins/cesium-core/dist/cesium-core.mjs.map +1 -0
- package/plugins/cesium-core/dist/cesium-core.umd.js +19 -18
- package/plugins/cesium-core/dist/cesium-core.umd.js.map +1 -0
- package/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +76 -73
- package/plugins/cesium-vue/dist/_commonjsHelpers-DaMA6jEr.js +1 -0
- package/plugins/cesium-vue/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/plugins/cesium-vue/dist/components/basic-audio.js +3 -2
- package/plugins/cesium-vue/dist/components/basic-audio.js.map +1 -0
- package/plugins/cesium-vue/dist/components/basic-video.js +3 -2
- package/plugins/cesium-vue/dist/components/basic-video.js.map +1 -0
- package/plugins/cesium-vue/dist/components/card-carousel.js +2 -1
- package/plugins/cesium-vue/dist/components/card-carousel.js.map +1 -0
- package/plugins/cesium-vue/dist/components/card-content.js +13 -12
- package/plugins/cesium-vue/dist/components/card-content.js.map +1 -0
- package/plugins/cesium-vue/dist/components/card-page.js +2 -1
- package/plugins/cesium-vue/dist/components/card-page.js.map +1 -0
- package/plugins/cesium-vue/dist/components/carousel-img.js +6 -5
- package/plugins/cesium-vue/dist/components/carousel-img.js.map +1 -0
- package/plugins/cesium-vue/dist/components/echarts-pro.js +2 -1
- package/plugins/cesium-vue/dist/components/echarts-pro.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-bubble.js +5 -4
- package/plugins/cesium-vue/dist/components/marker-bubble.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-default.js +6 -5
- package/plugins/cesium-vue/dist/components/marker-default.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-html.js +6 -5
- package/plugins/cesium-vue/dist/components/marker-html.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-manage.js +112 -94
- package/plugins/cesium-vue/dist/components/marker-manage.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-text.js +6 -5
- package/plugins/cesium-vue/dist/components/marker-text.js.map +1 -0
- package/plugins/cesium-vue/dist/components/measurement.js +4 -3
- package/plugins/cesium-vue/dist/components/measurement.js.map +1 -0
- package/plugins/cesium-vue/dist/components/position-picker/index.d.ts +58 -0
- package/plugins/cesium-vue/dist/components/position-picker.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/position-picker.js +243 -0
- package/plugins/cesium-vue/dist/components/position-picker.js.map +1 -0
- package/plugins/cesium-vue/dist/create-DynflqE1.js +1 -0
- package/plugins/cesium-vue/dist/create-DynflqE1.js.map +1 -0
- package/plugins/cesium-vue/dist/{index-B03tSn8_.js → index-C0pspk3x.js} +3 -2
- package/plugins/cesium-vue/dist/index-C0pspk3x.js.map +1 -0
- package/plugins/cesium-vue/dist/index-CUs_hd1V.js +1 -0
- package/plugins/cesium-vue/dist/index-CUs_hd1V.js.map +1 -0
- package/plugins/cesium-vue/dist/index.d.ts +3 -1
- package/plugins/cesium-vue/dist/index.js +31 -27
- package/plugins/cesium-vue/dist/index.js.map +1 -0
- package/plugins/cesium-vue/package.json +4 -0
- package/plugins/theme-chalk/dist/debug.log +1 -0
- package/plugins/.gitmodules +0 -4
- package/plugins/README.md +0 -2
- package/plugins/build.cjs +0 -63
- package/plugins/cesium-core/pnpm-lock.yaml +0 -872
- package/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +0 -546
- package/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +0 -489
- package/plugins/cesium-core/src/components/MarkerEvent.ts +0 -92
- package/plugins/cesium-core/src/components/Material/MaterialManager.ts +0 -129
- package/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +0 -116
- package/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +0 -236
- package/plugins/cesium-core/src/components/Material/index.ts +0 -3
- package/plugins/cesium-core/src/components/TooltipManager.ts +0 -52
- package/plugins/cesium-core/src/components/draw/DrawTool.ts +0 -55
- package/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +0 -159
- package/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +0 -113
- package/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +0 -70
- package/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +0 -112
- package/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +0 -115
- package/plugins/cesium-core/src/components/draw/types.ts +0 -28
- package/plugins/cesium-core/src/components/entity/EntityLayer.ts +0 -453
- package/plugins/cesium-core/src/components/gltf/GLTFManage.ts +0 -799
- package/plugins/cesium-core/src/components/gltf/index.ts +0 -1
- package/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +0 -416
- package/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +0 -552
- package/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +0 -289
- package/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +0 -139
- package/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +0 -427
- package/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +0 -356
- package/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +0 -516
- package/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +0 -472
- package/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +0 -250
- package/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +0 -185
- package/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +0 -561
- package/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +0 -361
- package/plugins/cesium-core/src/components/measurement/index.ts +0 -13
- package/plugins/cesium-core/src/components/measurement/types.ts +0 -57
- package/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +0 -556
- package/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +0 -286
- package/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +0 -174
- package/plugins/cesium-core/src/components/roaming/index.ts +0 -3
- package/plugins/cesium-core/src/components/roaming/types.ts +0 -71
- package/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +0 -98
- package/plugins/cesium-core/src/components/utils/uuid.ts +0 -7
- package/plugins/cesium-core/src/index.ts +0 -17
- package/plugins/cesium-core/src/test/measurement/index.html +0 -166
- package/plugins/cesium-core/src/test/roaming/c.gltf +0 -1
- package/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
- package/plugins/cesium-core/src/test/roaming/index.html +0 -51
- package/plugins/cesium-core/src/test/roaming/path.html +0 -448
- package/plugins/cesium-core/src/test/roaming/view.html +0 -520
- package/plugins/cesium-core/stats.html +0 -4949
- package/plugins/cesium-core/tsconfig.json +0 -14
- package/plugins/cesium-core/vite.config.ts +0 -35
- package/plugins/cesium-vue/src/assets/icons/icon-001.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-002.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-003.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-004.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-005.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-006.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-007.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-008.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-009.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-010.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-011.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-012.png +0 -0
- package/plugins/cesium-vue/src/assets/img/Card3-BG.png +0 -0
- package/plugins/cesium-vue/src/assets/img/card_bg3.png +0 -0
- package/plugins/cesium-vue/src/components/basic-audio/index.ts +0 -6
- package/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +0 -119
- package/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +0 -6
- package/plugins/cesium-vue/src/components/basic-video/index.ts +0 -7
- package/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +0 -58
- package/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +0 -14
- package/plugins/cesium-vue/src/components/card-carousel/index.ts +0 -7
- package/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +0 -124
- package/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +0 -60
- package/plugins/cesium-vue/src/components/card-content/index.ts +0 -7
- package/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +0 -41
- package/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +0 -22
- package/plugins/cesium-vue/src/components/card-page/index.ts +0 -7
- package/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +0 -102
- package/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +0 -37
- package/plugins/cesium-vue/src/components/carousel-img/index.ts +0 -7
- package/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +0 -84
- package/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +0 -8
- package/plugins/cesium-vue/src/components/echarts-pro/index.ts +0 -7
- package/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +0 -107
- package/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +0 -12
- package/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +0 -55
- package/plugins/cesium-vue/src/components/marker-bubble/index.ts +0 -7
- package/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +0 -235
- package/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +0 -35
- package/plugins/cesium-vue/src/components/marker-default/index.ts +0 -7
- package/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +0 -19
- package/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +0 -12
- package/plugins/cesium-vue/src/components/marker-html/index.ts +0 -7
- package/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +0 -21
- package/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +0 -12
- package/plugins/cesium-vue/src/components/marker-manage/index.ts +0 -9
- package/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +0 -106
- package/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +0 -8
- package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +0 -466
- package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +0 -148
- package/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +0 -45
- package/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +0 -75
- package/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +0 -154
- package/plugins/cesium-vue/src/components/marker-text/index.ts +0 -7
- package/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +0 -14
- package/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +0 -10
- package/plugins/cesium-vue/src/components/measurement/index.ts +0 -7
- package/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +0 -183
- package/plugins/cesium-vue/src/components/measurement/src/measurement.ts +0 -20
- package/plugins/cesium-vue/src/index.ts +0 -89
- package/plugins/cesium-vue/stats.html +0 -4949
- package/plugins/cesium-vue/tsconfig.json +0 -18
- package/plugins/cesium-vue/vite.config.ts +0 -62
- package/plugins/plugins/README.md +0 -2
- package/plugins/plugins/build.cjs +0 -63
- package/plugins/plugins/cesium-core/dist/cesium-core.mjs +0 -5881
- package/plugins/plugins/cesium-core/dist/cesium-core.mjs.map +0 -1
- package/plugins/plugins/cesium-core/dist/cesium-core.umd.js +0 -77
- package/plugins/plugins/cesium-core/dist/cesium-core.umd.js.map +0 -1
- package/plugins/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +0 -73
- package/plugins/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +0 -152
- package/plugins/plugins/cesium-core/dist/components/MarkerEvent.d.ts +0 -38
- package/plugins/plugins/cesium-core/dist/components/Material/MaterialManager.d.ts +0 -49
- package/plugins/plugins/cesium-core/dist/components/Material/help/PolylineFlowMaterialProperty.d.ts +0 -10
- package/plugins/plugins/cesium-core/dist/components/Material/help/dynamicImgMaterial.d.ts +0 -16
- package/plugins/plugins/cesium-core/dist/components/Material/index.d.ts +0 -3
- package/plugins/plugins/cesium-core/dist/components/TooltipManager.d.ts +0 -11
- package/plugins/plugins/cesium-core/dist/components/draw/DrawTool.d.ts +0 -10
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/CircleDrawer.d.ts +0 -16
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +0 -14
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/PointDrawer.d.ts +0 -12
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +0 -14
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/RectangleDrawer.d.ts +0 -13
- package/plugins/plugins/cesium-core/dist/components/draw/types.d.ts +0 -29
- package/plugins/plugins/cesium-core/dist/components/entity/EntityLayer.d.ts +0 -65
- package/plugins/plugins/cesium-core/dist/components/gltf/GLTFManage.d.ts +0 -141
- package/plugins/plugins/cesium-core/dist/components/gltf/index.d.ts +0 -1
- package/plugins/plugins/cesium-core/dist/components/measurement/MeasurementTool.d.ts +0 -34
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/AreaMeasure.d.ts +0 -23
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CircleMeasure.d.ts +0 -21
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CoordinateMeasure.d.ts +0 -16
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/HorizontalMeasure.d.ts +0 -25
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/PolylineDistanceMeasure.d.ts +0 -24
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RectangleMeasure.d.ts +0 -22
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RegularPolygonMeasure.d.ts +0 -23
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/SpaceMeasure.d.ts +0 -20
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TerrainHeightMeasure.d.ts +0 -18
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TriangleMeasure.d.ts +0 -24
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/VerticalMeasure.d.ts +0 -23
- package/plugins/plugins/cesium-core/dist/components/measurement/index.d.ts +0 -13
- package/plugins/plugins/cesium-core/dist/components/measurement/types.d.ts +0 -42
- package/plugins/plugins/cesium-core/dist/components/primitive/PrimitiveManager.d.ts +0 -50
- package/plugins/plugins/cesium-core/dist/components/roaming/CameraRoamTool.d.ts +0 -27
- package/plugins/plugins/cesium-core/dist/components/roaming/PathRoamTool.d.ts +0 -23
- package/plugins/plugins/cesium-core/dist/components/roaming/index.d.ts +0 -3
- package/plugins/plugins/cesium-core/dist/components/roaming/types.d.ts +0 -66
- package/plugins/plugins/cesium-core/dist/components/utils/convertGeoJsonToEntityData.d.ts +0 -1
- package/plugins/plugins/cesium-core/dist/components/utils/uuid.d.ts +0 -1
- package/plugins/plugins/cesium-core/dist/index.d.ts +0 -12
- package/plugins/plugins/cesium-core/package.json +0 -26
- package/plugins/plugins/cesium-core/pnpm-lock.yaml +0 -872
- package/plugins/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +0 -546
- package/plugins/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +0 -489
- package/plugins/plugins/cesium-core/src/components/MarkerEvent.ts +0 -92
- package/plugins/plugins/cesium-core/src/components/Material/MaterialManager.ts +0 -129
- package/plugins/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +0 -116
- package/plugins/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +0 -236
- package/plugins/plugins/cesium-core/src/components/Material/index.ts +0 -3
- package/plugins/plugins/cesium-core/src/components/TooltipManager.ts +0 -52
- package/plugins/plugins/cesium-core/src/components/draw/DrawTool.ts +0 -55
- package/plugins/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +0 -159
- package/plugins/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +0 -113
- package/plugins/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +0 -70
- package/plugins/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +0 -112
- package/plugins/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +0 -115
- package/plugins/plugins/cesium-core/src/components/draw/types.ts +0 -28
- package/plugins/plugins/cesium-core/src/components/entity/EntityLayer.ts +0 -453
- package/plugins/plugins/cesium-core/src/components/gltf/GLTFManage.ts +0 -799
- package/plugins/plugins/cesium-core/src/components/gltf/index.ts +0 -1
- package/plugins/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +0 -416
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +0 -451
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +0 -267
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +0 -139
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +0 -418
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +0 -352
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +0 -388
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +0 -379
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +0 -246
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +0 -185
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +0 -541
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +0 -360
- package/plugins/plugins/cesium-core/src/components/measurement/index.ts +0 -13
- package/plugins/plugins/cesium-core/src/components/measurement/types.ts +0 -57
- package/plugins/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +0 -556
- package/plugins/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +0 -286
- package/plugins/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +0 -174
- package/plugins/plugins/cesium-core/src/components/roaming/index.ts +0 -3
- package/plugins/plugins/cesium-core/src/components/roaming/types.ts +0 -71
- package/plugins/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +0 -98
- package/plugins/plugins/cesium-core/src/components/utils/uuid.ts +0 -7
- package/plugins/plugins/cesium-core/src/index.ts +0 -17
- package/plugins/plugins/cesium-core/src/test/measurement/index.html +0 -166
- package/plugins/plugins/cesium-core/src/test/roaming/c.gltf +0 -1
- package/plugins/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
- package/plugins/plugins/cesium-core/src/test/roaming/index.html +0 -51
- package/plugins/plugins/cesium-core/src/test/roaming/path.html +0 -448
- package/plugins/plugins/cesium-core/src/test/roaming/view.html +0 -520
- package/plugins/plugins/cesium-core/stats.html +0 -4949
- package/plugins/plugins/cesium-core/tsconfig.json +0 -14
- package/plugins/plugins/cesium-core/vite.config.ts +0 -35
- package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts +0 -18
- package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts +0 -92
- package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts +0 -82
- package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts +0 -152
- package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts +0 -21
- package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts +0 -69
- package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts +0 -21
- package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts +0 -68
- package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts +0 -78
- package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts +0 -48
- package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts +0 -48
- package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts +0 -164
- package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts +0 -30
- package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts +0 -78
- package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts +0 -82
- package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts +0 -67
- package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/index.css +0 -1
- package/plugins/plugins/cesium-vue/dist/index.d.ts +0 -30
- package/plugins/plugins/cesium-vue/dist/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/index.js +0 -10087
- package/plugins/plugins/cesium-vue/dist/index.js.map +0 -1
- package/plugins/plugins/cesium-vue/dist/index.umd.cjs +0 -46
- package/plugins/plugins/cesium-vue/dist/index.umd.cjs.map +0 -1
- package/plugins/plugins/cesium-vue/package.json +0 -48
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-001.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-002.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-003.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-004.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-005.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-006.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-007.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-008.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-009.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-010.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-011.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-012.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/img/Card3-BG.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/img/card_bg3.png +0 -0
- package/plugins/plugins/cesium-vue/src/components/basic-audio/index.ts +0 -11
- package/plugins/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +0 -110
- package/plugins/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +0 -6
- package/plugins/plugins/cesium-vue/src/components/basic-video/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +0 -99
- package/plugins/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +0 -13
- package/plugins/plugins/cesium-vue/src/components/camera-roam/index.ts +0 -4
- package/plugins/plugins/cesium-vue/src/components/camera-roam/src/CameraRoam.vue +0 -434
- package/plugins/plugins/cesium-vue/src/components/camera-roam/src/cameraRoam.ts +0 -28
- package/plugins/plugins/cesium-vue/src/components/card-carousel/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +0 -124
- package/plugins/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +0 -60
- package/plugins/plugins/cesium-vue/src/components/card-content/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +0 -41
- package/plugins/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +0 -22
- package/plugins/plugins/cesium-vue/src/components/card-page/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +0 -102
- package/plugins/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +0 -37
- package/plugins/plugins/cesium-vue/src/components/carousel-img/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +0 -15
- package/plugins/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +0 -6
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +0 -107
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +0 -55
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +0 -235
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +0 -35
- package/plugins/plugins/cesium-vue/src/components/marker-default/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +0 -19
- package/plugins/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-html/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +0 -21
- package/plugins/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-manage/index.ts +0 -14
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +0 -106
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +0 -8
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +0 -466
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +0 -148
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +0 -45
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +0 -75
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +0 -154
- package/plugins/plugins/cesium-vue/src/components/marker-text/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +0 -14
- package/plugins/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +0 -10
- package/plugins/plugins/cesium-vue/src/components/measurement/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +0 -183
- package/plugins/plugins/cesium-vue/src/components/measurement/src/measurement.ts +0 -20
- package/plugins/plugins/cesium-vue/src/components/path-roam/index.ts +0 -4
- package/plugins/plugins/cesium-vue/src/components/path-roam/src/PathRoam.vue +0 -429
- package/plugins/plugins/cesium-vue/src/components/path-roam/src/pathRoam.ts +0 -28
- package/plugins/plugins/cesium-vue/src/components/test/CardMarker.vue +0 -150
- package/plugins/plugins/cesium-vue/src/components/test/CesiumMarker.vue +0 -34
- package/plugins/plugins/cesium-vue/src/components/test/CesiumViewer.vue +0 -77
- package/plugins/plugins/cesium-vue/src/components/test/MyLabel.vue +0 -25
- package/plugins/plugins/cesium-vue/src/components/test/index.ts +0 -28
- package/plugins/plugins/cesium-vue/src/index.ts +0 -83
- package/plugins/plugins/cesium-vue/stats.html +0 -4949
- package/plugins/plugins/cesium-vue/tsconfig.json +0 -18
- package/plugins/plugins/cesium-vue/vite.config.ts +0 -56
- package/plugins/plugins/theme-chalk/dist/theme-chalk.css +0 -819
- package/plugins/plugins/theme-chalk/index.less +0 -11
- package/plugins/plugins/theme-chalk/package.json +0 -27
- package/plugins/plugins/theme-chalk/src/basicAudio.less +0 -41
- package/plugins/plugins/theme-chalk/src/basicVideo.less +0 -17
- package/plugins/plugins/theme-chalk/src/cameraRoam.less +0 -239
- package/plugins/plugins/theme-chalk/src/cardCarousel.less +0 -71
- package/plugins/plugins/theme-chalk/src/cardContent.less +0 -73
- package/plugins/plugins/theme-chalk/src/cardPage.less +0 -61
- package/plugins/plugins/theme-chalk/src/carouselImg.less +0 -34
- package/plugins/plugins/theme-chalk/src/marker.less +0 -107
- package/plugins/plugins/theme-chalk/src/markerManage.less +0 -25
- package/plugins/plugins/theme-chalk/src/measurement.less +0 -106
- package/plugins/plugins/theme-chalk/src/mixins/config.less +0 -4
- package/plugins/plugins/theme-chalk/src/mixins/mixins.less +0 -64
- package/plugins/plugins/theme-chalk/src/pathRoam.less +0 -198
- package/plugins/plugins/utils/create.ts +0 -45
- package/plugins/plugins/utils/package.json +0 -12
- package/plugins/plugins/utils/uuid.ts +0 -43
- package/plugins/plugins/utils/with-install.ts +0 -10
- package/plugins/theme-chalk/index.less +0 -11
- package/plugins/theme-chalk/src/basicAudio.less +0 -44
- package/plugins/theme-chalk/src/basicVideo.less +0 -17
- package/plugins/theme-chalk/src/cameraRoam.less +0 -239
- package/plugins/theme-chalk/src/cardCarousel.less +0 -71
- package/plugins/theme-chalk/src/cardContent.less +0 -73
- package/plugins/theme-chalk/src/cardPage.less +0 -61
- package/plugins/theme-chalk/src/carouselImg.less +0 -66
- package/plugins/theme-chalk/src/marker.less +0 -107
- package/plugins/theme-chalk/src/markerManage.less +0 -25
- package/plugins/theme-chalk/src/measurement.less +0 -106
- package/plugins/theme-chalk/src/mixins/config.less +0 -4
- package/plugins/theme-chalk/src/mixins/mixins.less +0 -64
- 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;AAAA,EAAA;AAAA,EAEZ,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAAA,EAEZ,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb;;;;;;ACJE,UAAMC,IAAQC,GACRC,IAAQC,GAKRC,IAAMC,EAAgB,iBAAiB,GACvCC,IAAiBC,EAAO,gBAAgB;AAE9C,QAAIC,IAAwB,MACxBC,IAAwB,MACxBC,IAAmB;AACvB,UAAMC,IAAaC,EAAgB,IAAI,GACjCC,IAAqBD,EAAwB,IAAI,GACjDE,IAAiB,sBAAsB,KAAK,OAAA,EAAS,S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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","blockS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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,
|
|
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) => (
|
|
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
|