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,453 +0,0 @@
|
|
|
1
|
-
import { BufferedHierarchicalAggregator } from '../BufferedHierarchicalAggregator';
|
|
2
|
-
import { HtmlOverlayLabelPool } from '../HtmlOverlayLabelPool';
|
|
3
|
-
import { MarkerEventKey } from '../MarkerEvent';
|
|
4
|
-
import { MaterialManager } from '../Material/MaterialManager';
|
|
5
|
-
|
|
6
|
-
interface EntityGroupOptions {
|
|
7
|
-
id: string;
|
|
8
|
-
entities?: any[]; // 默认值为空数组
|
|
9
|
-
primitives?: any[]; // 默认值为空数组
|
|
10
|
-
dataItem?: any; // 默认值为空对象
|
|
11
|
-
aggregator?: BufferedHierarchicalAggregator;
|
|
12
|
-
cardPool: HtmlOverlayLabelPool;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class EntityGroup {
|
|
16
|
-
id: string;
|
|
17
|
-
entities: any[] = [];
|
|
18
|
-
primitives: any[] = [];
|
|
19
|
-
dataItem: any = {};
|
|
20
|
-
aggregator?: BufferedHierarchicalAggregator;
|
|
21
|
-
cardPool: HtmlOverlayLabelPool;
|
|
22
|
-
|
|
23
|
-
constructor(options: EntityGroupOptions) {
|
|
24
|
-
// 从 options 中解构参数并设置默认值
|
|
25
|
-
const { id, entities = [], primitives = [], dataItem = {}, aggregator, cardPool } = options;
|
|
26
|
-
|
|
27
|
-
this.id = id;
|
|
28
|
-
this.entities = entities;
|
|
29
|
-
this.primitives = primitives;
|
|
30
|
-
this.dataItem = dataItem;
|
|
31
|
-
this.aggregator = aggregator;
|
|
32
|
-
this.cardPool = cardPool;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 改造 setVisible 方法,支持 Entity 和 Primitive 的可见性控制
|
|
36
|
-
setVisible(visible: boolean) {
|
|
37
|
-
// 控制 Cesium 原生实体
|
|
38
|
-
this.entities.forEach((entity) => {
|
|
39
|
-
if (entity) {
|
|
40
|
-
entity.show = visible;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
// 控制 Cesium 原生 Primitive
|
|
45
|
-
this.primitives.forEach((primitive) => {
|
|
46
|
-
if (primitive) {
|
|
47
|
-
primitive.show = visible;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
// 控制 billboard 聚合点(通过 aggregator)
|
|
52
|
-
if (this.aggregator && Array.isArray(this.dataItem.billboard)) {
|
|
53
|
-
const updated = this.dataItem.billboard.map((bill: any, index: number) => {
|
|
54
|
-
const id = this.dataItem.id;
|
|
55
|
-
return {
|
|
56
|
-
id,
|
|
57
|
-
data: {
|
|
58
|
-
...this.dataItem,
|
|
59
|
-
show: visible && (bill.data?.show ?? true),
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
});
|
|
63
|
-
updated.forEach((p: any) => {
|
|
64
|
-
this.aggregator?.updatePoint(p);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// 控制 HTML 标签池
|
|
69
|
-
if (this.cardPool && this.dataItem.card) {
|
|
70
|
-
visible
|
|
71
|
-
? this.cardPool.showByIds([this.dataItem.id])
|
|
72
|
-
: this.cardPool.hideByIds([this.dataItem.id]);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// 改造 removeAll 方法,支持 Entity 和 Primitive 的移除
|
|
77
|
-
removeAll(viewer: any, immediately = true) {
|
|
78
|
-
// 移除 Entity
|
|
79
|
-
this.entities.forEach((entity) => {
|
|
80
|
-
if (entity) viewer.entities.remove(entity);
|
|
81
|
-
});
|
|
82
|
-
this.entities = [];
|
|
83
|
-
|
|
84
|
-
// 移除 Primitive
|
|
85
|
-
this.primitives.forEach((primitive) => {
|
|
86
|
-
if (primitive) viewer.scene.primitives.remove(primitive);
|
|
87
|
-
});
|
|
88
|
-
this.primitives = [];
|
|
89
|
-
|
|
90
|
-
// 移除 billboard 聚合点
|
|
91
|
-
if (immediately && this.aggregator && Array.isArray(this.dataItem.billboard)) {
|
|
92
|
-
this.aggregator.removePointsById([this.dataItem.id]);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// 移除 HTML 标签池中的卡片
|
|
96
|
-
if (immediately && this.cardPool && this.dataItem.card) {
|
|
97
|
-
this.cardPool.removeByIds([this.dataItem.id]);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return this.dataItem.id;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export class EntityLayer {
|
|
105
|
-
id: string;
|
|
106
|
-
groupMap: Map<string, EntityGroup> = new Map();
|
|
107
|
-
Cesium: any;
|
|
108
|
-
viewer: any;
|
|
109
|
-
materialManager: MaterialManager;
|
|
110
|
-
aggregator: BufferedHierarchicalAggregator;
|
|
111
|
-
cardPool: HtmlOverlayLabelPool;
|
|
112
|
-
constructor(
|
|
113
|
-
id: string,
|
|
114
|
-
Cesium: any,
|
|
115
|
-
viewer: any,
|
|
116
|
-
materialManager: MaterialManager,
|
|
117
|
-
aggregator: BufferedHierarchicalAggregator,
|
|
118
|
-
cardPool: HtmlOverlayLabelPool,
|
|
119
|
-
) {
|
|
120
|
-
this.id = id;
|
|
121
|
-
this.Cesium = Cesium;
|
|
122
|
-
this.viewer = viewer;
|
|
123
|
-
this.materialManager = materialManager;
|
|
124
|
-
this.aggregator = aggregator;
|
|
125
|
-
this.cardPool = cardPool;
|
|
126
|
-
|
|
127
|
-
this.aggregator.labelPool.eventBus.addListener(MarkerEventKey.Click, {
|
|
128
|
-
name: 'BufferedHierarchicalAggregator_maker_click',
|
|
129
|
-
fn: (info, e) => {
|
|
130
|
-
this.cardPool.showByIds([info.data.id]);
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
const handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
|
|
135
|
-
|
|
136
|
-
handler.setInputAction(() => {
|
|
137
|
-
this.cardPool.hideFilter((data) => {
|
|
138
|
-
if (data.initShow) return false;
|
|
139
|
-
return true;
|
|
140
|
-
});
|
|
141
|
-
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/** ====== 下面是抽出的创建函数 ====== */
|
|
145
|
-
private createPolyline(line: any, show: boolean) {
|
|
146
|
-
if (!line.positions || line.positions.length < 1) return null;
|
|
147
|
-
const material = this.materialManager.get({
|
|
148
|
-
themeKey: line.theme,
|
|
149
|
-
category: 'polyline',
|
|
150
|
-
options: line,
|
|
151
|
-
});
|
|
152
|
-
const positions = Array.isArray(line.positions[0]) ? line.positions.flat() : line.positions;
|
|
153
|
-
let opt = {
|
|
154
|
-
...line,
|
|
155
|
-
};
|
|
156
|
-
if (material) opt.material = material;
|
|
157
|
-
return this.viewer.entities.add({
|
|
158
|
-
polyline: {
|
|
159
|
-
...opt,
|
|
160
|
-
positions: this.Cesium.Cartesian3.fromDegreesArrayHeights(positions),
|
|
161
|
-
},
|
|
162
|
-
show: (line.show ?? true) && show,
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
private createWall(wall: any, show: boolean) {
|
|
167
|
-
if (!wall.positions || wall.positions.length < 1) return null;
|
|
168
|
-
const material = this.materialManager.get({
|
|
169
|
-
themeKey: wall.theme,
|
|
170
|
-
category: 'wall',
|
|
171
|
-
options: wall,
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
const minHeights =
|
|
175
|
-
wall.positions.length === wall.minimumHeights?.length
|
|
176
|
-
? wall.minimumHeights.map((n: any) => n - Number(wall.minHeight || 0))
|
|
177
|
-
: wall.positions.map((n: any) => (n[2] || 0) - Number(wall.minHeight || 0));
|
|
178
|
-
|
|
179
|
-
const maxHeights =
|
|
180
|
-
wall.positions.length === wall.maximumHeights?.length
|
|
181
|
-
? wall.maximumHeights.map((n: any) => n + Number(wall.maxHeight || 0))
|
|
182
|
-
: wall.positions.map((n: any) => (n[2] || 0) + Number(wall.maxHeight || 0));
|
|
183
|
-
|
|
184
|
-
const pos = wall.positions.map((p: any) =>
|
|
185
|
-
this.Cesium.Cartesian3.fromDegrees(p[0], p[1], p[2] || 0),
|
|
186
|
-
);
|
|
187
|
-
let opt = {
|
|
188
|
-
...wall,
|
|
189
|
-
};
|
|
190
|
-
if (material) opt.material = material;
|
|
191
|
-
return this.viewer.entities.add({
|
|
192
|
-
wall: {
|
|
193
|
-
...opt,
|
|
194
|
-
positions: pos,
|
|
195
|
-
minimumHeights: minHeights,
|
|
196
|
-
maximumHeights: maxHeights,
|
|
197
|
-
},
|
|
198
|
-
show: (wall.show ?? true) && show,
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
private createPolygon(poly: any, show: boolean) {
|
|
203
|
-
// 确保多边形数据有效
|
|
204
|
-
if (!poly.hierarchy || poly.hierarchy.length < 1) return null;
|
|
205
|
-
|
|
206
|
-
// 获取材质
|
|
207
|
-
const material = this.materialManager.get({
|
|
208
|
-
themeKey: poly.theme,
|
|
209
|
-
category: 'polygon',
|
|
210
|
-
options: poly,
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
// 处理外环(外环是第一个元素)
|
|
214
|
-
const outerRing = Array.isArray(poly.hierarchy[0]) ? poly.hierarchy.flat() : poly.hierarchy;
|
|
215
|
-
const outerCartesian = this.Cesium.Cartesian3.fromDegreesArrayHeights(outerRing);
|
|
216
|
-
|
|
217
|
-
// 处理孔数据(如果有孔数据)
|
|
218
|
-
const holes =
|
|
219
|
-
poly.holes?.map((hole: any) => {
|
|
220
|
-
let _hole = Array.isArray(hole[0]) ? poly.hierarchy.flat() : poly.hole;
|
|
221
|
-
return this.Cesium.Cartesian3.fromDegreesArrayHeights(_hole.flat());
|
|
222
|
-
}) || [];
|
|
223
|
-
|
|
224
|
-
// 使用 PolygonHierarchy 来构建多边形
|
|
225
|
-
const polygonHierarchy = new this.Cesium.PolygonHierarchy(outerCartesian, holes);
|
|
226
|
-
let opt = {
|
|
227
|
-
...poly,
|
|
228
|
-
};
|
|
229
|
-
if (material) opt.material = material;
|
|
230
|
-
// 创建并返回实体
|
|
231
|
-
return this.viewer.entities.add({
|
|
232
|
-
polygon: {
|
|
233
|
-
...opt,
|
|
234
|
-
hierarchy: polygonHierarchy, // 使用构建好的 PolygonHierarchy
|
|
235
|
-
},
|
|
236
|
-
show: (poly.show ?? true) && show,
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
private createBillboardPoints(dataItem: any) {
|
|
241
|
-
if (!dataItem.billboard?.length || !this.aggregator) return [];
|
|
242
|
-
return dataItem.billboard.map((bill: any) => {
|
|
243
|
-
const [lon, lat, height = 0] = bill.position || [0, 0, 0];
|
|
244
|
-
return {
|
|
245
|
-
id: dataItem.id,
|
|
246
|
-
lon,
|
|
247
|
-
lat,
|
|
248
|
-
height,
|
|
249
|
-
name: bill.options?.text || '',
|
|
250
|
-
data: dataItem,
|
|
251
|
-
style: { zIndex: dataItem.zIndex || '1' },
|
|
252
|
-
};
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
private createCard(dataItem: any) {
|
|
257
|
-
if (!dataItem.card?.data?.length) return;
|
|
258
|
-
this.cardPool.add(dataItem.card, {
|
|
259
|
-
id: dataItem.id,
|
|
260
|
-
lon: dataItem.card.position[0],
|
|
261
|
-
lat: dataItem.card.position[1],
|
|
262
|
-
height: dataItem.card.position[3] || 0,
|
|
263
|
-
theme: dataItem.card.theme,
|
|
264
|
-
show: dataItem.show ? (dataItem.card.initShow ?? false) : false,
|
|
265
|
-
notCreateElement: true,
|
|
266
|
-
style: { width: '0', height: '0', zIndex: dataItem?.card?.zIndex || '110' },
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/** ====== 主入口:仅保留循环,内部调用独立函数 ====== */
|
|
271
|
-
addGroup(dataItem: any, isAppendPoints = true) {
|
|
272
|
-
const groupId = dataItem.id || `${Date.now()}`;
|
|
273
|
-
this.removeGroup(groupId);
|
|
274
|
-
const entities: any[] = [];
|
|
275
|
-
const show = dataItem.show !== false;
|
|
276
|
-
|
|
277
|
-
(dataItem.polyline || []).forEach((l: any) => {
|
|
278
|
-
const e = this.createPolyline(l, show);
|
|
279
|
-
if (e) entities.push(e);
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
(dataItem.wall || []).forEach((w: any) => {
|
|
283
|
-
const e = this.createWall(w, show);
|
|
284
|
-
if (e) entities.push(e);
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
(dataItem.polygon || []).forEach((p: any) => {
|
|
288
|
-
const e = this.createPolygon(p, show);
|
|
289
|
-
if (e) entities.push(e);
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
const pointList = this.createBillboardPoints(dataItem);
|
|
293
|
-
if (pointList.length && isAppendPoints) this.aggregator.appendPoints(pointList, false);
|
|
294
|
-
|
|
295
|
-
this.createCard(dataItem);
|
|
296
|
-
|
|
297
|
-
const group = new EntityGroup({
|
|
298
|
-
id: groupId,
|
|
299
|
-
entities,
|
|
300
|
-
primitives: [],
|
|
301
|
-
dataItem,
|
|
302
|
-
aggregator: this.aggregator,
|
|
303
|
-
cardPool: this.cardPool,
|
|
304
|
-
});
|
|
305
|
-
this.groupMap.set(groupId, group);
|
|
306
|
-
return pointList;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
async addGroups(dataItemList: any) {
|
|
310
|
-
let dataLists = dataItemList.map((dataItem: any) => {
|
|
311
|
-
return this.addGroup(dataItem, false);
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
// 拉平二维数组
|
|
315
|
-
const allPoints = dataLists.flat();
|
|
316
|
-
if (allPoints.length > 0 && this.aggregator) {
|
|
317
|
-
this.aggregator.appendPoints(allPoints, false);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
removeGroup(groupId: string) {
|
|
322
|
-
const group = this.groupMap.get(groupId);
|
|
323
|
-
if (group) {
|
|
324
|
-
group.removeAll(this.viewer);
|
|
325
|
-
this.groupMap.delete(groupId);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
removeGroups(groupIds: string[]) {
|
|
329
|
-
let ids = [];
|
|
330
|
-
for (const groupId of groupIds) {
|
|
331
|
-
const group = this.groupMap.get(groupId);
|
|
332
|
-
if (group) {
|
|
333
|
-
let id = group.removeAll(this.viewer, false);
|
|
334
|
-
this.groupMap.delete(groupId);
|
|
335
|
-
ids.push(id);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
this.aggregator.removePointsById(ids);
|
|
339
|
-
this.cardPool.removeByIds(ids);
|
|
340
|
-
}
|
|
341
|
-
updateGroup(dataItem: any) {
|
|
342
|
-
const group = this.groupMap.get(dataItem.id);
|
|
343
|
-
if (group) {
|
|
344
|
-
group.removeAll(this.viewer);
|
|
345
|
-
this.groupMap.delete(dataItem.id);
|
|
346
|
-
}
|
|
347
|
-
this.addGroup(dataItem);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
async updateGroups(dataItemList: Array<any>) {
|
|
351
|
-
this.aggregator.removePointsById(dataItemList.map((n: any) => n.id));
|
|
352
|
-
this.cardPool.removeByIds(dataItemList.map((n: any) => n.id));
|
|
353
|
-
let dataLists = dataItemList.map((dataItem: any) => {
|
|
354
|
-
const group = this.groupMap.get(dataItem.id);
|
|
355
|
-
if (group) {
|
|
356
|
-
group.removeAll(this.viewer, false);
|
|
357
|
-
this.groupMap.delete(dataItem.id);
|
|
358
|
-
}
|
|
359
|
-
return this.addGroup(dataItem, false);
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
// 拉平二维数组
|
|
363
|
-
const allPoints = dataLists.flat();
|
|
364
|
-
if (allPoints.length > 0 && this.aggregator) {
|
|
365
|
-
this.aggregator.appendPoints(allPoints, false);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
setGroupVisible(groupId: string, visible: boolean) {
|
|
370
|
-
this.groupMap.get(groupId)?.setVisible(visible);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
clearAllGroups() {
|
|
374
|
-
this.groupMap.forEach((group) => group.removeAll(this.viewer));
|
|
375
|
-
this.groupMap.clear();
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
export class EntityLayerManager {
|
|
380
|
-
Cesium: any;
|
|
381
|
-
viewer: any;
|
|
382
|
-
layerMap: Map<string, EntityLayer> = new Map();
|
|
383
|
-
materialManager: MaterialManager;
|
|
384
|
-
aggregator: BufferedHierarchicalAggregator;
|
|
385
|
-
cardPool: HtmlOverlayLabelPool;
|
|
386
|
-
constructor(
|
|
387
|
-
Cesium: any,
|
|
388
|
-
viewer: any,
|
|
389
|
-
materialManager: MaterialManager,
|
|
390
|
-
aggregator: BufferedHierarchicalAggregator,
|
|
391
|
-
cardPool: HtmlOverlayLabelPool,
|
|
392
|
-
) {
|
|
393
|
-
this.Cesium = Cesium;
|
|
394
|
-
this.viewer = viewer;
|
|
395
|
-
this.materialManager = materialManager;
|
|
396
|
-
this.aggregator = aggregator;
|
|
397
|
-
this.cardPool = cardPool;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
addLayer(layerId: string) {
|
|
401
|
-
if (!this.layerMap.has(layerId)) {
|
|
402
|
-
this.layerMap.set(
|
|
403
|
-
layerId,
|
|
404
|
-
new EntityLayer(
|
|
405
|
-
layerId,
|
|
406
|
-
this.Cesium,
|
|
407
|
-
this.viewer,
|
|
408
|
-
this.materialManager,
|
|
409
|
-
this.aggregator,
|
|
410
|
-
this.cardPool,
|
|
411
|
-
),
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
removeLayer(layerId: string) {
|
|
417
|
-
const layer = this.layerMap.get(layerId);
|
|
418
|
-
if (layer) {
|
|
419
|
-
layer.clearAllGroups();
|
|
420
|
-
this.layerMap.delete(layerId);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
getLayer(layerId: string): EntityLayer | undefined {
|
|
425
|
-
return this.layerMap.get(layerId);
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
async addGroupsToLayer(layerId: string, dataList: any[]) {
|
|
429
|
-
const layer = this.layerMap.get(layerId);
|
|
430
|
-
if (!layer) return;
|
|
431
|
-
// dataList.forEach((data) => layer.addGroup(data));
|
|
432
|
-
layer.addGroups(dataList);
|
|
433
|
-
this.aggregator.refresh();
|
|
434
|
-
}
|
|
435
|
-
updateGroupToLayer(layerId: string, dataList: any[]) {
|
|
436
|
-
const layer = this.layerMap.get(layerId);
|
|
437
|
-
if (!layer) return;
|
|
438
|
-
|
|
439
|
-
layer.updateGroups(dataList);
|
|
440
|
-
this.aggregator.refresh();
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
setGroupVisible(layerId: string, groupId: string, visible: boolean) {
|
|
444
|
-
this.layerMap.get(layerId)?.setGroupVisible(groupId, visible);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
removeGroup(layerId: string, groupId: string) {
|
|
448
|
-
this.layerMap.get(layerId)?.removeGroup(groupId);
|
|
449
|
-
}
|
|
450
|
-
removeGroups(layerId: string, groupIds: string[]) {
|
|
451
|
-
this.layerMap.get(layerId)?.removeGroups(groupIds);
|
|
452
|
-
}
|
|
453
|
-
}
|