leiting-bim 2.1.36 → 2.1.39
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/leiting-bim.es.js +1 -1
- package/leiting-bim.umd.js +11 -11
- package/leitingbim.css +1 -1
- package/package.json +1 -1
- package/plugins/.gitmodules +4 -0
- package/plugins/README.md +2 -0
- package/plugins/build.cjs +63 -0
- package/plugins/cesium-core/dist/cesium-core.mjs +6217 -0
- package/plugins/cesium-core/dist/cesium-core.umd.js +76 -0
- package/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +73 -0
- package/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +152 -0
- package/plugins/cesium-core/dist/components/MarkerEvent.d.ts +38 -0
- package/plugins/cesium-core/dist/components/Material/MaterialManager.d.ts +49 -0
- package/plugins/cesium-core/dist/components/Material/help/PolylineFlowMaterialProperty.d.ts +10 -0
- package/plugins/cesium-core/dist/components/Material/help/dynamicImgMaterial.d.ts +16 -0
- package/plugins/cesium-core/dist/components/Material/index.d.ts +3 -0
- package/plugins/cesium-core/dist/components/TooltipManager.d.ts +11 -0
- package/plugins/cesium-core/dist/components/draw/DrawTool.d.ts +10 -0
- package/plugins/cesium-core/dist/components/draw/handlers/CircleDrawer.d.ts +16 -0
- package/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +14 -0
- package/plugins/cesium-core/dist/components/draw/handlers/PointDrawer.d.ts +12 -0
- package/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +14 -0
- package/plugins/cesium-core/dist/components/draw/handlers/RectangleDrawer.d.ts +13 -0
- package/plugins/cesium-core/dist/components/draw/types.d.ts +29 -0
- package/plugins/cesium-core/dist/components/entity/EntityLayer.d.ts +65 -0
- package/plugins/cesium-core/dist/components/gltf/GLTFManage.d.ts +141 -0
- package/plugins/cesium-core/dist/components/gltf/index.d.ts +1 -0
- package/plugins/cesium-core/dist/components/measurement/MeasurementTool.d.ts +34 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/AreaMeasure.d.ts +28 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/CircleMeasure.d.ts +22 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/CoordinateMeasure.d.ts +16 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/HorizontalMeasure.d.ts +27 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/PolylineDistanceMeasure.d.ts +25 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/RectangleMeasure.d.ts +30 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/RegularPolygonMeasure.d.ts +28 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/SpaceMeasure.d.ts +21 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/TerrainHeightMeasure.d.ts +18 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/TriangleMeasure.d.ts +30 -0
- package/plugins/cesium-core/dist/components/measurement/handlers/VerticalMeasure.d.ts +23 -0
- package/plugins/cesium-core/dist/components/measurement/index.d.ts +13 -0
- package/plugins/cesium-core/dist/components/measurement/types.d.ts +42 -0
- package/plugins/cesium-core/dist/components/primitive/PrimitiveManager.d.ts +50 -0
- package/plugins/cesium-core/dist/components/roaming/CameraRoamTool.d.ts +27 -0
- package/plugins/cesium-core/dist/components/roaming/PathRoamTool.d.ts +23 -0
- package/plugins/cesium-core/dist/components/roaming/index.d.ts +3 -0
- package/plugins/cesium-core/dist/components/roaming/types.d.ts +66 -0
- package/plugins/cesium-core/dist/components/utils/convertGeoJsonToEntityData.d.ts +1 -0
- package/plugins/cesium-core/dist/components/utils/uuid.d.ts +1 -0
- package/plugins/cesium-core/dist/index.d.ts +12 -0
- package/plugins/cesium-core/package.json +27 -0
- package/plugins/cesium-core/pnpm-lock.yaml +872 -0
- package/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +546 -0
- package/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +489 -0
- package/plugins/cesium-core/src/components/MarkerEvent.ts +92 -0
- package/plugins/cesium-core/src/components/Material/MaterialManager.ts +129 -0
- package/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +116 -0
- package/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +236 -0
- package/plugins/cesium-core/src/components/Material/index.ts +3 -0
- package/plugins/cesium-core/src/components/TooltipManager.ts +52 -0
- package/plugins/cesium-core/src/components/draw/DrawTool.ts +55 -0
- package/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +159 -0
- package/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +113 -0
- package/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +70 -0
- package/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +112 -0
- package/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +115 -0
- package/plugins/cesium-core/src/components/draw/types.ts +28 -0
- package/plugins/cesium-core/src/components/entity/EntityLayer.ts +453 -0
- package/plugins/cesium-core/src/components/gltf/GLTFManage.ts +799 -0
- package/plugins/cesium-core/src/components/gltf/index.ts +1 -0
- package/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +416 -0
- package/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +552 -0
- package/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +289 -0
- package/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +139 -0
- package/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +427 -0
- package/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +356 -0
- package/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +516 -0
- package/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +472 -0
- package/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +250 -0
- package/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +185 -0
- package/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +561 -0
- package/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +361 -0
- package/plugins/cesium-core/src/components/measurement/index.ts +13 -0
- package/plugins/cesium-core/src/components/measurement/types.ts +57 -0
- package/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +556 -0
- package/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +286 -0
- package/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +174 -0
- package/plugins/cesium-core/src/components/roaming/index.ts +3 -0
- package/plugins/cesium-core/src/components/roaming/types.ts +71 -0
- package/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +98 -0
- package/plugins/cesium-core/src/components/utils/uuid.ts +7 -0
- package/plugins/cesium-core/src/index.ts +17 -0
- package/plugins/cesium-core/src/test/measurement/index.html +166 -0
- package/plugins/cesium-core/src/test/roaming/c.gltf +1 -0
- package/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
- package/plugins/cesium-core/src/test/roaming/index.html +51 -0
- package/plugins/cesium-core/src/test/roaming/path.html +448 -0
- package/plugins/cesium-core/src/test/roaming/view.html +520 -0
- package/plugins/cesium-core/stats.html +4949 -0
- package/plugins/cesium-core/tsconfig.json +14 -0
- package/plugins/cesium-core/vite.config.ts +35 -0
- package/plugins/cesium-vue/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/plugins/cesium-vue/dist/components/basic-audio/index.d.ts +13 -0
- package/plugins/cesium-vue/dist/components/basic-audio.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/basic-audio.js +1295 -0
- package/plugins/cesium-vue/dist/components/basic-video/index.d.ts +98 -0
- package/plugins/cesium-vue/dist/components/basic-video.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/basic-video.js +67 -0
- package/plugins/cesium-vue/dist/components/card-carousel/index.d.ts +147 -0
- package/plugins/cesium-vue/dist/components/card-carousel.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/card-carousel.js +143 -0
- package/plugins/cesium-vue/dist/components/card-content/index.d.ts +16 -0
- package/plugins/cesium-vue/dist/components/card-content.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/card-content.js +74 -0
- package/plugins/cesium-vue/dist/components/card-page/index.d.ts +64 -0
- package/plugins/cesium-vue/dist/components/card-page.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/card-page.js +111 -0
- package/plugins/cesium-vue/dist/components/carousel-img/index.d.ts +34 -0
- package/plugins/cesium-vue/dist/components/carousel-img.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/carousel-img.js +72 -0
- package/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts +63 -0
- package/plugins/cesium-vue/dist/components/echarts-pro.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/echarts-pro.js +7 -0
- package/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts +73 -0
- package/plugins/cesium-vue/dist/components/marker-bubble.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/marker-bubble.js +123 -0
- package/plugins/cesium-vue/dist/components/marker-default/index.d.ts +43 -0
- package/plugins/cesium-vue/dist/components/marker-default.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/marker-default.js +39 -0
- package/plugins/cesium-vue/dist/components/marker-html/index.d.ts +43 -0
- package/plugins/cesium-vue/dist/components/marker-html.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/marker-html.js +40 -0
- package/plugins/cesium-vue/dist/components/marker-manage/index.d.ts +159 -0
- package/plugins/cesium-vue/dist/components/marker-manage.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/marker-manage.js +896 -0
- package/plugins/cesium-vue/dist/components/marker-text/index.d.ts +25 -0
- package/plugins/cesium-vue/dist/components/marker-text.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/marker-text.js +30 -0
- package/plugins/cesium-vue/dist/components/measurement/index.d.ts +73 -0
- package/plugins/cesium-vue/dist/components/measurement.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/measurement.js +170 -0
- package/plugins/cesium-vue/dist/create-DynflqE1.js +31 -0
- package/plugins/cesium-vue/dist/index-B03tSn8_.js +45855 -0
- package/plugins/cesium-vue/dist/index-CUs_hd1V.js +403 -0
- package/plugins/cesium-vue/dist/index.d.ts +44 -0
- package/plugins/cesium-vue/dist/index.js +82 -0
- package/plugins/cesium-vue/package.json +106 -0
- 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 +6 -0
- package/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +119 -0
- package/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +6 -0
- package/plugins/cesium-vue/src/components/basic-video/index.ts +7 -0
- package/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +58 -0
- package/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +14 -0
- package/plugins/cesium-vue/src/components/card-carousel/index.ts +7 -0
- package/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +124 -0
- package/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +60 -0
- package/plugins/cesium-vue/src/components/card-content/index.ts +7 -0
- package/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +41 -0
- package/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +22 -0
- package/plugins/cesium-vue/src/components/card-page/index.ts +7 -0
- package/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +102 -0
- package/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +37 -0
- package/plugins/cesium-vue/src/components/carousel-img/index.ts +7 -0
- package/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +84 -0
- package/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +8 -0
- package/plugins/cesium-vue/src/components/echarts-pro/index.ts +7 -0
- package/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +107 -0
- package/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +12 -0
- package/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +55 -0
- package/plugins/cesium-vue/src/components/marker-bubble/index.ts +7 -0
- package/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +235 -0
- package/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +35 -0
- package/plugins/cesium-vue/src/components/marker-default/index.ts +7 -0
- package/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +19 -0
- package/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +12 -0
- package/plugins/cesium-vue/src/components/marker-html/index.ts +7 -0
- package/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +21 -0
- package/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +12 -0
- package/plugins/cesium-vue/src/components/marker-manage/index.ts +9 -0
- package/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +106 -0
- package/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +8 -0
- package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +466 -0
- package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +148 -0
- package/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +45 -0
- package/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +75 -0
- package/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +154 -0
- package/plugins/cesium-vue/src/components/marker-text/index.ts +7 -0
- package/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +14 -0
- package/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +10 -0
- package/plugins/cesium-vue/src/components/measurement/index.ts +7 -0
- package/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +183 -0
- package/plugins/cesium-vue/src/components/measurement/src/measurement.ts +20 -0
- package/plugins/cesium-vue/src/index.ts +89 -0
- package/plugins/cesium-vue/stats.html +4949 -0
- package/plugins/cesium-vue/tsconfig.json +18 -0
- package/plugins/cesium-vue/vite.config.ts +62 -0
- package/plugins/plugins/README.md +2 -0
- package/plugins/plugins/build.cjs +63 -0
- package/plugins/plugins/cesium-core/dist/cesium-core.mjs +5881 -0
- package/plugins/plugins/cesium-core/dist/cesium-core.mjs.map +1 -0
- package/plugins/plugins/cesium-core/dist/cesium-core.umd.js +77 -0
- package/plugins/plugins/cesium-core/dist/cesium-core.umd.js.map +1 -0
- package/plugins/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +73 -0
- package/plugins/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +152 -0
- package/plugins/plugins/cesium-core/dist/components/MarkerEvent.d.ts +38 -0
- package/plugins/plugins/cesium-core/dist/components/Material/MaterialManager.d.ts +49 -0
- package/plugins/plugins/cesium-core/dist/components/Material/help/PolylineFlowMaterialProperty.d.ts +10 -0
- package/plugins/plugins/cesium-core/dist/components/Material/help/dynamicImgMaterial.d.ts +16 -0
- package/plugins/plugins/cesium-core/dist/components/Material/index.d.ts +3 -0
- package/plugins/plugins/cesium-core/dist/components/TooltipManager.d.ts +11 -0
- package/plugins/plugins/cesium-core/dist/components/draw/DrawTool.d.ts +10 -0
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/CircleDrawer.d.ts +16 -0
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +14 -0
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/PointDrawer.d.ts +12 -0
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +14 -0
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/RectangleDrawer.d.ts +13 -0
- package/plugins/plugins/cesium-core/dist/components/draw/types.d.ts +29 -0
- package/plugins/plugins/cesium-core/dist/components/entity/EntityLayer.d.ts +65 -0
- package/plugins/plugins/cesium-core/dist/components/gltf/GLTFManage.d.ts +141 -0
- package/plugins/plugins/cesium-core/dist/components/gltf/index.d.ts +1 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/MeasurementTool.d.ts +34 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/AreaMeasure.d.ts +23 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CircleMeasure.d.ts +21 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CoordinateMeasure.d.ts +16 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/HorizontalMeasure.d.ts +25 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/PolylineDistanceMeasure.d.ts +24 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RectangleMeasure.d.ts +22 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RegularPolygonMeasure.d.ts +23 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/SpaceMeasure.d.ts +20 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TerrainHeightMeasure.d.ts +18 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TriangleMeasure.d.ts +24 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/VerticalMeasure.d.ts +23 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/index.d.ts +13 -0
- package/plugins/plugins/cesium-core/dist/components/measurement/types.d.ts +42 -0
- package/plugins/plugins/cesium-core/dist/components/primitive/PrimitiveManager.d.ts +50 -0
- package/plugins/plugins/cesium-core/dist/components/roaming/CameraRoamTool.d.ts +27 -0
- package/plugins/plugins/cesium-core/dist/components/roaming/PathRoamTool.d.ts +23 -0
- package/plugins/plugins/cesium-core/dist/components/roaming/index.d.ts +3 -0
- package/plugins/plugins/cesium-core/dist/components/roaming/types.d.ts +66 -0
- package/plugins/plugins/cesium-core/dist/components/utils/convertGeoJsonToEntityData.d.ts +1 -0
- package/plugins/plugins/cesium-core/dist/components/utils/uuid.d.ts +1 -0
- package/plugins/plugins/cesium-core/dist/index.d.ts +12 -0
- package/plugins/plugins/cesium-core/package.json +26 -0
- package/plugins/plugins/cesium-core/pnpm-lock.yaml +872 -0
- package/plugins/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +546 -0
- package/plugins/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +489 -0
- package/plugins/plugins/cesium-core/src/components/MarkerEvent.ts +92 -0
- package/plugins/plugins/cesium-core/src/components/Material/MaterialManager.ts +129 -0
- package/plugins/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +116 -0
- package/plugins/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +236 -0
- package/plugins/plugins/cesium-core/src/components/Material/index.ts +3 -0
- package/plugins/plugins/cesium-core/src/components/TooltipManager.ts +52 -0
- package/plugins/plugins/cesium-core/src/components/draw/DrawTool.ts +55 -0
- package/plugins/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +159 -0
- package/plugins/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +113 -0
- package/plugins/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +70 -0
- package/plugins/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +112 -0
- package/plugins/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +115 -0
- package/plugins/plugins/cesium-core/src/components/draw/types.ts +28 -0
- package/plugins/plugins/cesium-core/src/components/entity/EntityLayer.ts +453 -0
- package/plugins/plugins/cesium-core/src/components/gltf/GLTFManage.ts +799 -0
- package/plugins/plugins/cesium-core/src/components/gltf/index.ts +1 -0
- package/plugins/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +416 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +451 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +267 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +139 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +418 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +352 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +388 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +379 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +246 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +185 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +541 -0
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +360 -0
- package/plugins/plugins/cesium-core/src/components/measurement/index.ts +13 -0
- package/plugins/plugins/cesium-core/src/components/measurement/types.ts +57 -0
- package/plugins/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +556 -0
- package/plugins/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +286 -0
- package/plugins/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +174 -0
- package/plugins/plugins/cesium-core/src/components/roaming/index.ts +3 -0
- package/plugins/plugins/cesium-core/src/components/roaming/types.ts +71 -0
- package/plugins/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +98 -0
- package/plugins/plugins/cesium-core/src/components/utils/uuid.ts +7 -0
- package/plugins/plugins/cesium-core/src/index.ts +17 -0
- package/plugins/plugins/cesium-core/src/test/measurement/index.html +166 -0
- package/plugins/plugins/cesium-core/src/test/roaming/c.gltf +1 -0
- package/plugins/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
- package/plugins/plugins/cesium-core/src/test/roaming/index.html +51 -0
- package/plugins/plugins/cesium-core/src/test/roaming/path.html +448 -0
- package/plugins/plugins/cesium-core/src/test/roaming/view.html +520 -0
- package/plugins/plugins/cesium-core/stats.html +4949 -0
- package/plugins/plugins/cesium-core/tsconfig.json +14 -0
- package/plugins/plugins/cesium-core/vite.config.ts +35 -0
- package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts +18 -0
- package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts +92 -0
- package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts +82 -0
- package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts +152 -0
- package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts +21 -0
- package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts +69 -0
- package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts +21 -0
- package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts +68 -0
- package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts +78 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts +48 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts +48 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts +164 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts +30 -0
- package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts +78 -0
- package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts +82 -0
- package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts +67 -0
- package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/index.css +1 -0
- package/plugins/plugins/cesium-vue/dist/index.d.ts +30 -0
- package/plugins/plugins/cesium-vue/dist/index.d.ts.map +1 -0
- package/plugins/plugins/cesium-vue/dist/index.js +10087 -0
- package/plugins/plugins/cesium-vue/dist/index.js.map +1 -0
- package/plugins/plugins/cesium-vue/dist/index.umd.cjs +46 -0
- package/plugins/plugins/cesium-vue/dist/index.umd.cjs.map +1 -0
- package/plugins/plugins/cesium-vue/package.json +48 -0
- 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 +11 -0
- package/plugins/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +110 -0
- package/plugins/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +6 -0
- package/plugins/plugins/cesium-vue/src/components/basic-video/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +99 -0
- package/plugins/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +13 -0
- package/plugins/plugins/cesium-vue/src/components/camera-roam/index.ts +4 -0
- package/plugins/plugins/cesium-vue/src/components/camera-roam/src/CameraRoam.vue +434 -0
- package/plugins/plugins/cesium-vue/src/components/camera-roam/src/cameraRoam.ts +28 -0
- package/plugins/plugins/cesium-vue/src/components/card-carousel/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +124 -0
- package/plugins/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +60 -0
- package/plugins/plugins/cesium-vue/src/components/card-content/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +41 -0
- package/plugins/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +22 -0
- package/plugins/plugins/cesium-vue/src/components/card-page/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +102 -0
- package/plugins/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +37 -0
- package/plugins/plugins/cesium-vue/src/components/carousel-img/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +15 -0
- package/plugins/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +6 -0
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +107 -0
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +55 -0
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +235 -0
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +35 -0
- package/plugins/plugins/cesium-vue/src/components/marker-default/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +19 -0
- package/plugins/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/marker-html/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +21 -0
- package/plugins/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/marker-manage/index.ts +14 -0
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +106 -0
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +8 -0
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +466 -0
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +148 -0
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +45 -0
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +75 -0
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +154 -0
- package/plugins/plugins/cesium-vue/src/components/marker-text/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +14 -0
- package/plugins/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +10 -0
- package/plugins/plugins/cesium-vue/src/components/measurement/index.ts +12 -0
- package/plugins/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +183 -0
- package/plugins/plugins/cesium-vue/src/components/measurement/src/measurement.ts +20 -0
- package/plugins/plugins/cesium-vue/src/components/path-roam/index.ts +4 -0
- package/plugins/plugins/cesium-vue/src/components/path-roam/src/PathRoam.vue +429 -0
- package/plugins/plugins/cesium-vue/src/components/path-roam/src/pathRoam.ts +28 -0
- package/plugins/plugins/cesium-vue/src/components/test/CardMarker.vue +150 -0
- package/plugins/plugins/cesium-vue/src/components/test/CesiumMarker.vue +34 -0
- package/plugins/plugins/cesium-vue/src/components/test/CesiumViewer.vue +77 -0
- package/plugins/plugins/cesium-vue/src/components/test/MyLabel.vue +25 -0
- package/plugins/plugins/cesium-vue/src/components/test/index.ts +28 -0
- package/plugins/plugins/cesium-vue/src/index.ts +83 -0
- package/plugins/plugins/cesium-vue/stats.html +4949 -0
- package/plugins/plugins/cesium-vue/tsconfig.json +18 -0
- package/plugins/plugins/cesium-vue/vite.config.ts +56 -0
- package/plugins/plugins/theme-chalk/dist/theme-chalk.css +819 -0
- package/plugins/plugins/theme-chalk/index.less +11 -0
- package/plugins/plugins/theme-chalk/package.json +27 -0
- package/plugins/plugins/theme-chalk/src/basicAudio.less +41 -0
- package/plugins/plugins/theme-chalk/src/basicVideo.less +17 -0
- package/plugins/plugins/theme-chalk/src/cameraRoam.less +239 -0
- package/plugins/plugins/theme-chalk/src/cardCarousel.less +71 -0
- package/plugins/plugins/theme-chalk/src/cardContent.less +73 -0
- package/plugins/plugins/theme-chalk/src/cardPage.less +61 -0
- package/plugins/plugins/theme-chalk/src/carouselImg.less +34 -0
- package/plugins/plugins/theme-chalk/src/marker.less +107 -0
- package/plugins/plugins/theme-chalk/src/markerManage.less +25 -0
- package/plugins/plugins/theme-chalk/src/measurement.less +106 -0
- package/plugins/plugins/theme-chalk/src/mixins/config.less +4 -0
- package/plugins/plugins/theme-chalk/src/mixins/mixins.less +64 -0
- package/plugins/plugins/theme-chalk/src/pathRoam.less +198 -0
- package/plugins/plugins/utils/create.ts +45 -0
- package/plugins/plugins/utils/package.json +12 -0
- package/plugins/plugins/utils/uuid.ts +43 -0
- package/plugins/plugins/utils/with-install.ts +10 -0
- package/plugins/theme-chalk/dist/theme-chalk.css +852 -0
- package/plugins/theme-chalk/index.less +11 -0
- package/plugins/theme-chalk/package.json +27 -0
- package/plugins/theme-chalk/src/basicAudio.less +44 -0
- package/plugins/theme-chalk/src/basicVideo.less +17 -0
- package/plugins/theme-chalk/src/cameraRoam.less +239 -0
- package/plugins/theme-chalk/src/cardCarousel.less +71 -0
- package/plugins/theme-chalk/src/cardContent.less +73 -0
- package/plugins/theme-chalk/src/cardPage.less +61 -0
- package/plugins/theme-chalk/src/carouselImg.less +66 -0
- package/plugins/theme-chalk/src/marker.less +107 -0
- package/plugins/theme-chalk/src/markerManage.less +25 -0
- package/plugins/theme-chalk/src/measurement.less +106 -0
- package/plugins/theme-chalk/src/mixins/config.less +4 -0
- package/plugins/theme-chalk/src/mixins/mixins.less +64 -0
- package/plugins/theme-chalk/src/pathRoam.less +198 -0
- package/plugins/utils/create.ts +45 -0
- package/plugins/utils/package.json +12 -0
- package/plugins/utils/uuid.ts +43 -0
- package/plugins/utils/with-install.ts +10 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type {
|
|
3
|
+
AggregatorOptions,
|
|
4
|
+
ListenerItem,
|
|
5
|
+
MarkerEventKey,
|
|
6
|
+
} from '@report-components/cesium-core';
|
|
7
|
+
|
|
8
|
+
export const markerManageProps = {
|
|
9
|
+
id: { type: String, default: 'marker' },
|
|
10
|
+
Cesium: { type: Object as PropType<any> },
|
|
11
|
+
viewer: { type: Object as PropType<any> },
|
|
12
|
+
aggregatorOptions: { type: Object as PropType<AggregatorOptions> },
|
|
13
|
+
tagListeningOptions: {
|
|
14
|
+
type: Array as PropType<
|
|
15
|
+
Array<{
|
|
16
|
+
key: MarkerEventKey;
|
|
17
|
+
ListenerItem: ListenerItem;
|
|
18
|
+
overwrite?: boolean;
|
|
19
|
+
}>
|
|
20
|
+
>,
|
|
21
|
+
},
|
|
22
|
+
themeConfig: { type: Object as PropType<any> }, // Optional override
|
|
23
|
+
} as const;
|
|
24
|
+
|
|
25
|
+
export type MarkerManageProps = ExtractPropTypes<typeof markerManageProps>;
|
|
26
|
+
export interface MarkerManageOptions {
|
|
27
|
+
Cesium: any;
|
|
28
|
+
viewer: any;
|
|
29
|
+
aggregatorOptions: AggregatorOptions;
|
|
30
|
+
tagListeningOptions?: Array<{
|
|
31
|
+
key: MarkerEventKey;
|
|
32
|
+
ListenerItem: ListenerItem;
|
|
33
|
+
overwrite?: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
[key: string]: any; // Allow extra properties like MaterialManager
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface MarkerManageMethods {
|
|
39
|
+
init: (options: MarkerManageOptions) => any;
|
|
40
|
+
set: (list: any) => void;
|
|
41
|
+
add: (data: any) => void;
|
|
42
|
+
update: (data: any[], immediately?: boolean) => void;
|
|
43
|
+
getById: (id: string) => any;
|
|
44
|
+
getOptions: () => Promise<any>;
|
|
45
|
+
delete: (data: string[] | string) => void;
|
|
46
|
+
setMarkerAggregationEnabled: (enabled: boolean, count?: number) => void;
|
|
47
|
+
setDebugCurrentGridsEnabled: (enabled: boolean) => void;
|
|
48
|
+
initThemes: (data: any) => void; // Added initThemes to methods
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ThemeInterface {
|
|
52
|
+
data: {
|
|
53
|
+
theme: string;
|
|
54
|
+
lineType?: string;
|
|
55
|
+
polygonType?: string;
|
|
56
|
+
wallType?: string;
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
};
|
|
59
|
+
options?: any;
|
|
60
|
+
img?: string;
|
|
61
|
+
material?: any;
|
|
62
|
+
comType?: number;
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
}
|
|
65
|
+
export type RegisterFn = (instance: MarkerManageMethods) => void;
|
|
66
|
+
export type UseCesiumReturnType = [RegisterFn, MarkerManageMethods];
|
|
67
|
+
|
|
68
|
+
export enum ReportListenerKey {
|
|
69
|
+
左建选中模型 = 'MODEL_LEFT_CLICK',
|
|
70
|
+
标记左键点击 = 'TAG_LEFT_CLICK',
|
|
71
|
+
标记移入 = 'TAG_MOUSEENTER',
|
|
72
|
+
标记移出 = 'TAG_MOUSELEAVE',
|
|
73
|
+
模型位置保存 = 'SAVE_REGION',
|
|
74
|
+
模型加载完成 = 'MODEL_READY',
|
|
75
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getDynamicImgMaterial,
|
|
3
|
+
getWallMaterial,
|
|
4
|
+
getPolylineFlowMaterialProperty,
|
|
5
|
+
} from '@report-components/cesium-core';
|
|
6
|
+
|
|
7
|
+
export function createLineTheme({
|
|
8
|
+
Cesium,
|
|
9
|
+
options,
|
|
10
|
+
MaterialManager,
|
|
11
|
+
}: {
|
|
12
|
+
Cesium: any;
|
|
13
|
+
options: any;
|
|
14
|
+
MaterialManager: any;
|
|
15
|
+
}) {
|
|
16
|
+
if (!options.data?.theme) return;
|
|
17
|
+
// if (['2', '3', '4'].includes(options.data?.lineType)) return;
|
|
18
|
+
if (options.data?.lineType == '1') {
|
|
19
|
+
let material = getPolylineFlowMaterialProperty(Cesium, {
|
|
20
|
+
color: new Cesium.Color.fromCssColorString(options?.options?.color || '#ffffff'),
|
|
21
|
+
duration: 100,
|
|
22
|
+
});
|
|
23
|
+
//把材质逐步从引擎中迁移出来
|
|
24
|
+
MaterialManager.register({
|
|
25
|
+
themeKey: options.data?.theme,
|
|
26
|
+
material: material,
|
|
27
|
+
category: 'polyline',
|
|
28
|
+
});
|
|
29
|
+
} else if (options.data?.lineType == '2') {
|
|
30
|
+
let material = new Cesium.PolylineArrowMaterialProperty(
|
|
31
|
+
Cesium.Color.fromCssColorString(options?.options?.color || 'red'),
|
|
32
|
+
);
|
|
33
|
+
//把材质逐步从引擎中迁移出来
|
|
34
|
+
MaterialManager.register({
|
|
35
|
+
themeKey: options.data?.theme,
|
|
36
|
+
material: material,
|
|
37
|
+
category: 'polyline',
|
|
38
|
+
});
|
|
39
|
+
} else if (options.data?.lineType == '3') {
|
|
40
|
+
let material = new Cesium.PolylineOutlineMaterialProperty({
|
|
41
|
+
color: Cesium.Color.fromCssColorString(options?.options?.color || 'red'),
|
|
42
|
+
outlineWidth: 0,
|
|
43
|
+
});
|
|
44
|
+
//把材质逐步从引擎中迁移出来
|
|
45
|
+
MaterialManager.register({
|
|
46
|
+
themeKey: options.data?.theme,
|
|
47
|
+
material: material,
|
|
48
|
+
category: 'polyline',
|
|
49
|
+
});
|
|
50
|
+
} else if (options.data?.lineType == '4') {
|
|
51
|
+
let material = new Cesium.PolylineDashMaterialProperty({
|
|
52
|
+
color: Cesium.Color.fromCssColorString(options?.options?.color || 'red'),
|
|
53
|
+
dashLength: Number(options?.options?.dashLength || 30), //短划线长度
|
|
54
|
+
});
|
|
55
|
+
//把材质逐步从引擎中迁移出来
|
|
56
|
+
MaterialManager.register({
|
|
57
|
+
themeKey: options.data?.theme,
|
|
58
|
+
material: material,
|
|
59
|
+
category: 'polyline',
|
|
60
|
+
});
|
|
61
|
+
} else if (options.data?.lineType == '5') {
|
|
62
|
+
let material = getDynamicImgMaterial(Cesium, {
|
|
63
|
+
image: options.img,
|
|
64
|
+
color: new Cesium.Color.fromCssColorString(options?.options?.color || '#ffffff'),
|
|
65
|
+
duration: 5000,
|
|
66
|
+
// freely: 'vertical',
|
|
67
|
+
direction: '-',
|
|
68
|
+
count: 1,
|
|
69
|
+
});
|
|
70
|
+
MaterialManager.register({
|
|
71
|
+
themeKey: options.data?.theme,
|
|
72
|
+
material: material,
|
|
73
|
+
category: 'polyline',
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function createPolygonTheme({
|
|
79
|
+
Cesium,
|
|
80
|
+
options,
|
|
81
|
+
MaterialManager,
|
|
82
|
+
}: {
|
|
83
|
+
Cesium: any;
|
|
84
|
+
options: any;
|
|
85
|
+
MaterialManager: any;
|
|
86
|
+
}) {
|
|
87
|
+
if (!options.data?.theme) return;
|
|
88
|
+
if (options.data?.polygonType == 'colorMode') {
|
|
89
|
+
let material = new Cesium.Color.fromCssColorString(options?.options?.color || '#ffffff');
|
|
90
|
+
MaterialManager.register({
|
|
91
|
+
themeKey: options.data?.theme,
|
|
92
|
+
material: material,
|
|
93
|
+
category: 'polygon',
|
|
94
|
+
});
|
|
95
|
+
} else if (options.data?.polygonType == 'img') {
|
|
96
|
+
let material = new Cesium.ImageMaterialProperty({
|
|
97
|
+
image: options.img,
|
|
98
|
+
});
|
|
99
|
+
MaterialManager.register({
|
|
100
|
+
themeKey: options.data?.theme,
|
|
101
|
+
material: material,
|
|
102
|
+
category: 'polygon',
|
|
103
|
+
});
|
|
104
|
+
} else if (options.data?.polygonType == 'DynamicImgMaterial') {
|
|
105
|
+
let material = getWallMaterial(Cesium, {
|
|
106
|
+
image: options.img,
|
|
107
|
+
color: new Cesium.Color.fromCssColorString(options?.options?.color),
|
|
108
|
+
duration: 5000,
|
|
109
|
+
freely: options.data?.freely || 'vertical',
|
|
110
|
+
direction: '+',
|
|
111
|
+
count: 1,
|
|
112
|
+
});
|
|
113
|
+
MaterialManager.register({
|
|
114
|
+
themeKey: options.data?.theme,
|
|
115
|
+
material: material,
|
|
116
|
+
category: 'polygon',
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export function createWallTheme({
|
|
121
|
+
Cesium,
|
|
122
|
+
options,
|
|
123
|
+
MaterialManager,
|
|
124
|
+
}: {
|
|
125
|
+
Cesium: any;
|
|
126
|
+
options: any;
|
|
127
|
+
MaterialManager: any;
|
|
128
|
+
}) {
|
|
129
|
+
if (!options.data?.theme) return;
|
|
130
|
+
if (options.data?.wallType == 'img') {
|
|
131
|
+
let material = new Cesium.ImageMaterialProperty({
|
|
132
|
+
image: options.img,
|
|
133
|
+
});
|
|
134
|
+
MaterialManager.register({
|
|
135
|
+
themeKey: options.data?.theme,
|
|
136
|
+
material: material,
|
|
137
|
+
category: 'wall',
|
|
138
|
+
});
|
|
139
|
+
} else if (options.data?.wallType == 'DynamicImgMaterial') {
|
|
140
|
+
let material = getWallMaterial(Cesium, {
|
|
141
|
+
image: options.img,
|
|
142
|
+
// color: new Cesium.Color.fromCssColorString(options?.options?.color),
|
|
143
|
+
duration: 5000,
|
|
144
|
+
freely: options.data?.freely || 'vertical',
|
|
145
|
+
direction: '+',
|
|
146
|
+
count: 1,
|
|
147
|
+
});
|
|
148
|
+
MaterialManager.register({
|
|
149
|
+
themeKey: options.data?.theme,
|
|
150
|
+
material: material,
|
|
151
|
+
category: 'wall',
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall } from '@report-components/utils/with-install';
|
|
2
|
+
import _MarkerText from './src/MarkerText.vue';
|
|
3
|
+
export * from './src/MarkerText.vue';
|
|
4
|
+
|
|
5
|
+
const CxMarkerText = withInstall(_MarkerText);
|
|
6
|
+
export default CxMarkerText;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
export interface GlobalComponents {
|
|
10
|
+
CxMarkerText: typeof CxMarkerText;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="bem.b('text')">
|
|
3
|
+
<span :class="bem.be('text', 'name')" v-if="props.text" :style="props.textStyle">{{
|
|
4
|
+
props.text
|
|
5
|
+
}}</span>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
<script lang="ts" setup>
|
|
9
|
+
import { createNamespace, prefix } from '@report-components/utils/create';
|
|
10
|
+
import { markerTextProps } from './markerText';
|
|
11
|
+
defineOptions({ name: `${prefix}-marker-text` });
|
|
12
|
+
const props = defineProps(markerTextProps);
|
|
13
|
+
const bem = createNamespace('marker');
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
export const markerTextProps = {
|
|
3
|
+
text: { type: String, default: '' },
|
|
4
|
+
textStyle: {
|
|
5
|
+
type: Object,
|
|
6
|
+
default: () => {},
|
|
7
|
+
},
|
|
8
|
+
} as const;
|
|
9
|
+
|
|
10
|
+
export type MarkerTextProps = ExtractPropTypes<typeof markerTextProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall } from '@report-components/utils/with-install';
|
|
2
|
+
import _Measurement from './src/Measurement.vue';
|
|
3
|
+
export * from './src/measurement';
|
|
4
|
+
|
|
5
|
+
const CxMeasurement = withInstall(_Measurement);
|
|
6
|
+
export default CxMeasurement;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
export interface GlobalComponents {
|
|
10
|
+
CxMeasurement: typeof CxMeasurement;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-show="visible" :class="[bem.b('box'), bem.is('small', props.size === 'small')]">
|
|
3
|
+
<div
|
|
4
|
+
v-for="type in types"
|
|
5
|
+
:key="type.key"
|
|
6
|
+
:class="[bem.be('box', 'btn'), { active: activeType === type.key }]"
|
|
7
|
+
@click="handleMeasure(type.key)"
|
|
8
|
+
>
|
|
9
|
+
<div :class="bem.be('box', 'icon')">
|
|
10
|
+
<img :src="type.icon" :alt="type.label" />
|
|
11
|
+
</div>
|
|
12
|
+
{{ type.label }}
|
|
13
|
+
</div>
|
|
14
|
+
<div :class="bem.be('box', 'btn')" @click="handleSpecifiedClear">
|
|
15
|
+
<div :class="bem.be('box', 'icon')">
|
|
16
|
+
<img :src="iconClear" alt="指定清除" />
|
|
17
|
+
</div>
|
|
18
|
+
指定清除
|
|
19
|
+
</div>
|
|
20
|
+
<div :class="bem.be('box', 'btn')" @click="handleClear">
|
|
21
|
+
<div :class="bem.be('box', 'icon')">
|
|
22
|
+
<img :src="iconClear" alt="清除" />
|
|
23
|
+
</div>
|
|
24
|
+
清除全部
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div :id="overlayContainerId" :class="bem.be('box', 'container')"></div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import { ref, onMounted, onUnmounted, unref, inject, Ref, watch } from 'vue';
|
|
32
|
+
import { createNamespace, prefix } from '@report-components/utils/create';
|
|
33
|
+
import { measurementProps } from './measurement';
|
|
34
|
+
import { MeasurementTool } from '@report-components/cesium-core';
|
|
35
|
+
|
|
36
|
+
// Icons
|
|
37
|
+
import iconClear from '../../../assets/icons/icon-001.png';
|
|
38
|
+
import iconCoordinate from '../../../assets/icons/icon-002.png';
|
|
39
|
+
import iconRegular from '../../../assets/icons/icon-003.png';
|
|
40
|
+
import iconRectangle from '../../../assets/icons/icon-004.png';
|
|
41
|
+
import iconCircle from '../../../assets/icons/icon-005.png';
|
|
42
|
+
import iconArea from '../../../assets/icons/icon-006.png';
|
|
43
|
+
import iconHeight from '../../../assets/icons/icon-007.png';
|
|
44
|
+
import iconVertical from '../../../assets/icons/icon-008.png';
|
|
45
|
+
import iconHorizontal from '../../../assets/icons/icon-009.png';
|
|
46
|
+
import iconPolyline from '../../../assets/icons/icon-010.png';
|
|
47
|
+
import iconTriangle from '../../../assets/icons/icon-011.png';
|
|
48
|
+
import iconSpace from '../../../assets/icons/icon-012.png';
|
|
49
|
+
|
|
50
|
+
defineOptions({ name: `${prefix}-measurement` });
|
|
51
|
+
const props = defineProps(measurementProps);
|
|
52
|
+
const bem = createNamespace('measurement');
|
|
53
|
+
const overlayContainerId = props.overlayContainerId || 'cx-measurement-overlay';
|
|
54
|
+
|
|
55
|
+
const types = [
|
|
56
|
+
{ key: 'horizontal', label: '水平测距', icon: iconHorizontal },
|
|
57
|
+
{ key: 'vertical', label: '垂直测距', icon: iconVertical },
|
|
58
|
+
{ key: 'space', label: '空间测距', icon: iconSpace },
|
|
59
|
+
{ key: 'triangle', label: '三角测量', icon: iconTriangle },
|
|
60
|
+
{ key: 'polyline', label: '折线测距', icon: iconPolyline },
|
|
61
|
+
{ key: 'area', label: '面积测量', icon: iconArea },
|
|
62
|
+
{ key: 'circle', label: '圆形测量', icon: iconCircle },
|
|
63
|
+
{ key: 'rectangle', label: '矩形测量', icon: iconRectangle },
|
|
64
|
+
{ key: 'regularPolygon', label: '正多边形', icon: iconRegular },
|
|
65
|
+
{ key: 'terrainHeight', label: '地形高度', icon: iconHeight },
|
|
66
|
+
{ key: 'coordinate', label: '坐标查询', icon: iconCoordinate },
|
|
67
|
+
];
|
|
68
|
+
|
|
69
|
+
const activeType = ref('');
|
|
70
|
+
const visible = ref(false);
|
|
71
|
+
const tool = ref<MeasurementTool | null>(null);
|
|
72
|
+
let cesiumInstance: any = null;
|
|
73
|
+
const leitingMethods = inject('leitingMethods') as Ref<any>;
|
|
74
|
+
const init = (Cesium: any, viewer: any) => {
|
|
75
|
+
if (!Cesium || !viewer) return;
|
|
76
|
+
cesiumInstance = Cesium;
|
|
77
|
+
tool.value = new MeasurementTool({ Cesium, viewer });
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const handleMeasure = (type: string) => {
|
|
81
|
+
const methods = unref(leitingMethods) as any;
|
|
82
|
+
if (!tool.value && methods) {
|
|
83
|
+
const Cesium = methods.getCesium();
|
|
84
|
+
const viewer = methods.getViewer();
|
|
85
|
+
cesiumInstance = Cesium;
|
|
86
|
+
tool.value = new MeasurementTool({ Cesium, viewer });
|
|
87
|
+
}
|
|
88
|
+
if (!tool.value || !cesiumInstance) return;
|
|
89
|
+
|
|
90
|
+
if (type === 'clear') {
|
|
91
|
+
handleClear();
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
// 同类型连续测量:保持选中状态,直接再次启动测量
|
|
95
|
+
activeType.value = type;
|
|
96
|
+
tool.value.measure(type as any, {
|
|
97
|
+
overlayContainerId,
|
|
98
|
+
color: cesiumInstance.Color.YELLOW.withAlpha(0.5),
|
|
99
|
+
lineColor: cesiumInstance.Color.fromCssColorString('#51ff00'),
|
|
100
|
+
dashLineColor: cesiumInstance.Color.RED,
|
|
101
|
+
pointColor: cesiumInstance.Color.YELLOW,
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const handleClear = () => {
|
|
106
|
+
if (tool.value) {
|
|
107
|
+
tool.value.clearAll();
|
|
108
|
+
activeType.value = '';
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const handleSpecifiedClear = () => {
|
|
113
|
+
if (tool.value) {
|
|
114
|
+
tool.value.toggleSpecifiedClear(overlayContainerId);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const open = (val: boolean) => {
|
|
119
|
+
visible.value = val;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
function load() {
|
|
123
|
+
if (!tool.value) return tool.value;
|
|
124
|
+
const methods = unref(leitingMethods) as any;
|
|
125
|
+
const Cesium = methods?.getCesium?.();
|
|
126
|
+
const viewer = methods?.getViewer?.();
|
|
127
|
+
if (Cesium && viewer) {
|
|
128
|
+
init(Cesium, viewer);
|
|
129
|
+
} else if (props.Cesium && props.viewer) {
|
|
130
|
+
init(Cesium, viewer);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
watch(
|
|
134
|
+
() => leitingMethods?.value,
|
|
135
|
+
(nv, ov) => {
|
|
136
|
+
/* ... */
|
|
137
|
+
load();
|
|
138
|
+
},
|
|
139
|
+
{ deep: false },
|
|
140
|
+
);
|
|
141
|
+
onMounted(() => {
|
|
142
|
+
load();
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
onUnmounted(() => {
|
|
146
|
+
if (tool.value) {
|
|
147
|
+
tool.value.clear();
|
|
148
|
+
tool.value = null;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
defineExpose({
|
|
153
|
+
init,
|
|
154
|
+
open,
|
|
155
|
+
tool,
|
|
156
|
+
setMeasurementInfo(config: any) {
|
|
157
|
+
if (tool.value) {
|
|
158
|
+
config.measurements?.forEach((item: any) => {
|
|
159
|
+
item.options = {
|
|
160
|
+
overlayContainerId,
|
|
161
|
+
color: cesiumInstance.Color.YELLOW,
|
|
162
|
+
lineColor: cesiumInstance.Color.fromCssColorString('#51ff00'),
|
|
163
|
+
dashLineColor: cesiumInstance.Color.RED,
|
|
164
|
+
pointColor: cesiumInstance.Color.YELLOW,
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
tool.value.setMeasurementsConfig(config);
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
getMeasurementInfo() {
|
|
171
|
+
if (tool.value) {
|
|
172
|
+
let config = tool.value.getMeasurementsConfig();
|
|
173
|
+
config.measurements?.forEach((item: any) => {
|
|
174
|
+
delete item.options;
|
|
175
|
+
});
|
|
176
|
+
return config;
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
measurements: [],
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
</script>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export const measurementProps = {
|
|
4
|
+
Cesium: {
|
|
5
|
+
type: Object as PropType<any>,
|
|
6
|
+
required: false,
|
|
7
|
+
},
|
|
8
|
+
viewer: {
|
|
9
|
+
type: Object as PropType<any>,
|
|
10
|
+
required: false,
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
type: String as PropType<'default' | 'small'>,
|
|
14
|
+
default: 'small',
|
|
15
|
+
},
|
|
16
|
+
overlayContainerId: {
|
|
17
|
+
type: String as PropType<string>,
|
|
18
|
+
default: 'cx-measurement-overlay',
|
|
19
|
+
},
|
|
20
|
+
} as const;
|