@xingm/vmap-cesium-toolbar 0.0.6 → 0.0.7-alpha.1
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/{dist/index.d.ts → index.d.ts} +7 -0
- package/{dist/index.es.js → index.es.js} +2316 -1461
- package/index.umd.js +337 -0
- package/package.json +46 -73
- package/{dist/style.css → style.css} +161 -161
- package/README.md +0 -276
- package/dist/hooks/toolBarConfig.d.ts +0 -75
- package/dist/hooks/useDrawHelper.d.ts +0 -24
- package/dist/hooks/useDynamicRing.d.ts +0 -44
- package/dist/hooks/useHeatmapHelper.d.ts +0 -18
- package/dist/hooks/useMap.d.ts +0 -14
- package/dist/hooks/useMapInit.d.ts +0 -14
- package/dist/hooks/useOverlayHelper.d.ts +0 -48
- package/dist/hooks/usePointClusterHelper.d.ts +0 -14
- package/dist/i18n/en-US.d.ts +0 -148
- package/dist/i18n/index.d.ts +0 -3
- package/dist/i18n/zh-CN.d.ts +0 -148
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -326
- package/dist/index.umd.js.map +0 -1
- package/dist/libs/CesiumAutoRecover.d.ts +0 -48
- package/dist/libs/CesiumHeatmapLayer.d.ts +0 -143
- package/dist/libs/CesiumMapDraw.d.ts +0 -251
- package/dist/libs/CesiumMapLoader.d.ts +0 -71
- package/dist/libs/CesiumMapModel.d.ts +0 -172
- package/dist/libs/CesiumMapToolbar.d.ts +0 -219
- package/dist/libs/CesiumOverlayService.d.ts +0 -227
- package/dist/libs/CesiumPointClusterLayer.d.ts +0 -93
- package/dist/libs/PickGovernor.d.ts +0 -23
- package/dist/libs/config/CesiumMapConfig.d.ts +0 -13
- package/dist/libs/drawHelper/BaseDraw.d.ts +0 -194
- package/dist/libs/drawHelper/DrawCircle.d.ts +0 -31
- package/dist/libs/drawHelper/DrawHint.d.ts +0 -32
- package/dist/libs/drawHelper/DrawLine.d.ts +0 -49
- package/dist/libs/drawHelper/DrawPolgon.d.ts +0 -35
- package/dist/libs/drawHelper/DrawRectangle.d.ts +0 -24
- package/dist/libs/drawHelper/index.d.ts +0 -6
- package/dist/libs/i18n/en-US.d.ts +0 -69
- package/dist/libs/i18n/index.d.ts +0 -25
- package/dist/libs/i18n/zh-CN.d.ts +0 -69
- package/dist/libs/overlay/MapCircle.d.ts +0 -130
- package/dist/libs/overlay/MapIcon.d.ts +0 -69
- package/dist/libs/overlay/MapInfoWindow.d.ts +0 -100
- package/dist/libs/overlay/MapLabel.d.ts +0 -73
- package/dist/libs/overlay/MapMarker.d.ts +0 -60
- package/dist/libs/overlay/MapPolygon.d.ts +0 -114
- package/dist/libs/overlay/MapPolyline.d.ts +0 -64
- package/dist/libs/overlay/MapRectangle.d.ts +0 -101
- package/dist/libs/overlay/MapRing.d.ts +0 -107
- package/dist/libs/overlay/MapSVG.d.ts +0 -73
- package/dist/libs/overlay/OverlayEditController.d.ts +0 -167
- package/dist/libs/overlay/OverlayEditHandles.d.ts +0 -101
- package/dist/libs/overlay/OverlayHighlight.d.ts +0 -40
- package/dist/libs/overlay/index.d.ts +0 -23
- package/dist/libs/overlay/primitives/CirclePrimitiveBatch.d.ts +0 -42
- package/dist/libs/overlay/primitives/CirclePrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/primitives/PolygonPrimitiveBatch.d.ts +0 -43
- package/dist/libs/overlay/primitives/PolygonPrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/primitives/RectanglePrimitiveBatch.d.ts +0 -41
- package/dist/libs/overlay/primitives/RectanglePrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/types.d.ts +0 -121
- package/dist/libs/toolBar/CesiumMapController.d.ts +0 -84
- package/dist/libs/toolBar/MapLayersService.d.ts +0 -89
- package/dist/libs/toolBar/MapSearchService.d.ts +0 -47
- package/dist/libs/toolBar/MapToolBarConfig.d.ts +0 -10
- package/dist/libs/toolBar/MeasurementService.d.ts +0 -16
- package/dist/libs/toolBar/NotFlyZonesService.d.ts +0 -51
- package/dist/package.json +0 -46
- package/dist/utils/calc.d.ts +0 -50
- package/dist/utils/common.d.ts +0 -14
- package/dist/utils/geojson.d.ts +0 -86
- package/dist/utils/selfIntersection.d.ts +0 -15
- package/dist/z.const.d.ts +0 -24
- /package/{dist/geojson → geojson}/file-list.json +0 -0
- /package/{dist/geojson → geojson}//344/270/207/345/267/236_/344/272/224/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/211/344/272/232_/345/207/244/345/207/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/211/346/230/216_/346/262/231/345/216/277/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/212/346/265/267_/346/265/246/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/212/346/265/267_/350/231/271/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/212/351/245/266_/344/270/211/346/270/205/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/224/346/234/253_/347/216/211/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/255/345/215/253_/346/262/231/345/235/241/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/264/346/261/276_/344/271/224/346/235/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/264/346/262/202_/346/262/255/345/237/240/345/262/255/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/264/346/262/247_/345/215/232/345/260/232/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/271/344/270/234_/346/265/252/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/275/346/261/237_/344/270/211/344/271/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/211/344/271/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/214/345/205/260/345/257/237/345/270/203_/351/233/206/345/256/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/214/345/205/260/346/265/251/347/211/271_/344/276/235/345/213/222/345/212/233/347/211/271/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/214/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/214/351/262/201/346/234/250/351/275/220_/345/234/260/347/252/235/345/240/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/272/214/350/277/236/346/265/251/347/211/271_/350/265/233/344/271/214/347/264/240/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/272/225/345/206/210/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/274/212/345/256/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/274/212/346/230/245_/346/236/227/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/275/263/346/234/250/346/226/257/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/277/235/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/205/213/346/213/211/347/216/233/344/276/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/205/260/345/267/236_/344/270/255/345/267/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/205/264/344/271/211_/344/270/207/345/263/260/346/236/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/212/240/346/240/274/350/276/276/345/245/207_/345/230/216/344/273/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/214/205/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/214/227/344/272/254_/351/246/226/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/214/227/346/265/267_/347/246/217/346/210/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/201/345/240/260_/346/255/246/345/275/223/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/344/272/254_/347/246/204/345/217/243/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/345/256/201_/345/220/264/345/234/251/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/346/230/214_/346/230/214/345/214/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/351/200/232_/345/205/264/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/351/230/263_/345/247/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/232/344/271/220_/351/230/277/346/213/211/345/261/261/345/217/243/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/216/246/351/227/250_/351/253/230/345/264/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/217/260/345/267/236_/350/267/257/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/220/210/350/202/245_/346/226/260/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/220/220/351/262/201/347/225/252_/344/272/244/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/221/274/344/274/246/350/264/235/345/260/224_/346/265/267/346/213/211/345/260/224/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/221/274/345/222/214/346/265/251/347/211/271_/347/231/275/345/241/224/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/222/214/347/224/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/223/210/345/260/224/346/273/250_/345/244/252/345/271/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/224/220/345/261/261_/344/270/211/345/245/263/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/226/200/344/273/200/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/230/211/345/263/252/345/205/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/233/272/345/216/237_/345/205/255/347/233/230/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/241/224/345/237/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/247/345/220/214_/344/272/221/345/206/210/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/247/345/272/206_/350/220/250/345/260/224/345/233/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/247/350/277/236_/345/221/250/346/260/264/345/255/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/251/346/264/245_/346/273/250/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/252/345/216/237_/346/255/246/345/256/277/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/201/346/263/242_/346/240/216/347/244/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/201/350/222/227_/346/263/270/346/262/275/346/271/226/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/211/345/272/206/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/234/345/256/276_/350/217/234/345/235/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/234/346/230/214_/344/270/211/345/263/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/234/346/230/245_/346/230/216/346/234/210/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/257/214/350/225/264_/345/217/257/345/217/257/346/211/230/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/267/264/345/275/246/346/267/226/345/260/224_/345/244/251/345/220/211/346/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/270/203/345/260/224/346/264/245_/345/226/200/347/272/263/346/226/257/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/270/270/345/267/236_/345/245/224/347/211/233/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/270/270/345/276/267_/346/241/203/350/212/261/346/272/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/271/277/345/205/203_/347/233/230/351/276/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/271/277/345/267/236_/347/231/275/344/272/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/272/206/351/230/263_/350/245/277/345/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/272/223/350/275/246_/351/276/237/345/205/271/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/272/267/345/256/232/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/273/266/345/220/211_/346/234/235/351/230/263/345/267/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/274/240/345/256/266/347/225/214_/350/215/267/350/212/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/274/240/346/216/226_/347/224/230/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/276/220/345/267/236_/350/247/202/351/237/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/276/267/345/256/217_/350/212/222/345/270/202/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/277/273/345/267/236_/344/272/224/345/217/260/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/200/200/345/214/226_/350/212/267/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/201/251/346/226/275_/350/256/270/345/256/266/345/235/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/210/220/351/203/275_/345/217/214/346/265/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/211/216/345/205/260/345/261/257_/346/210/220/345/220/211/346/200/235/346/261/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/211/254/345/267/236_/346/263/260/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/212/232/350/277/234_/344/270/234/346/236/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/217/255/351/230/263_/346/275/256/346/261/225/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/224/200/346/236/235/350/212/261_/344/277/235/345/256/211/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/225/246/347/205/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/226/260/346/272/220_/351/202/243/346/213/211/346/217/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/227/245/347/205/247_/345/261/261/345/255/227/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/230/206/346/230/216_/351/225/277/346/260/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/231/256/346/264/261_/346/200/235/350/214/205/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/231/257/345/276/267/351/225/207_/347/275/227/345/256/266/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/234/235/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/235/255/345/267/236_/350/220/247/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/236/234/346/264/233_/347/216/233/346/262/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/237/263/345/267/236_/347/231/275/350/216/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/241/202/346/236/227_/344/270/244/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/242/205/345/216/277_/351/225/277/345/262/227/345/262/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/242/247/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/246/206/346/236/227_/346/246/206/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/255/246/346/261/211_/345/244/251/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/260/270/345/267/236_/351/233/266/351/231/265/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/261/211/344/270/255_/345/237/216/345/233/272/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/261/240/345/267/236_/344/271/235/345/215/216/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/262/210/351/230/263_/346/241/203/344/273/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/262/263/346/261/240_/351/207/221/345/237/216/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/263/211/345/267/236_/346/231/213/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/264/233/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/216/345/215/227_/351/201/245/345/242/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/216/345/256/201_/346/233/262/351/230/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/267/345/217/243_/347/276/216/345/205/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/267/350/245/277_/345/276/267/344/273/244/345/223/210/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/267/350/245/277_/350/212/261/345/234/237/346/262/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/267/256/345/256/211_/346/266/237/346/260/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/267/261/345/234/263_/345/256/235/345/256/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/270/251/345/267/236_/351/276/231/346/271/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/271/233/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/273/241/346/264/262/351/207/214_/350/245/277/351/203/212/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/274/240/346/262/263_/345/217/244/350/216/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/275/215/345/235/212/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/276/234/346/262/247_/346/231/257/350/277/210/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/203/237/345/217/260_/350/223/254/350/216/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/211/241/344/270/271/346/261/237_/346/265/267/346/265/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/216/211/346/240/221_/345/267/264/345/241/230/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/217/240/346/265/267_/351/207/221/346/271/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/220/274/346/265/267_/345/215/232/351/263/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/224/230/345/215/227_/345/244/217/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/231/275/345/237/216_/351/225/277/345/256/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/231/275/345/261/261_/351/225/277/347/231/275/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/231/276/350/211/262_/345/267/264/351/251/254/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/237/263/345/256/266/345/272/204_/346/255/243/345/256/232/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/237/263/346/262/263/345/255/220_/350/212/261/345/233/255/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/245/236/345/206/234/346/236/266_/347/272/242/345/235/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/246/217/345/267/236_/351/225/277/344/271/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/247/246/347/232/207/345/262/233_/345/214/227/346/210/264/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/250/273/345/237/216_/344/272/232/344/270/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/205/276/345/206/262_/351/251/274/345/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/220/245/345/217/243_/345/205/260/346/227/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/241/241/351/230/263_/345/215/227/345/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/241/242/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/204/351/230/263_/345/210/230/351/233/206/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/277/345/217/214/347/211/210/347/272/263_/345/230/216/346/264/222/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/277/345/256/201_/346/233/271/345/256/266/345/240/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/277/345/256/211_/345/222/270/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/277/346/230/214_/351/235/222/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/264/265/351/230/263_/351/276/231/346/264/236/345/240/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/265/243/345/267/236_/351/273/204/351/207/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/265/244/345/263/260_/347/216/211/351/276/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/276/276/345/267/236_/346/262/263/345/270/202/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/277/236/344/272/221/346/270/257_/347/231/275/345/241/224/345/237/240/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/200/232/345/214/226_/344/270/211/346/272/220/346/265/246/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/203/221/345/267/236_/346/226/260/351/203/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/204/202/345/260/224/345/244/232/346/226/257_/344/274/212/351/207/221/351/234/215/346/264/233/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/207/215/345/272/206_/346/261/237/345/214/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/207/221/346/230/214_/351/207/221/345/267/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/223/234/344/273/201_/345/207/244/345/207/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/223/266/345/267/235_/346/262/263/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/224/241/346/236/227/346/265/251/347/211/271/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/224/246/345/267/236_/351/224/246/345/267/236/346/271/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/225/277/346/230/245_/351/276/231/345/230/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/225/277/346/262/231_/351/273/204/350/212/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/230/277/345/205/213/350/213/217_/346/270/251/345/256/277/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/230/277/345/213/222/346/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/230/277/345/260/224/345/261/261_/344/274/212/345/260/224/346/226/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/235/222/345/262/233_/346/265/201/344/272/255/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/236/215/345/261/261_/350/205/276/351/263/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/270/241/350/245/277_/345/205/264/345/207/257/346/271/226/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/273/204/345/261/261_/345/261/257/346/272/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/273/216/345/271/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/273/221/346/262/263_/347/221/267/347/217/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/273/224/346/261/237_/346/255/246/351/231/265/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/275/220/351/275/220/345/223/210/345/260/224_/344/270/211/345/256/266/345/255/220/346/234/272/345/234/272.geojson" +0 -0
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { Viewer, Entity, Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
-
import * as Cesium from "cesium";
|
|
3
|
-
/**
|
|
4
|
-
* 绘制结果接口
|
|
5
|
-
*/
|
|
6
|
-
export interface DrawResult {
|
|
7
|
-
entity: Entity | null;
|
|
8
|
-
type: "line" | "polygon" | "rectangle" | "circle";
|
|
9
|
-
positions: Cartesian3[];
|
|
10
|
-
distance?: number;
|
|
11
|
-
areaKm2?: number;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 绘制回调接口
|
|
15
|
-
*/
|
|
16
|
-
export interface DrawCallbacks {
|
|
17
|
-
onDrawStart?: () => void;
|
|
18
|
-
onDrawEnd?: (entity: Entity | null, result: DrawResult) => void;
|
|
19
|
-
onEntityRemoved?: (entity: Entity) => void;
|
|
20
|
-
onMeasureComplete?: (result: DrawResult) => void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 扩展后的绘制实体类型
|
|
24
|
-
* 用于在 Entity 上挂载绘图相关的元数据
|
|
25
|
-
*/
|
|
26
|
-
export type DrawEntity = Entity & {
|
|
27
|
-
_drawType?: "line" | "polygon" | "rectangle" | "circle";
|
|
28
|
-
_drawOptions?: DrawOptions;
|
|
29
|
-
_groundPositions?: Cartesian3[];
|
|
30
|
-
_groundPosition?: Cartesian3;
|
|
31
|
-
_groundRectangle?: Cesium.Rectangle;
|
|
32
|
-
_radius?: number;
|
|
33
|
-
_borderEntity?: Entity;
|
|
34
|
-
/** 关联的测量/提示标签实体(例如面积标签) */
|
|
35
|
-
_labelEntities?: Entity[];
|
|
36
|
-
_onClick?: (entity: Entity, ...args: any[]) => void;
|
|
37
|
-
_isSelected?: boolean;
|
|
38
|
-
_originalStyle?: {
|
|
39
|
-
material?: any;
|
|
40
|
-
width?: any;
|
|
41
|
-
outlineColor?: any;
|
|
42
|
-
outlineWidth?: any;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* 绘制时可选的样式和事件回调
|
|
47
|
-
*/
|
|
48
|
-
export interface DrawOptions {
|
|
49
|
-
strokeColor?: Cesium.Color | string;
|
|
50
|
-
strokeWidth?: number;
|
|
51
|
-
fillColor?: Cesium.Color | string;
|
|
52
|
-
outlineColor?: Cesium.Color | string;
|
|
53
|
-
outlineWidth?: number;
|
|
54
|
-
selected?: {
|
|
55
|
-
color?: Cesium.Color | string;
|
|
56
|
-
width?: number;
|
|
57
|
-
outlineColor?: Cesium.Color | string;
|
|
58
|
-
outlineWidth?: number;
|
|
59
|
-
};
|
|
60
|
-
/** 是否显示面积标签(多边形/矩形)。默认 true */
|
|
61
|
-
showAreaLabel?: boolean;
|
|
62
|
-
/** 是否显示长度标签(线条)。默认 true */
|
|
63
|
-
showDistanceLabel?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* 是否启用多边形自相交校验。
|
|
66
|
-
* - false/未设置:默认允许交叉(不做校验)
|
|
67
|
-
* - true:启用自相交校验(结合 selfIntersectionAllowTouch/AllowContinue 控制行为)
|
|
68
|
-
*/
|
|
69
|
-
selfIntersectionEnabled?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* 多边形自相交校验:是否允许“擦边/顶点落在旧边上”等仅接触(touch)情况。
|
|
72
|
-
* - false/未设置:touch 也视为不合法
|
|
73
|
-
* - true:允许 touch,但仍不允许重叠(overlap)与真正穿越(cross)
|
|
74
|
-
*/
|
|
75
|
-
selfIntersectionAllowTouch?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* 多边形自相交校验:当即将产生自相交时,是否仍允许继续绘制/完成绘制。
|
|
78
|
-
* - false/未设置:检测到自相交则阻止落点/阻止完成
|
|
79
|
-
* - true:检测到自相交不拦截(由业务自行承担后续面积/中心等偏差风险)
|
|
80
|
-
*/
|
|
81
|
-
selfIntersectionAllowContinue?: boolean;
|
|
82
|
-
onClick?: (entity: Entity, type?: "line" | "polygon" | "rectangle" | "circle", positions?: Cartesian3[]) => void;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* 基础绘制类
|
|
86
|
-
* 包含所有绘制类型的通用逻辑
|
|
87
|
-
*/
|
|
88
|
-
export declare abstract class BaseDraw {
|
|
89
|
-
protected viewer: Viewer;
|
|
90
|
-
protected scene: Cesium.Scene;
|
|
91
|
-
protected entities: Cesium.EntityCollection;
|
|
92
|
-
protected offsetHeight: number;
|
|
93
|
-
protected originalDepthTestAgainstTerrain: boolean | null;
|
|
94
|
-
/**
|
|
95
|
-
* 当场景启用了 requestRenderMode(手动渲染)时,绘制过程中需要关闭该模式以保证动画和交互正常。
|
|
96
|
-
* 在绘制结束或取消时应恢复为原始值。
|
|
97
|
-
*/
|
|
98
|
-
protected originalRequestRenderMode: boolean | null;
|
|
99
|
-
protected callbacks: DrawCallbacks;
|
|
100
|
-
protected tempPositions: Cesium.Cartesian3[];
|
|
101
|
-
protected tempEntities: Cesium.Entity[];
|
|
102
|
-
protected tempLabelEntities: Cesium.Entity[];
|
|
103
|
-
protected finishedPointEntities: Cesium.Entity[];
|
|
104
|
-
/** 当前绘制的选项(如果有) */
|
|
105
|
-
protected drawOptions?: DrawOptions;
|
|
106
|
-
/**
|
|
107
|
-
* 公开只读访问当前临时数据,供调度器使用
|
|
108
|
-
*/
|
|
109
|
-
getTempPositions(): Cartesian3[];
|
|
110
|
-
getTempEntities(): Entity[];
|
|
111
|
-
getTempLabelEntities(): Entity[];
|
|
112
|
-
getFinishedPointEntities(): Entity[];
|
|
113
|
-
/**
|
|
114
|
-
* 允许调度器安全地重建临时数据
|
|
115
|
-
*/
|
|
116
|
-
setTempPositions(positions: Cartesian3[]): void;
|
|
117
|
-
setTempEntities(entities: Entity[]): void;
|
|
118
|
-
setTempLabelEntities(entities: Entity[]): void;
|
|
119
|
-
/**
|
|
120
|
-
* 供调度器调用的公开包装方法
|
|
121
|
-
*/
|
|
122
|
-
addPointForHelper(position: Cartesian3): void;
|
|
123
|
-
clearTempEntitiesForHelper(): void;
|
|
124
|
-
/**
|
|
125
|
-
* 清除当前绘制过程中的临时点实体
|
|
126
|
-
* 仅删除带有 point 组件的临时实体,保留其它临时线/面实体
|
|
127
|
-
*/
|
|
128
|
-
clearTempPointEntitiesForHelper(): void;
|
|
129
|
-
/**
|
|
130
|
-
* 删除最后一个点并根据剩余点重建预览实体
|
|
131
|
-
* 供调度器在右键删除点时调用,具体重建逻辑仍由各子类的 updateDrawingEntity 实现
|
|
132
|
-
*/
|
|
133
|
-
removeLastPointAndRedraw(): void;
|
|
134
|
-
/**
|
|
135
|
-
* 将任意颜色输入解析为 Cesium.Color
|
|
136
|
-
*/
|
|
137
|
-
protected resolveColor(input?: Cesium.Color | string): Cesium.Color;
|
|
138
|
-
/**
|
|
139
|
-
* 应用/切换选中样式(统一逻辑,供调度器和子类共用)
|
|
140
|
-
*/
|
|
141
|
-
protected applySelectedStyleToEntity(entity: Entity): void;
|
|
142
|
-
/**
|
|
143
|
-
* 恢复原始样式(兼容旧接口,内部仍走统一逻辑)
|
|
144
|
-
*/
|
|
145
|
-
protected restoreOriginalStyleForEntity(entity: Entity): void;
|
|
146
|
-
abstract updateDrawingEntity(previewPoint?: Cesium.Cartesian3): void;
|
|
147
|
-
abstract startDrawing(options?: DrawOptions): void;
|
|
148
|
-
/**
|
|
149
|
-
* 抽象方法:完成绘制
|
|
150
|
-
*/
|
|
151
|
-
abstract finishDrawing(): DrawResult | null;
|
|
152
|
-
/**
|
|
153
|
-
* 抽象方法:获取绘制类型
|
|
154
|
-
*/
|
|
155
|
-
abstract getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
156
|
-
constructor(viewer: Viewer, callbacks?: DrawCallbacks);
|
|
157
|
-
/**
|
|
158
|
-
* 根据场景模式更新偏移高度
|
|
159
|
-
*/
|
|
160
|
-
protected updateOffsetHeight(): void;
|
|
161
|
-
/**
|
|
162
|
-
* 拾取地形或椭球体上的位置
|
|
163
|
-
*/
|
|
164
|
-
protected pickGlobePosition(windowPosition: Cesium.Cartesian2): Cesium.Cartesian3 | null;
|
|
165
|
-
/**
|
|
166
|
-
* 如果场景启用了 requestRenderMode(手动渲染),在开始绘制时临时关闭以保证动画/交互正常。
|
|
167
|
-
*/
|
|
168
|
-
protected enableContinuousRenderingIfNeeded(): void;
|
|
169
|
-
/**
|
|
170
|
-
* 在绘制完成或取消时恢复 requestRenderMode 到原始状态(如果曾被修改过)。
|
|
171
|
-
*/
|
|
172
|
-
protected restoreRequestRenderModeIfNeeded(): void;
|
|
173
|
-
/**
|
|
174
|
-
* 添加一个点到临时位置数组并创建点实体
|
|
175
|
-
*/
|
|
176
|
-
protected addPoint(position: Cesium.Cartesian3): void;
|
|
177
|
-
/**
|
|
178
|
-
* 创建总长/面积标签图片
|
|
179
|
-
*/
|
|
180
|
-
protected createTotalLengthBillboardImage(text: string): HTMLCanvasElement;
|
|
181
|
-
/**
|
|
182
|
-
* 创建分段长度标签图片
|
|
183
|
-
*/
|
|
184
|
-
protected createSegmentLengthBillboardImage(text: string): HTMLCanvasElement;
|
|
185
|
-
/**
|
|
186
|
-
* 清理临时实体
|
|
187
|
-
*/
|
|
188
|
-
protected clearTempEntities(): void;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* 静态工具方法:切换实体的选中样式
|
|
192
|
-
* 用于避免在多个模块中重复实现相同逻辑
|
|
193
|
-
*/
|
|
194
|
-
export declare function toggleSelectedStyle(entity: DrawEntity): void;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
-
import { BaseDraw, DrawResult, DrawOptions } from './BaseDraw';
|
|
3
|
-
/**
|
|
4
|
-
* 画圆绘制类
|
|
5
|
-
*/
|
|
6
|
-
export declare class DrawCircle extends BaseDraw {
|
|
7
|
-
private currentCircleEntity;
|
|
8
|
-
private currentBorderEntity;
|
|
9
|
-
private centerPosition;
|
|
10
|
-
/**
|
|
11
|
-
* 开始绘制
|
|
12
|
-
*/
|
|
13
|
-
startDrawing(options?: DrawOptions): void;
|
|
14
|
-
addPoint(position: Cartesian3): void;
|
|
15
|
-
/**
|
|
16
|
-
* 更新绘制实体(预览)
|
|
17
|
-
*/
|
|
18
|
-
updateDrawingEntity(previewPoint?: Cartesian3): void;
|
|
19
|
-
/**
|
|
20
|
-
* 完成绘制
|
|
21
|
-
*/
|
|
22
|
-
finishDrawing(): DrawResult | null;
|
|
23
|
-
/**
|
|
24
|
-
* 获取绘制类型
|
|
25
|
-
*/
|
|
26
|
-
getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
27
|
-
/**
|
|
28
|
-
* 生成近似圆(多边形)顶点
|
|
29
|
-
*/
|
|
30
|
-
private generateCirclePositions;
|
|
31
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as Cesium from "cesium";
|
|
2
|
-
type DrawMode = "line" | "polygon" | "rectangle" | "circle" | null;
|
|
3
|
-
type DrawHintState = {
|
|
4
|
-
isDrawing: boolean;
|
|
5
|
-
drawMode: DrawMode;
|
|
6
|
-
tempPositions: Cesium.Cartesian3[];
|
|
7
|
-
offsetHeight: number;
|
|
8
|
-
};
|
|
9
|
-
export declare class DrawHintHelper {
|
|
10
|
-
private entities;
|
|
11
|
-
private getState;
|
|
12
|
-
private translate;
|
|
13
|
-
private drawHintEntity;
|
|
14
|
-
private drawHintText;
|
|
15
|
-
private drawHintLastPosition;
|
|
16
|
-
private drawHintOverrideText;
|
|
17
|
-
private drawHintOverrideUntil;
|
|
18
|
-
constructor(entities: Cesium.EntityCollection, getState: () => DrawHintState, translate: (key: string, params?: Record<string, any>) => string);
|
|
19
|
-
handleSceneModeChanged(): void;
|
|
20
|
-
setOverride(options: Cesium.LabelGraphics | Cesium.LabelGraphics.ConstructorOptions, ms?: number): void;
|
|
21
|
-
updatePosition(position: Cesium.Cartesian3): void;
|
|
22
|
-
refreshTextOnly(): void;
|
|
23
|
-
clear(): void;
|
|
24
|
-
/**
|
|
25
|
-
* 获取绘图提示文本的公共方法
|
|
26
|
-
* 根据当前的绘图状态和模式返回相应的提示信息
|
|
27
|
-
* @returns {string} 返回对应的提示文本,如果不在绘图状态则返回空字符串
|
|
28
|
-
*/
|
|
29
|
-
getDrawHintText(): string;
|
|
30
|
-
private toHintDisplayPosition;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
-
import { BaseDraw, DrawResult, DrawOptions } from './BaseDraw';
|
|
3
|
-
/**
|
|
4
|
-
* 画线绘制类
|
|
5
|
-
*/
|
|
6
|
-
export declare class DrawLine extends BaseDraw {
|
|
7
|
-
private currentLineEntity;
|
|
8
|
-
private currentSegmentLabels;
|
|
9
|
-
private currentTotalLabel;
|
|
10
|
-
private currentLinePositions;
|
|
11
|
-
private isTotalLabelWarmedUp;
|
|
12
|
-
private readonly avoidGroundPipeline;
|
|
13
|
-
/**
|
|
14
|
-
* 清理当前线段/总距离标签(不影响线实体本身)
|
|
15
|
-
*/
|
|
16
|
-
private clearDistanceLabels;
|
|
17
|
-
/**
|
|
18
|
-
* 开始绘制
|
|
19
|
-
*/
|
|
20
|
-
startDrawing(options?: DrawOptions): void;
|
|
21
|
-
/**
|
|
22
|
-
* 更新绘制实体(预览)
|
|
23
|
-
*/
|
|
24
|
-
updateDrawingEntity(previewPoint?: Cartesian3): void;
|
|
25
|
-
/**
|
|
26
|
-
* 完成绘制
|
|
27
|
-
*/
|
|
28
|
-
finishDrawing(): DrawResult | null;
|
|
29
|
-
/**
|
|
30
|
-
* 获取绘制类型
|
|
31
|
-
*/
|
|
32
|
-
getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
33
|
-
/**
|
|
34
|
-
* 清理线条实体
|
|
35
|
-
*/
|
|
36
|
-
private clearLineEntity;
|
|
37
|
-
/**
|
|
38
|
-
* 更新分段标签
|
|
39
|
-
*/
|
|
40
|
-
private updateSegmentLabels;
|
|
41
|
-
/**
|
|
42
|
-
* 更新总距离标签
|
|
43
|
-
*/
|
|
44
|
-
private updateTotalLabel;
|
|
45
|
-
/**
|
|
46
|
-
* 总长标签预热
|
|
47
|
-
*/
|
|
48
|
-
private warmupTotalLengthLabel;
|
|
49
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
-
import { BaseDraw, DrawResult, DrawOptions } from './BaseDraw';
|
|
3
|
-
/**
|
|
4
|
-
* 画多边形绘制类
|
|
5
|
-
*/
|
|
6
|
-
export declare class DrawPolygon extends BaseDraw {
|
|
7
|
-
private currentPolygonEntity;
|
|
8
|
-
private currentBorderEntity;
|
|
9
|
-
/**
|
|
10
|
-
* 结束绘制但未生成最终结果(例如点数不足/自相交被拦截)时的统一清理。
|
|
11
|
-
* 目标:不留下临时实体/状态副作用(尤其是 depthTestAgainstTerrain)。
|
|
12
|
-
*/
|
|
13
|
-
private abortFinishCleanup;
|
|
14
|
-
/**
|
|
15
|
-
* 开始绘制
|
|
16
|
-
*/
|
|
17
|
-
startDrawing(options?: DrawOptions): void;
|
|
18
|
-
/**
|
|
19
|
-
* 更新绘制实体(预览)
|
|
20
|
-
*/
|
|
21
|
-
updateDrawingEntity(previewPoint?: Cartesian3): void;
|
|
22
|
-
/**
|
|
23
|
-
* 完成绘制
|
|
24
|
-
*/
|
|
25
|
-
finishDrawing(): DrawResult | null;
|
|
26
|
-
/**
|
|
27
|
-
* 清理所有绘制相关的实体
|
|
28
|
-
*/
|
|
29
|
-
clear(): void;
|
|
30
|
-
/**
|
|
31
|
-
* 获取绘制类型
|
|
32
|
-
*/
|
|
33
|
-
getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
34
|
-
addPoint(position: Cartesian3): void;
|
|
35
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
-
import { BaseDraw, DrawResult, DrawOptions } from './BaseDraw';
|
|
3
|
-
/**
|
|
4
|
-
* 画矩形绘制类
|
|
5
|
-
*/
|
|
6
|
-
export declare class DrawRectangle extends BaseDraw {
|
|
7
|
-
private currentRectangleEntity;
|
|
8
|
-
/**
|
|
9
|
-
* 开始绘制
|
|
10
|
-
*/
|
|
11
|
-
startDrawing(options?: DrawOptions): void;
|
|
12
|
-
/**
|
|
13
|
-
* 更新绘制实体(预览)
|
|
14
|
-
*/
|
|
15
|
-
updateDrawingEntity(previewPoint?: Cartesian3): void;
|
|
16
|
-
/**
|
|
17
|
-
* 完成绘制
|
|
18
|
-
*/
|
|
19
|
-
finishDrawing(): DrawResult | null;
|
|
20
|
-
/**
|
|
21
|
-
* 获取绘制类型
|
|
22
|
-
*/
|
|
23
|
-
getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
24
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { BaseDraw, type DrawResult, type DrawCallbacks, type DrawOptions, type DrawEntity, toggleSelectedStyle } from './BaseDraw';
|
|
2
|
-
export { DrawLine } from './DrawLine';
|
|
3
|
-
export { DrawPolygon } from './DrawPolgon';
|
|
4
|
-
export { DrawRectangle } from './DrawRectangle';
|
|
5
|
-
export { DrawCircle } from './DrawCircle';
|
|
6
|
-
export { DrawHintHelper } from './DrawHint';
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
declare const enUS: {
|
|
2
|
-
locale: string;
|
|
3
|
-
toolbar: {
|
|
4
|
-
search: string;
|
|
5
|
-
measure: string;
|
|
6
|
-
view2d3d: string;
|
|
7
|
-
layers: string;
|
|
8
|
-
location: string;
|
|
9
|
-
zoom_in: string;
|
|
10
|
-
zoom_out: string;
|
|
11
|
-
fullscreen: string;
|
|
12
|
-
};
|
|
13
|
-
measurement: {
|
|
14
|
-
start: string;
|
|
15
|
-
distance_done: string;
|
|
16
|
-
area_done: string;
|
|
17
|
-
cleared: string;
|
|
18
|
-
menu: {
|
|
19
|
-
area: string;
|
|
20
|
-
distance: string;
|
|
21
|
-
clear: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
search: {
|
|
25
|
-
placeholder: string;
|
|
26
|
-
failed: string;
|
|
27
|
-
no_results: string;
|
|
28
|
-
};
|
|
29
|
-
layers: {
|
|
30
|
-
title: string;
|
|
31
|
-
overlay_title: string;
|
|
32
|
-
overlay: {
|
|
33
|
-
airport: string;
|
|
34
|
-
};
|
|
35
|
-
map_type: {
|
|
36
|
-
place_name: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
map_type: {
|
|
40
|
-
normal: string;
|
|
41
|
-
"3d": string;
|
|
42
|
-
imagery: string;
|
|
43
|
-
terrain: string;
|
|
44
|
-
};
|
|
45
|
-
no_fly: {
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
draw: {
|
|
49
|
-
hint: {
|
|
50
|
-
circle_start: string;
|
|
51
|
-
circle_radius: string;
|
|
52
|
-
rectangle_start: string;
|
|
53
|
-
rectangle_end: string;
|
|
54
|
-
finish_or_undo: string;
|
|
55
|
-
polygon_start: string;
|
|
56
|
-
polygon_add: string;
|
|
57
|
-
polygon_continue: string;
|
|
58
|
-
line_start: string;
|
|
59
|
-
line_add: string;
|
|
60
|
-
line_continue: string;
|
|
61
|
-
polygon_no_intersection: string;
|
|
62
|
-
};
|
|
63
|
-
label: {
|
|
64
|
-
total_length: string;
|
|
65
|
-
area: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export default enUS;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type Locale = "zh-CN" | "en-US" | (string & {});
|
|
2
|
-
type I18nDict = Record<string, any>;
|
|
3
|
-
interface I18nLike {
|
|
4
|
-
getLocale(): Locale;
|
|
5
|
-
setLocale(locale: Locale, options?: {
|
|
6
|
-
persist?: boolean;
|
|
7
|
-
}): void;
|
|
8
|
-
t(key: string, params?: Record<string, any>, localeOverride?: Locale): string;
|
|
9
|
-
onLocaleChange(cb: (locale: Locale) => void): () => void;
|
|
10
|
-
bindElement(el: HTMLElement, key: string, attr?: "text" | "title" | "placeholder", params?: Record<string, any>): void;
|
|
11
|
-
updateElement(el: HTMLElement): void;
|
|
12
|
-
updateTree(root: HTMLElement): void;
|
|
13
|
-
addMessages?(locale: Locale, dict: I18nDict, options?: {
|
|
14
|
-
merge?: boolean;
|
|
15
|
-
}): void;
|
|
16
|
-
setFallbackLocale?(locale: Locale): void;
|
|
17
|
-
configure?(options: {
|
|
18
|
-
persist?: boolean;
|
|
19
|
-
useStoredLocale?: boolean;
|
|
20
|
-
fallbackLocale?: Locale;
|
|
21
|
-
locale?: Locale;
|
|
22
|
-
}): void;
|
|
23
|
-
}
|
|
24
|
-
export declare const i18n: I18nLike;
|
|
25
|
-
export type { Locale, I18nLike };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
declare const zhCN: {
|
|
2
|
-
locale: string;
|
|
3
|
-
toolbar: {
|
|
4
|
-
search: string;
|
|
5
|
-
measure: string;
|
|
6
|
-
view2d3d: string;
|
|
7
|
-
layers: string;
|
|
8
|
-
location: string;
|
|
9
|
-
zoom_in: string;
|
|
10
|
-
zoom_out: string;
|
|
11
|
-
fullscreen: string;
|
|
12
|
-
};
|
|
13
|
-
measurement: {
|
|
14
|
-
start: string;
|
|
15
|
-
distance_done: string;
|
|
16
|
-
area_done: string;
|
|
17
|
-
cleared: string;
|
|
18
|
-
menu: {
|
|
19
|
-
area: string;
|
|
20
|
-
distance: string;
|
|
21
|
-
clear: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
search: {
|
|
25
|
-
placeholder: string;
|
|
26
|
-
failed: string;
|
|
27
|
-
no_results: string;
|
|
28
|
-
};
|
|
29
|
-
layers: {
|
|
30
|
-
title: string;
|
|
31
|
-
overlay_title: string;
|
|
32
|
-
overlay: {
|
|
33
|
-
airport: string;
|
|
34
|
-
};
|
|
35
|
-
map_type: {
|
|
36
|
-
place_name: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
map_type: {
|
|
40
|
-
normal: string;
|
|
41
|
-
"3d": string;
|
|
42
|
-
imagery: string;
|
|
43
|
-
terrain: string;
|
|
44
|
-
};
|
|
45
|
-
no_fly: {
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
draw: {
|
|
49
|
-
hint: {
|
|
50
|
-
circle_start: string;
|
|
51
|
-
circle_radius: string;
|
|
52
|
-
rectangle_start: string;
|
|
53
|
-
rectangle_end: string;
|
|
54
|
-
finish_or_undo: string;
|
|
55
|
-
polygon_start: string;
|
|
56
|
-
polygon_add: string;
|
|
57
|
-
polygon_continue: string;
|
|
58
|
-
line_start: string;
|
|
59
|
-
line_add: string;
|
|
60
|
-
line_continue: string;
|
|
61
|
-
polygon_no_intersection: string;
|
|
62
|
-
};
|
|
63
|
-
label: {
|
|
64
|
-
total_length: string;
|
|
65
|
-
area: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export default zhCN;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { Viewer, Entity, Color, HeightReference } from '../../../node_modules/cesium';
|
|
2
|
-
import { OverlayPosition, OverlayEntity } from './types';
|
|
3
|
-
import * as Cesium from "cesium";
|
|
4
|
-
/**
|
|
5
|
-
* Circle 选项
|
|
6
|
-
*/
|
|
7
|
-
export interface CircleOptions {
|
|
8
|
-
position: OverlayPosition;
|
|
9
|
-
radius: number;
|
|
10
|
-
/**
|
|
11
|
-
* 渲染模式:
|
|
12
|
-
* - auto:自动选择(默认;当前实现等同于 entity)
|
|
13
|
-
* - entity:使用 Cesium Entity
|
|
14
|
-
* - primitive:使用 Cesium Primitive(为大批量静态覆盖物预留)
|
|
15
|
-
*/
|
|
16
|
-
renderMode?: 'auto' | 'entity' | 'primitive';
|
|
17
|
-
material?: Cesium.MaterialProperty | Color | string;
|
|
18
|
-
outline?: boolean;
|
|
19
|
-
outlineColor?: Color | string;
|
|
20
|
-
outlineWidth?: number;
|
|
21
|
-
/**
|
|
22
|
-
* 粗边框(outlineWidth>1)模式下用于近似圆的分段数,越大越圆滑但更耗性能。
|
|
23
|
-
* 默认 256。
|
|
24
|
-
*/
|
|
25
|
-
segments?: number;
|
|
26
|
-
/**
|
|
27
|
-
* 是否贴地(默认:在粗边框模式下为 true)。
|
|
28
|
-
* - true:填充与边框都贴地。
|
|
29
|
-
* - false:填充与边框都使用 position 高度悬空。
|
|
30
|
-
*/
|
|
31
|
-
clampToGround?: boolean;
|
|
32
|
-
/** 贴地抬高量(米,clampToGround=true 时生效) */
|
|
33
|
-
groundHeightEpsilon?: number;
|
|
34
|
-
heightReference?: HeightReference;
|
|
35
|
-
extrudedHeight?: number;
|
|
36
|
-
heightEpsilon?: number;
|
|
37
|
-
/** 点击该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
38
|
-
clickHighlight?: boolean | {
|
|
39
|
-
color?: Color | string;
|
|
40
|
-
fillAlpha?: number;
|
|
41
|
-
};
|
|
42
|
-
/** 鼠标移入该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
43
|
-
hoverHighlight?: boolean | {
|
|
44
|
-
color?: Color | string;
|
|
45
|
-
fillAlpha?: number;
|
|
46
|
-
};
|
|
47
|
-
onClick?: (entity: Entity) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Primitive 模式分层渲染 key。
|
|
50
|
-
* - 相同 layerKey 的 circle 会被合并到同一个批次中(更高性能)
|
|
51
|
-
* - 不同 layerKey 会进入不同的“图层空间”,并按首次出现顺序确定上下层
|
|
52
|
-
* - 只对 primitive 生效;entity 模式忽略
|
|
53
|
-
*/
|
|
54
|
-
layerKey?: string;
|
|
55
|
-
id?: string;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Circle 工具类
|
|
59
|
-
*/
|
|
60
|
-
export declare class MapCircle {
|
|
61
|
-
private viewer;
|
|
62
|
-
private entities;
|
|
63
|
-
private primitiveBatch;
|
|
64
|
-
private primitiveLayerStack;
|
|
65
|
-
private primitiveBatchesByLayer;
|
|
66
|
-
private static bearingTableCache;
|
|
67
|
-
constructor(viewer: Viewer);
|
|
68
|
-
private getPrimitiveBatch;
|
|
69
|
-
private getLayeredPrimitiveBatch;
|
|
70
|
-
private getPrimitiveBatchForOverlay;
|
|
71
|
-
private resolveMaterialColor;
|
|
72
|
-
private canUsePrimitive;
|
|
73
|
-
/**
|
|
74
|
-
* 添加一个基础的圆形图元
|
|
75
|
-
* @param options 圆形配置选项
|
|
76
|
-
* @returns 返回创建的实体对象
|
|
77
|
-
*/
|
|
78
|
-
private addPrimitiveCircle;
|
|
79
|
-
/**
|
|
80
|
-
* 转换位置为 Cartesian3
|
|
81
|
-
*/
|
|
82
|
-
private convertPosition;
|
|
83
|
-
/**
|
|
84
|
-
* 转换颜色
|
|
85
|
-
*/
|
|
86
|
-
private resolveColor;
|
|
87
|
-
/**
|
|
88
|
-
* 解析材质
|
|
89
|
-
*/
|
|
90
|
-
private resolveMaterial;
|
|
91
|
-
/**
|
|
92
|
-
* 添加 Circle(圆形)
|
|
93
|
-
*/
|
|
94
|
-
add(options: CircleOptions): Entity;
|
|
95
|
-
/**
|
|
96
|
-
* 生成近似圆(多边形)顶点,返回 Cartesian3 数组。
|
|
97
|
-
* 使用大圆航线公式,segments 越大越平滑。
|
|
98
|
-
*/
|
|
99
|
-
private generateCirclePositions;
|
|
100
|
-
/**
|
|
101
|
-
* 获取方位角查找表,用于存储正弦和余弦值
|
|
102
|
-
* @param segments 分段数量,用于确定查找表的精度
|
|
103
|
-
* @returns 返回一个包含正弦和余弦数组的对象
|
|
104
|
-
*/
|
|
105
|
-
private getBearingTable;
|
|
106
|
-
/**
|
|
107
|
-
* 粗边框模式的默认分段数:平衡“圆滑程度/性能”。
|
|
108
|
-
* 用户如果传了 options.segments,则完全尊重用户设置。
|
|
109
|
-
*/
|
|
110
|
-
private getDefaultSegmentsForRadius;
|
|
111
|
-
/**
|
|
112
|
-
* 更新 Circle 位置
|
|
113
|
-
*/
|
|
114
|
-
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
115
|
-
/**
|
|
116
|
-
* 更新 Circle 半径
|
|
117
|
-
*/
|
|
118
|
-
updateRadius(entity: Entity, radius: number): void;
|
|
119
|
-
/**
|
|
120
|
-
* 更新 Circle 样式
|
|
121
|
-
*/
|
|
122
|
-
updateStyle(entity: Entity, options: Partial<Pick<CircleOptions, 'material' | 'outline' | 'outlineColor' | 'outlineWidth'>>): void;
|
|
123
|
-
/**
|
|
124
|
-
* 移除 Circle(通过实体或实体 id)
|
|
125
|
-
*/
|
|
126
|
-
remove(entityOrId: Entity | string): boolean;
|
|
127
|
-
setPrimitiveVisible(entity: Entity, visible: boolean): void;
|
|
128
|
-
applyPrimitiveHighlight(entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number): void;
|
|
129
|
-
restorePrimitiveHighlight(entity: OverlayEntity): void;
|
|
130
|
-
}
|