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,75 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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>
|
|
@@ -1,10 +0,0 @@
|
|
|
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>;
|
|
@@ -1,7 +0,0 @@
|
|
|
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 { CxMeasurement };
|
|
7
|
-
export default CxMeasurement;
|
|
@@ -1,183 +0,0 @@
|
|
|
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>
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { App } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import CxMarkerDefault from './components/marker-default';
|
|
5
|
-
import CxMarkerHtml from './components/marker-html';
|
|
6
|
-
import CxMarkerText from './components/marker-text';
|
|
7
|
-
import CxMarkerBubble from './components/marker-bubble';
|
|
8
|
-
import CxMarkerManage, { MarkerManagerCore } from './components/marker-manage';
|
|
9
|
-
import CxBasicVideo from './components/basic-video';
|
|
10
|
-
import CxCardContent from './components/card-content';
|
|
11
|
-
import CxCarouselImg from './components/carousel-img';
|
|
12
|
-
import CxCardPage from './components/card-page';
|
|
13
|
-
import CxCardCarousel from './components/card-carousel';
|
|
14
|
-
import CxEchartsPro from './components/echarts-pro';
|
|
15
|
-
import CxBasicAudio from './components/basic-audio';
|
|
16
|
-
import CxMeasurement from './components/measurement';
|
|
17
|
-
import { useMarKerManage } from './components/marker-manage/src/hook/useMarkerManage';
|
|
18
|
-
import type { MarkerManageOptions } from './components/marker-manage/src/type/markerManage';
|
|
19
|
-
|
|
20
|
-
declare global {
|
|
21
|
-
interface Window {
|
|
22
|
-
Cesium?: any; // 或具体类型
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const components = [
|
|
26
|
-
|
|
27
|
-
CxMarkerDefault,
|
|
28
|
-
CxMarkerText,
|
|
29
|
-
CxMarkerBubble,
|
|
30
|
-
CxMarkerManage,
|
|
31
|
-
CxBasicVideo,
|
|
32
|
-
CxCardContent,
|
|
33
|
-
CxCarouselImg,
|
|
34
|
-
CxEchartsPro,
|
|
35
|
-
CxCardPage,
|
|
36
|
-
CxCardCarousel,
|
|
37
|
-
CxMarkerHtml,
|
|
38
|
-
CxMeasurement,
|
|
39
|
-
|
|
40
|
-
CxBasicAudio,
|
|
41
|
-
];
|
|
42
|
-
|
|
43
|
-
export default {
|
|
44
|
-
install(app: App) {
|
|
45
|
-
components.forEach((component) => {
|
|
46
|
-
app.use(component as any);
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export { useMarKerManage, MarkerManageOptions, MarkerManagerCore };
|
|
52
|
-
|
|
53
|
-
export {
|
|
54
|
-
|
|
55
|
-
CxMarkerDefault,
|
|
56
|
-
CxMarkerText,
|
|
57
|
-
CxMarkerBubble,
|
|
58
|
-
CxMarkerManage,
|
|
59
|
-
CxBasicVideo,
|
|
60
|
-
CxCardContent,
|
|
61
|
-
CxCarouselImg,
|
|
62
|
-
CxEchartsPro,
|
|
63
|
-
CxCardPage,
|
|
64
|
-
CxCardCarousel,
|
|
65
|
-
CxBasicAudio,
|
|
66
|
-
CxMarkerHtml,
|
|
67
|
-
CxMeasurement,
|
|
68
|
-
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
declare module 'vue' {
|
|
72
|
-
export interface GlobalComponents {
|
|
73
|
-
|
|
74
|
-
CxMarkerDefault: typeof CxMarkerDefault;
|
|
75
|
-
CxMarkerText: typeof CxMarkerText;
|
|
76
|
-
CxMarkerBubble: typeof CxMarkerBubble;
|
|
77
|
-
CxMarkerManage: typeof CxMarkerManage;
|
|
78
|
-
CxBasicVideo: typeof CxBasicVideo;
|
|
79
|
-
CxCardContent: typeof CxCardContent;
|
|
80
|
-
CxCarouselImg: typeof CxCarouselImg;
|
|
81
|
-
CxEchartsPro: typeof CxEchartsPro;
|
|
82
|
-
CxCardPage: typeof CxCardPage;
|
|
83
|
-
CxCardCarousel: typeof CxCardCarousel;
|
|
84
|
-
CxBasicAudio: typeof CxBasicAudio;
|
|
85
|
-
CxMarkerHtml: typeof CxMarkerHtml;
|
|
86
|
-
CxMeasurement: typeof CxMeasurement;
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
}
|