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
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>Cesium 路径漫游测试</title>
|
|
7
|
-
<link
|
|
8
|
-
rel="stylesheet"
|
|
9
|
-
href="https://unpkg.com/cesium@1.120.0/Build/Cesium/Widgets/widgets.css"
|
|
10
|
-
/>
|
|
11
|
-
<style>
|
|
12
|
-
:root {
|
|
13
|
-
--bg-color: rgba(30, 30, 30, 0.85);
|
|
14
|
-
--text-color: #e0e0e0;
|
|
15
|
-
--accent-color: #3b82f6;
|
|
16
|
-
--accent-hover: #2563eb;
|
|
17
|
-
--danger-color: #ef4444;
|
|
18
|
-
--border-color: rgba(255, 255, 255, 0.1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
html,
|
|
22
|
-
body {
|
|
23
|
-
margin: 0;
|
|
24
|
-
height: 100%;
|
|
25
|
-
font-family:
|
|
26
|
-
system-ui,
|
|
27
|
-
-apple-system,
|
|
28
|
-
sans-serif;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
#app {
|
|
33
|
-
position: absolute;
|
|
34
|
-
inset: 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* Control Panel */
|
|
38
|
-
#control-panel {
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: 20px;
|
|
41
|
-
left: 20px;
|
|
42
|
-
width: 280px;
|
|
43
|
-
z-index: 100;
|
|
44
|
-
background-color: var(--bg-color);
|
|
45
|
-
backdrop-filter: blur(12px);
|
|
46
|
-
-webkit-backdrop-filter: blur(12px);
|
|
47
|
-
color: var(--text-color);
|
|
48
|
-
border-radius: 12px;
|
|
49
|
-
border: 1px solid var(--border-color);
|
|
50
|
-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
overflow: hidden;
|
|
54
|
-
transition: opacity 0.3s;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.panel-header {
|
|
58
|
-
padding: 12px 16px;
|
|
59
|
-
background: rgba(255, 255, 255, 0.05);
|
|
60
|
-
font-weight: 600;
|
|
61
|
-
font-size: 16px;
|
|
62
|
-
border-bottom: 1px solid var(--border-color);
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
align-items: center;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.panel-content {
|
|
69
|
-
padding: 12px;
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
gap: 16px;
|
|
73
|
-
max-height: 80vh;
|
|
74
|
-
overflow-y: auto;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.control-section {
|
|
78
|
-
display: flex;
|
|
79
|
-
flex-direction: column;
|
|
80
|
-
gap: 8px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.section-title {
|
|
84
|
-
font-size: 12px;
|
|
85
|
-
text-transform: uppercase;
|
|
86
|
-
color: #9ca3af;
|
|
87
|
-
letter-spacing: 0.5px;
|
|
88
|
-
font-weight: 600;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* Inputs */
|
|
92
|
-
.input-group {
|
|
93
|
-
display: flex;
|
|
94
|
-
flex-direction: column;
|
|
95
|
-
gap: 4px;
|
|
96
|
-
}
|
|
97
|
-
.input-group label {
|
|
98
|
-
font-size: 12px;
|
|
99
|
-
color: #9ca3af;
|
|
100
|
-
}
|
|
101
|
-
input[type='number'],
|
|
102
|
-
input[type='text'] {
|
|
103
|
-
width: 100%;
|
|
104
|
-
padding: 6px 10px;
|
|
105
|
-
background: rgba(0, 0, 0, 0.3);
|
|
106
|
-
border: 1px solid var(--border-color);
|
|
107
|
-
border-radius: 6px;
|
|
108
|
-
color: var(--text-color);
|
|
109
|
-
font-size: 13px;
|
|
110
|
-
outline: none;
|
|
111
|
-
box-sizing: border-box;
|
|
112
|
-
}
|
|
113
|
-
input[type='number']:focus,
|
|
114
|
-
input[type='text']:focus {
|
|
115
|
-
border-color: var(--accent-color);
|
|
116
|
-
}
|
|
117
|
-
.checkbox-group {
|
|
118
|
-
display: flex;
|
|
119
|
-
align-items: center;
|
|
120
|
-
gap: 8px;
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
}
|
|
123
|
-
input[type='checkbox'] {
|
|
124
|
-
cursor: pointer;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.row {
|
|
128
|
-
display: flex;
|
|
129
|
-
gap: 8px;
|
|
130
|
-
align-items: center;
|
|
131
|
-
}
|
|
132
|
-
.row.grid-2 {
|
|
133
|
-
display: grid;
|
|
134
|
-
grid-template-columns: 1fr 1fr;
|
|
135
|
-
}
|
|
136
|
-
.row.grid-3 {
|
|
137
|
-
display: grid;
|
|
138
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
button {
|
|
142
|
-
padding: 6px 12px;
|
|
143
|
-
border: 1px solid var(--border-color);
|
|
144
|
-
background: rgba(255, 255, 255, 0.05);
|
|
145
|
-
color: var(--text-color);
|
|
146
|
-
border-radius: 6px;
|
|
147
|
-
cursor: pointer;
|
|
148
|
-
font-size: 13px;
|
|
149
|
-
transition: all 0.2s;
|
|
150
|
-
display: flex;
|
|
151
|
-
align-items: center;
|
|
152
|
-
justify-content: center;
|
|
153
|
-
gap: 6px;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
button:hover {
|
|
157
|
-
background: rgba(255, 255, 255, 0.1);
|
|
158
|
-
border-color: rgba(255, 255, 255, 0.2);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
button:active {
|
|
162
|
-
transform: translateY(1px);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
button.primary {
|
|
166
|
-
background: var(--accent-color);
|
|
167
|
-
border-color: transparent;
|
|
168
|
-
color: white;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
button.primary:hover {
|
|
172
|
-
background: var(--accent-hover);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
button.danger {
|
|
176
|
-
color: var(--danger-color);
|
|
177
|
-
border-color: rgba(239, 68, 68, 0.3);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
button.danger:hover {
|
|
181
|
-
background: rgba(239, 68, 68, 0.1);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.icon-btn {
|
|
185
|
-
font-size: 16px;
|
|
186
|
-
padding: 6px 0; /* Adjust padding for square-ish look if needed, or keep standard */
|
|
187
|
-
min-width: 32px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/* Status */
|
|
191
|
-
.status-bar {
|
|
192
|
-
padding: 10px 16px;
|
|
193
|
-
background: rgba(0, 0, 0, 0.3);
|
|
194
|
-
border-top: 1px solid var(--border-color);
|
|
195
|
-
font-size: 12px;
|
|
196
|
-
color: #9ca3af;
|
|
197
|
-
display: flex;
|
|
198
|
-
justify-content: space-between;
|
|
199
|
-
align-items: center;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.status-value {
|
|
203
|
-
color: var(--accent-color);
|
|
204
|
-
font-weight: 600;
|
|
205
|
-
}
|
|
206
|
-
</style>
|
|
207
|
-
</head>
|
|
208
|
-
<body>
|
|
209
|
-
<div id="control-panel">
|
|
210
|
-
<div class="panel-header">
|
|
211
|
-
<span>🛤️ 路径漫游</span>
|
|
212
|
-
</div>
|
|
213
|
-
|
|
214
|
-
<div class="panel-content">
|
|
215
|
-
<!-- Parameter Configuration -->
|
|
216
|
-
<div class="control-section">
|
|
217
|
-
<div class="section-title">参数配置</div>
|
|
218
|
-
|
|
219
|
-
<div class="input-group">
|
|
220
|
-
<label>速度 (speed)</label>
|
|
221
|
-
<input type="number" id="inpSpeed" value="20" min="1" />
|
|
222
|
-
</div>
|
|
223
|
-
|
|
224
|
-
<div class="input-group">
|
|
225
|
-
<label>模型 URL (空则使用点)</label>
|
|
226
|
-
<input
|
|
227
|
-
type="text"
|
|
228
|
-
id="inpModelUrl"
|
|
229
|
-
placeholder="例如: https://cesium.com/public/Cesium_Air.glb"
|
|
230
|
-
value="http://localhost:5176/src/test/roaming/c.gltf"
|
|
231
|
-
/>
|
|
232
|
-
</div>
|
|
233
|
-
|
|
234
|
-
<div class="input-group">
|
|
235
|
-
<label>模型缩放 (scale)</label>
|
|
236
|
-
<input type="number" id="inpModelScale" value="1.0" step="0.1" min="0.1" />
|
|
237
|
-
</div>
|
|
238
|
-
|
|
239
|
-
<div class="control-section" style="gap: 12px; margin-top: 8px;">
|
|
240
|
-
<label class="checkbox-group">
|
|
241
|
-
<input type="checkbox" id="chkShowPath" checked />
|
|
242
|
-
<span>显示路径 (showPath)</span>
|
|
243
|
-
</label>
|
|
244
|
-
</div>
|
|
245
|
-
|
|
246
|
-
<div class="control-section" style="margin-top: 8px">
|
|
247
|
-
<div class="section-title">初始视角</div>
|
|
248
|
-
<div class="row">
|
|
249
|
-
<button id="btnCaptureView" class="primary" style="flex: 1">📷 捕获当前视角</button>
|
|
250
|
-
<button id="btnClearView" class="danger icon-btn" title="清除视角">✖</button>
|
|
251
|
-
</div>
|
|
252
|
-
<div id="viewStatus" style="font-size: 11px; color: #9ca3af; margin-top: 4px"
|
|
253
|
-
>未配置</div
|
|
254
|
-
>
|
|
255
|
-
</div>
|
|
256
|
-
|
|
257
|
-
<button id="btnDrawPath" class="primary" style="width: 100%; margin-top: 8px"
|
|
258
|
-
>✏️ 绘制路径</button
|
|
259
|
-
>
|
|
260
|
-
</div>
|
|
261
|
-
|
|
262
|
-
<!-- Roaming Operations -->
|
|
263
|
-
<div class="control-section">
|
|
264
|
-
<div class="section-title">漫游操作</div>
|
|
265
|
-
<div class="row grid-2">
|
|
266
|
-
<button id="btnToggle" class="primary icon-btn" title="开始">▶</button>
|
|
267
|
-
<button id="btnEnd" class="danger icon-btn" title="结束">⏹</button>
|
|
268
|
-
</div>
|
|
269
|
-
</div>
|
|
270
|
-
</div>
|
|
271
|
-
|
|
272
|
-
<div class="status-bar">
|
|
273
|
-
<span id="statusText">状态: <span class="status-value">就绪</span></span>
|
|
274
|
-
</div>
|
|
275
|
-
</div>
|
|
276
|
-
|
|
277
|
-
<div id="app"></div>
|
|
278
|
-
|
|
279
|
-
<script src="https://unpkg.com/cesium@1.120.0/Build/Cesium/Cesium.js"></script>
|
|
280
|
-
<!-- Bypass AMD for UMD -->
|
|
281
|
-
<script>
|
|
282
|
-
var _origDefine = window.define;
|
|
283
|
-
window.define = undefined;
|
|
284
|
-
</script>
|
|
285
|
-
<script src="../../../dist/cesium-core.umd.js"></script>
|
|
286
|
-
<script>
|
|
287
|
-
window.define = _origDefine;
|
|
288
|
-
</script>
|
|
289
|
-
|
|
290
|
-
<script>
|
|
291
|
-
Cesium.Ion.defaultAccessToken =
|
|
292
|
-
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjZGI0MzM1ZS1hMjY4LTRlYzgtYjg1MC03NmI2ZjUxMmM5ZTUiLCJpZCI6OTUzODIsImlhdCI6MTY1MzYyMTM4OX0.ygoPAb1FvQkQGtziq5nTsWT-u7dCheu5hcG0p9TQFpU';
|
|
293
|
-
|
|
294
|
-
const viewer = new Cesium.Viewer('app', {
|
|
295
|
-
baseLayerPicker: false,
|
|
296
|
-
geocoder: false,
|
|
297
|
-
homeButton: false,
|
|
298
|
-
sceneModePicker: false,
|
|
299
|
-
navigationHelpButton: false,
|
|
300
|
-
animation: true,
|
|
301
|
-
timeline: true,
|
|
302
|
-
terrainProvider: null,
|
|
303
|
-
});
|
|
304
|
-
|
|
305
|
-
(async () => {
|
|
306
|
-
try {
|
|
307
|
-
const terrainProvider = await Cesium.ArcGISTiledElevationTerrainProvider.fromUrl(
|
|
308
|
-
'https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer',
|
|
309
|
-
);
|
|
310
|
-
viewer.terrainProvider = terrainProvider;
|
|
311
|
-
} catch (err) {
|
|
312
|
-
console.error('ArcGIS 地形加载失败,使用椭球地形回退', err);
|
|
313
|
-
viewer.terrainProvider = new Cesium.EllipsoidTerrainProvider();
|
|
314
|
-
}
|
|
315
|
-
})();
|
|
316
|
-
|
|
317
|
-
const pathRoam = new CesiumCore.PathRoamTool({ Cesium, viewer });
|
|
318
|
-
const drawTool = new CesiumCore.DrawTool(Cesium, viewer);
|
|
319
|
-
const statusText = document.getElementById('statusText');
|
|
320
|
-
|
|
321
|
-
// Inputs
|
|
322
|
-
const inpSpeed = document.getElementById('inpSpeed');
|
|
323
|
-
const inpModelUrl = document.getElementById('inpModelUrl');
|
|
324
|
-
const inpModelScale = document.getElementById('inpModelScale');
|
|
325
|
-
const chkShowPath = document.getElementById('chkShowPath');
|
|
326
|
-
|
|
327
|
-
// Default Path Data
|
|
328
|
-
const defaultPositions = [
|
|
329
|
-
[116.391, 39.907, 0],
|
|
330
|
-
[116.397, 39.909, 0],
|
|
331
|
-
[116.404, 39.915, 0],
|
|
332
|
-
[116.41, 39.92, 0],
|
|
333
|
-
[116.418, 39.925, 0],
|
|
334
|
-
];
|
|
335
|
-
|
|
336
|
-
let customPositions = null;
|
|
337
|
-
let initialViewConfig = null;
|
|
338
|
-
|
|
339
|
-
// Camera View Config
|
|
340
|
-
document.getElementById('btnCaptureView').onclick = function () {
|
|
341
|
-
const camera = viewer.camera;
|
|
342
|
-
initialViewConfig = {
|
|
343
|
-
destination: camera.position.clone(),
|
|
344
|
-
orientation: {
|
|
345
|
-
heading: camera.heading,
|
|
346
|
-
pitch: camera.pitch,
|
|
347
|
-
roll: camera.roll,
|
|
348
|
-
},
|
|
349
|
-
};
|
|
350
|
-
const c = initialViewConfig.destination;
|
|
351
|
-
const h = Cesium.Math.toDegrees(initialViewConfig.orientation.heading).toFixed(1);
|
|
352
|
-
const p = Cesium.Math.toDegrees(initialViewConfig.orientation.pitch).toFixed(1);
|
|
353
|
-
document.getElementById('viewStatus').innerHTML =
|
|
354
|
-
`Pos: [${c.x.toFixed(0)}, ${c.y.toFixed(0)}, ${c.z.toFixed(0)}]<br>HPR: [${h}, ${p}, 0]`;
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
document.getElementById('btnClearView').onclick = function () {
|
|
358
|
-
initialViewConfig = null;
|
|
359
|
-
document.getElementById('viewStatus').innerText = '未配置';
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
// Draw Path Button
|
|
363
|
-
document.getElementById('btnDrawPath').onclick = function () {
|
|
364
|
-
pathRoam.clear();
|
|
365
|
-
drawTool.draw('line', {
|
|
366
|
-
onComplete: function (result) {
|
|
367
|
-
console.log('绘制完成,结果:', result);
|
|
368
|
-
|
|
369
|
-
// 转换为漫游工具需要的格式 [lon, lat, height]
|
|
370
|
-
customPositions = result.lnglats.map((p) => [p.lng, p.lat, p.height]);
|
|
371
|
-
|
|
372
|
-
// 结束绘制并清除临时线
|
|
373
|
-
drawTool.clear();
|
|
374
|
-
|
|
375
|
-
statusText.innerHTML =
|
|
376
|
-
'状态: <span class="status-value">路径已绘制,请点击"开始"</span>';
|
|
377
|
-
},
|
|
378
|
-
});
|
|
379
|
-
statusText.innerHTML =
|
|
380
|
-
'状态: <span class="status-value">请在地图上绘制路径 (左键点击,双击结束)</span>';
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
// Toggle Button (Start/Pause/Resume)
|
|
384
|
-
let isRoaming = false;
|
|
385
|
-
const btnToggle = document.getElementById('btnToggle');
|
|
386
|
-
|
|
387
|
-
btnToggle.onclick = function () {
|
|
388
|
-
if (!isRoaming) {
|
|
389
|
-
// Start
|
|
390
|
-
const positions = customPositions || defaultPositions;
|
|
391
|
-
|
|
392
|
-
statusText.innerHTML = '状态: <span class="status-value">漫游中</span>';
|
|
393
|
-
|
|
394
|
-
pathRoam.start({
|
|
395
|
-
positions: positions,
|
|
396
|
-
speed: Number(inpSpeed.value) || 20,
|
|
397
|
-
loop: false,
|
|
398
|
-
clampToGround: false,
|
|
399
|
-
followCamera: true,
|
|
400
|
-
showPath: chkShowPath.checked,
|
|
401
|
-
pathColor: Cesium.Color.CYAN,
|
|
402
|
-
pathWidth: 3,
|
|
403
|
-
pointColor: Cesium.Color.ORANGE,
|
|
404
|
-
pointPixelSize: 8,
|
|
405
|
-
modelUrl: inpModelUrl.value.trim() || undefined,
|
|
406
|
-
modelScale: Number(inpModelScale.value) || 1.0,
|
|
407
|
-
initialView: initialViewConfig,
|
|
408
|
-
onComplete: function () {
|
|
409
|
-
statusText.innerHTML = '状态: <span class="status-value">完成</span>';
|
|
410
|
-
isRoaming = false;
|
|
411
|
-
btnToggle.innerText = '▶';
|
|
412
|
-
btnToggle.title = '开始';
|
|
413
|
-
},
|
|
414
|
-
});
|
|
415
|
-
|
|
416
|
-
isRoaming = true;
|
|
417
|
-
this.innerText = '⏸';
|
|
418
|
-
this.title = '暂停';
|
|
419
|
-
} else {
|
|
420
|
-
// Pause/Resume
|
|
421
|
-
if (!pathRoam) return;
|
|
422
|
-
const shouldAnimate = viewer.clock.shouldAnimate;
|
|
423
|
-
if (shouldAnimate) {
|
|
424
|
-
viewer.clock.shouldAnimate = false;
|
|
425
|
-
statusText.innerHTML = '状态: <span class="status-value">已暂停</span>';
|
|
426
|
-
this.innerText = '▶';
|
|
427
|
-
this.title = '继续';
|
|
428
|
-
} else {
|
|
429
|
-
viewer.clock.shouldAnimate = true;
|
|
430
|
-
statusText.innerHTML = '状态: <span class="status-value">漫游中</span>';
|
|
431
|
-
this.innerText = '⏸';
|
|
432
|
-
this.title = '暂停';
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
// End Button (Stop/Clear)
|
|
438
|
-
document.getElementById('btnEnd').onclick = function () {
|
|
439
|
-
pathRoam.clear();
|
|
440
|
-
drawTool.clear();
|
|
441
|
-
statusText.innerHTML = '状态: <span class="status-value">已结束</span>';
|
|
442
|
-
isRoaming = false;
|
|
443
|
-
btnToggle.innerText = '▶';
|
|
444
|
-
btnToggle.title = '开始';
|
|
445
|
-
};
|
|
446
|
-
</script>
|
|
447
|
-
</body>
|
|
448
|
-
</html>
|