@sl-utils/cesium 1.0.0 → 1.0.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/LICENSE copy +201 -0
- package/README.md +5 -0
- package/demo/App.vue +26 -0
- package/demo/main.ts +5 -0
- package/demo/style.css +3 -0
- package/index.cjs +12 -0
- package/index.html +13 -0
- package/package.json +31 -3
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/public/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/public/Assets/Images/bing_maps_credit.png +0 -0
- package/public/Assets/Images/cesium_credit.png +0 -0
- package/public/Assets/Images/google_earth_credit.png +0 -0
- package/public/Assets/Images/ion-credit.png +0 -0
- package/public/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/public/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/public/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/public/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/public/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/public/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/public/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/public/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/public/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/public/Assets/Textures/maki/airfield.png +0 -0
- package/public/Assets/Textures/maki/airport.png +0 -0
- package/public/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/public/Assets/Textures/maki/america-football.png +0 -0
- package/public/Assets/Textures/maki/art-gallery.png +0 -0
- package/public/Assets/Textures/maki/bakery.png +0 -0
- package/public/Assets/Textures/maki/bank.png +0 -0
- package/public/Assets/Textures/maki/bar.png +0 -0
- package/public/Assets/Textures/maki/baseball.png +0 -0
- package/public/Assets/Textures/maki/basketball.png +0 -0
- package/public/Assets/Textures/maki/beer.png +0 -0
- package/public/Assets/Textures/maki/bicycle.png +0 -0
- package/public/Assets/Textures/maki/building.png +0 -0
- package/public/Assets/Textures/maki/bus.png +0 -0
- package/public/Assets/Textures/maki/cafe.png +0 -0
- package/public/Assets/Textures/maki/camera.png +0 -0
- package/public/Assets/Textures/maki/campsite.png +0 -0
- package/public/Assets/Textures/maki/car.png +0 -0
- package/public/Assets/Textures/maki/cemetery.png +0 -0
- package/public/Assets/Textures/maki/cesium.png +0 -0
- package/public/Assets/Textures/maki/chemist.png +0 -0
- package/public/Assets/Textures/maki/cinema.png +0 -0
- package/public/Assets/Textures/maki/circle-stroked.png +0 -0
- package/public/Assets/Textures/maki/circle.png +0 -0
- package/public/Assets/Textures/maki/city.png +0 -0
- package/public/Assets/Textures/maki/clothing-store.png +0 -0
- package/public/Assets/Textures/maki/college.png +0 -0
- package/public/Assets/Textures/maki/commercial.png +0 -0
- package/public/Assets/Textures/maki/cricket.png +0 -0
- package/public/Assets/Textures/maki/cross.png +0 -0
- package/public/Assets/Textures/maki/dam.png +0 -0
- package/public/Assets/Textures/maki/danger.png +0 -0
- package/public/Assets/Textures/maki/disability.png +0 -0
- package/public/Assets/Textures/maki/dog-park.png +0 -0
- package/public/Assets/Textures/maki/embassy.png +0 -0
- package/public/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/public/Assets/Textures/maki/entrance.png +0 -0
- package/public/Assets/Textures/maki/farm.png +0 -0
- package/public/Assets/Textures/maki/fast-food.png +0 -0
- package/public/Assets/Textures/maki/ferry.png +0 -0
- package/public/Assets/Textures/maki/fire-station.png +0 -0
- package/public/Assets/Textures/maki/fuel.png +0 -0
- package/public/Assets/Textures/maki/garden.png +0 -0
- package/public/Assets/Textures/maki/gift.png +0 -0
- package/public/Assets/Textures/maki/golf.png +0 -0
- package/public/Assets/Textures/maki/grocery.png +0 -0
- package/public/Assets/Textures/maki/hairdresser.png +0 -0
- package/public/Assets/Textures/maki/harbor.png +0 -0
- package/public/Assets/Textures/maki/heart.png +0 -0
- package/public/Assets/Textures/maki/heliport.png +0 -0
- package/public/Assets/Textures/maki/hospital.png +0 -0
- package/public/Assets/Textures/maki/ice-cream.png +0 -0
- package/public/Assets/Textures/maki/industrial.png +0 -0
- package/public/Assets/Textures/maki/land-use.png +0 -0
- package/public/Assets/Textures/maki/laundry.png +0 -0
- package/public/Assets/Textures/maki/library.png +0 -0
- package/public/Assets/Textures/maki/lighthouse.png +0 -0
- package/public/Assets/Textures/maki/lodging.png +0 -0
- package/public/Assets/Textures/maki/logging.png +0 -0
- package/public/Assets/Textures/maki/london-underground.png +0 -0
- package/public/Assets/Textures/maki/marker-stroked.png +0 -0
- package/public/Assets/Textures/maki/marker.png +0 -0
- package/public/Assets/Textures/maki/minefield.png +0 -0
- package/public/Assets/Textures/maki/mobilephone.png +0 -0
- package/public/Assets/Textures/maki/monument.png +0 -0
- package/public/Assets/Textures/maki/museum.png +0 -0
- package/public/Assets/Textures/maki/music.png +0 -0
- package/public/Assets/Textures/maki/oil-well.png +0 -0
- package/public/Assets/Textures/maki/park.png +0 -0
- package/public/Assets/Textures/maki/park2.png +0 -0
- package/public/Assets/Textures/maki/parking-garage.png +0 -0
- package/public/Assets/Textures/maki/parking.png +0 -0
- package/public/Assets/Textures/maki/pharmacy.png +0 -0
- package/public/Assets/Textures/maki/pitch.png +0 -0
- package/public/Assets/Textures/maki/place-of-worship.png +0 -0
- package/public/Assets/Textures/maki/playground.png +0 -0
- package/public/Assets/Textures/maki/police.png +0 -0
- package/public/Assets/Textures/maki/polling-place.png +0 -0
- package/public/Assets/Textures/maki/post.png +0 -0
- package/public/Assets/Textures/maki/prison.png +0 -0
- package/public/Assets/Textures/maki/rail-above.png +0 -0
- package/public/Assets/Textures/maki/rail-light.png +0 -0
- package/public/Assets/Textures/maki/rail-metro.png +0 -0
- package/public/Assets/Textures/maki/rail-underground.png +0 -0
- package/public/Assets/Textures/maki/rail.png +0 -0
- package/public/Assets/Textures/maki/religious-christian.png +0 -0
- package/public/Assets/Textures/maki/religious-jewish.png +0 -0
- package/public/Assets/Textures/maki/religious-muslim.png +0 -0
- package/public/Assets/Textures/maki/restaurant.png +0 -0
- package/public/Assets/Textures/maki/roadblock.png +0 -0
- package/public/Assets/Textures/maki/rocket.png +0 -0
- package/public/Assets/Textures/maki/school.png +0 -0
- package/public/Assets/Textures/maki/scooter.png +0 -0
- package/public/Assets/Textures/maki/shop.png +0 -0
- package/public/Assets/Textures/maki/skiing.png +0 -0
- package/public/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/public/Assets/Textures/maki/soccer.png +0 -0
- package/public/Assets/Textures/maki/square-stroked.png +0 -0
- package/public/Assets/Textures/maki/square.png +0 -0
- package/public/Assets/Textures/maki/star-stroked.png +0 -0
- package/public/Assets/Textures/maki/star.png +0 -0
- package/public/Assets/Textures/maki/suitcase.png +0 -0
- package/public/Assets/Textures/maki/swimming.png +0 -0
- package/public/Assets/Textures/maki/telephone.png +0 -0
- package/public/Assets/Textures/maki/tennis.png +0 -0
- package/public/Assets/Textures/maki/theatre.png +0 -0
- package/public/Assets/Textures/maki/toilets.png +0 -0
- package/public/Assets/Textures/maki/town-hall.png +0 -0
- package/public/Assets/Textures/maki/town.png +0 -0
- package/public/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/public/Assets/Textures/maki/triangle.png +0 -0
- package/public/Assets/Textures/maki/village.png +0 -0
- package/public/Assets/Textures/maki/warehouse.png +0 -0
- package/public/Assets/Textures/maki/waste-basket.png +0 -0
- package/public/Assets/Textures/maki/water.png +0 -0
- package/public/Assets/Textures/maki/wetland.png +0 -0
- package/public/Assets/Textures/maki/zoo.png +0 -0
- package/public/Assets/Textures/moonSmall.jpg +0 -0
- package/public/Assets/Textures/pin.svg +1 -0
- package/public/Assets/Textures/waterNormals.jpg +0 -0
- package/public/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/public/Assets/approximateTerrainHeights.json +1 -0
- package/public/Cesium.js +16587 -0
- package/public/ThirdParty/Workers/package.json +1 -0
- package/public/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/public/ThirdParty/basis_transcoder.wasm +0 -0
- package/public/ThirdParty/draco_decoder.wasm +0 -0
- package/public/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/public/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/public/ThirdParty/zip-module.wasm +0 -0
- package/public/Widgets/Animation/Animation.css +127 -0
- package/public/Widgets/Animation/lighter.css +70 -0
- package/public/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
- package/public/Widgets/BaseLayerPicker/lighter.css +22 -0
- package/public/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
- package/public/Widgets/CesiumInspector/CesiumInspector.css +113 -0
- package/public/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/public/Widgets/CesiumWidget/lighter.css +14 -0
- package/public/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/public/Widgets/Geocoder/Geocoder.css +70 -0
- package/public/Widgets/Geocoder/lighter.css +17 -0
- package/public/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/public/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/public/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/public/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/public/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
- package/public/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
- package/public/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/public/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/public/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/public/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/public/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/public/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/public/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/public/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/public/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/public/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/public/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/public/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/public/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/public/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/public/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/public/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/public/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/public/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/public/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/public/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/public/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/public/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/public/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/public/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/public/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/public/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/public/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/public/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/public/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/public/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/public/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/public/Widgets/Images/TimelineIcons.png +0 -0
- package/public/Widgets/Images/info-loading.gif +0 -0
- package/public/Widgets/InfoBox/InfoBox.css +92 -0
- package/public/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/public/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
- package/public/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/public/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/public/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
- package/public/Widgets/SceneModePicker/SceneModePicker.css +56 -0
- package/public/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
- package/public/Widgets/Timeline/Timeline.css +103 -0
- package/public/Widgets/Timeline/lighter.css +23 -0
- package/public/Widgets/VRButton/VRButton.css +8 -0
- package/public/Widgets/Viewer/Viewer.css +107 -0
- package/public/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/public/Widgets/lighter.css +237 -0
- package/public/Widgets/lighterShared.css +46 -0
- package/public/Widgets/shared.css +103 -0
- package/public/Widgets/widgets.css +1342 -0
- package/public/Workers/chunk-3DKU5AMY.js +26 -0
- package/public/Workers/chunk-3MO6V622.js +26 -0
- package/public/Workers/chunk-3ULTL2FZ.js +26 -0
- package/public/Workers/chunk-43YDDN2L.js +26 -0
- package/public/Workers/chunk-453UE67U.js +26 -0
- package/public/Workers/chunk-5JJC62LP.js +26 -0
- package/public/Workers/chunk-65WPDQMK.js +26 -0
- package/public/Workers/chunk-6J7K26F7.js +26 -0
- package/public/Workers/chunk-A3G5ORRJ.js +26 -0
- package/public/Workers/chunk-AIXDAWPZ.js +26 -0
- package/public/Workers/chunk-ANKVUFZB.js +26 -0
- package/public/Workers/chunk-AZ67KQQB.js +26 -0
- package/public/Workers/chunk-C5F5JZAC.js +26 -0
- package/public/Workers/chunk-CK62LO4L.js +26 -0
- package/public/Workers/chunk-DXDIQEOK.js +26 -0
- package/public/Workers/chunk-E7ZPYMUI.js +26 -0
- package/public/Workers/chunk-GDE4VUE6.js +26 -0
- package/public/Workers/chunk-GGYRJCFH.js +29 -0
- package/public/Workers/chunk-HBIOVTO5.js +27 -0
- package/public/Workers/chunk-HJIURIT6.js +26 -0
- package/public/Workers/chunk-IDLM42AV.js +26 -0
- package/public/Workers/chunk-IFBNVX3N.js +26 -0
- package/public/Workers/chunk-IR47TAV5.js +26 -0
- package/public/Workers/chunk-ISGFCDPW.js +26 -0
- package/public/Workers/chunk-JJ24SU25.js +26 -0
- package/public/Workers/chunk-LAGV6F3C.js +29 -0
- package/public/Workers/chunk-LLCMCKFU.js +26 -0
- package/public/Workers/chunk-MSR5BKMH.js +26 -0
- package/public/Workers/chunk-MWVHSLYS.js +26 -0
- package/public/Workers/chunk-MYNU3I3W.js +26 -0
- package/public/Workers/chunk-NSDLDP72.js +26 -0
- package/public/Workers/chunk-NUY3PECV.js +26 -0
- package/public/Workers/chunk-OHMLE6SB.js +26 -0
- package/public/Workers/chunk-OJH7UFER.js +28 -0
- package/public/Workers/chunk-OUZ34R6R.js +26 -0
- package/public/Workers/chunk-OWJWRYGM.js +26 -0
- package/public/Workers/chunk-PAML32O3.js +26 -0
- package/public/Workers/chunk-PNKG35NX.js +26 -0
- package/public/Workers/chunk-Q6F3SO7I.js +26 -0
- package/public/Workers/chunk-QROIA2H7.js +26 -0
- package/public/Workers/chunk-RH6XN2ZV.js +28 -0
- package/public/Workers/chunk-SCMY6ELS.js +26 -0
- package/public/Workers/chunk-SP3AH7D2.js +26 -0
- package/public/Workers/chunk-SRXN2PE4.js +26 -0
- package/public/Workers/chunk-SUBLUDWJ.js +26 -0
- package/public/Workers/chunk-T4S74O3D.js +26 -0
- package/public/Workers/chunk-TITUTZNR.js +63 -0
- package/public/Workers/chunk-UWS7N7FB.js +26 -0
- package/public/Workers/chunk-V5C26K4F.js +26 -0
- package/public/Workers/chunk-VAPRBQYE.js +26 -0
- package/public/Workers/chunk-VBYW5FXW.js +26 -0
- package/public/Workers/chunk-VLPLGYXT.js +26 -0
- package/public/Workers/chunk-W5T7UWKW.js +26 -0
- package/public/Workers/chunk-XLJBHQML.js +26 -0
- package/public/Workers/chunk-XWXQVSYW.js +26 -0
- package/public/Workers/chunk-YSN2K4FT.js +27 -0
- package/public/Workers/chunk-ZTSD53QT.js +26 -0
- package/public/Workers/combineGeometry.js +26 -0
- package/public/Workers/createBoxGeometry.js +26 -0
- package/public/Workers/createBoxOutlineGeometry.js +26 -0
- package/public/Workers/createCircleGeometry.js +26 -0
- package/public/Workers/createCircleOutlineGeometry.js +26 -0
- package/public/Workers/createCoplanarPolygonGeometry.js +26 -0
- package/public/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
- package/public/Workers/createCorridorGeometry.js +26 -0
- package/public/Workers/createCorridorOutlineGeometry.js +26 -0
- package/public/Workers/createCylinderGeometry.js +26 -0
- package/public/Workers/createCylinderOutlineGeometry.js +26 -0
- package/public/Workers/createEllipseGeometry.js +26 -0
- package/public/Workers/createEllipseOutlineGeometry.js +26 -0
- package/public/Workers/createEllipsoidGeometry.js +26 -0
- package/public/Workers/createEllipsoidOutlineGeometry.js +26 -0
- package/public/Workers/createFrustumGeometry.js +26 -0
- package/public/Workers/createFrustumOutlineGeometry.js +26 -0
- package/public/Workers/createGeometry.js +26 -0
- package/public/Workers/createGroundPolylineGeometry.js +26 -0
- package/public/Workers/createPlaneGeometry.js +26 -0
- package/public/Workers/createPlaneOutlineGeometry.js +26 -0
- package/public/Workers/createPolygonGeometry.js +26 -0
- package/public/Workers/createPolygonOutlineGeometry.js +26 -0
- package/public/Workers/createPolylineGeometry.js +26 -0
- package/public/Workers/createPolylineVolumeGeometry.js +26 -0
- package/public/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
- package/public/Workers/createRectangleGeometry.js +26 -0
- package/public/Workers/createRectangleOutlineGeometry.js +26 -0
- package/public/Workers/createSimplePolylineGeometry.js +26 -0
- package/public/Workers/createSphereGeometry.js +26 -0
- package/public/Workers/createSphereOutlineGeometry.js +26 -0
- package/public/Workers/createTaskProcessorWorker.js +26 -0
- package/public/Workers/createVectorTileClampedPolylines.js +26 -0
- package/public/Workers/createVectorTileGeometries.js +26 -0
- package/public/Workers/createVectorTilePoints.js +26 -0
- package/public/Workers/createVectorTilePolygons.js +26 -0
- package/public/Workers/createVectorTilePolylines.js +26 -0
- package/public/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -0
- package/public/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
- package/public/Workers/createVerticesFromHeightmap.js +26 -0
- package/public/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
- package/public/Workers/createWallGeometry.js +26 -0
- package/public/Workers/createWallOutlineGeometry.js +26 -0
- package/public/Workers/decodeDraco.js +26 -0
- package/public/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
- package/public/Workers/decodeI3S.js +26 -0
- package/public/Workers/gaussianSplatSorter.js +26 -0
- package/public/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/public/Workers/incrementallyBuildTerrainPicker.js +26 -0
- package/public/Workers/transcodeKTX2.js +56 -0
- package/public/Workers/transferTypedArrayTest.js +26 -0
- package/public/Workers/upsampleQuantizedTerrainMesh.js +26 -0
- package/public/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -0
- package/public/index.cjs +16587 -0
- package/public/index.js +16587 -0
- package/src/Assets/geojson/BaiYangDian.geojson +699 -0
- package/src/Assets/geojson/HeBei.geojson +97754 -0
- package/src/Assets/geojson//344/270/255/345/233/275_/347/234/201.geojson +1 -0
- package/src/Assets/images/BYD.png +0 -0
- package/src/Assets/images/BYH.png +0 -0
- package/src/Assets/images/CZD.png +0 -0
- package/src/Assets/images/bouys.png +0 -0
- package/src/Assets/images/hebei.ico +0 -0
- package/src/Assets/images/jinzhou.ico +0 -0
- package/src/Assets/images/map_bg.png +0 -0
- package/src/Assets/images/map_bridge.png +0 -0
- package/src/Assets/images/map_radar.png +0 -0
- package/src/Assets/images/map_vhf.png +0 -0
- package/src/Assets/images/shenlan.png +0 -0
- package/src/Assets/images/ship.png +0 -0
- package/src/Assets/images/ship_1.png +0 -0
- package/src/Assets/images/ship_1_e.png +0 -0
- package/src/Assets/images/ship_1_tv.png +0 -0
- package/src/Assets/images/ship_2.png +0 -0
- package/src/Assets/images/ship_2_e.png +0 -0
- package/src/Assets/images/ship_2_tv.png +0 -0
- package/src/Assets/images/ship_3.png +0 -0
- package/src/Assets/images/ship_3_e.png +0 -0
- package/src/Assets/images/ship_3_tv.png +0 -0
- package/src/Assets/images/ship_4.png +0 -0
- package/src/Assets/images/ship_4_e.png +0 -0
- package/src/Assets/images/ship_4_tv.png +0 -0
- package/src/Assets/images/ship_5.png +0 -0
- package/src/Assets/images/ship_5_e.png +0 -0
- package/src/Assets/images/ship_5_tv.png +0 -0
- package/src/Assets/images/snowflake_particle.png +0 -0
- package/src/Assets/models/fengche.gltf +2920 -0
- package/src/Assets/resource.ts +32 -0
- package/src/const/color.ts +10 -0
- package/src/const/config/camera.ts +16 -0
- package/src/const/config/index.ts +2 -0
- package/src/const/config/viewer.ts +42 -0
- package/src/const/index.ts +3 -0
- package/src/const/position.ts +34 -0
- package/src/core/cdk/compass.ts +24 -0
- package/src/core/cdk/index.ts +36 -0
- package/src/core/cdk/lnglat.ts +125 -0
- package/src/core/cdk/orbit.ts +118 -0
- package/src/core/cdk/overlay.ts +90 -0
- package/src/core/cdk/slider.ts +54 -0
- package/src/core/cdk/svg_compass.svg +33 -0
- package/src/core/index.ts +2 -0
- package/src/core/layers/baidu-map-layer.ts +117 -0
- package/src/core/libs/gui.ts +88 -0
- package/src/core/scene/camera.ts +211 -0
- package/src/core/scene/globe.ts +33 -0
- package/src/core/scene/index.ts +5 -0
- package/src/core/scene/layers.ts +240 -0
- package/src/core/scene/primitives.ts +55 -0
- package/src/core/scene/scene.ts +44 -0
- package/src/core/viewer/clock.ts +93 -0
- package/src/core/viewer/data.ts +17 -0
- package/src/core/viewer/element.ts +146 -0
- package/src/core/viewer/entities.ts +74 -0
- package/src/core/viewer/event.ts +155 -0
- package/src/core/viewer/index.ts +7 -0
- package/src/core/viewer/result.ts +7 -0
- package/src/core/viewer/terrain.ts +30 -0
- package/src/core/viewer/viewer.ts +255 -0
- package/src/entities/ellipse.ts +68 -0
- package/src/entities/geojson.ts +19 -0
- package/src/entities/image.ts +28 -0
- package/src/entities/index.ts +42 -0
- package/src/entities/label.ts +37 -0
- package/src/entities/point.ts +48 -0
- package/src/entities/polygon.ts +59 -0
- package/src/entities/polyline.ts +55 -0
- package/src/entities/radar.ts +18 -0
- package/src/entities/rectangle.ts +50 -0
- package/src/entities/trailing.ts +22 -0
- package/src/index.ts +10 -0
- package/src/plugins/bathymetry.ts +107 -0
- package/src/plugins/elevation.ts +146 -0
- package/src/plugins/index.ts +3 -0
- package/src/plugins/post-process-snow.glsl +99 -0
- package/src/plugins/post-process-snow.ts +45 -0
- package/src/plugins/thunder.glsl +159 -0
- package/src/primitives/appearance/demo.ts +27 -0
- package/src/primitives/appearance/index.ts +1 -0
- package/src/primitives/area.ts +40 -0
- package/src/primitives/geometry/geometry.ts +44 -0
- package/src/primitives/image-2d.ts +73 -0
- package/src/primitives/index.ts +9 -0
- package/src/primitives/instance/instance.ts +58 -0
- package/src/primitives/material/image2d.ts +25 -0
- package/src/primitives/material/index.ts +8 -0
- package/src/primitives/material/ship2d.ts +55 -0
- package/src/primitives/particle.ts +47 -0
- package/src/primitives/shaders/EllipsoidSurfaceAppearanceFS.glsl +31 -0
- package/src/primitives/shaders/EllipsoidSurfaceAppearanceVS.glsl +19 -0
- package/src/primitives/shaders/imageFS.glsl +22 -0
- package/src/primitives/shaders/raedme.md +187 -0
- package/src/property/index.ts +1 -0
- package/src/property/material/core.ts +52 -0
- package/src/property/material/index.ts +5 -0
- package/src/property/material/radar.ts +41 -0
- package/src/property/material/road.ts +35 -0
- package/src/property/material/trailing.ts +31 -0
- package/src/property/material/wall.ts +31 -0
- package/src/scene/TJG/area.ts +37 -0
- package/src/scene/TJG/billboard.ts +89 -0
- package/src/scene/TJG/entityies.ts +131 -0
- package/src/scene/TJG/lines.ts +14 -0
- package/src/scene/TJG/maps.ts +16 -0
- package/src/scene/TJG/scene-tjg.ts +212 -0
- package/src/scene/TJG/ships.ts +32 -0
- package/src/scene/TJG/tileset.ts +144 -0
- package/src/scene/TJG/tjg.d.ts +14 -0
- package/src/scene/cdk/fog.ts +47 -0
- package/src/scene/cdk/index.ts +4 -0
- package/src/scene/cdk/measure.ts +108 -0
- package/src/scene/cdk/plot.ts +182 -0
- package/src/scene/cdk/source.ts +33 -0
- package/src/shaders/3d-tileset.ts +41 -0
- package/src/shaders/index.ts +1 -0
- package/src/shaders/material-property/a-readme.md +2 -0
- package/src/shaders/material-property/radarFS.glsl +25 -0
- package/src/shaders/material-property/roadFS.glsl +14 -0
- package/src/shaders/material-property/trailingFS.glsl +18 -0
- package/src/shaders/material-property/wallFS.glsl +31 -0
- package/src/shaders/raedme.md +187 -0
- package/src/shaders/ship/ShipVS.glsl +19 -0
- package/src/sl-utils-cesium.ts +1 -0
- package/src/types/cdk.d.ts +20 -0
- package/src/types/core.d.ts +6 -0
- package/src/types/entity.d.ts +628 -0
- package/src/types/event.d.ts +32 -0
- package/src/types/extend.Cesium.d.ts +28 -0
- package/src/types/geometry.d.ts +55 -0
- package/src/types/plugins.d.ts +34 -0
- package/src/types/primitive.d.ts +69 -0
- package/src/types/scene.d.ts +25 -0
- package/src/types/viewer.d.ts +114 -0
- package/src/utils/cesium.ts +189 -0
- package/src/utils/common.ts +87 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/map.ts +112 -0
- package/src/utils/types.ts +44 -0
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +34 -0
- package/types/billboard.d.ts +8 -0
- package/types/entities.d.ts +224 -0
- package/types/property.d.ts +12 -0
- package/types/resource.d.ts +26 -0
- package/types/sl-utils-cesium.d.ts +17 -0
- package/vite.config.ts +43 -0
- package/webpack.config.js +29 -0
package/src/utils/map.ts
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
const a = 6378245.0;
|
|
2
|
+
const pi = 3.1415926535897932384626;
|
|
3
|
+
const ee = 0.00669342162296594323;
|
|
4
|
+
const x_pi = pi * 3000.0 / 180.0;
|
|
5
|
+
/**地球半径 */
|
|
6
|
+
const R = 6378137;
|
|
7
|
+
/** 百度转84 */
|
|
8
|
+
function tobd09gps84(lng: number, lat: number) {
|
|
9
|
+
var gcj02 = tobd09cj02(lng, lat);
|
|
10
|
+
var map84 = togcj02gps84(gcj02.lng, gcj02.lat);
|
|
11
|
+
return map84;
|
|
12
|
+
}
|
|
13
|
+
/** 火星转84 */
|
|
14
|
+
function togcj02gps84(lng: number, lat: number) {
|
|
15
|
+
var coord = transform(lng, lat);
|
|
16
|
+
var lontitude = lng * 2 - coord.lng;
|
|
17
|
+
var latitude = lat * 2 - coord.lat;
|
|
18
|
+
var newCoord = {
|
|
19
|
+
lng: lontitude,
|
|
20
|
+
lat: latitude
|
|
21
|
+
};
|
|
22
|
+
return newCoord;
|
|
23
|
+
}
|
|
24
|
+
/** 84转百度 */
|
|
25
|
+
function togps84bd09(lng: number, lat: number) {
|
|
26
|
+
var gcj02 = togps84gcj02(lng, lat);
|
|
27
|
+
var bd09 = togcj02bd09(gcj02.lng, gcj02.lat);
|
|
28
|
+
return bd09;
|
|
29
|
+
}
|
|
30
|
+
/** 84转火星 */
|
|
31
|
+
function togps84gcj02(lng: number, lat: number) {
|
|
32
|
+
var dLat = transformLat(lng - 105.0, lat - 35.0);
|
|
33
|
+
var dLng = transformLng(lng - 105.0, lat - 35.0);
|
|
34
|
+
var radLat = lat / 180.0 * pi;
|
|
35
|
+
var magic = Math.sin(radLat);
|
|
36
|
+
magic = 1 - ee * magic * magic;
|
|
37
|
+
var sqrtMagic = Math.sqrt(magic);
|
|
38
|
+
dLat = (dLat * 180.0) / ((a * (1 - ee)) / (magic * sqrtMagic) * pi);
|
|
39
|
+
dLng = (dLng * 180.0) / (a / sqrtMagic * Math.cos(radLat) * pi);
|
|
40
|
+
var mgLat = lat + dLat;
|
|
41
|
+
var mgLng = lng + dLng;
|
|
42
|
+
var newCoord = {
|
|
43
|
+
lng: mgLng,
|
|
44
|
+
lat: mgLat
|
|
45
|
+
};
|
|
46
|
+
return newCoord;
|
|
47
|
+
}
|
|
48
|
+
/** 火星转百度 */
|
|
49
|
+
function togcj02bd09(lng: number, lat: number) {
|
|
50
|
+
var z = Math.sqrt(lng * lng + lat * lat) + 0.00002 * Math.sin(lat * x_pi);
|
|
51
|
+
var theta = Math.atan2(lat, lng) + 0.000003 * Math.cos(lng * x_pi);
|
|
52
|
+
var bd_lng = z * Math.cos(theta) + 0.0065;
|
|
53
|
+
var bd_lat = z * Math.sin(theta) + 0.006;
|
|
54
|
+
var newCoord = {
|
|
55
|
+
lng: bd_lng,
|
|
56
|
+
lat: bd_lat
|
|
57
|
+
};
|
|
58
|
+
return newCoord;
|
|
59
|
+
}
|
|
60
|
+
/** 百度转火星 */
|
|
61
|
+
function tobd09cj02(bd_lng: number, bd_lat: number) {
|
|
62
|
+
var x = bd_lng - 0.0065;
|
|
63
|
+
var y = bd_lat - 0.006;
|
|
64
|
+
var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * x_pi);
|
|
65
|
+
var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * x_pi);
|
|
66
|
+
var gg_lng = z * Math.cos(theta);
|
|
67
|
+
var gg_lat = z * Math.sin(theta);
|
|
68
|
+
var newCoord = {
|
|
69
|
+
lng: gg_lng,
|
|
70
|
+
lat: gg_lat
|
|
71
|
+
};
|
|
72
|
+
return newCoord;
|
|
73
|
+
}
|
|
74
|
+
function transform(lng: number, lat: number) {
|
|
75
|
+
var dLat = transformLat(lng - 105.0, lat - 35.0);
|
|
76
|
+
var dLng = transformLng(lng - 105.0, lat - 35.0);
|
|
77
|
+
var radLat = lat / 180.0 * pi;
|
|
78
|
+
var magic = Math.sin(radLat);
|
|
79
|
+
magic = 1 - ee * magic * magic;
|
|
80
|
+
var sqrtMagic = Math.sqrt(magic);
|
|
81
|
+
dLat = (dLat * 180.0) / ((a * (1 - ee)) / (magic * sqrtMagic) * pi);
|
|
82
|
+
dLng = (dLng * 180.0) / (a / sqrtMagic * Math.cos(radLat) * pi);
|
|
83
|
+
var mgLat = lat + dLat;
|
|
84
|
+
var mgLng = lng + dLng;
|
|
85
|
+
var newCoord = {
|
|
86
|
+
lng: mgLng,
|
|
87
|
+
lat: mgLat
|
|
88
|
+
};
|
|
89
|
+
return newCoord;
|
|
90
|
+
}
|
|
91
|
+
function transformLat(x: number, y: number) {
|
|
92
|
+
var ret = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * Math.sqrt(Math.abs(x));
|
|
93
|
+
ret += (20.0 * Math.sin(6.0 * x * pi) + 20.0 * Math.sin(2.0 * x * pi)) * 2.0 / 3.0;
|
|
94
|
+
ret += (20.0 * Math.sin(y * pi) + 40.0 * Math.sin(y / 3.0 * pi)) * 2.0 / 3.0;
|
|
95
|
+
ret += (160.0 * Math.sin(y / 12.0 * pi) + 320 * Math.sin(y * pi / 30.0)) * 2.0 / 3.0;
|
|
96
|
+
return ret;
|
|
97
|
+
}
|
|
98
|
+
function transformLng(x: number, y: number) {
|
|
99
|
+
var ret = 300.0 + x + 2.0 * y + 0.1 * x * x + 0.1 * x * y + 0.1 * Math.sqrt(Math.abs(x));
|
|
100
|
+
ret += (20.0 * Math.sin(6.0 * x * pi) + 20.0 * Math.sin(2.0 * x * pi)) * 2.0 / 3.0;
|
|
101
|
+
ret += (20.0 * Math.sin(x * pi) + 40.0 * Math.sin(x / 3.0 * pi)) * 2.0 / 3.0;
|
|
102
|
+
ret += (150.0 * Math.sin(x / 12.0 * pi) + 300.0 * Math.sin(x / 30.0 * pi)) * 2.0 / 3.0;
|
|
103
|
+
return ret;
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
tobd09gps84 as um_tobd09gps84,
|
|
107
|
+
togcj02gps84 as um_togcj02gps84,
|
|
108
|
+
togps84bd09 as um_togps84bd09,
|
|
109
|
+
togps84gcj02 as um_togps84gcj02,
|
|
110
|
+
togcj02bd09 as um_togcj02bd09,
|
|
111
|
+
tobd09cj02 as um_tobd09cj02,
|
|
112
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Cartesian2, Cartesian3, Property, Scene } from "cesium";
|
|
2
|
+
/**类型判断工具类 */
|
|
3
|
+
function uc_tsIfNumber(value): value is number {
|
|
4
|
+
return typeof value === 'number'
|
|
5
|
+
}
|
|
6
|
+
/**判断参数是否是Property */
|
|
7
|
+
function uc_tsIfProperty(value: any): value is Property {
|
|
8
|
+
return value instanceof Property;
|
|
9
|
+
}
|
|
10
|
+
/**判断参数是否是Cartesian2*/
|
|
11
|
+
function uc_tsIfCartesian2(value: any): value is Cartesian2 {
|
|
12
|
+
return value instanceof Cartesian2;
|
|
13
|
+
}
|
|
14
|
+
/**判断参数是否是Cartesian3 */
|
|
15
|
+
function uc_tsIfCartesian3(value: any): value is Cartesian3 {
|
|
16
|
+
return value instanceof Cartesian3;
|
|
17
|
+
}
|
|
18
|
+
/**判断参数是否是经纬度数组 */
|
|
19
|
+
function uc_tsIfLnglatHeight(value: any): value is LnglatHeight {
|
|
20
|
+
return Array.isArray(value) && typeof value[0] === 'number' && typeof value[1] === 'number' && (typeof value[2] === 'number' || typeof value[2] === 'undefined');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**判断参数是否是Cartesian3数组 */
|
|
24
|
+
function uc_tsIfCartesian3Array(value: any): value is Cartesian3[] {
|
|
25
|
+
return Array.isArray(value) && uc_tsIfCartesian3(value[0]);
|
|
26
|
+
}
|
|
27
|
+
/**判断参数是否是经纬度数组 */
|
|
28
|
+
function uc_tsIfLnglatHeightArray(value: any): value is LnglatHeight[] {
|
|
29
|
+
return Array.isArray(value) && uc_tsIfLnglatHeight(value[0]);
|
|
30
|
+
}
|
|
31
|
+
/**判断参数是否是Scene */
|
|
32
|
+
function uc_tsIfScene(value: any): value is Scene {
|
|
33
|
+
return value instanceof Scene;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
uc_tsIfNumber,
|
|
37
|
+
uc_tsIfProperty,
|
|
38
|
+
uc_tsIfCartesian2,
|
|
39
|
+
uc_tsIfCartesian3,
|
|
40
|
+
uc_tsIfLnglatHeight,
|
|
41
|
+
uc_tsIfCartesian3Array,
|
|
42
|
+
uc_tsIfLnglatHeightArray,
|
|
43
|
+
uc_tsIfScene
|
|
44
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
/**启用所有严格类型检查选项*/
|
|
5
|
+
"strict": false,
|
|
6
|
+
/**关闭“所有路径必须返回值”的检查*/
|
|
7
|
+
"noImplicitReturns": false,
|
|
8
|
+
/**在严格的 null检查模式下, null和 undefined值不包含在任何类型里*/
|
|
9
|
+
"strictNullChecks": false,
|
|
10
|
+
"noImplicitAny": false,
|
|
11
|
+
"removeComments": true,
|
|
12
|
+
"preserveConstEnums": true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"target": "ES2020",
|
|
15
|
+
"module": "commonjs",
|
|
16
|
+
"outDir": "./dist",
|
|
17
|
+
"rootDir": "./src",
|
|
18
|
+
"baseUrl": ".",
|
|
19
|
+
"lib": [
|
|
20
|
+
"es2020",
|
|
21
|
+
"dom"
|
|
22
|
+
],
|
|
23
|
+
"paths": {
|
|
24
|
+
"@sl-utils/cesium": [
|
|
25
|
+
"types/sl-utils-cesium.d.ts"
|
|
26
|
+
] // 添加这行
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"include": [
|
|
30
|
+
"src/**/*",
|
|
31
|
+
"types/**/*",
|
|
32
|
+
],
|
|
33
|
+
"exclude": []
|
|
34
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { ArcType, Cartesian2, Cartesian3, ClassificationType, Color, ConstantProperty, DistanceDisplayCondition, EllipseGraphics, HeightReference, HorizontalOrigin, LabelGraphics, LabelStyle, MaterialProperty, NearFarScalar, PlaneGraphics, PointGraphics, PolygonGraphics, PolygonHierarchy, PolylineGraphics, PositionProperty, Property, Rectangle, RectangleGraphics, ShadowMode, VerticalOrigin, Viewer } from "cesium";
|
|
2
|
+
import { CCamera } from "src/core";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
/**配置-实体椭圆 */
|
|
6
|
+
interface OptEntityEllipse extends EllipseGraphics.ConstructorOptions {
|
|
7
|
+
/**经纬度坐标点(设置此属性会覆盖positions,此值不能在外部动态变化) @default [] */
|
|
8
|
+
lnglat?: LnglatHeight,
|
|
9
|
+
/**坐标点 @default*/
|
|
10
|
+
position?: PositionProperty | Cartesian3;
|
|
11
|
+
/**点数据会增加变化的折线 */
|
|
12
|
+
ifChange?: boolean,
|
|
13
|
+
|
|
14
|
+
show?: Property | boolean;
|
|
15
|
+
/**指定半长轴的数字属性 */
|
|
16
|
+
semiMajorAxis?: Property | number;
|
|
17
|
+
/**指定半短轴的数字属性 */
|
|
18
|
+
semiMinorAxis?: Property | number;
|
|
19
|
+
height?: Property | number;
|
|
20
|
+
heightReference?: Property | HeightReference;
|
|
21
|
+
extrudedHeight?: Property | number;
|
|
22
|
+
extrudedHeightReference?: Property | HeightReference;
|
|
23
|
+
rotation?: Property | number;
|
|
24
|
+
stRotation?: Property | number;
|
|
25
|
+
granularity?: Property | number;
|
|
26
|
+
fill?: Property | boolean;
|
|
27
|
+
material?: MaterialProperty | Color;
|
|
28
|
+
/**指定多边形是否轮廓的属性,只有显示设置为height=0时才显示轮廓边框 */
|
|
29
|
+
outline?: Property | boolean;
|
|
30
|
+
outlineColor?: Property | Color;
|
|
31
|
+
outlineWidth?: Property | number;
|
|
32
|
+
numberOfVerticalLines?: Property | number;
|
|
33
|
+
shadows?: Property | ShadowMode;
|
|
34
|
+
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
35
|
+
classificationType?: Property | ClassificationType;
|
|
36
|
+
zIndex?: ConstantProperty | number;
|
|
37
|
+
}
|
|
38
|
+
/**实体扫描雷达的配置项 */
|
|
39
|
+
interface OptEntityGeojson {
|
|
40
|
+
/**geojson的文件路径 */
|
|
41
|
+
url: string;
|
|
42
|
+
/**雷达扫射半径 */
|
|
43
|
+
viewer: Viewer;
|
|
44
|
+
}
|
|
45
|
+
/**配置-实体图片 */
|
|
46
|
+
interface OptEntityImage extends PlaneGraphics.ConstructorOptions {
|
|
47
|
+
id?: string;
|
|
48
|
+
/**经纬度坐标点(设置此属性会覆盖positions,此值不能在外部动态变化) @default [] */
|
|
49
|
+
lnglat?: LnglatHeight,
|
|
50
|
+
/**图片 */
|
|
51
|
+
url: string;
|
|
52
|
+
/**旋转角度 - ° */
|
|
53
|
+
rotate: number
|
|
54
|
+
/**相机 */
|
|
55
|
+
camera: CCamera;
|
|
56
|
+
/**大小 - x */
|
|
57
|
+
sizeX: number;
|
|
58
|
+
/**大小 - y */
|
|
59
|
+
sizeY: number;
|
|
60
|
+
}
|
|
61
|
+
/**配置-实体标签 */
|
|
62
|
+
interface OptEntityLabel extends LabelGraphics.ConstructorOptions {
|
|
63
|
+
/**实际上不管如何设置都可改变位置 */
|
|
64
|
+
ifChange?: boolean;
|
|
65
|
+
/**标签的位置 */
|
|
66
|
+
position?: PositionProperty | Cartesian3;
|
|
67
|
+
show?: Property | boolean;
|
|
68
|
+
text?: Property | string;
|
|
69
|
+
font?: Property | string;
|
|
70
|
+
style?: Property | LabelStyle;
|
|
71
|
+
scale?: Property | number;
|
|
72
|
+
showBackground?: Property | boolean;
|
|
73
|
+
backgroundColor?: Property | Color;
|
|
74
|
+
backgroundPadding?: Property | Cartesian2;
|
|
75
|
+
pixelOffset?: Property | Cartesian2;
|
|
76
|
+
eyeOffset?: Property | Cartesian3;
|
|
77
|
+
horizontalOrigin?: Property | HorizontalOrigin;
|
|
78
|
+
verticalOrigin?: Property | VerticalOrigin;
|
|
79
|
+
heightReference?: Property | HeightReference;
|
|
80
|
+
fillColor?: Property | Color;
|
|
81
|
+
outlineColor?: Property | Color;
|
|
82
|
+
outlineWidth?: Property | number;
|
|
83
|
+
translucencyByDistance?: Property | NearFarScalar;
|
|
84
|
+
pixelOffsetScaleByDistance?: Property | NearFarScalar;
|
|
85
|
+
scaleByDistance?: Property | NearFarScalar;
|
|
86
|
+
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
87
|
+
disableDepthTestDistance?: Property | number;
|
|
88
|
+
}
|
|
89
|
+
/**配置-实体点 */
|
|
90
|
+
interface OptEntityPoint extends PointGraphics.ConstructorOptions {
|
|
91
|
+
id?: string;
|
|
92
|
+
position?: PositionProperty | Cartesian3,
|
|
93
|
+
/**点数据会变化的点(此时position不能为PositionProperty类型) */
|
|
94
|
+
ifChange?: boolean,
|
|
95
|
+
show?: Property | boolean;
|
|
96
|
+
pixelSize?: Property | number;
|
|
97
|
+
heightReference?: Property | HeightReference;
|
|
98
|
+
color?: Property | Color;
|
|
99
|
+
outlineColor?: Property | Color;
|
|
100
|
+
outlineWidth?: Property | number;
|
|
101
|
+
scaleByDistance?: Property | NearFarScalar;
|
|
102
|
+
translucencyByDistance?: Property | NearFarScalar;
|
|
103
|
+
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
104
|
+
disableDepthTestDistance?: Property | number;
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
/**配置-实体多边形 */
|
|
108
|
+
interface OptEntityPolygon extends PolygonGraphics.ConstructorOptions {
|
|
109
|
+
/**点数据会增加变化的折线 */
|
|
110
|
+
ifChange?: boolean,
|
|
111
|
+
|
|
112
|
+
/**是否显示 */
|
|
113
|
+
show?: Property | boolean;
|
|
114
|
+
/**指定多边形点位(可以挖空) */
|
|
115
|
+
hierarchy?: Property | PolygonHierarchy | Cartesian3[];
|
|
116
|
+
/**指定多边形的恒定高度 @default 0.0 */
|
|
117
|
+
height?: Property | number;
|
|
118
|
+
/**指定拉伸的 HeightReference 的属性 */
|
|
119
|
+
heightReference?: Property | HeightReference;
|
|
120
|
+
/**指定多边形拉伸的高度 */
|
|
121
|
+
extrudedHeight?: Property | number;
|
|
122
|
+
extrudedHeightReference?: Property | HeightReference;
|
|
123
|
+
stRotation?: Property | number;
|
|
124
|
+
/**指定多边形上各点之间的角度距离 */
|
|
125
|
+
granularity?: Property | number;
|
|
126
|
+
/**指定多边形是否被提供的材质填充 */
|
|
127
|
+
fill?: Property | boolean;
|
|
128
|
+
/**指定用于填充多边形的材质的属性 */
|
|
129
|
+
material?: MaterialProperty | Color;
|
|
130
|
+
/**指定多边形是否轮廓的属性,只有显示设置为height=0时才显示轮廓边框 */
|
|
131
|
+
outline?: Property | boolean;
|
|
132
|
+
/**指定轮廓的 Color 的属性@default Color.BLACK */
|
|
133
|
+
outlineColor?: Property | Color;
|
|
134
|
+
/**指定轮廓的宽度@default 1.0 */
|
|
135
|
+
outlineWidth?: Property | number;
|
|
136
|
+
/**指定是否使用每个位置的高度 */
|
|
137
|
+
perPositionHeight?: Property | boolean;
|
|
138
|
+
/**指定是否包括挤压多边形的顶部 */
|
|
139
|
+
closeTop?: boolean | boolean;
|
|
140
|
+
/**指定是否包括拉伸多边形的底部 */
|
|
141
|
+
closeBottom?: boolean | boolean;
|
|
142
|
+
/**指定多边形边缘使用的线的类型 */
|
|
143
|
+
arcType?: Property | ArcType;
|
|
144
|
+
shadows?: Property | ShadowMode;
|
|
145
|
+
/**指定将在距相机多远的距离显示此多边形 */
|
|
146
|
+
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
147
|
+
/**指定此多边形在地面上时是对地形,3D Tile还是对两者进行分类 */
|
|
148
|
+
classificationType?: Property | ClassificationType;
|
|
149
|
+
zIndex?: ConstantProperty | number;
|
|
150
|
+
textureCoordinates?: Property | PolygonHierarchy;
|
|
151
|
+
}
|
|
152
|
+
/**配置-实体折线 */
|
|
153
|
+
interface OptEntityPolyline extends PolylineGraphics.ConstructorOptions {
|
|
154
|
+
/**点数据会增加变化的折线 */
|
|
155
|
+
ifChange?: boolean,
|
|
156
|
+
/**是否显示 @default true*/
|
|
157
|
+
show?: Property | boolean;
|
|
158
|
+
/**折线点的集合 @default []*/
|
|
159
|
+
positions?: Property | Cartesian3[];
|
|
160
|
+
/**折线宽度 @default 2 */
|
|
161
|
+
width?: Property | number;
|
|
162
|
+
granularity?: Property | number;
|
|
163
|
+
/**线条材质 @default Color.fromRgba(0x67ADDFFF)*/
|
|
164
|
+
material?: MaterialProperty | Color;
|
|
165
|
+
depthFailMaterial?: MaterialProperty | Color;
|
|
166
|
+
/**指定线段应该是大弧线,菱形线还是线性连接 @default ArcType.GEODESIC*/
|
|
167
|
+
arcType?: Property | ArcType;
|
|
168
|
+
clampToGround?: Property | boolean;
|
|
169
|
+
shadows?: Property | ShadowMode;
|
|
170
|
+
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
171
|
+
classificationType?: Property | ClassificationType;
|
|
172
|
+
zIndex?: Property | number;
|
|
173
|
+
}
|
|
174
|
+
/**实体扫描雷达的配置项 */
|
|
175
|
+
interface OptEntityRadar {
|
|
176
|
+
/**中心点位置 */
|
|
177
|
+
position: LnglatHeight;
|
|
178
|
+
/**雷达扫射半径 */
|
|
179
|
+
radius: number;
|
|
180
|
+
}
|
|
181
|
+
/**配置-实体矩形 */
|
|
182
|
+
interface OptEntityRectangle extends RectangleGraphics.ConstructorOptions {
|
|
183
|
+
/**点数据会增加变化的折线 */
|
|
184
|
+
ifChange?: boolean,
|
|
185
|
+
/**是否显示 */
|
|
186
|
+
show?: Property | boolean;
|
|
187
|
+
/**指定多边形点位(可以挖空) */
|
|
188
|
+
coordinates?: Property | Rectangle;
|
|
189
|
+
/**指定多边形的恒定高度 @default 0.0 */
|
|
190
|
+
height?: Property | number;
|
|
191
|
+
/**指定拉伸的 HeightReference 的属性 */
|
|
192
|
+
heightReference?: Property | HeightReference;
|
|
193
|
+
/**指定多边形拉伸的高度 */
|
|
194
|
+
extrudedHeight?: Property | number;
|
|
195
|
+
extrudedHeightReference?: Property | HeightReference;
|
|
196
|
+
/**指定矩形从北方向顺时针方向的旋转 */
|
|
197
|
+
rotation?: Property | number;
|
|
198
|
+
/**指定矩形纹理从北方逆时针旋转 */
|
|
199
|
+
stRotation?: Property | number;
|
|
200
|
+
/**指定多边形上各点之间的角度距离 */
|
|
201
|
+
granularity?: Property | number;
|
|
202
|
+
/**指定多边形是否被提供的材质填充 */
|
|
203
|
+
fill?: Property | boolean;
|
|
204
|
+
/**指定用于填充多边形的材质的属性 */
|
|
205
|
+
material?: MaterialProperty | Color;
|
|
206
|
+
/**指定多边形是否轮廓的属性,只有显示设置为height=0时才显示轮廓边框 */
|
|
207
|
+
outline?: Property | boolean;
|
|
208
|
+
/**指定轮廓的 Color 的属性@default Color.BLACK */
|
|
209
|
+
outlineColor?: Property | Color;
|
|
210
|
+
/**指定轮廓的宽度@default 1.0 */
|
|
211
|
+
outlineWidth?: Property | number;
|
|
212
|
+
shadows?: Property | ShadowMode;
|
|
213
|
+
/**指定将在距相机多远的距离显示此多边形 */
|
|
214
|
+
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
215
|
+
/**指定此多边形在地面上时是对地形,3D Tile还是对两者进行分类 */
|
|
216
|
+
classificationType?: Property | ClassificationType;
|
|
217
|
+
zIndex?: ConstantProperty | number;
|
|
218
|
+
}
|
|
219
|
+
/**配置-实体线-拖尾效果 */
|
|
220
|
+
interface OptEntityTrailing {
|
|
221
|
+
/**点位置组-组成线 */
|
|
222
|
+
positions: LnglatHeight[];
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**资源类型模块申明 */
|
|
2
|
+
declare module '*.glsl' {
|
|
3
|
+
const value: string;
|
|
4
|
+
export default value;
|
|
5
|
+
}
|
|
6
|
+
declare module '*.gltf' {
|
|
7
|
+
const value: string;
|
|
8
|
+
export default value;
|
|
9
|
+
}
|
|
10
|
+
declare module '*.png' {
|
|
11
|
+
const value: string;
|
|
12
|
+
export default value;
|
|
13
|
+
}
|
|
14
|
+
declare module '*.ico' {
|
|
15
|
+
const value: string;
|
|
16
|
+
export default value;
|
|
17
|
+
}
|
|
18
|
+
declare module '*.svg' {
|
|
19
|
+
const value: string;
|
|
20
|
+
export default value;
|
|
21
|
+
}
|
|
22
|
+
declare module '*.geojson' {
|
|
23
|
+
const value: string;
|
|
24
|
+
export default value;
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SLCViewer } from "src/core";
|
|
2
|
+
|
|
3
|
+
declare module "@sl-utils/cesium" {
|
|
4
|
+
|
|
5
|
+
export class SceneTJG extends SLCViewer {
|
|
6
|
+
constructor(html)
|
|
7
|
+
|
|
8
|
+
/** */
|
|
9
|
+
public openMeasure()
|
|
10
|
+
/**添加船舶 */
|
|
11
|
+
public onAddShips(ships: CesiumShipInfo[])
|
|
12
|
+
|
|
13
|
+
public addBouys(allIcons: BillboardInfo[])
|
|
14
|
+
/**添加风电场区域 */
|
|
15
|
+
public onAddWindArea()
|
|
16
|
+
}
|
|
17
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import glsl from 'vite-plugin-glsl'
|
|
3
|
+
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
|
4
|
+
import vue from '@vitejs/plugin-vue'
|
|
5
|
+
// https://vite.dev/config/
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
// 让 Vite 将 .gltf 和 .glb 文件视为静态资源处理
|
|
8
|
+
assetsInclude: ['**/*.gltf', '**/*.glb', '**/*.geojson'],
|
|
9
|
+
plugins: [
|
|
10
|
+
glsl({
|
|
11
|
+
include: [ // 要处理的文件类型
|
|
12
|
+
'**/*.glsl',
|
|
13
|
+
'**/*.wgsl',
|
|
14
|
+
'**/*.vert',
|
|
15
|
+
'**/*.frag',
|
|
16
|
+
'**/*.vs',
|
|
17
|
+
'**/*.fs',
|
|
18
|
+
'**/*.glsl'
|
|
19
|
+
],
|
|
20
|
+
exclude: undefined, // 排除的文件
|
|
21
|
+
warnDuplicatedImports: true, // 警告重复导入
|
|
22
|
+
defaultExtension: 'glsl', // 默认扩展名
|
|
23
|
+
watch: true // 监听文件变化
|
|
24
|
+
}), viteStaticCopy({
|
|
25
|
+
targets: [
|
|
26
|
+
{
|
|
27
|
+
src: 'Cesium/Assets/**/*', // 源文件夹路径
|
|
28
|
+
dest: '/Assets' , // 目标文件夹(相对于 build.outDir)
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}), vue()],
|
|
32
|
+
build: {
|
|
33
|
+
outDir: 'dist',
|
|
34
|
+
lib: {
|
|
35
|
+
entry: 'src/sl-utils-cesium.ts',
|
|
36
|
+
name: 'test',
|
|
37
|
+
fileName: (format) => `sl-utils-cesium.${format}.js`,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
server: {
|
|
41
|
+
port: 5171
|
|
42
|
+
}
|
|
43
|
+
})
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// webpack.config.js
|
|
2
|
+
module.exports = {
|
|
3
|
+
// 其他配置...
|
|
4
|
+
module: {
|
|
5
|
+
rules: [
|
|
6
|
+
{
|
|
7
|
+
// 匹配需要处理的文件类型
|
|
8
|
+
test: /\.(png|jpe?g|gif|svg|woff|woff2|eot|ttf|otf)$/i,
|
|
9
|
+
use: [
|
|
10
|
+
{
|
|
11
|
+
loader: 'file-loader',
|
|
12
|
+
options: {
|
|
13
|
+
// 输出文件的名称模板
|
|
14
|
+
name: '[name].[hash:8].[ext]',
|
|
15
|
+
// 输出路径(相对于 output 目录)
|
|
16
|
+
outputPath: 'assets/',
|
|
17
|
+
// 公共路径(用于引用资源)
|
|
18
|
+
publicPath: 'assets/',
|
|
19
|
+
// 是否保留原始文件路径
|
|
20
|
+
useRelativePath: false,
|
|
21
|
+
// 是否输出文件(默认 true)
|
|
22
|
+
emitFile: true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|