potato-map3d-ui2 0.0.6
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/.vscode/extensions.json +3 -0
- package/README.md +18 -0
- package/components/map3dt/index.vue.d.ts +22 -0
- package/components/map3dt/useMap.d.ts +13 -0
- package/components/zoomIn/index.vue.d.ts +14 -0
- package/components/zoomOut/index.vue.d.ts +14 -0
- package/env.d.ts +7 -0
- package/index.html +17 -0
- package/package.json +31 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/public/Cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/public/Cesium/Assets/Images/cesium_credit.png +0 -0
- package/public/Cesium/Assets/Images/google_earth_credit.png +0 -0
- package/public/Cesium/Assets/Images/ion-credit.png +0 -0
- package/public/Cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/public/Cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/public/Cesium/Assets/Textures/maki/airfield.png +0 -0
- package/public/Cesium/Assets/Textures/maki/airport.png +0 -0
- package/public/Cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/public/Cesium/Assets/Textures/maki/america-football.png +0 -0
- package/public/Cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bakery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bank.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bar.png +0 -0
- package/public/Cesium/Assets/Textures/maki/baseball.png +0 -0
- package/public/Cesium/Assets/Textures/maki/basketball.png +0 -0
- package/public/Cesium/Assets/Textures/maki/beer.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/building.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bus.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cafe.png +0 -0
- package/public/Cesium/Assets/Textures/maki/camera.png +0 -0
- package/public/Cesium/Assets/Textures/maki/campsite.png +0 -0
- package/public/Cesium/Assets/Textures/maki/car.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cesium.png +0 -0
- package/public/Cesium/Assets/Textures/maki/chemist.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cinema.png +0 -0
- package/public/Cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/circle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/city.png +0 -0
- package/public/Cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/public/Cesium/Assets/Textures/maki/college.png +0 -0
- package/public/Cesium/Assets/Textures/maki/commercial.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cricket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cross.png +0 -0
- package/public/Cesium/Assets/Textures/maki/dam.png +0 -0
- package/public/Cesium/Assets/Textures/maki/danger.png +0 -0
- package/public/Cesium/Assets/Textures/maki/disability.png +0 -0
- package/public/Cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/public/Cesium/Assets/Textures/maki/embassy.png +0 -0
- package/public/Cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/entrance.png +0 -0
- package/public/Cesium/Assets/Textures/maki/farm.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/public/Cesium/Assets/Textures/maki/ferry.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fuel.png +0 -0
- package/public/Cesium/Assets/Textures/maki/garden.png +0 -0
- package/public/Cesium/Assets/Textures/maki/gift.png +0 -0
- package/public/Cesium/Assets/Textures/maki/golf.png +0 -0
- package/public/Cesium/Assets/Textures/maki/grocery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/public/Cesium/Assets/Textures/maki/harbor.png +0 -0
- package/public/Cesium/Assets/Textures/maki/heart.png +0 -0
- package/public/Cesium/Assets/Textures/maki/heliport.png +0 -0
- package/public/Cesium/Assets/Textures/maki/hospital.png +0 -0
- package/public/Cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/public/Cesium/Assets/Textures/maki/industrial.png +0 -0
- package/public/Cesium/Assets/Textures/maki/land-use.png +0 -0
- package/public/Cesium/Assets/Textures/maki/laundry.png +0 -0
- package/public/Cesium/Assets/Textures/maki/library.png +0 -0
- package/public/Cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/lodging.png +0 -0
- package/public/Cesium/Assets/Textures/maki/logging.png +0 -0
- package/public/Cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/marker.png +0 -0
- package/public/Cesium/Assets/Textures/maki/minefield.png +0 -0
- package/public/Cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/monument.png +0 -0
- package/public/Cesium/Assets/Textures/maki/museum.png +0 -0
- package/public/Cesium/Assets/Textures/maki/music.png +0 -0
- package/public/Cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/public/Cesium/Assets/Textures/maki/park.png +0 -0
- package/public/Cesium/Assets/Textures/maki/park2.png +0 -0
- package/public/Cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/public/Cesium/Assets/Textures/maki/parking.png +0 -0
- package/public/Cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/public/Cesium/Assets/Textures/maki/pitch.png +0 -0
- package/public/Cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/public/Cesium/Assets/Textures/maki/playground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/police.png +0 -0
- package/public/Cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/public/Cesium/Assets/Textures/maki/post.png +0 -0
- package/public/Cesium/Assets/Textures/maki/prison.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/public/Cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/public/Cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rocket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/school.png +0 -0
- package/public/Cesium/Assets/Textures/maki/scooter.png +0 -0
- package/public/Cesium/Assets/Textures/maki/shop.png +0 -0
- package/public/Cesium/Assets/Textures/maki/skiing.png +0 -0
- package/public/Cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/soccer.png +0 -0
- package/public/Cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/square.png +0 -0
- package/public/Cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/star.png +0 -0
- package/public/Cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/public/Cesium/Assets/Textures/maki/swimming.png +0 -0
- package/public/Cesium/Assets/Textures/maki/telephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/tennis.png +0 -0
- package/public/Cesium/Assets/Textures/maki/theatre.png +0 -0
- package/public/Cesium/Assets/Textures/maki/toilets.png +0 -0
- package/public/Cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/public/Cesium/Assets/Textures/maki/town.png +0 -0
- package/public/Cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/triangle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/village.png +0 -0
- package/public/Cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/water.png +0 -0
- package/public/Cesium/Assets/Textures/maki/wetland.png +0 -0
- package/public/Cesium/Assets/Textures/maki/zoo.png +0 -0
- package/public/Cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/public/Cesium/Assets/Textures/pin.svg +1 -0
- package/public/Cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/public/Cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/public/Cesium/Assets/approximateTerrainHeights.json +1 -0
- package/public/Cesium/Cesium.d.ts +45342 -0
- package/public/Cesium/Cesium.js +80 -0
- package/public/Cesium/Scene/ModelExperimental/CustomShaderGuide/README.md +4 -0
- package/public/Cesium/ThirdParty/Workers/basis_transcoder.js +1 -0
- package/public/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +117 -0
- package/public/Cesium/ThirdParty/Workers/package.js +26 -0
- package/public/Cesium/ThirdParty/Workers/package.json +1 -0
- package/public/Cesium/ThirdParty/Workers/pako_deflate.min.js +1 -0
- package/public/Cesium/ThirdParty/Workers/pako_inflate.min.js +1 -0
- package/public/Cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/public/Cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/public/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/public/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/public/Cesium/Widgets/Animation/Animation.css +1 -0
- package/public/Cesium/Widgets/Animation/lighter.css +1 -0
- package/public/Cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +1 -0
- package/public/Cesium/Widgets/BaseLayerPicker/lighter.css +1 -0
- package/public/Cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +1 -0
- package/public/Cesium/Widgets/CesiumInspector/CesiumInspector.css +1 -0
- package/public/Cesium/Widgets/CesiumWidget/CesiumWidget.css +1 -0
- package/public/Cesium/Widgets/CesiumWidget/lighter.css +1 -0
- package/public/Cesium/Widgets/FullscreenButton/FullscreenButton.css +1 -0
- package/public/Cesium/Widgets/Geocoder/Geocoder.css +1 -0
- package/public/Cesium/Widgets/Geocoder/lighter.css +1 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/public/Cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/public/Cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/public/Cesium/Widgets/Images/TimelineIcons.png +0 -0
- package/public/Cesium/Widgets/Images/info-loading.gif +0 -0
- package/public/Cesium/Widgets/InfoBox/InfoBox.css +1 -0
- package/public/Cesium/Widgets/InfoBox/InfoBoxDescription.css +1 -0
- package/public/Cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +1 -0
- package/public/Cesium/Widgets/NavigationHelpButton/lighter.css +1 -0
- package/public/Cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +1 -0
- package/public/Cesium/Widgets/ProjectionPicker/ProjectionPicker.css +1 -0
- package/public/Cesium/Widgets/SceneModePicker/SceneModePicker.css +1 -0
- package/public/Cesium/Widgets/SelectionIndicator/SelectionIndicator.css +1 -0
- package/public/Cesium/Widgets/Timeline/Timeline.css +1 -0
- package/public/Cesium/Widgets/Timeline/lighter.css +1 -0
- package/public/Cesium/Widgets/VRButton/VRButton.css +1 -0
- package/public/Cesium/Widgets/Viewer/Viewer.css +1 -0
- package/public/Cesium/Widgets/lighter.css +1 -0
- package/public/Cesium/Widgets/lighterShared.css +1 -0
- package/public/Cesium/Widgets/shared.css +1 -0
- package/public/Cesium/Widgets/widgets.css +1 -0
- package/public/Cesium/Workers/ArcType-b570b3ee.js +25 -0
- package/public/Cesium/Workers/ArcType-de5d8777.js +25 -0
- package/public/Cesium/Workers/AttributeCompression-5744d52e.js +25 -0
- package/public/Cesium/Workers/AttributeCompression-f967afc2.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-255e5057.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-47db7c7f.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-546c299b.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-5691ae9d.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-636ecf9f.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-869c584d.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-17972137.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-b34a2283.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-f99e1294.js +25 -0
- package/public/Cesium/Workers/Color-301b72e6.js +25 -0
- package/public/Cesium/Workers/Color-62754929.js +25 -0
- package/public/Cesium/Workers/Color-ab712aae.js +25 -0
- package/public/Cesium/Workers/ComponentDatatype-6ff7d2c3.js +25 -0
- package/public/Cesium/Workers/ComponentDatatype-e7fbe225.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-3c267f31.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-d343a6d7.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-eb4bd06f.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-5c5a2d97.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-b25ae85b.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-bb6ab1cc.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-004fa238.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-1c699361.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-3a1d8b87.js +25 -0
- package/public/Cesium/Workers/CylinderGeometryLibrary-24ad1484.js +25 -0
- package/public/Cesium/Workers/CylinderGeometryLibrary-24ffef71.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-5676dce7.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-8cfc99b0.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-b71ca2ae.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-6da859ee.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-7ab28f68.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-9c7a22fb.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-35eddd22.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-6376df9c.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-b0b5806f.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeodesic-84738e5f.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeodesic-ed8a0e40.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-5f95b75b.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-78c28ab4.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-e2286aab.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-80bdc65f.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-9a1727ee.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-fd03887d.js +25 -0
- package/public/Cesium/Workers/EllipsoidRhumbLine-60f14314.js +25 -0
- package/public/Cesium/Workers/EllipsoidRhumbLine-c3b11f35.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-7dc686cd.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-9813dd6d.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-c5c26b0d.js +25 -0
- package/public/Cesium/Workers/EncodedCartesian3-1e797130.js +25 -0
- package/public/Cesium/Workers/EncodedCartesian3-a9a8a281.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-a6f9f16a.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-df8261e4.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-e939fe30.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-8163e7fe.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-c4e59d2f.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-f542c9a2.js +25 -0
- package/public/Cesium/Workers/GeometryAttributes-734a3446.js +25 -0
- package/public/Cesium/Workers/GeometryAttributes-cb1bf806.js +25 -0
- package/public/Cesium/Workers/GeometryInstance-4bfcfe78.js +25 -0
- package/public/Cesium/Workers/GeometryInstance-8a2d7ac1.js +25 -0
- package/public/Cesium/Workers/GeometryOffsetAttribute-59b14f45.js +25 -0
- package/public/Cesium/Workers/GeometryOffsetAttribute-ddcc2f7f.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-350055a2.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-6bdfe811.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-87dd0e0a.js +25 -0
- package/public/Cesium/Workers/IndexDatatype-65271ba3.js +25 -0
- package/public/Cesium/Workers/IndexDatatype-d42fd89c.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-60b7843b.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-7d7483f2.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-a7d8bdc4.js +25 -0
- package/public/Cesium/Workers/Matrix2-735f0ea9.js +25 -0
- package/public/Cesium/Workers/Matrix2-73789715.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-4691d67b.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-5ee9ed67.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-e995cfaf.js +25 -0
- package/public/Cesium/Workers/Plane-6c77dfaf.js +25 -0
- package/public/Cesium/Workers/Plane-e916220d.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-1e3a5b27.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-9175878e.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-aaa1e2e8.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-22507996.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-5a1c3ce9.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-e5fc87bb.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-192ea676.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-608e4017.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-ab9c4512.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-02df6d4c.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-6e5cac20.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-a3701381.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-53950dc0.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-5711c037.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-ee92ce1a.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-06a4e4d4.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-53def455.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-bde82d75.js +25 -0
- package/public/Cesium/Workers/RuntimeError-17a7ed3d.js +25 -0
- package/public/Cesium/Workers/RuntimeError-4f8ec8a2.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-149a9713.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-218a6b73.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-28a34fd9.js +25 -0
- package/public/Cesium/Workers/Transforms-ac54558c.js +63 -0
- package/public/Cesium/Workers/Transforms-b698c16d.js +63 -0
- package/public/Cesium/Workers/Transforms-d4da1631.js +63 -0
- package/public/Cesium/Workers/VertexFormat-4362bb4a.js +25 -0
- package/public/Cesium/Workers/VertexFormat-9886cb81.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-514d3e5b.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-c66f62cf.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-e26bb3f9.js +25 -0
- package/public/Cesium/Workers/WebGLConstants-6da700a2.js +25 -0
- package/public/Cesium/Workers/WebGLConstants-d878ea52.js +25 -0
- package/public/Cesium/Workers/WebMercatorProjection-04ef6bc3.js +25 -0
- package/public/Cesium/Workers/WebMercatorProjection-4d21b562.js +25 -0
- package/public/Cesium/Workers/_commonjsHelpers-3aae1032-65601a27.js +25 -0
- package/public/Cesium/Workers/_commonjsHelpers-c27c962c.js +25 -0
- package/public/Cesium/Workers/arrayRemoveDuplicates-6f91355d.js +25 -0
- package/public/Cesium/Workers/arrayRemoveDuplicates-d332a3bf.js +25 -0
- package/public/Cesium/Workers/cesiumWorkerBootstrapper.js +6 -0
- package/public/Cesium/Workers/combine-c04aaa26.js +25 -0
- package/public/Cesium/Workers/combine-d11b1f00.js +25 -0
- package/public/Cesium/Workers/combineGeometry.js +25 -0
- package/public/Cesium/Workers/createBoxGeometry.js +25 -0
- package/public/Cesium/Workers/createBoxOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCircleGeometry.js +25 -0
- package/public/Cesium/Workers/createCircleOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCoplanarPolygonGeometry.js +25 -0
- package/public/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCorridorGeometry.js +25 -0
- package/public/Cesium/Workers/createCorridorOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCylinderGeometry.js +25 -0
- package/public/Cesium/Workers/createCylinderOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipseGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipseOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipsoidGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipsoidOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createFrustumGeometry.js +25 -0
- package/public/Cesium/Workers/createFrustumOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createGeometry.js +25 -0
- package/public/Cesium/Workers/createGroundPolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createPlaneGeometry.js +25 -0
- package/public/Cesium/Workers/createPlaneOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolygonGeometry.js +25 -0
- package/public/Cesium/Workers/createPolygonOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineVolumeGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createRectangleGeometry.js +25 -0
- package/public/Cesium/Workers/createRectangleOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createSimplePolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createSphereGeometry.js +25 -0
- package/public/Cesium/Workers/createSphereOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createTaskProcessorWorker.js +25 -0
- package/public/Cesium/Workers/createVectorTileClampedPolylines.js +25 -0
- package/public/Cesium/Workers/createVectorTileGeometries.js +25 -0
- package/public/Cesium/Workers/createVectorTilePoints.js +25 -0
- package/public/Cesium/Workers/createVectorTilePolygons.js +25 -0
- package/public/Cesium/Workers/createVectorTilePolylines.js +25 -0
- package/public/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +25 -0
- package/public/Cesium/Workers/createVerticesFromHeightmap.js +27 -0
- package/public/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +25 -0
- package/public/Cesium/Workers/createWallGeometry.js +25 -0
- package/public/Cesium/Workers/createWallOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/decodeDraco.js +25 -0
- package/public/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +25 -0
- package/public/Cesium/Workers/defaultValue-6ed27e8d.js +25 -0
- package/public/Cesium/Workers/defaultValue-97284df2.js +25 -0
- package/public/Cesium/Workers/package.js +26 -0
- package/public/Cesium/Workers/package.json +1 -0
- package/public/Cesium/Workers/transcodeKTX2.js +25 -0
- package/public/Cesium/Workers/transferTypedArrayTest.js +1 -0
- package/public/Cesium/Workers/upsampleQuantizedTerrainMesh.js +25 -0
- package/public/Cesium/index.cjs +9781 -0
- package/public/Cesium/index.js +9780 -0
- package/public/tudou3d/README.md +25 -0
- package/public/tudou3d/img/cursor.png +0 -0
- package/public/tudou3d/tudou3d-src.css +34 -0
- package/public/tudou3d/tudou3d-src.js +91704 -0
- package/public/tudou3d/tudou3d.css +8 -0
- package/public/tudou3d/tudou3d.js +6 -0
- package/public/vite.svg +1 -0
- package/src/App.vue +204 -0
- package/src/assets/base-map.svg +15 -0
- package/src/assets/face-map.svg +14 -0
- package/src/assets/north-map.svg +18 -0
- package/src/assets/reset-map.svg +13 -0
- package/src/assets/showcontrol-map.svg +21 -0
- package/src/assets/vue.svg +1 -0
- package/src/assets/zoomin-map.svg +13 -0
- package/src/assets/zoomout-map.svg +13 -0
- package/src/components/map3dt/index.vue +35 -0
- package/src/components/map3dt/useMap.ts +19 -0
- package/src/components/zoomIn/index.vue +37 -0
- package/src/components/zoomOut/index.vue +90 -0
- package/src/images.d.ts +7 -0
- package/src/main.ts +6 -0
- package/src/packages/main.ts +12 -0
- package/src/style.css +85 -0
- package/src/typings/shims-vue.d.ts +23 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +21 -0
- package/tsconfig.node.json +9 -0
- package/uno.config.ts +34 -0
- package/vite.config.ts +44 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-ac54558c","./Matrix2-735f0ea9","./ComponentDatatype-6ff7d2c3","./defaultValue-6ed27e8d","./RuntimeError-17a7ed3d","./EllipseGeometryLibrary-7ab28f68","./GeometryAttribute-f542c9a2","./GeometryAttributes-cb1bf806","./GeometryOffsetAttribute-ddcc2f7f","./IndexDatatype-d42fd89c"],(function(e,t,i,r,n,o,a,s,l,u,d){"use strict";const c=new i.Cartesian3;let f=new i.Cartesian3;const p=new t.BoundingSphere,m=new t.BoundingSphere;function h(e){const t=(e=n.defaultValue(e,n.defaultValue.EMPTY_OBJECT)).center,o=n.defaultValue(e.ellipsoid,i.Ellipsoid.WGS84),a=e.semiMajorAxis,s=e.semiMinorAxis,l=n.defaultValue(e.granularity,r.CesiumMath.RADIANS_PER_DEGREE),u=n.defaultValue(e.height,0),d=n.defaultValue(e.extrudedHeight,u);this._center=i.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=s,this._ellipsoid=i.Ellipsoid.clone(o),this._rotation=n.defaultValue(e.rotation,0),this._height=Math.max(d,u),this._granularity=l,this._extrudedHeight=Math.min(d,u),this._numberOfVerticalLines=Math.max(n.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}h.packedLength=i.Cartesian3.packedLength+i.Ellipsoid.packedLength+8,h.pack=function(e,t,r){return r=n.defaultValue(r,0),i.Cartesian3.pack(e._center,t,r),r+=i.Cartesian3.packedLength,i.Ellipsoid.pack(e._ellipsoid,t,r),r+=i.Ellipsoid.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._numberOfVerticalLines,t[r]=n.defaultValue(e._offsetAttribute,-1),t};const y=new i.Cartesian3,b=new i.Ellipsoid,A={center:y,ellipsoid:b,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};h.unpack=function(e,t,r){t=n.defaultValue(t,0);const o=i.Cartesian3.unpack(e,t,y);t+=i.Cartesian3.packedLength;const a=i.Ellipsoid.unpack(e,t,b);t+=i.Ellipsoid.packedLength;const s=e[t++],l=e[t++],u=e[t++],d=e[t++],c=e[t++],f=e[t++],p=e[t++],m=e[t];return n.defined(r)?(r._center=i.Cartesian3.clone(o,r._center),r._ellipsoid=i.Ellipsoid.clone(a,r._ellipsoid),r._semiMajorAxis=s,r._semiMinorAxis=l,r._rotation=u,r._height=d,r._granularity=c,r._extrudedHeight=f,r._numberOfVerticalLines=p,r._offsetAttribute=-1===m?void 0:m,r):(A.height=d,A.extrudedHeight=f,A.granularity=c,A.rotation=u,A.semiMajorAxis=s,A.semiMinorAxis=l,A.numberOfVerticalLines=p,A.offsetAttribute=-1===m?void 0:m,new h(A))},h.createGeometry=function(e){if(e._semiMajorAxis<=0||e._semiMinorAxis<=0)return;const o=e._height,h=e._extrudedHeight,y=!r.CesiumMath.equalsEpsilon(o,h,0,r.CesiumMath.EPSILON2);e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center);const b={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:o,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines};let A;if(y)b.extrudedHeight=h,b.offsetAttribute=e._offsetAttribute,A=function(e){const o=e.center,f=e.ellipsoid,h=e.semiMajorAxis;let y=i.Cartesian3.multiplyByScalar(f.geodeticSurfaceNormal(o,c),e.height,c);p.center=i.Cartesian3.add(o,y,p.center),p.radius=h,y=i.Cartesian3.multiplyByScalar(f.geodeticSurfaceNormal(o,y),e.extrudedHeight,y),m.center=i.Cartesian3.add(o,y,m.center),m.radius=h;let b=a.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions;const A=new l.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a.EllipseGeometryLibrary.raisePositionsToHeight(b,e,!0)})});b=A.position.values;const _=t.BoundingSphere.union(p,m);let g=b.length/3;if(n.defined(e.offsetAttribute)){let t=new Uint8Array(g);if(e.offsetAttribute===u.GeometryOffsetAttribute.TOP)t=t.fill(1,0,g/2);else{const i=e.offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1;t=t.fill(i)}A.applyOffset=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:t})}let x=n.defaultValue(e.numberOfVerticalLines,16);x=r.CesiumMath.clamp(x,0,g/2);const E=d.IndexDatatype.createTypedArray(g,2*g+2*x);g/=2;let M,C,G=0;for(M=0;M<g;++M)E[G++]=M,E[G++]=(M+1)%g,E[G++]=M+g,E[G++]=(M+1)%g+g;if(x>0){const e=Math.min(x,g);C=Math.round(g/e);const t=Math.min(C*x,g);for(M=0;M<t;M+=C)E[G++]=M,E[G++]=M+g}return{boundingSphere:_,attributes:A,indices:E}}(b);else if(A=function(e){const n=e.center;f=i.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(n,f),e.height,f),f=i.Cartesian3.add(n,f,f);const o=new t.BoundingSphere(f,e.semiMajorAxis),u=a.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,c=new l.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a.EllipseGeometryLibrary.raisePositionsToHeight(u,e,!1)})}),p=u.length/3,m=d.IndexDatatype.createTypedArray(p,2*p);let h=0;for(let e=0;e<p;++e)m[h++]=e,m[h++]=(e+1)%p;return{boundingSphere:o,attributes:c,indices:m}}(b),n.defined(e._offsetAttribute)){const t=A.attributes.position.values.length,i=e._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,n=new Uint8Array(t/3).fill(i);A.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}return new s.Geometry({attributes:A.attributes,indices:A.indices,primitiveType:s.PrimitiveType.LINES,boundingSphere:A.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=h}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-d4da1631","./Matrix2-73789715","./ComponentDatatype-e7fbe225","./defaultValue-97284df2","./RuntimeError-4f8ec8a2","./EllipseGeometryLibrary-9c7a22fb","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3"],(function(e,t,i,r,n,o,a,s,l,u,d){"use strict";const c=new i.Cartesian3;let f=new i.Cartesian3;const p=new t.BoundingSphere,m=new t.BoundingSphere;function h(e){const t=(e=n.defaultValue(e,n.defaultValue.EMPTY_OBJECT)).center,o=n.defaultValue(e.ellipsoid,i.Ellipsoid.WGS84),a=e.semiMajorAxis,s=e.semiMinorAxis,l=n.defaultValue(e.granularity,r.CesiumMath.RADIANS_PER_DEGREE),u=n.defaultValue(e.height,0),d=n.defaultValue(e.extrudedHeight,u);this._center=i.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=s,this._ellipsoid=i.Ellipsoid.clone(o),this._rotation=n.defaultValue(e.rotation,0),this._height=Math.max(d,u),this._granularity=l,this._extrudedHeight=Math.min(d,u),this._numberOfVerticalLines=Math.max(n.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}h.packedLength=i.Cartesian3.packedLength+i.Ellipsoid.packedLength+8,h.pack=function(e,t,r){return r=n.defaultValue(r,0),i.Cartesian3.pack(e._center,t,r),r+=i.Cartesian3.packedLength,i.Ellipsoid.pack(e._ellipsoid,t,r),r+=i.Ellipsoid.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._numberOfVerticalLines,t[r]=n.defaultValue(e._offsetAttribute,-1),t};const y=new i.Cartesian3,b=new i.Ellipsoid,A={center:y,ellipsoid:b,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};h.unpack=function(e,t,r){t=n.defaultValue(t,0);const o=i.Cartesian3.unpack(e,t,y);t+=i.Cartesian3.packedLength;const a=i.Ellipsoid.unpack(e,t,b);t+=i.Ellipsoid.packedLength;const s=e[t++],l=e[t++],u=e[t++],d=e[t++],c=e[t++],f=e[t++],p=e[t++],m=e[t];return n.defined(r)?(r._center=i.Cartesian3.clone(o,r._center),r._ellipsoid=i.Ellipsoid.clone(a,r._ellipsoid),r._semiMajorAxis=s,r._semiMinorAxis=l,r._rotation=u,r._height=d,r._granularity=c,r._extrudedHeight=f,r._numberOfVerticalLines=p,r._offsetAttribute=-1===m?void 0:m,r):(A.height=d,A.extrudedHeight=f,A.granularity=c,A.rotation=u,A.semiMajorAxis=s,A.semiMinorAxis=l,A.numberOfVerticalLines=p,A.offsetAttribute=-1===m?void 0:m,new h(A))},h.createGeometry=function(e){if(e._semiMajorAxis<=0||e._semiMinorAxis<=0)return;const o=e._height,h=e._extrudedHeight,y=!r.CesiumMath.equalsEpsilon(o,h,0,r.CesiumMath.EPSILON2);e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center);const b={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:o,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines};let A;if(y)b.extrudedHeight=h,b.offsetAttribute=e._offsetAttribute,A=function(e){const o=e.center,f=e.ellipsoid,h=e.semiMajorAxis;let y=i.Cartesian3.multiplyByScalar(f.geodeticSurfaceNormal(o,c),e.height,c);p.center=i.Cartesian3.add(o,y,p.center),p.radius=h,y=i.Cartesian3.multiplyByScalar(f.geodeticSurfaceNormal(o,y),e.extrudedHeight,y),m.center=i.Cartesian3.add(o,y,m.center),m.radius=h;let b=a.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions;const A=new l.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a.EllipseGeometryLibrary.raisePositionsToHeight(b,e,!0)})});b=A.position.values;const _=t.BoundingSphere.union(p,m);let g=b.length/3;if(n.defined(e.offsetAttribute)){let t=new Uint8Array(g);if(e.offsetAttribute===u.GeometryOffsetAttribute.TOP)t=t.fill(1,0,g/2);else{const i=e.offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1;t=t.fill(i)}A.applyOffset=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:t})}let x=n.defaultValue(e.numberOfVerticalLines,16);x=r.CesiumMath.clamp(x,0,g/2);const E=d.IndexDatatype.createTypedArray(g,2*g+2*x);g/=2;let M,C,G=0;for(M=0;M<g;++M)E[G++]=M,E[G++]=(M+1)%g,E[G++]=M+g,E[G++]=(M+1)%g+g;if(x>0){const e=Math.min(x,g);C=Math.round(g/e);const t=Math.min(C*x,g);for(M=0;M<t;M+=C)E[G++]=M,E[G++]=M+g}return{boundingSphere:_,attributes:A,indices:E}}(b);else if(A=function(e){const n=e.center;f=i.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(n,f),e.height,f),f=i.Cartesian3.add(n,f,f);const o=new t.BoundingSphere(f,e.semiMajorAxis),u=a.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,c=new l.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a.EllipseGeometryLibrary.raisePositionsToHeight(u,e,!1)})}),p=u.length/3,m=d.IndexDatatype.createTypedArray(p,2*p);let h=0;for(let e=0;e<p;++e)m[h++]=e,m[h++]=(e+1)%p;return{boundingSphere:o,attributes:c,indices:m}}(b),n.defined(e._offsetAttribute)){const t=A.attributes.position.values.length,i=e._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,n=new Uint8Array(t/3).fill(i);A.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}return new s.Geometry({attributes:A.attributes,indices:A.indices,primitiveType:s.PrimitiveType.LINES,boundingSphere:A.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=h}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-b698c16d","./Matrix2-735f0ea9","./ComponentDatatype-6ff7d2c3","./defaultValue-6ed27e8d","./RuntimeError-17a7ed3d","./EllipseGeometryLibrary-6da859ee","./GeometryAttribute-c4e59d2f","./GeometryAttributes-cb1bf806","./GeometryOffsetAttribute-ddcc2f7f","./IndexDatatype-d42fd89c"],(function(e,t,i,r,n,o,a,s,l,u,d){"use strict";const c=new i.Cartesian3;let f=new i.Cartesian3;const p=new t.BoundingSphere,m=new t.BoundingSphere;function h(e){const t=(e=n.defaultValue(e,n.defaultValue.EMPTY_OBJECT)).center,o=n.defaultValue(e.ellipsoid,i.Ellipsoid.WGS84),a=e.semiMajorAxis,s=e.semiMinorAxis,l=n.defaultValue(e.granularity,r.CesiumMath.RADIANS_PER_DEGREE),u=n.defaultValue(e.height,0),d=n.defaultValue(e.extrudedHeight,u);this._center=i.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=s,this._ellipsoid=i.Ellipsoid.clone(o),this._rotation=n.defaultValue(e.rotation,0),this._height=Math.max(d,u),this._granularity=l,this._extrudedHeight=Math.min(d,u),this._numberOfVerticalLines=Math.max(n.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}h.packedLength=i.Cartesian3.packedLength+i.Ellipsoid.packedLength+8,h.pack=function(e,t,r){return r=n.defaultValue(r,0),i.Cartesian3.pack(e._center,t,r),r+=i.Cartesian3.packedLength,i.Ellipsoid.pack(e._ellipsoid,t,r),r+=i.Ellipsoid.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._numberOfVerticalLines,t[r]=n.defaultValue(e._offsetAttribute,-1),t};const y=new i.Cartesian3,b=new i.Ellipsoid,A={center:y,ellipsoid:b,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};h.unpack=function(e,t,r){t=n.defaultValue(t,0);const o=i.Cartesian3.unpack(e,t,y);t+=i.Cartesian3.packedLength;const a=i.Ellipsoid.unpack(e,t,b);t+=i.Ellipsoid.packedLength;const s=e[t++],l=e[t++],u=e[t++],d=e[t++],c=e[t++],f=e[t++],p=e[t++],m=e[t];return n.defined(r)?(r._center=i.Cartesian3.clone(o,r._center),r._ellipsoid=i.Ellipsoid.clone(a,r._ellipsoid),r._semiMajorAxis=s,r._semiMinorAxis=l,r._rotation=u,r._height=d,r._granularity=c,r._extrudedHeight=f,r._numberOfVerticalLines=p,r._offsetAttribute=-1===m?void 0:m,r):(A.height=d,A.extrudedHeight=f,A.granularity=c,A.rotation=u,A.semiMajorAxis=s,A.semiMinorAxis=l,A.numberOfVerticalLines=p,A.offsetAttribute=-1===m?void 0:m,new h(A))},h.createGeometry=function(e){if(e._semiMajorAxis<=0||e._semiMinorAxis<=0)return;const o=e._height,h=e._extrudedHeight,y=!r.CesiumMath.equalsEpsilon(o,h,0,r.CesiumMath.EPSILON2);e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center);const b={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:o,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines};let A;if(y)b.extrudedHeight=h,b.offsetAttribute=e._offsetAttribute,A=function(e){const o=e.center,f=e.ellipsoid,h=e.semiMajorAxis;let y=i.Cartesian3.multiplyByScalar(f.geodeticSurfaceNormal(o,c),e.height,c);p.center=i.Cartesian3.add(o,y,p.center),p.radius=h,y=i.Cartesian3.multiplyByScalar(f.geodeticSurfaceNormal(o,y),e.extrudedHeight,y),m.center=i.Cartesian3.add(o,y,m.center),m.radius=h;let b=a.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions;const A=new l.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a.EllipseGeometryLibrary.raisePositionsToHeight(b,e,!0)})});b=A.position.values;const _=t.BoundingSphere.union(p,m);let g=b.length/3;if(n.defined(e.offsetAttribute)){let t=new Uint8Array(g);if(e.offsetAttribute===u.GeometryOffsetAttribute.TOP)t=t.fill(1,0,g/2);else{const i=e.offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1;t=t.fill(i)}A.applyOffset=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:t})}let x=n.defaultValue(e.numberOfVerticalLines,16);x=r.CesiumMath.clamp(x,0,g/2);const E=d.IndexDatatype.createTypedArray(g,2*g+2*x);g/=2;let M,C,G=0;for(M=0;M<g;++M)E[G++]=M,E[G++]=(M+1)%g,E[G++]=M+g,E[G++]=(M+1)%g+g;if(x>0){const e=Math.min(x,g);C=Math.round(g/e);const t=Math.min(C*x,g);for(M=0;M<t;M+=C)E[G++]=M,E[G++]=M+g}return{boundingSphere:_,attributes:A,indices:E}}(b);else if(A=function(e){const n=e.center;f=i.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(n,f),e.height,f),f=i.Cartesian3.add(n,f,f);const o=new t.BoundingSphere(f,e.semiMajorAxis),u=a.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,c=new l.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a.EllipseGeometryLibrary.raisePositionsToHeight(u,e,!1)})}),p=u.length/3,m=d.IndexDatatype.createTypedArray(p,2*p);let h=0;for(let e=0;e<p;++e)m[h++]=e,m[h++]=(e+1)%p;return{boundingSphere:o,attributes:c,indices:m}}(b),n.defined(e._offsetAttribute)){const t=A.attributes.position.values.length,i=e._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,n=new Uint8Array(t/3).fill(i);A.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}return new s.Geometry({attributes:A.attributes,indices:A.indices,primitiveType:s.PrimitiveType.LINES,boundingSphere:A.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=h}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Matrix2-735f0ea9","./RuntimeError-17a7ed3d","./defaultValue-6ed27e8d","./ComponentDatatype-6ff7d2c3"],(function(t,a,i,n,e){"use strict";function s(t,a,i,n,e,s,o){const r=function(t,a){return t*a*(4+t*(4-3*a))/16}(t,i);return(1-r)*t*a*(n+r*e*(o+r*s*(2*o*o-1)))}const o=new a.Cartesian3,r=new a.Cartesian3;function h(t,i,n,h){a.Cartesian3.normalize(h.cartographicToCartesian(i,r),o),a.Cartesian3.normalize(h.cartographicToCartesian(n,r),r),function(t,a,i,n,o,r,h){const d=(a-i)/a,c=r-n,u=Math.atan((1-d)*Math.tan(o)),l=Math.atan((1-d)*Math.tan(h)),M=Math.cos(u),g=Math.sin(u),p=Math.cos(l),_=Math.sin(l),f=M*p,m=M*_,C=g*_,H=g*p;let v,O,S,q,U,A=c,R=e.CesiumMath.TWO_PI,w=Math.cos(A),b=Math.sin(A);do{w=Math.cos(A),b=Math.sin(A);const t=m-H*w;let a;S=Math.sqrt(p*p*b*b+t*t),O=C+f*w,v=Math.atan2(S,O),0===S?(a=0,q=1):(a=f*b/S,q=1-a*a),R=A,U=O-2*C/q,isFinite(U)||(U=0),A=c+s(d,a,q,v,S,O,U)}while(Math.abs(A-R)>e.CesiumMath.EPSILON12);const y=q*(a*a-i*i)/(i*i),E=y*(256+y*(y*(74-47*y)-128))/1024,x=U*U,D=i*(1+y*(4096+y*(y*(320-175*y)-768))/16384)*(v-E*S*(U+E*(O*(2*x-1)-E*U*(4*S*S-3)*(4*x-3)/6)/4)),P=Math.atan2(p*b,m-H*w),T=Math.atan2(M*b,m*w-H);t._distance=D,t._startHeading=P,t._endHeading=T,t._uSquared=y}(t,h.maximumRadius,h.minimumRadius,i.longitude,i.latitude,n.longitude,n.latitude),t._start=a.Cartographic.clone(i,t._start),t._end=a.Cartographic.clone(n,t._end),t._start.height=0,t._end.height=0,function(t){const a=t._uSquared,i=t._ellipsoid.maximumRadius,n=t._ellipsoid.minimumRadius,e=(i-n)/i,s=Math.cos(t._startHeading),o=Math.sin(t._startHeading),r=(1-e)*Math.tan(t._start.latitude),h=1/Math.sqrt(1+r*r),d=h*r,c=Math.atan2(r,s),u=h*o,l=u*u,M=1-l,g=Math.sqrt(M),p=a/4,_=p*p,f=_*p,m=_*_,C=1+p-3*_/4+5*f/4-175*m/64,H=1-p+15*_/8-35*f/8,v=1-3*p+35*_/4,O=1-5*p,S=C*c-H*Math.sin(2*c)*p/2-v*Math.sin(4*c)*_/16-O*Math.sin(6*c)*f/48-5*Math.sin(8*c)*m/512,q=t._constants;q.a=i,q.b=n,q.f=e,q.cosineHeading=s,q.sineHeading=o,q.tanU=r,q.cosineU=h,q.sineU=d,q.sigma=c,q.sineAlpha=u,q.sineSquaredAlpha=l,q.cosineSquaredAlpha=M,q.cosineAlpha=g,q.u2Over4=p,q.u4Over16=_,q.u6Over64=f,q.u8Over256=m,q.a0=C,q.a1=H,q.a2=v,q.a3=O,q.distanceRatio=S}(t)}function d(t,i,e){const s=n.defaultValue(e,a.Ellipsoid.WGS84);this._ellipsoid=s,this._start=new a.Cartographic,this._end=new a.Cartographic,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,n.defined(t)&&n.defined(i)&&h(this,t,i,s)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return this._startHeading}},endHeading:{get:function(){return this._endHeading}}}),d.prototype.setEndPoints=function(t,a){h(this,t,a,this._ellipsoid)},d.prototype.interpolateUsingFraction=function(t,a){return this.interpolateUsingSurfaceDistance(this._distance*t,a)},d.prototype.interpolateUsingSurfaceDistance=function(t,i){const e=this._constants,o=e.distanceRatio+t/e.b,r=Math.cos(2*o),h=Math.cos(4*o),d=Math.cos(6*o),c=Math.sin(2*o),u=Math.sin(4*o),l=Math.sin(6*o),M=Math.sin(8*o),g=o*o,p=o*g,_=e.u8Over256,f=e.u2Over4,m=e.u6Over64,C=e.u4Over16;let H=2*p*_*r/3+o*(1-f+7*C/4-15*m/4+579*_/64-(C-15*m/4+187*_/16)*r-(5*m/4-115*_/16)*h-29*_*d/16)+(f/2-C+71*m/32-85*_/16)*c+(5*C/16-5*m/4+383*_/96)*u-g*((m-11*_/2)*c+5*_*u/2)+(29*m/96-29*_/16)*l+539*_*M/1536;const v=Math.asin(Math.sin(H)*e.cosineAlpha),O=Math.atan(e.a/e.b*Math.tan(v));H-=e.sigma;const S=Math.cos(2*e.sigma+H),q=Math.sin(H),U=Math.cos(H),A=e.cosineU*U,R=e.sineU*q,w=Math.atan2(q*e.sineHeading,A-R*e.cosineHeading)-s(e.f,e.sineAlpha,e.cosineSquaredAlpha,H,q,U,S);return n.defined(i)?(i.longitude=this._start.longitude+w,i.latitude=O,i.height=0,i):new a.Cartographic(this._start.longitude+w,O,0)},t.EllipsoidGeodesic=d}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./ComponentDatatype-e7fbe225"],(function(t,a,i,n,e){"use strict";function s(t,a,i,n,e,s,o){const r=function(t,a){return t*a*(4+t*(4-3*a))/16}(t,i);return(1-r)*t*a*(n+r*e*(o+r*s*(2*o*o-1)))}const o=new a.Cartesian3,r=new a.Cartesian3;function h(t,i,n,h){a.Cartesian3.normalize(h.cartographicToCartesian(i,r),o),a.Cartesian3.normalize(h.cartographicToCartesian(n,r),r),function(t,a,i,n,o,r,h){const c=(a-i)/a,d=r-n,u=Math.atan((1-c)*Math.tan(o)),l=Math.atan((1-c)*Math.tan(h)),M=Math.cos(u),g=Math.sin(u),p=Math.cos(l),_=Math.sin(l),f=M*p,m=M*_,C=g*_,H=g*p;let v,O,S,q,U,A=d,R=e.CesiumMath.TWO_PI,b=Math.cos(A),w=Math.sin(A);do{b=Math.cos(A),w=Math.sin(A);const t=m-H*b;let a;S=Math.sqrt(p*p*w*w+t*t),O=C+f*b,v=Math.atan2(S,O),0===S?(a=0,q=1):(a=f*w/S,q=1-a*a),R=A,U=O-2*C/q,isFinite(U)||(U=0),A=d+s(c,a,q,v,S,O,U)}while(Math.abs(A-R)>e.CesiumMath.EPSILON12);const y=q*(a*a-i*i)/(i*i),E=y*(256+y*(y*(74-47*y)-128))/1024,x=U*U,D=i*(1+y*(4096+y*(y*(320-175*y)-768))/16384)*(v-E*S*(U+E*(O*(2*x-1)-E*U*(4*S*S-3)*(4*x-3)/6)/4)),P=Math.atan2(p*w,m-H*b),T=Math.atan2(M*w,m*b-H);t._distance=D,t._startHeading=P,t._endHeading=T,t._uSquared=y}(t,h.maximumRadius,h.minimumRadius,i.longitude,i.latitude,n.longitude,n.latitude),t._start=a.Cartographic.clone(i,t._start),t._end=a.Cartographic.clone(n,t._end),t._start.height=0,t._end.height=0,function(t){const a=t._uSquared,i=t._ellipsoid.maximumRadius,n=t._ellipsoid.minimumRadius,e=(i-n)/i,s=Math.cos(t._startHeading),o=Math.sin(t._startHeading),r=(1-e)*Math.tan(t._start.latitude),h=1/Math.sqrt(1+r*r),c=h*r,d=Math.atan2(r,s),u=h*o,l=u*u,M=1-l,g=Math.sqrt(M),p=a/4,_=p*p,f=_*p,m=_*_,C=1+p-3*_/4+5*f/4-175*m/64,H=1-p+15*_/8-35*f/8,v=1-3*p+35*_/4,O=1-5*p,S=C*d-H*Math.sin(2*d)*p/2-v*Math.sin(4*d)*_/16-O*Math.sin(6*d)*f/48-5*Math.sin(8*d)*m/512,q=t._constants;q.a=i,q.b=n,q.f=e,q.cosineHeading=s,q.sineHeading=o,q.tanU=r,q.cosineU=h,q.sineU=c,q.sigma=d,q.sineAlpha=u,q.sineSquaredAlpha=l,q.cosineSquaredAlpha=M,q.cosineAlpha=g,q.u2Over4=p,q.u4Over16=_,q.u6Over64=f,q.u8Over256=m,q.a0=C,q.a1=H,q.a2=v,q.a3=O,q.distanceRatio=S}(t)}function c(t,i,e){const s=n.defaultValue(e,a.Ellipsoid.WGS84);this._ellipsoid=s,this._start=new a.Cartographic,this._end=new a.Cartographic,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,n.defined(t)&&n.defined(i)&&h(this,t,i,s)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return this._startHeading}},endHeading:{get:function(){return this._endHeading}}}),c.prototype.setEndPoints=function(t,a){h(this,t,a,this._ellipsoid)},c.prototype.interpolateUsingFraction=function(t,a){return this.interpolateUsingSurfaceDistance(this._distance*t,a)},c.prototype.interpolateUsingSurfaceDistance=function(t,i){const e=this._constants,o=e.distanceRatio+t/e.b,r=Math.cos(2*o),h=Math.cos(4*o),c=Math.cos(6*o),d=Math.sin(2*o),u=Math.sin(4*o),l=Math.sin(6*o),M=Math.sin(8*o),g=o*o,p=o*g,_=e.u8Over256,f=e.u2Over4,m=e.u6Over64,C=e.u4Over16;let H=2*p*_*r/3+o*(1-f+7*C/4-15*m/4+579*_/64-(C-15*m/4+187*_/16)*r-(5*m/4-115*_/16)*h-29*_*c/16)+(f/2-C+71*m/32-85*_/16)*d+(5*C/16-5*m/4+383*_/96)*u-g*((m-11*_/2)*d+5*_*u/2)+(29*m/96-29*_/16)*l+539*_*M/1536;const v=Math.asin(Math.sin(H)*e.cosineAlpha),O=Math.atan(e.a/e.b*Math.tan(v));H-=e.sigma;const S=Math.cos(2*e.sigma+H),q=Math.sin(H),U=Math.cos(H),A=e.cosineU*U,R=e.sineU*q,b=Math.atan2(q*e.sineHeading,A-R*e.cosineHeading)-s(e.f,e.sineAlpha,e.cosineSquaredAlpha,H,q,U,S);return n.defined(i)?(i.longitude=this._start.longitude+b,i.latitude=O,i.height=0,i):new a.Cartographic(this._start.longitude+b,O,0)},t.EllipsoidGeodesic=c}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-ac54558c","./Matrix2-735f0ea9","./ComponentDatatype-6ff7d2c3","./defaultValue-6ed27e8d","./RuntimeError-17a7ed3d","./GeometryAttribute-f542c9a2","./GeometryAttributes-cb1bf806","./GeometryOffsetAttribute-ddcc2f7f","./IndexDatatype-d42fd89c","./VertexFormat-4362bb4a"],(function(t,e,a,n,i,r,o,s,m,u,c){"use strict";const l=new a.Cartesian3,f=new a.Cartesian3,d=new a.Cartesian3,C=new a.Cartesian3,p=new a.Cartesian3,y=new a.Cartesian3(1,1,1),_=Math.cos,h=Math.sin;function x(t){t=i.defaultValue(t,i.defaultValue.EMPTY_OBJECT);const e=i.defaultValue(t.radii,y),r=i.defaultValue(t.innerRadii,e),o=i.defaultValue(t.minimumClock,0),s=i.defaultValue(t.maximumClock,n.CesiumMath.TWO_PI),m=i.defaultValue(t.minimumCone,0),u=i.defaultValue(t.maximumCone,n.CesiumMath.PI),l=Math.round(i.defaultValue(t.stackPartitions,64)),f=Math.round(i.defaultValue(t.slicePartitions,64)),d=i.defaultValue(t.vertexFormat,c.VertexFormat.DEFAULT);this._radii=a.Cartesian3.clone(e),this._innerRadii=a.Cartesian3.clone(r),this._minimumClock=o,this._maximumClock=s,this._minimumCone=m,this._maximumCone=u,this._stackPartitions=l,this._slicePartitions=f,this._vertexFormat=c.VertexFormat.clone(d),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}x.packedLength=2*a.Cartesian3.packedLength+c.VertexFormat.packedLength+7,x.pack=function(t,e,n){return n=i.defaultValue(n,0),a.Cartesian3.pack(t._radii,e,n),n+=a.Cartesian3.packedLength,a.Cartesian3.pack(t._innerRadii,e,n),n+=a.Cartesian3.packedLength,c.VertexFormat.pack(t._vertexFormat,e,n),n+=c.VertexFormat.packedLength,e[n++]=t._minimumClock,e[n++]=t._maximumClock,e[n++]=t._minimumCone,e[n++]=t._maximumCone,e[n++]=t._stackPartitions,e[n++]=t._slicePartitions,e[n]=i.defaultValue(t._offsetAttribute,-1),e};const A=new a.Cartesian3,b=new a.Cartesian3,k=new c.VertexFormat,w={radii:A,innerRadii:b,vertexFormat:k,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};let P;x.unpack=function(t,e,n){e=i.defaultValue(e,0);const r=a.Cartesian3.unpack(t,e,A);e+=a.Cartesian3.packedLength;const o=a.Cartesian3.unpack(t,e,b);e+=a.Cartesian3.packedLength;const s=c.VertexFormat.unpack(t,e,k);e+=c.VertexFormat.packedLength;const m=t[e++],u=t[e++],l=t[e++],f=t[e++],d=t[e++],C=t[e++],p=t[e];return i.defined(n)?(n._radii=a.Cartesian3.clone(r,n._radii),n._innerRadii=a.Cartesian3.clone(o,n._innerRadii),n._vertexFormat=c.VertexFormat.clone(s,n._vertexFormat),n._minimumClock=m,n._maximumClock=u,n._minimumCone=l,n._maximumCone=f,n._stackPartitions=d,n._slicePartitions=C,n._offsetAttribute=-1===p?void 0:p,n):(w.minimumClock=m,w.maximumClock=u,w.minimumCone=l,w.maximumCone=f,w.stackPartitions=d,w.slicePartitions=C,w.offsetAttribute=-1===p?void 0:p,new x(w))},x.createGeometry=function(t){const r=t._radii;if(r.x<=0||r.y<=0||r.z<=0)return;const c=t._innerRadii;if(c.x<=0||c.y<=0||c.z<=0)return;const y=t._minimumClock,x=t._maximumClock,A=t._minimumCone,b=t._maximumCone,k=t._vertexFormat;let w,P,g=t._slicePartitions+1,v=t._stackPartitions+1;g=Math.round(g*Math.abs(x-y)/n.CesiumMath.TWO_PI),v=Math.round(v*Math.abs(b-A)/n.CesiumMath.PI),g<2&&(g=2),v<2&&(v=2);let F=0;const V=[A],M=[y];for(w=0;w<v;w++)V.push(A+w*(b-A)/(v-1));for(V.push(b),P=0;P<g;P++)M.push(y+P*(x-y)/(g-1));M.push(x);const T=V.length,D=M.length;let G=0,L=1;const O=c.x!==r.x||c.y!==r.y||c.z!==r.z;let I=!1,E=!1,z=!1;O&&(L=2,A>0&&(I=!0,G+=g-1),b<Math.PI&&(E=!0,G+=g-1),(x-y)%n.CesiumMath.TWO_PI?(z=!0,G+=2*(v-1)+1):G+=1);const N=D*T*L,R=new Float64Array(3*N),U=new Array(N).fill(!1),S=new Array(N).fill(!1),B=g*v*L,W=6*(B+G+1-(g+v)*L),Y=u.IndexDatatype.createTypedArray(B,W),J=k.normal?new Float32Array(3*N):void 0,X=k.tangent?new Float32Array(3*N):void 0,Z=k.bitangent?new Float32Array(3*N):void 0,j=k.st?new Float32Array(2*N):void 0,q=new Array(T),H=new Array(T);for(w=0;w<T;w++)q[w]=h(V[w]),H[w]=_(V[w]);const K=new Array(D),Q=new Array(D);for(P=0;P<D;P++)Q[P]=_(M[P]),K[P]=h(M[P]);for(w=0;w<T;w++)for(P=0;P<D;P++)R[F++]=r.x*q[w]*Q[P],R[F++]=r.y*q[w]*K[P],R[F++]=r.z*H[w];let $,tt,et,at,nt=N/2;if(O)for(w=0;w<T;w++)for(P=0;P<D;P++)R[F++]=c.x*q[w]*Q[P],R[F++]=c.y*q[w]*K[P],R[F++]=c.z*H[w],U[nt]=!0,w>0&&w!==T-1&&0!==P&&P!==D-1&&(S[nt]=!0),nt++;for(F=0,w=1;w<T-2;w++)for($=w*D,tt=(w+1)*D,P=1;P<D-2;P++)Y[F++]=tt+P,Y[F++]=tt+P+1,Y[F++]=$+P+1,Y[F++]=tt+P,Y[F++]=$+P+1,Y[F++]=$+P;if(O){const t=T*D;for(w=1;w<T-2;w++)for($=t+w*D,tt=t+(w+1)*D,P=1;P<D-2;P++)Y[F++]=tt+P,Y[F++]=$+P,Y[F++]=$+P+1,Y[F++]=tt+P,Y[F++]=$+P+1,Y[F++]=tt+P+1}if(O){if(I)for(at=T*D,w=1;w<D-2;w++)Y[F++]=w,Y[F++]=w+1,Y[F++]=at+w+1,Y[F++]=w,Y[F++]=at+w+1,Y[F++]=at+w;if(E)for(et=T*D-D,at=T*D*L-D,w=1;w<D-2;w++)Y[F++]=et+w+1,Y[F++]=et+w,Y[F++]=at+w,Y[F++]=et+w+1,Y[F++]=at+w,Y[F++]=at+w+1}if(z){for(w=1;w<T-2;w++)at=D*T+D*w,et=D*w,Y[F++]=at,Y[F++]=et+D,Y[F++]=et,Y[F++]=at,Y[F++]=at+D,Y[F++]=et+D;for(w=1;w<T-2;w++)at=D*T+D*(w+1)-1,et=D*(w+1)-1,Y[F++]=et+D,Y[F++]=at,Y[F++]=et,Y[F++]=et+D,Y[F++]=at+D,Y[F++]=at}const it=new s.GeometryAttributes;k.position&&(it.position=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:R}));let rt=0,ot=0,st=0,mt=0;const ut=N/2;let ct;const lt=a.Ellipsoid.fromCartesian3(r),ft=a.Ellipsoid.fromCartesian3(c);if(k.st||k.normal||k.tangent||k.bitangent){for(w=0;w<N;w++){ct=U[w]?ft:lt;const t=a.Cartesian3.fromArray(R,3*w,l),e=ct.geodeticSurfaceNormal(t,f);if(S[w]&&a.Cartesian3.negate(e,e),k.st){const t=a.Cartesian2.negate(e,p);j[rt++]=Math.atan2(t.y,t.x)/n.CesiumMath.TWO_PI+.5,j[rt++]=Math.asin(e.z)/Math.PI+.5}if(k.normal&&(J[ot++]=e.x,J[ot++]=e.y,J[ot++]=e.z),k.tangent||k.bitangent){const t=d;let n,i=0;if(U[w]&&(i=ut),n=!I&&w>=i&&w<i+2*D?a.Cartesian3.UNIT_X:a.Cartesian3.UNIT_Z,a.Cartesian3.cross(n,e,t),a.Cartesian3.normalize(t,t),k.tangent&&(X[st++]=t.x,X[st++]=t.y,X[st++]=t.z),k.bitangent){const n=a.Cartesian3.cross(e,t,C);a.Cartesian3.normalize(n,n),Z[mt++]=n.x,Z[mt++]=n.y,Z[mt++]=n.z}}}k.st&&(it.st=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:j})),k.normal&&(it.normal=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:J})),k.tangent&&(it.tangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:X})),k.bitangent&&(it.bitangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:Z}))}if(i.defined(t._offsetAttribute)){const e=R.length,a=t._offsetAttribute===m.GeometryOffsetAttribute.NONE?0:1,i=new Uint8Array(e/3).fill(a);it.applyOffset=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}return new o.Geometry({attributes:it,indices:Y,primitiveType:o.PrimitiveType.TRIANGLES,boundingSphere:e.BoundingSphere.fromEllipsoid(lt),offsetAttribute:t._offsetAttribute})},x.getUnitEllipsoid=function(){return i.defined(P)||(P=x.createGeometry(new x({radii:new a.Cartesian3(1,1,1),vertexFormat:c.VertexFormat.POSITION_ONLY}))),P},t.EllipsoidGeometry=x}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-b698c16d","./Matrix2-735f0ea9","./ComponentDatatype-6ff7d2c3","./defaultValue-6ed27e8d","./RuntimeError-17a7ed3d","./GeometryAttribute-c4e59d2f","./GeometryAttributes-cb1bf806","./GeometryOffsetAttribute-ddcc2f7f","./IndexDatatype-d42fd89c","./VertexFormat-4362bb4a"],(function(t,e,a,n,i,r,o,s,m,u,c){"use strict";const l=new a.Cartesian3,f=new a.Cartesian3,d=new a.Cartesian3,C=new a.Cartesian3,p=new a.Cartesian3,y=new a.Cartesian3(1,1,1),_=Math.cos,h=Math.sin;function x(t){t=i.defaultValue(t,i.defaultValue.EMPTY_OBJECT);const e=i.defaultValue(t.radii,y),r=i.defaultValue(t.innerRadii,e),o=i.defaultValue(t.minimumClock,0),s=i.defaultValue(t.maximumClock,n.CesiumMath.TWO_PI),m=i.defaultValue(t.minimumCone,0),u=i.defaultValue(t.maximumCone,n.CesiumMath.PI),l=Math.round(i.defaultValue(t.stackPartitions,64)),f=Math.round(i.defaultValue(t.slicePartitions,64)),d=i.defaultValue(t.vertexFormat,c.VertexFormat.DEFAULT);this._radii=a.Cartesian3.clone(e),this._innerRadii=a.Cartesian3.clone(r),this._minimumClock=o,this._maximumClock=s,this._minimumCone=m,this._maximumCone=u,this._stackPartitions=l,this._slicePartitions=f,this._vertexFormat=c.VertexFormat.clone(d),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}x.packedLength=2*a.Cartesian3.packedLength+c.VertexFormat.packedLength+7,x.pack=function(t,e,n){return n=i.defaultValue(n,0),a.Cartesian3.pack(t._radii,e,n),n+=a.Cartesian3.packedLength,a.Cartesian3.pack(t._innerRadii,e,n),n+=a.Cartesian3.packedLength,c.VertexFormat.pack(t._vertexFormat,e,n),n+=c.VertexFormat.packedLength,e[n++]=t._minimumClock,e[n++]=t._maximumClock,e[n++]=t._minimumCone,e[n++]=t._maximumCone,e[n++]=t._stackPartitions,e[n++]=t._slicePartitions,e[n]=i.defaultValue(t._offsetAttribute,-1),e};const A=new a.Cartesian3,b=new a.Cartesian3,k=new c.VertexFormat,w={radii:A,innerRadii:b,vertexFormat:k,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};let P;x.unpack=function(t,e,n){e=i.defaultValue(e,0);const r=a.Cartesian3.unpack(t,e,A);e+=a.Cartesian3.packedLength;const o=a.Cartesian3.unpack(t,e,b);e+=a.Cartesian3.packedLength;const s=c.VertexFormat.unpack(t,e,k);e+=c.VertexFormat.packedLength;const m=t[e++],u=t[e++],l=t[e++],f=t[e++],d=t[e++],C=t[e++],p=t[e];return i.defined(n)?(n._radii=a.Cartesian3.clone(r,n._radii),n._innerRadii=a.Cartesian3.clone(o,n._innerRadii),n._vertexFormat=c.VertexFormat.clone(s,n._vertexFormat),n._minimumClock=m,n._maximumClock=u,n._minimumCone=l,n._maximumCone=f,n._stackPartitions=d,n._slicePartitions=C,n._offsetAttribute=-1===p?void 0:p,n):(w.minimumClock=m,w.maximumClock=u,w.minimumCone=l,w.maximumCone=f,w.stackPartitions=d,w.slicePartitions=C,w.offsetAttribute=-1===p?void 0:p,new x(w))},x.createGeometry=function(t){const r=t._radii;if(r.x<=0||r.y<=0||r.z<=0)return;const c=t._innerRadii;if(c.x<=0||c.y<=0||c.z<=0)return;const y=t._minimumClock,x=t._maximumClock,A=t._minimumCone,b=t._maximumCone,k=t._vertexFormat;let w,P,g=t._slicePartitions+1,v=t._stackPartitions+1;g=Math.round(g*Math.abs(x-y)/n.CesiumMath.TWO_PI),v=Math.round(v*Math.abs(b-A)/n.CesiumMath.PI),g<2&&(g=2),v<2&&(v=2);let F=0;const V=[A],M=[y];for(w=0;w<v;w++)V.push(A+w*(b-A)/(v-1));for(V.push(b),P=0;P<g;P++)M.push(y+P*(x-y)/(g-1));M.push(x);const T=V.length,D=M.length;let G=0,L=1;const O=c.x!==r.x||c.y!==r.y||c.z!==r.z;let I=!1,E=!1,z=!1;O&&(L=2,A>0&&(I=!0,G+=g-1),b<Math.PI&&(E=!0,G+=g-1),(x-y)%n.CesiumMath.TWO_PI?(z=!0,G+=2*(v-1)+1):G+=1);const N=D*T*L,R=new Float64Array(3*N),U=new Array(N).fill(!1),S=new Array(N).fill(!1),B=g*v*L,W=6*(B+G+1-(g+v)*L),Y=u.IndexDatatype.createTypedArray(B,W),J=k.normal?new Float32Array(3*N):void 0,X=k.tangent?new Float32Array(3*N):void 0,Z=k.bitangent?new Float32Array(3*N):void 0,j=k.st?new Float32Array(2*N):void 0,q=new Array(T),H=new Array(T);for(w=0;w<T;w++)q[w]=h(V[w]),H[w]=_(V[w]);const K=new Array(D),Q=new Array(D);for(P=0;P<D;P++)Q[P]=_(M[P]),K[P]=h(M[P]);for(w=0;w<T;w++)for(P=0;P<D;P++)R[F++]=r.x*q[w]*Q[P],R[F++]=r.y*q[w]*K[P],R[F++]=r.z*H[w];let $,tt,et,at,nt=N/2;if(O)for(w=0;w<T;w++)for(P=0;P<D;P++)R[F++]=c.x*q[w]*Q[P],R[F++]=c.y*q[w]*K[P],R[F++]=c.z*H[w],U[nt]=!0,w>0&&w!==T-1&&0!==P&&P!==D-1&&(S[nt]=!0),nt++;for(F=0,w=1;w<T-2;w++)for($=w*D,tt=(w+1)*D,P=1;P<D-2;P++)Y[F++]=tt+P,Y[F++]=tt+P+1,Y[F++]=$+P+1,Y[F++]=tt+P,Y[F++]=$+P+1,Y[F++]=$+P;if(O){const t=T*D;for(w=1;w<T-2;w++)for($=t+w*D,tt=t+(w+1)*D,P=1;P<D-2;P++)Y[F++]=tt+P,Y[F++]=$+P,Y[F++]=$+P+1,Y[F++]=tt+P,Y[F++]=$+P+1,Y[F++]=tt+P+1}if(O){if(I)for(at=T*D,w=1;w<D-2;w++)Y[F++]=w,Y[F++]=w+1,Y[F++]=at+w+1,Y[F++]=w,Y[F++]=at+w+1,Y[F++]=at+w;if(E)for(et=T*D-D,at=T*D*L-D,w=1;w<D-2;w++)Y[F++]=et+w+1,Y[F++]=et+w,Y[F++]=at+w,Y[F++]=et+w+1,Y[F++]=at+w,Y[F++]=at+w+1}if(z){for(w=1;w<T-2;w++)at=D*T+D*w,et=D*w,Y[F++]=at,Y[F++]=et+D,Y[F++]=et,Y[F++]=at,Y[F++]=at+D,Y[F++]=et+D;for(w=1;w<T-2;w++)at=D*T+D*(w+1)-1,et=D*(w+1)-1,Y[F++]=et+D,Y[F++]=at,Y[F++]=et,Y[F++]=et+D,Y[F++]=at+D,Y[F++]=at}const it=new s.GeometryAttributes;k.position&&(it.position=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:R}));let rt=0,ot=0,st=0,mt=0;const ut=N/2;let ct;const lt=a.Ellipsoid.fromCartesian3(r),ft=a.Ellipsoid.fromCartesian3(c);if(k.st||k.normal||k.tangent||k.bitangent){for(w=0;w<N;w++){ct=U[w]?ft:lt;const t=a.Cartesian3.fromArray(R,3*w,l),e=ct.geodeticSurfaceNormal(t,f);if(S[w]&&a.Cartesian3.negate(e,e),k.st){const t=a.Cartesian2.negate(e,p);j[rt++]=Math.atan2(t.y,t.x)/n.CesiumMath.TWO_PI+.5,j[rt++]=Math.asin(e.z)/Math.PI+.5}if(k.normal&&(J[ot++]=e.x,J[ot++]=e.y,J[ot++]=e.z),k.tangent||k.bitangent){const t=d;let n,i=0;if(U[w]&&(i=ut),n=!I&&w>=i&&w<i+2*D?a.Cartesian3.UNIT_X:a.Cartesian3.UNIT_Z,a.Cartesian3.cross(n,e,t),a.Cartesian3.normalize(t,t),k.tangent&&(X[st++]=t.x,X[st++]=t.y,X[st++]=t.z),k.bitangent){const n=a.Cartesian3.cross(e,t,C);a.Cartesian3.normalize(n,n),Z[mt++]=n.x,Z[mt++]=n.y,Z[mt++]=n.z}}}k.st&&(it.st=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:j})),k.normal&&(it.normal=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:J})),k.tangent&&(it.tangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:X})),k.bitangent&&(it.bitangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:Z}))}if(i.defined(t._offsetAttribute)){const e=R.length,a=t._offsetAttribute===m.GeometryOffsetAttribute.NONE?0:1,i=new Uint8Array(e/3).fill(a);it.applyOffset=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}return new o.Geometry({attributes:it,indices:Y,primitiveType:o.PrimitiveType.TRIANGLES,boundingSphere:e.BoundingSphere.fromEllipsoid(lt),offsetAttribute:t._offsetAttribute})},x.getUnitEllipsoid=function(){return i.defined(P)||(P=x.createGeometry(new x({radii:new a.Cartesian3(1,1,1),vertexFormat:c.VertexFormat.POSITION_ONLY}))),P},t.EllipsoidGeometry=x}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-d4da1631","./Matrix2-73789715","./ComponentDatatype-e7fbe225","./defaultValue-97284df2","./RuntimeError-4f8ec8a2","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./VertexFormat-9886cb81"],(function(t,e,a,n,i,r,o,s,m,u,l){"use strict";const c=new a.Cartesian3,f=new a.Cartesian3,d=new a.Cartesian3,C=new a.Cartesian3,p=new a.Cartesian3,y=new a.Cartesian3(1,1,1),_=Math.cos,h=Math.sin;function x(t){t=i.defaultValue(t,i.defaultValue.EMPTY_OBJECT);const e=i.defaultValue(t.radii,y),r=i.defaultValue(t.innerRadii,e),o=i.defaultValue(t.minimumClock,0),s=i.defaultValue(t.maximumClock,n.CesiumMath.TWO_PI),m=i.defaultValue(t.minimumCone,0),u=i.defaultValue(t.maximumCone,n.CesiumMath.PI),c=Math.round(i.defaultValue(t.stackPartitions,64)),f=Math.round(i.defaultValue(t.slicePartitions,64)),d=i.defaultValue(t.vertexFormat,l.VertexFormat.DEFAULT);this._radii=a.Cartesian3.clone(e),this._innerRadii=a.Cartesian3.clone(r),this._minimumClock=o,this._maximumClock=s,this._minimumCone=m,this._maximumCone=u,this._stackPartitions=c,this._slicePartitions=f,this._vertexFormat=l.VertexFormat.clone(d),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}x.packedLength=2*a.Cartesian3.packedLength+l.VertexFormat.packedLength+7,x.pack=function(t,e,n){return n=i.defaultValue(n,0),a.Cartesian3.pack(t._radii,e,n),n+=a.Cartesian3.packedLength,a.Cartesian3.pack(t._innerRadii,e,n),n+=a.Cartesian3.packedLength,l.VertexFormat.pack(t._vertexFormat,e,n),n+=l.VertexFormat.packedLength,e[n++]=t._minimumClock,e[n++]=t._maximumClock,e[n++]=t._minimumCone,e[n++]=t._maximumCone,e[n++]=t._stackPartitions,e[n++]=t._slicePartitions,e[n]=i.defaultValue(t._offsetAttribute,-1),e};const A=new a.Cartesian3,b=new a.Cartesian3,k=new l.VertexFormat,w={radii:A,innerRadii:b,vertexFormat:k,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};let P;x.unpack=function(t,e,n){e=i.defaultValue(e,0);const r=a.Cartesian3.unpack(t,e,A);e+=a.Cartesian3.packedLength;const o=a.Cartesian3.unpack(t,e,b);e+=a.Cartesian3.packedLength;const s=l.VertexFormat.unpack(t,e,k);e+=l.VertexFormat.packedLength;const m=t[e++],u=t[e++],c=t[e++],f=t[e++],d=t[e++],C=t[e++],p=t[e];return i.defined(n)?(n._radii=a.Cartesian3.clone(r,n._radii),n._innerRadii=a.Cartesian3.clone(o,n._innerRadii),n._vertexFormat=l.VertexFormat.clone(s,n._vertexFormat),n._minimumClock=m,n._maximumClock=u,n._minimumCone=c,n._maximumCone=f,n._stackPartitions=d,n._slicePartitions=C,n._offsetAttribute=-1===p?void 0:p,n):(w.minimumClock=m,w.maximumClock=u,w.minimumCone=c,w.maximumCone=f,w.stackPartitions=d,w.slicePartitions=C,w.offsetAttribute=-1===p?void 0:p,new x(w))},x.createGeometry=function(t){const r=t._radii;if(r.x<=0||r.y<=0||r.z<=0)return;const l=t._innerRadii;if(l.x<=0||l.y<=0||l.z<=0)return;const y=t._minimumClock,x=t._maximumClock,A=t._minimumCone,b=t._maximumCone,k=t._vertexFormat;let w,P,g=t._slicePartitions+1,v=t._stackPartitions+1;g=Math.round(g*Math.abs(x-y)/n.CesiumMath.TWO_PI),v=Math.round(v*Math.abs(b-A)/n.CesiumMath.PI),g<2&&(g=2),v<2&&(v=2);let F=0;const V=[A],M=[y];for(w=0;w<v;w++)V.push(A+w*(b-A)/(v-1));for(V.push(b),P=0;P<g;P++)M.push(y+P*(x-y)/(g-1));M.push(x);const T=V.length,D=M.length;let G=0,L=1;const O=l.x!==r.x||l.y!==r.y||l.z!==r.z;let I=!1,E=!1,z=!1;O&&(L=2,A>0&&(I=!0,G+=g-1),b<Math.PI&&(E=!0,G+=g-1),(x-y)%n.CesiumMath.TWO_PI?(z=!0,G+=2*(v-1)+1):G+=1);const N=D*T*L,R=new Float64Array(3*N),U=new Array(N).fill(!1),S=new Array(N).fill(!1),B=g*v*L,W=6*(B+G+1-(g+v)*L),Y=u.IndexDatatype.createTypedArray(B,W),J=k.normal?new Float32Array(3*N):void 0,X=k.tangent?new Float32Array(3*N):void 0,Z=k.bitangent?new Float32Array(3*N):void 0,j=k.st?new Float32Array(2*N):void 0,q=new Array(T),H=new Array(T);for(w=0;w<T;w++)q[w]=h(V[w]),H[w]=_(V[w]);const K=new Array(D),Q=new Array(D);for(P=0;P<D;P++)Q[P]=_(M[P]),K[P]=h(M[P]);for(w=0;w<T;w++)for(P=0;P<D;P++)R[F++]=r.x*q[w]*Q[P],R[F++]=r.y*q[w]*K[P],R[F++]=r.z*H[w];let $,tt,et,at,nt=N/2;if(O)for(w=0;w<T;w++)for(P=0;P<D;P++)R[F++]=l.x*q[w]*Q[P],R[F++]=l.y*q[w]*K[P],R[F++]=l.z*H[w],U[nt]=!0,w>0&&w!==T-1&&0!==P&&P!==D-1&&(S[nt]=!0),nt++;for(F=0,w=1;w<T-2;w++)for($=w*D,tt=(w+1)*D,P=1;P<D-2;P++)Y[F++]=tt+P,Y[F++]=tt+P+1,Y[F++]=$+P+1,Y[F++]=tt+P,Y[F++]=$+P+1,Y[F++]=$+P;if(O){const t=T*D;for(w=1;w<T-2;w++)for($=t+w*D,tt=t+(w+1)*D,P=1;P<D-2;P++)Y[F++]=tt+P,Y[F++]=$+P,Y[F++]=$+P+1,Y[F++]=tt+P,Y[F++]=$+P+1,Y[F++]=tt+P+1}if(O){if(I)for(at=T*D,w=1;w<D-2;w++)Y[F++]=w,Y[F++]=w+1,Y[F++]=at+w+1,Y[F++]=w,Y[F++]=at+w+1,Y[F++]=at+w;if(E)for(et=T*D-D,at=T*D*L-D,w=1;w<D-2;w++)Y[F++]=et+w+1,Y[F++]=et+w,Y[F++]=at+w,Y[F++]=et+w+1,Y[F++]=at+w,Y[F++]=at+w+1}if(z){for(w=1;w<T-2;w++)at=D*T+D*w,et=D*w,Y[F++]=at,Y[F++]=et+D,Y[F++]=et,Y[F++]=at,Y[F++]=at+D,Y[F++]=et+D;for(w=1;w<T-2;w++)at=D*T+D*(w+1)-1,et=D*(w+1)-1,Y[F++]=et+D,Y[F++]=at,Y[F++]=et,Y[F++]=et+D,Y[F++]=at+D,Y[F++]=at}const it=new s.GeometryAttributes;k.position&&(it.position=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:R}));let rt=0,ot=0,st=0,mt=0;const ut=N/2;let lt;const ct=a.Ellipsoid.fromCartesian3(r),ft=a.Ellipsoid.fromCartesian3(l);if(k.st||k.normal||k.tangent||k.bitangent){for(w=0;w<N;w++){lt=U[w]?ft:ct;const t=a.Cartesian3.fromArray(R,3*w,c),e=lt.geodeticSurfaceNormal(t,f);if(S[w]&&a.Cartesian3.negate(e,e),k.st){const t=a.Cartesian2.negate(e,p);j[rt++]=Math.atan2(t.y,t.x)/n.CesiumMath.TWO_PI+.5,j[rt++]=Math.asin(e.z)/Math.PI+.5}if(k.normal&&(J[ot++]=e.x,J[ot++]=e.y,J[ot++]=e.z),k.tangent||k.bitangent){const t=d;let n,i=0;if(U[w]&&(i=ut),n=!I&&w>=i&&w<i+2*D?a.Cartesian3.UNIT_X:a.Cartesian3.UNIT_Z,a.Cartesian3.cross(n,e,t),a.Cartesian3.normalize(t,t),k.tangent&&(X[st++]=t.x,X[st++]=t.y,X[st++]=t.z),k.bitangent){const n=a.Cartesian3.cross(e,t,C);a.Cartesian3.normalize(n,n),Z[mt++]=n.x,Z[mt++]=n.y,Z[mt++]=n.z}}}k.st&&(it.st=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:j})),k.normal&&(it.normal=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:J})),k.tangent&&(it.tangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:X})),k.bitangent&&(it.bitangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:Z}))}if(i.defined(t._offsetAttribute)){const e=R.length,a=t._offsetAttribute===m.GeometryOffsetAttribute.NONE?0:1,i=new Uint8Array(e/3).fill(a);it.applyOffset=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}return new o.Geometry({attributes:it,indices:Y,primitiveType:o.PrimitiveType.TRIANGLES,boundingSphere:e.BoundingSphere.fromEllipsoid(ct),offsetAttribute:t._offsetAttribute})},x.getUnitEllipsoid=function(){return i.defined(P)||(P=x.createGeometry(new x({radii:new a.Cartesian3(1,1,1),vertexFormat:l.VertexFormat.POSITION_ONLY}))),P},t.EllipsoidGeometry=x}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-b698c16d","./Matrix2-735f0ea9","./ComponentDatatype-6ff7d2c3","./defaultValue-6ed27e8d","./RuntimeError-17a7ed3d","./GeometryAttribute-c4e59d2f","./GeometryAttributes-cb1bf806","./GeometryOffsetAttribute-ddcc2f7f","./IndexDatatype-d42fd89c"],(function(t,i,e,n,a,o,r,s,u,m){"use strict";const f=new e.Cartesian3(1,1,1),d=Math.cos,c=Math.sin;function l(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT);const i=a.defaultValue(t.radii,f),o=a.defaultValue(t.innerRadii,i),r=a.defaultValue(t.minimumClock,0),s=a.defaultValue(t.maximumClock,n.CesiumMath.TWO_PI),u=a.defaultValue(t.minimumCone,0),m=a.defaultValue(t.maximumCone,n.CesiumMath.PI),d=Math.round(a.defaultValue(t.stackPartitions,10)),c=Math.round(a.defaultValue(t.slicePartitions,8)),l=Math.round(a.defaultValue(t.subdivisions,128));this._radii=e.Cartesian3.clone(i),this._innerRadii=e.Cartesian3.clone(o),this._minimumClock=r,this._maximumClock=s,this._minimumCone=u,this._maximumCone=m,this._stackPartitions=d,this._slicePartitions=c,this._subdivisions=l,this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}l.packedLength=2*e.Cartesian3.packedLength+8,l.pack=function(t,i,n){return n=a.defaultValue(n,0),e.Cartesian3.pack(t._radii,i,n),n+=e.Cartesian3.packedLength,e.Cartesian3.pack(t._innerRadii,i,n),n+=e.Cartesian3.packedLength,i[n++]=t._minimumClock,i[n++]=t._maximumClock,i[n++]=t._minimumCone,i[n++]=t._maximumCone,i[n++]=t._stackPartitions,i[n++]=t._slicePartitions,i[n++]=t._subdivisions,i[n]=a.defaultValue(t._offsetAttribute,-1),i};const C=new e.Cartesian3,_=new e.Cartesian3,p={radii:C,innerRadii:_,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};l.unpack=function(t,i,n){i=a.defaultValue(i,0);const o=e.Cartesian3.unpack(t,i,C);i+=e.Cartesian3.packedLength;const r=e.Cartesian3.unpack(t,i,_);i+=e.Cartesian3.packedLength;const s=t[i++],u=t[i++],m=t[i++],f=t[i++],d=t[i++],c=t[i++],h=t[i++],y=t[i];return a.defined(n)?(n._radii=e.Cartesian3.clone(o,n._radii),n._innerRadii=e.Cartesian3.clone(r,n._innerRadii),n._minimumClock=s,n._maximumClock=u,n._minimumCone=m,n._maximumCone=f,n._stackPartitions=d,n._slicePartitions=c,n._subdivisions=h,n._offsetAttribute=-1===y?void 0:y,n):(p.minimumClock=s,p.maximumClock=u,p.minimumCone=m,p.maximumCone=f,p.stackPartitions=d,p.slicePartitions=c,p.subdivisions=h,p.offsetAttribute=-1===y?void 0:y,new l(p))},l.createGeometry=function(t){const o=t._radii;if(o.x<=0||o.y<=0||o.z<=0)return;const f=t._innerRadii;if(f.x<=0||f.y<=0||f.z<=0)return;const l=t._minimumClock,C=t._maximumClock,_=t._minimumCone,p=t._maximumCone,h=t._subdivisions,y=e.Ellipsoid.fromCartesian3(o);let k=t._slicePartitions+1,b=t._stackPartitions+1;k=Math.round(k*Math.abs(C-l)/n.CesiumMath.TWO_PI),b=Math.round(b*Math.abs(p-_)/n.CesiumMath.PI),k<2&&(k=2),b<2&&(b=2);let x=0,A=1;const P=f.x!==o.x||f.y!==o.y||f.z!==o.z;let v=!1,M=!1;P&&(A=2,_>0&&(v=!0,x+=k),p<Math.PI&&(M=!0,x+=k));const w=h*A*(b+k),V=new Float64Array(3*w),g=2*(w+x-(k+b)*A),E=m.IndexDatatype.createTypedArray(w,g);let G,O,D,I,T=0;const z=new Array(b),L=new Array(b);for(G=0;G<b;G++)I=_+G*(p-_)/(b-1),z[G]=c(I),L[G]=d(I);const R=new Array(h),N=new Array(h);for(G=0;G<h;G++)D=l+G*(C-l)/(h-1),R[G]=c(D),N[G]=d(D);for(G=0;G<b;G++)for(O=0;O<h;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<b;G++)for(O=0;O<h;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(z.length=h,L.length=h,G=0;G<h;G++)I=_+G*(p-_)/(h-1),z[G]=c(I),L[G]=d(I);for(R.length=k,N.length=k,G=0;G<k;G++)D=l+G*(C-l)/(k-1),R[G]=c(D),N[G]=d(D);for(G=0;G<h;G++)for(O=0;O<k;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<h;G++)for(O=0;O<k;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(T=0,G=0;G<b*A;G++){const t=G*h;for(O=0;O<h-1;O++)E[T++]=t+O,E[T++]=t+O+1}let B=b*h*A;for(G=0;G<k;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*k,E[T++]=B+G+(O+1)*k;if(P)for(B=b*h*A+k*h,G=0;G<k;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*k,E[T++]=B+G+(O+1)*k;if(P){let t=b*h*A,i=t+h*k;if(v)for(G=0;G<k;G++)E[T++]=t+G,E[T++]=i+G;if(M)for(t+=h*k-k,i+=h*k-k,G=0;G<k;G++)E[T++]=t+G,E[T++]=i+G}const S=new s.GeometryAttributes({position:new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:V})});if(a.defined(t._offsetAttribute)){const i=V.length,e=t._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,a=new Uint8Array(i/3).fill(e);S.applyOffset=new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})}return new r.Geometry({attributes:S,indices:E,primitiveType:r.PrimitiveType.LINES,boundingSphere:i.BoundingSphere.fromEllipsoid(y),offsetAttribute:t._offsetAttribute})},t.EllipsoidOutlineGeometry=l}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-ac54558c","./Matrix2-735f0ea9","./ComponentDatatype-6ff7d2c3","./defaultValue-6ed27e8d","./RuntimeError-17a7ed3d","./GeometryAttribute-f542c9a2","./GeometryAttributes-cb1bf806","./GeometryOffsetAttribute-ddcc2f7f","./IndexDatatype-d42fd89c"],(function(t,i,e,n,a,o,r,s,u,m){"use strict";const f=new e.Cartesian3(1,1,1),c=Math.cos,l=Math.sin;function d(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT);const i=a.defaultValue(t.radii,f),o=a.defaultValue(t.innerRadii,i),r=a.defaultValue(t.minimumClock,0),s=a.defaultValue(t.maximumClock,n.CesiumMath.TWO_PI),u=a.defaultValue(t.minimumCone,0),m=a.defaultValue(t.maximumCone,n.CesiumMath.PI),c=Math.round(a.defaultValue(t.stackPartitions,10)),l=Math.round(a.defaultValue(t.slicePartitions,8)),d=Math.round(a.defaultValue(t.subdivisions,128));this._radii=e.Cartesian3.clone(i),this._innerRadii=e.Cartesian3.clone(o),this._minimumClock=r,this._maximumClock=s,this._minimumCone=u,this._maximumCone=m,this._stackPartitions=c,this._slicePartitions=l,this._subdivisions=d,this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}d.packedLength=2*e.Cartesian3.packedLength+8,d.pack=function(t,i,n){return n=a.defaultValue(n,0),e.Cartesian3.pack(t._radii,i,n),n+=e.Cartesian3.packedLength,e.Cartesian3.pack(t._innerRadii,i,n),n+=e.Cartesian3.packedLength,i[n++]=t._minimumClock,i[n++]=t._maximumClock,i[n++]=t._minimumCone,i[n++]=t._maximumCone,i[n++]=t._stackPartitions,i[n++]=t._slicePartitions,i[n++]=t._subdivisions,i[n]=a.defaultValue(t._offsetAttribute,-1),i};const C=new e.Cartesian3,_=new e.Cartesian3,p={radii:C,innerRadii:_,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};d.unpack=function(t,i,n){i=a.defaultValue(i,0);const o=e.Cartesian3.unpack(t,i,C);i+=e.Cartesian3.packedLength;const r=e.Cartesian3.unpack(t,i,_);i+=e.Cartesian3.packedLength;const s=t[i++],u=t[i++],m=t[i++],f=t[i++],c=t[i++],l=t[i++],h=t[i++],y=t[i];return a.defined(n)?(n._radii=e.Cartesian3.clone(o,n._radii),n._innerRadii=e.Cartesian3.clone(r,n._innerRadii),n._minimumClock=s,n._maximumClock=u,n._minimumCone=m,n._maximumCone=f,n._stackPartitions=c,n._slicePartitions=l,n._subdivisions=h,n._offsetAttribute=-1===y?void 0:y,n):(p.minimumClock=s,p.maximumClock=u,p.minimumCone=m,p.maximumCone=f,p.stackPartitions=c,p.slicePartitions=l,p.subdivisions=h,p.offsetAttribute=-1===y?void 0:y,new d(p))},d.createGeometry=function(t){const o=t._radii;if(o.x<=0||o.y<=0||o.z<=0)return;const f=t._innerRadii;if(f.x<=0||f.y<=0||f.z<=0)return;const d=t._minimumClock,C=t._maximumClock,_=t._minimumCone,p=t._maximumCone,h=t._subdivisions,y=e.Ellipsoid.fromCartesian3(o);let k=t._slicePartitions+1,b=t._stackPartitions+1;k=Math.round(k*Math.abs(C-d)/n.CesiumMath.TWO_PI),b=Math.round(b*Math.abs(p-_)/n.CesiumMath.PI),k<2&&(k=2),b<2&&(b=2);let x=0,A=1;const P=f.x!==o.x||f.y!==o.y||f.z!==o.z;let v=!1,M=!1;P&&(A=2,_>0&&(v=!0,x+=k),p<Math.PI&&(M=!0,x+=k));const w=h*A*(b+k),V=new Float64Array(3*w),g=2*(w+x-(k+b)*A),E=m.IndexDatatype.createTypedArray(w,g);let G,O,D,I,T=0;const z=new Array(b),L=new Array(b);for(G=0;G<b;G++)I=_+G*(p-_)/(b-1),z[G]=l(I),L[G]=c(I);const R=new Array(h),N=new Array(h);for(G=0;G<h;G++)D=d+G*(C-d)/(h-1),R[G]=l(D),N[G]=c(D);for(G=0;G<b;G++)for(O=0;O<h;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<b;G++)for(O=0;O<h;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(z.length=h,L.length=h,G=0;G<h;G++)I=_+G*(p-_)/(h-1),z[G]=l(I),L[G]=c(I);for(R.length=k,N.length=k,G=0;G<k;G++)D=d+G*(C-d)/(k-1),R[G]=l(D),N[G]=c(D);for(G=0;G<h;G++)for(O=0;O<k;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<h;G++)for(O=0;O<k;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(T=0,G=0;G<b*A;G++){const t=G*h;for(O=0;O<h-1;O++)E[T++]=t+O,E[T++]=t+O+1}let B=b*h*A;for(G=0;G<k;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*k,E[T++]=B+G+(O+1)*k;if(P)for(B=b*h*A+k*h,G=0;G<k;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*k,E[T++]=B+G+(O+1)*k;if(P){let t=b*h*A,i=t+h*k;if(v)for(G=0;G<k;G++)E[T++]=t+G,E[T++]=i+G;if(M)for(t+=h*k-k,i+=h*k-k,G=0;G<k;G++)E[T++]=t+G,E[T++]=i+G}const S=new s.GeometryAttributes({position:new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:V})});if(a.defined(t._offsetAttribute)){const i=V.length,e=t._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,a=new Uint8Array(i/3).fill(e);S.applyOffset=new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})}return new r.Geometry({attributes:S,indices:E,primitiveType:r.PrimitiveType.LINES,boundingSphere:i.BoundingSphere.fromEllipsoid(y),offsetAttribute:t._offsetAttribute})},t.EllipsoidOutlineGeometry=d}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Transforms-d4da1631","./Matrix2-73789715","./ComponentDatatype-e7fbe225","./defaultValue-97284df2","./RuntimeError-4f8ec8a2","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3"],(function(t,i,e,n,a,o,r,s,u,m){"use strict";const f=new e.Cartesian3(1,1,1),l=Math.cos,c=Math.sin;function d(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT);const i=a.defaultValue(t.radii,f),o=a.defaultValue(t.innerRadii,i),r=a.defaultValue(t.minimumClock,0),s=a.defaultValue(t.maximumClock,n.CesiumMath.TWO_PI),u=a.defaultValue(t.minimumCone,0),m=a.defaultValue(t.maximumCone,n.CesiumMath.PI),l=Math.round(a.defaultValue(t.stackPartitions,10)),c=Math.round(a.defaultValue(t.slicePartitions,8)),d=Math.round(a.defaultValue(t.subdivisions,128));this._radii=e.Cartesian3.clone(i),this._innerRadii=e.Cartesian3.clone(o),this._minimumClock=r,this._maximumClock=s,this._minimumCone=u,this._maximumCone=m,this._stackPartitions=l,this._slicePartitions=c,this._subdivisions=d,this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}d.packedLength=2*e.Cartesian3.packedLength+8,d.pack=function(t,i,n){return n=a.defaultValue(n,0),e.Cartesian3.pack(t._radii,i,n),n+=e.Cartesian3.packedLength,e.Cartesian3.pack(t._innerRadii,i,n),n+=e.Cartesian3.packedLength,i[n++]=t._minimumClock,i[n++]=t._maximumClock,i[n++]=t._minimumCone,i[n++]=t._maximumCone,i[n++]=t._stackPartitions,i[n++]=t._slicePartitions,i[n++]=t._subdivisions,i[n]=a.defaultValue(t._offsetAttribute,-1),i};const C=new e.Cartesian3,_=new e.Cartesian3,p={radii:C,innerRadii:_,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};d.unpack=function(t,i,n){i=a.defaultValue(i,0);const o=e.Cartesian3.unpack(t,i,C);i+=e.Cartesian3.packedLength;const r=e.Cartesian3.unpack(t,i,_);i+=e.Cartesian3.packedLength;const s=t[i++],u=t[i++],m=t[i++],f=t[i++],l=t[i++],c=t[i++],h=t[i++],y=t[i];return a.defined(n)?(n._radii=e.Cartesian3.clone(o,n._radii),n._innerRadii=e.Cartesian3.clone(r,n._innerRadii),n._minimumClock=s,n._maximumClock=u,n._minimumCone=m,n._maximumCone=f,n._stackPartitions=l,n._slicePartitions=c,n._subdivisions=h,n._offsetAttribute=-1===y?void 0:y,n):(p.minimumClock=s,p.maximumClock=u,p.minimumCone=m,p.maximumCone=f,p.stackPartitions=l,p.slicePartitions=c,p.subdivisions=h,p.offsetAttribute=-1===y?void 0:y,new d(p))},d.createGeometry=function(t){const o=t._radii;if(o.x<=0||o.y<=0||o.z<=0)return;const f=t._innerRadii;if(f.x<=0||f.y<=0||f.z<=0)return;const d=t._minimumClock,C=t._maximumClock,_=t._minimumCone,p=t._maximumCone,h=t._subdivisions,y=e.Ellipsoid.fromCartesian3(o);let k=t._slicePartitions+1,b=t._stackPartitions+1;k=Math.round(k*Math.abs(C-d)/n.CesiumMath.TWO_PI),b=Math.round(b*Math.abs(p-_)/n.CesiumMath.PI),k<2&&(k=2),b<2&&(b=2);let x=0,A=1;const P=f.x!==o.x||f.y!==o.y||f.z!==o.z;let v=!1,M=!1;P&&(A=2,_>0&&(v=!0,x+=k),p<Math.PI&&(M=!0,x+=k));const w=h*A*(b+k),V=new Float64Array(3*w),g=2*(w+x-(k+b)*A),E=m.IndexDatatype.createTypedArray(w,g);let G,O,D,I,T=0;const z=new Array(b),L=new Array(b);for(G=0;G<b;G++)I=_+G*(p-_)/(b-1),z[G]=c(I),L[G]=l(I);const R=new Array(h),N=new Array(h);for(G=0;G<h;G++)D=d+G*(C-d)/(h-1),R[G]=c(D),N[G]=l(D);for(G=0;G<b;G++)for(O=0;O<h;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<b;G++)for(O=0;O<h;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(z.length=h,L.length=h,G=0;G<h;G++)I=_+G*(p-_)/(h-1),z[G]=c(I),L[G]=l(I);for(R.length=k,N.length=k,G=0;G<k;G++)D=d+G*(C-d)/(k-1),R[G]=c(D),N[G]=l(D);for(G=0;G<h;G++)for(O=0;O<k;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<h;G++)for(O=0;O<k;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(T=0,G=0;G<b*A;G++){const t=G*h;for(O=0;O<h-1;O++)E[T++]=t+O,E[T++]=t+O+1}let B=b*h*A;for(G=0;G<k;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*k,E[T++]=B+G+(O+1)*k;if(P)for(B=b*h*A+k*h,G=0;G<k;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*k,E[T++]=B+G+(O+1)*k;if(P){let t=b*h*A,i=t+h*k;if(v)for(G=0;G<k;G++)E[T++]=t+G,E[T++]=i+G;if(M)for(t+=h*k-k,i+=h*k-k,G=0;G<k;G++)E[T++]=t+G,E[T++]=i+G}const S=new s.GeometryAttributes({position:new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:V})});if(a.defined(t._offsetAttribute)){const i=V.length,e=t._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,a=new Uint8Array(i/3).fill(e);S.applyOffset=new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})}return new r.Geometry({attributes:S,indices:E,primitiveType:r.PrimitiveType.LINES,boundingSphere:i.BoundingSphere.fromEllipsoid(y),offsetAttribute:t._offsetAttribute})},t.EllipsoidOutlineGeometry=d}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./ComponentDatatype-e7fbe225"],(function(t,i,e,a,n){"use strict";function s(t,i,e){if(0===t)return i*e;const a=t*t,n=a*a,s=n*a,u=s*a,h=u*a,o=h*a,l=e;return i*((1-a/4-3*n/64-5*s/256-175*u/16384-441*h/65536-4851*o/1048576)*l-(3*a/8+3*n/32+45*s/1024+105*u/4096+2205*h/131072+6237*o/524288)*Math.sin(2*l)+(15*n/256+45*s/1024+525*u/16384+1575*h/65536+155925*o/8388608)*Math.sin(4*l)-(35*s/3072+175*u/12288+3675*h/262144+13475*o/1048576)*Math.sin(6*l)+(315*u/131072+2205*h/524288+43659*o/8388608)*Math.sin(8*l)-(693*h/1310720+6237*o/5242880)*Math.sin(10*l)+1001*o/8388608*Math.sin(12*l))}function u(t,i){if(0===t)return Math.log(Math.tan(.5*(n.CesiumMath.PI_OVER_TWO+i)));const e=t*Math.sin(i);return Math.log(Math.tan(.5*(n.CesiumMath.PI_OVER_TWO+i)))-t/2*Math.log((1+e)/(1-e))}const h=new i.Cartesian3,o=new i.Cartesian3;function l(t,e,a,l){i.Cartesian3.normalize(l.cartographicToCartesian(e,o),h),i.Cartesian3.normalize(l.cartographicToCartesian(a,o),o);const r=l.maximumRadius,d=l.minimumRadius,c=r*r,M=d*d;t._ellipticitySquared=(c-M)/c,t._ellipticity=Math.sqrt(t._ellipticitySquared),t._start=i.Cartographic.clone(e,t._start),t._start.height=0,t._end=i.Cartographic.clone(a,t._end),t._end.height=0,t._heading=function(t,i,e,a,s){const h=u(t._ellipticity,e),o=u(t._ellipticity,s);return Math.atan2(n.CesiumMath.negativePiToPi(a-i),o-h)}(t,e.longitude,e.latitude,a.longitude,a.latitude),t._distance=function(t,i,e,a,u,h,o){const l=t._heading,r=h-a;let d=0;if(n.CesiumMath.equalsEpsilon(Math.abs(l),n.CesiumMath.PI_OVER_TWO,n.CesiumMath.EPSILON8))if(i===e)d=i*Math.cos(u)*n.CesiumMath.negativePiToPi(r);else{const e=Math.sin(u);d=i*Math.cos(u)*n.CesiumMath.negativePiToPi(r)/Math.sqrt(1-t._ellipticitySquared*e*e)}else{const e=s(t._ellipticity,i,u);d=(s(t._ellipticity,i,o)-e)/Math.cos(l)}return Math.abs(d)}(t,l.maximumRadius,l.minimumRadius,e.longitude,e.latitude,a.longitude,a.latitude)}function r(t,e,h,o,l,r){if(0===h)return i.Cartographic.clone(t,r);const d=l*l;let c,M,m;if(Math.abs(n.CesiumMath.PI_OVER_TWO-Math.abs(e))>n.CesiumMath.EPSILON8){M=function(t,i,e){const a=t/e;if(0===i)return a;const n=a*a,s=n*a,u=s*a,h=i*i,o=h*h,l=o*h,r=l*h,d=r*h,c=d*h,M=Math.sin(2*a),m=Math.cos(2*a),g=Math.sin(4*a),_=Math.cos(4*a),p=Math.sin(6*a),f=Math.cos(6*a),C=Math.sin(8*a),P=Math.cos(8*a),O=Math.sin(10*a);return a+a*h/4+7*a*o/64+15*a*l/256+579*a*r/16384+1515*a*d/65536+16837*a*c/1048576+(3*a*o/16+45*a*l/256-a*(32*n-561)*r/4096-a*(232*n-1677)*d/16384+a*(399985-90560*n+512*u)*c/5242880)*m+(21*a*l/256+483*a*r/4096-a*(224*n-1969)*d/16384-a*(33152*n-112599)*c/1048576)*_+(151*a*r/4096+4681*a*d/65536+1479*a*c/16384-453*s*c/32768)*f+(1097*a*d/65536+42783*a*c/1048576)*P+8011*a*c/1048576*Math.cos(10*a)+(3*h/8+3*o/16+213*l/2048-3*n*l/64+255*r/4096-33*n*r/512+20861*d/524288-33*n*d/512+u*d/1024+28273*c/1048576-471*n*c/8192+9*u*c/4096)*M+(21*o/256+21*l/256+533*r/8192-21*n*r/512+197*d/4096-315*n*d/4096+584039*c/16777216-12517*n*c/131072+7*u*c/2048)*g+(151*l/6144+151*r/4096+5019*d/131072-453*n*d/16384+26965*c/786432-8607*n*c/131072)*p+(1097*r/131072+1097*d/65536+225797*c/10485760-1097*n*c/65536)*C+(8011*d/2621440+8011*c/1048576)*O+293393*c/251658240*Math.sin(12*a)}(s(l,o,t.latitude)+h*Math.cos(e),l,o);const i=u(l,t.latitude),a=u(l,M);m=Math.tan(e)*(a-i),c=n.CesiumMath.negativePiToPi(t.longitude+m)}else{let i;if(M=t.latitude,0===l)i=o*Math.cos(t.latitude);else{const e=Math.sin(t.latitude);i=o*Math.cos(t.latitude)/Math.sqrt(1-d*e*e)}m=h/i,c=e>0?n.CesiumMath.negativePiToPi(t.longitude+m):n.CesiumMath.negativePiToPi(t.longitude-m)}return a.defined(r)?(r.longitude=c,r.latitude=M,r.height=0,r):new i.Cartographic(c,M,0)}function d(t,e,n){const s=a.defaultValue(n,i.Ellipsoid.WGS84);this._ellipsoid=s,this._start=new i.Cartographic,this._end=new i.Cartographic,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,a.defined(t)&&a.defined(e)&&l(this,t,e,s)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return this._heading}}}),d.fromStartHeadingDistance=function(t,e,s,u,h){const o=a.defaultValue(u,i.Ellipsoid.WGS84),l=o.maximumRadius,c=o.minimumRadius,M=l*l,m=c*c,g=Math.sqrt((M-m)/M),_=r(t,e=n.CesiumMath.negativePiToPi(e),s,o.maximumRadius,g);return!a.defined(h)||a.defined(u)&&!u.equals(h.ellipsoid)?new d(t,_,o):(h.setEndPoints(t,_),h)},d.prototype.setEndPoints=function(t,i){l(this,t,i,this._ellipsoid)},d.prototype.interpolateUsingFraction=function(t,i){return this.interpolateUsingSurfaceDistance(t*this._distance,i)},d.prototype.interpolateUsingSurfaceDistance=function(t,i){return r(this._start,this._heading,t,this._ellipsoid.maximumRadius,this._ellipticity,i)},d.prototype.findIntersectionWithLongitude=function(t,e){const s=this._ellipticity,u=this._heading,h=Math.abs(u),o=this._start;if(t=n.CesiumMath.negativePiToPi(t),n.CesiumMath.equalsEpsilon(Math.abs(t),Math.PI,n.CesiumMath.EPSILON14)&&(t=n.CesiumMath.sign(o.longitude)*Math.PI),a.defined(e)||(e=new i.Cartographic),Math.abs(n.CesiumMath.PI_OVER_TWO-h)<=n.CesiumMath.EPSILON8)return e.longitude=t,e.latitude=o.latitude,e.height=0,e;if(n.CesiumMath.equalsEpsilon(Math.abs(n.CesiumMath.PI_OVER_TWO-h),n.CesiumMath.PI_OVER_TWO,n.CesiumMath.EPSILON8)){if(n.CesiumMath.equalsEpsilon(t,o.longitude,n.CesiumMath.EPSILON12))return;return e.longitude=t,e.latitude=n.CesiumMath.PI_OVER_TWO*n.CesiumMath.sign(n.CesiumMath.PI_OVER_TWO-u),e.height=0,e}const l=o.latitude,r=s*Math.sin(l),d=Math.tan(.5*(n.CesiumMath.PI_OVER_TWO+l))*Math.exp((t-o.longitude)/Math.tan(u)),c=(1+r)/(1-r);let M,m=o.latitude;do{M=m;const t=s*Math.sin(M),i=(1+t)/(1-t);m=2*Math.atan(d*Math.pow(i/c,s/2))-n.CesiumMath.PI_OVER_TWO}while(!n.CesiumMath.equalsEpsilon(m,M,n.CesiumMath.EPSILON12));return e.longitude=t,e.latitude=m,e.height=0,e},d.prototype.findIntersectionWithLatitude=function(t,e){const s=this._ellipticity,h=this._heading,o=this._start;if(n.CesiumMath.equalsEpsilon(Math.abs(h),n.CesiumMath.PI_OVER_TWO,n.CesiumMath.EPSILON8))return;const l=u(s,o.latitude),r=u(s,t),d=Math.tan(h)*(r-l),c=n.CesiumMath.negativePiToPi(o.longitude+d);return a.defined(e)?(e.longitude=c,e.latitude=t,e.height=0,e):new i.Cartographic(c,t,0)},t.EllipsoidRhumbLine=d}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./Matrix2-735f0ea9","./RuntimeError-17a7ed3d","./defaultValue-6ed27e8d","./ComponentDatatype-6ff7d2c3"],(function(t,i,e,a,n){"use strict";function s(t,i,e){if(0===t)return i*e;const a=t*t,n=a*a,s=n*a,u=s*a,h=u*a,o=h*a,l=e;return i*((1-a/4-3*n/64-5*s/256-175*u/16384-441*h/65536-4851*o/1048576)*l-(3*a/8+3*n/32+45*s/1024+105*u/4096+2205*h/131072+6237*o/524288)*Math.sin(2*l)+(15*n/256+45*s/1024+525*u/16384+1575*h/65536+155925*o/8388608)*Math.sin(4*l)-(35*s/3072+175*u/12288+3675*h/262144+13475*o/1048576)*Math.sin(6*l)+(315*u/131072+2205*h/524288+43659*o/8388608)*Math.sin(8*l)-(693*h/1310720+6237*o/5242880)*Math.sin(10*l)+1001*o/8388608*Math.sin(12*l))}function u(t,i){if(0===t)return Math.log(Math.tan(.5*(n.CesiumMath.PI_OVER_TWO+i)));const e=t*Math.sin(i);return Math.log(Math.tan(.5*(n.CesiumMath.PI_OVER_TWO+i)))-t/2*Math.log((1+e)/(1-e))}const h=new i.Cartesian3,o=new i.Cartesian3;function l(t,e,a,l){i.Cartesian3.normalize(l.cartographicToCartesian(e,o),h),i.Cartesian3.normalize(l.cartographicToCartesian(a,o),o);const r=l.maximumRadius,d=l.minimumRadius,c=r*r,M=d*d;t._ellipticitySquared=(c-M)/c,t._ellipticity=Math.sqrt(t._ellipticitySquared),t._start=i.Cartographic.clone(e,t._start),t._start.height=0,t._end=i.Cartographic.clone(a,t._end),t._end.height=0,t._heading=function(t,i,e,a,s){const h=u(t._ellipticity,e),o=u(t._ellipticity,s);return Math.atan2(n.CesiumMath.negativePiToPi(a-i),o-h)}(t,e.longitude,e.latitude,a.longitude,a.latitude),t._distance=function(t,i,e,a,u,h,o){const l=t._heading,r=h-a;let d=0;if(n.CesiumMath.equalsEpsilon(Math.abs(l),n.CesiumMath.PI_OVER_TWO,n.CesiumMath.EPSILON8))if(i===e)d=i*Math.cos(u)*n.CesiumMath.negativePiToPi(r);else{const e=Math.sin(u);d=i*Math.cos(u)*n.CesiumMath.negativePiToPi(r)/Math.sqrt(1-t._ellipticitySquared*e*e)}else{const e=s(t._ellipticity,i,u);d=(s(t._ellipticity,i,o)-e)/Math.cos(l)}return Math.abs(d)}(t,l.maximumRadius,l.minimumRadius,e.longitude,e.latitude,a.longitude,a.latitude)}function r(t,e,h,o,l,r){if(0===h)return i.Cartographic.clone(t,r);const d=l*l;let c,M,m;if(Math.abs(n.CesiumMath.PI_OVER_TWO-Math.abs(e))>n.CesiumMath.EPSILON8){M=function(t,i,e){const a=t/e;if(0===i)return a;const n=a*a,s=n*a,u=s*a,h=i*i,o=h*h,l=o*h,r=l*h,d=r*h,c=d*h,M=Math.sin(2*a),m=Math.cos(2*a),g=Math.sin(4*a),_=Math.cos(4*a),p=Math.sin(6*a),f=Math.cos(6*a),C=Math.sin(8*a),P=Math.cos(8*a),O=Math.sin(10*a);return a+a*h/4+7*a*o/64+15*a*l/256+579*a*r/16384+1515*a*d/65536+16837*a*c/1048576+(3*a*o/16+45*a*l/256-a*(32*n-561)*r/4096-a*(232*n-1677)*d/16384+a*(399985-90560*n+512*u)*c/5242880)*m+(21*a*l/256+483*a*r/4096-a*(224*n-1969)*d/16384-a*(33152*n-112599)*c/1048576)*_+(151*a*r/4096+4681*a*d/65536+1479*a*c/16384-453*s*c/32768)*f+(1097*a*d/65536+42783*a*c/1048576)*P+8011*a*c/1048576*Math.cos(10*a)+(3*h/8+3*o/16+213*l/2048-3*n*l/64+255*r/4096-33*n*r/512+20861*d/524288-33*n*d/512+u*d/1024+28273*c/1048576-471*n*c/8192+9*u*c/4096)*M+(21*o/256+21*l/256+533*r/8192-21*n*r/512+197*d/4096-315*n*d/4096+584039*c/16777216-12517*n*c/131072+7*u*c/2048)*g+(151*l/6144+151*r/4096+5019*d/131072-453*n*d/16384+26965*c/786432-8607*n*c/131072)*p+(1097*r/131072+1097*d/65536+225797*c/10485760-1097*n*c/65536)*C+(8011*d/2621440+8011*c/1048576)*O+293393*c/251658240*Math.sin(12*a)}(s(l,o,t.latitude)+h*Math.cos(e),l,o);const i=u(l,t.latitude),a=u(l,M);m=Math.tan(e)*(a-i),c=n.CesiumMath.negativePiToPi(t.longitude+m)}else{let i;if(M=t.latitude,0===l)i=o*Math.cos(t.latitude);else{const e=Math.sin(t.latitude);i=o*Math.cos(t.latitude)/Math.sqrt(1-d*e*e)}m=h/i,c=e>0?n.CesiumMath.negativePiToPi(t.longitude+m):n.CesiumMath.negativePiToPi(t.longitude-m)}return a.defined(r)?(r.longitude=c,r.latitude=M,r.height=0,r):new i.Cartographic(c,M,0)}function d(t,e,n){const s=a.defaultValue(n,i.Ellipsoid.WGS84);this._ellipsoid=s,this._start=new i.Cartographic,this._end=new i.Cartographic,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,a.defined(t)&&a.defined(e)&&l(this,t,e,s)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return this._heading}}}),d.fromStartHeadingDistance=function(t,e,s,u,h){const o=a.defaultValue(u,i.Ellipsoid.WGS84),l=o.maximumRadius,c=o.minimumRadius,M=l*l,m=c*c,g=Math.sqrt((M-m)/M),_=r(t,e=n.CesiumMath.negativePiToPi(e),s,o.maximumRadius,g);return!a.defined(h)||a.defined(u)&&!u.equals(h.ellipsoid)?new d(t,_,o):(h.setEndPoints(t,_),h)},d.prototype.setEndPoints=function(t,i){l(this,t,i,this._ellipsoid)},d.prototype.interpolateUsingFraction=function(t,i){return this.interpolateUsingSurfaceDistance(t*this._distance,i)},d.prototype.interpolateUsingSurfaceDistance=function(t,i){return r(this._start,this._heading,t,this._ellipsoid.maximumRadius,this._ellipticity,i)},d.prototype.findIntersectionWithLongitude=function(t,e){const s=this._ellipticity,u=this._heading,h=Math.abs(u),o=this._start;if(t=n.CesiumMath.negativePiToPi(t),n.CesiumMath.equalsEpsilon(Math.abs(t),Math.PI,n.CesiumMath.EPSILON14)&&(t=n.CesiumMath.sign(o.longitude)*Math.PI),a.defined(e)||(e=new i.Cartographic),Math.abs(n.CesiumMath.PI_OVER_TWO-h)<=n.CesiumMath.EPSILON8)return e.longitude=t,e.latitude=o.latitude,e.height=0,e;if(n.CesiumMath.equalsEpsilon(Math.abs(n.CesiumMath.PI_OVER_TWO-h),n.CesiumMath.PI_OVER_TWO,n.CesiumMath.EPSILON8)){if(n.CesiumMath.equalsEpsilon(t,o.longitude,n.CesiumMath.EPSILON12))return;return e.longitude=t,e.latitude=n.CesiumMath.PI_OVER_TWO*n.CesiumMath.sign(n.CesiumMath.PI_OVER_TWO-u),e.height=0,e}const l=o.latitude,r=s*Math.sin(l),d=Math.tan(.5*(n.CesiumMath.PI_OVER_TWO+l))*Math.exp((t-o.longitude)/Math.tan(u)),c=(1+r)/(1-r);let M,m=o.latitude;do{M=m;const t=s*Math.sin(M),i=(1+t)/(1-t);m=2*Math.atan(d*Math.pow(i/c,s/2))-n.CesiumMath.PI_OVER_TWO}while(!n.CesiumMath.equalsEpsilon(m,M,n.CesiumMath.EPSILON12));return e.longitude=t,e.latitude=m,e.height=0,e},d.prototype.findIntersectionWithLatitude=function(t,e){const s=this._ellipticity,h=this._heading,o=this._start;if(n.CesiumMath.equalsEpsilon(Math.abs(h),n.CesiumMath.PI_OVER_TWO,n.CesiumMath.EPSILON8))return;const l=u(s,o.latitude),r=u(s,t),d=Math.tan(h)*(r-l),c=n.CesiumMath.negativePiToPi(o.longitude+d);return a.defined(e)?(e.longitude=c,e.latitude=t,e.height=0,e):new i.Cartographic(c,t,0)},t.EllipsoidRhumbLine=d}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./AxisAlignedBoundingBox-255e5057","./Matrix2-735f0ea9","./RuntimeError-17a7ed3d","./defaultValue-6ed27e8d","./IntersectionTests-60b7843b","./Plane-6c77dfaf","./Transforms-b698c16d"],(function(t,n,e,i,o,r,s,a){"use strict";const l=new e.Cartesian4;function c(t,n){t=(n=o.defaultValue(n,e.Ellipsoid.WGS84)).scaleToGeodeticSurface(t);const i=a.Transforms.eastNorthUpToFixedFrame(t,n);this._ellipsoid=n,this._origin=t,this._xAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,0,l)),this._yAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,1,l));const r=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,2,l));this._plane=s.Plane.fromPointNormal(t,r)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});const d=new n.AxisAlignedBoundingBox;c.fromPoints=function(t,e){return new c(n.AxisAlignedBoundingBox.fromPoints(t,d).center,e)};const f=new r.Ray,p=new e.Cartesian3;c.prototype.projectPointOntoPlane=function(t,n){const i=f;i.origin=t,e.Cartesian3.normalize(t,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,p);if(o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,p)),o.defined(s)){const t=e.Cartesian3.subtract(s,this._origin,s),i=e.Cartesian3.dot(this._xAxis,t),r=e.Cartesian3.dot(this._yAxis,t);return o.defined(n)?(n.x=i,n.y=r,n):new e.Cartesian2(i,r)}},c.prototype.projectPointsOntoPlane=function(t,n){o.defined(n)||(n=[]);let e=0;const i=t.length;for(let r=0;r<i;r++){const i=this.projectPointOntoPlane(t[r],n[e]);o.defined(i)&&(n[e]=i,e++)}return n.length=e,n},c.prototype.projectPointToNearestOnPlane=function(t,n){o.defined(n)||(n=new e.Cartesian2);const i=f;i.origin=t,e.Cartesian3.clone(this._plane.normal,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,p);o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,p));const a=e.Cartesian3.subtract(s,this._origin,s),l=e.Cartesian3.dot(this._xAxis,a),c=e.Cartesian3.dot(this._yAxis,a);return n.x=l,n.y=c,n},c.prototype.projectPointsToNearestOnPlane=function(t,n){o.defined(n)||(n=[]);const e=t.length;n.length=e;for(let i=0;i<e;i++)n[i]=this.projectPointToNearestOnPlane(t[i],n[i]);return n};const u=new e.Cartesian3;c.prototype.projectPointOntoEllipsoid=function(t,n){o.defined(n)||(n=new e.Cartesian3);const i=this._ellipsoid,r=this._origin,s=this._xAxis,a=this._yAxis,l=u;return e.Cartesian3.multiplyByScalar(s,t.x,l),n=e.Cartesian3.add(r,l,n),e.Cartesian3.multiplyByScalar(a,t.y,l),e.Cartesian3.add(n,l,n),i.scaleToGeocentricSurface(n,n),n},c.prototype.projectPointsOntoEllipsoid=function(t,n){const e=t.length;o.defined(n)?n.length=e:n=new Array(e);for(let i=0;i<e;++i)n[i]=this.projectPointOntoEllipsoid(t[i],n[i]);return n},t.EllipsoidTangentPlane=c}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./AxisAlignedBoundingBox-546c299b","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./IntersectionTests-a7d8bdc4","./Plane-e916220d","./Transforms-d4da1631"],(function(t,n,e,i,o,r,s,a){"use strict";const l=new e.Cartesian4;function c(t,n){t=(n=o.defaultValue(n,e.Ellipsoid.WGS84)).scaleToGeodeticSurface(t);const i=a.Transforms.eastNorthUpToFixedFrame(t,n);this._ellipsoid=n,this._origin=t,this._xAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,0,l)),this._yAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,1,l));const r=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,2,l));this._plane=s.Plane.fromPointNormal(t,r)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});const d=new n.AxisAlignedBoundingBox;c.fromPoints=function(t,e){return new c(n.AxisAlignedBoundingBox.fromPoints(t,d).center,e)};const p=new r.Ray,u=new e.Cartesian3;c.prototype.projectPointOntoPlane=function(t,n){const i=p;i.origin=t,e.Cartesian3.normalize(t,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,u);if(o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,u)),o.defined(s)){const t=e.Cartesian3.subtract(s,this._origin,s),i=e.Cartesian3.dot(this._xAxis,t),r=e.Cartesian3.dot(this._yAxis,t);return o.defined(n)?(n.x=i,n.y=r,n):new e.Cartesian2(i,r)}},c.prototype.projectPointsOntoPlane=function(t,n){o.defined(n)||(n=[]);let e=0;const i=t.length;for(let r=0;r<i;r++){const i=this.projectPointOntoPlane(t[r],n[e]);o.defined(i)&&(n[e]=i,e++)}return n.length=e,n},c.prototype.projectPointToNearestOnPlane=function(t,n){o.defined(n)||(n=new e.Cartesian2);const i=p;i.origin=t,e.Cartesian3.clone(this._plane.normal,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,u);o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,u));const a=e.Cartesian3.subtract(s,this._origin,s),l=e.Cartesian3.dot(this._xAxis,a),c=e.Cartesian3.dot(this._yAxis,a);return n.x=l,n.y=c,n},c.prototype.projectPointsToNearestOnPlane=function(t,n){o.defined(n)||(n=[]);const e=t.length;n.length=e;for(let i=0;i<e;i++)n[i]=this.projectPointToNearestOnPlane(t[i],n[i]);return n};const f=new e.Cartesian3;c.prototype.projectPointOntoEllipsoid=function(t,n){o.defined(n)||(n=new e.Cartesian3);const i=this._ellipsoid,r=this._origin,s=this._xAxis,a=this._yAxis,l=f;return e.Cartesian3.multiplyByScalar(s,t.x,l),n=e.Cartesian3.add(r,l,n),e.Cartesian3.multiplyByScalar(a,t.y,l),e.Cartesian3.add(n,l,n),i.scaleToGeocentricSurface(n,n),n},c.prototype.projectPointsOntoEllipsoid=function(t,n){const e=t.length;o.defined(n)?n.length=e:n=new Array(e);for(let i=0;i<e;++i)n[i]=this.projectPointOntoEllipsoid(t[i],n[i]);return n},t.EllipsoidTangentPlane=c}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
define(["exports","./AxisAlignedBoundingBox-47db7c7f","./Matrix2-735f0ea9","./RuntimeError-17a7ed3d","./defaultValue-6ed27e8d","./IntersectionTests-7d7483f2","./Plane-6c77dfaf","./Transforms-ac54558c"],(function(t,n,e,i,o,r,s,a){"use strict";const l=new e.Cartesian4;function c(t,n){t=(n=o.defaultValue(n,e.Ellipsoid.WGS84)).scaleToGeodeticSurface(t);const i=a.Transforms.eastNorthUpToFixedFrame(t,n);this._ellipsoid=n,this._origin=t,this._xAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,0,l)),this._yAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,1,l));const r=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,2,l));this._plane=s.Plane.fromPointNormal(t,r)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});const d=new n.AxisAlignedBoundingBox;c.fromPoints=function(t,e){return new c(n.AxisAlignedBoundingBox.fromPoints(t,d).center,e)};const f=new r.Ray,p=new e.Cartesian3;c.prototype.projectPointOntoPlane=function(t,n){const i=f;i.origin=t,e.Cartesian3.normalize(t,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,p);if(o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,p)),o.defined(s)){const t=e.Cartesian3.subtract(s,this._origin,s),i=e.Cartesian3.dot(this._xAxis,t),r=e.Cartesian3.dot(this._yAxis,t);return o.defined(n)?(n.x=i,n.y=r,n):new e.Cartesian2(i,r)}},c.prototype.projectPointsOntoPlane=function(t,n){o.defined(n)||(n=[]);let e=0;const i=t.length;for(let r=0;r<i;r++){const i=this.projectPointOntoPlane(t[r],n[e]);o.defined(i)&&(n[e]=i,e++)}return n.length=e,n},c.prototype.projectPointToNearestOnPlane=function(t,n){o.defined(n)||(n=new e.Cartesian2);const i=f;i.origin=t,e.Cartesian3.clone(this._plane.normal,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,p);o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,p));const a=e.Cartesian3.subtract(s,this._origin,s),l=e.Cartesian3.dot(this._xAxis,a),c=e.Cartesian3.dot(this._yAxis,a);return n.x=l,n.y=c,n},c.prototype.projectPointsToNearestOnPlane=function(t,n){o.defined(n)||(n=[]);const e=t.length;n.length=e;for(let i=0;i<e;i++)n[i]=this.projectPointToNearestOnPlane(t[i],n[i]);return n};const u=new e.Cartesian3;c.prototype.projectPointOntoEllipsoid=function(t,n){o.defined(n)||(n=new e.Cartesian3);const i=this._ellipsoid,r=this._origin,s=this._xAxis,a=this._yAxis,l=u;return e.Cartesian3.multiplyByScalar(s,t.x,l),n=e.Cartesian3.add(r,l,n),e.Cartesian3.multiplyByScalar(a,t.y,l),e.Cartesian3.add(n,l,n),i.scaleToGeocentricSurface(n,n),n},c.prototype.projectPointsOntoEllipsoid=function(t,n){const e=t.length;o.defined(n)?n.length=e:n=new Array(e);for(let i=0;i<e;++i)n[i]=this.projectPointOntoEllipsoid(t[i],n[i]);return n},t.EllipsoidTangentPlane=c}));
|