drone_view 3.0.19 → 3.0.21
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/settings.json +3 -0
- package/FETCH_HEAD +0 -0
- package/dist/514.droneView.js +1 -1
- package/dist/800.droneView.js +1 -1
- package/dist/droneView.js +1 -1
- package/dist1/486.droneView.js +1 -0
- package/dist1/514.droneView.js +1 -0
- package/dist1/645.droneView.js +1 -0
- package/dist1/800.droneView.js +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist1/Assets/Images/bing_maps_credit.png +0 -0
- package/dist1/Assets/Images/cesium_credit.png +0 -0
- package/dist1/Assets/Images/google_earth_credit.png +0 -0
- package/dist1/Assets/Images/ion-credit.png +0 -0
- package/dist1/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist1/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist1/Assets/Textures/maki/airfield.png +0 -0
- package/dist1/Assets/Textures/maki/airport.png +0 -0
- package/dist1/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist1/Assets/Textures/maki/america-football.png +0 -0
- package/dist1/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist1/Assets/Textures/maki/bakery.png +0 -0
- package/dist1/Assets/Textures/maki/bank.png +0 -0
- package/dist1/Assets/Textures/maki/bar.png +0 -0
- package/dist1/Assets/Textures/maki/baseball.png +0 -0
- package/dist1/Assets/Textures/maki/basketball.png +0 -0
- package/dist1/Assets/Textures/maki/beer.png +0 -0
- package/dist1/Assets/Textures/maki/bicycle.png +0 -0
- package/dist1/Assets/Textures/maki/building.png +0 -0
- package/dist1/Assets/Textures/maki/bus.png +0 -0
- package/dist1/Assets/Textures/maki/cafe.png +0 -0
- package/dist1/Assets/Textures/maki/camera.png +0 -0
- package/dist1/Assets/Textures/maki/campsite.png +0 -0
- package/dist1/Assets/Textures/maki/car.png +0 -0
- package/dist1/Assets/Textures/maki/cemetery.png +0 -0
- package/dist1/Assets/Textures/maki/cesium.png +0 -0
- package/dist1/Assets/Textures/maki/chemist.png +0 -0
- package/dist1/Assets/Textures/maki/cinema.png +0 -0
- package/dist1/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/circle.png +0 -0
- package/dist1/Assets/Textures/maki/city.png +0 -0
- package/dist1/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist1/Assets/Textures/maki/college.png +0 -0
- package/dist1/Assets/Textures/maki/commercial.png +0 -0
- package/dist1/Assets/Textures/maki/cricket.png +0 -0
- package/dist1/Assets/Textures/maki/cross.png +0 -0
- package/dist1/Assets/Textures/maki/dam.png +0 -0
- package/dist1/Assets/Textures/maki/danger.png +0 -0
- package/dist1/Assets/Textures/maki/disability.png +0 -0
- package/dist1/Assets/Textures/maki/dog-park.png +0 -0
- package/dist1/Assets/Textures/maki/embassy.png +0 -0
- package/dist1/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist1/Assets/Textures/maki/entrance.png +0 -0
- package/dist1/Assets/Textures/maki/farm.png +0 -0
- package/dist1/Assets/Textures/maki/fast-food.png +0 -0
- package/dist1/Assets/Textures/maki/ferry.png +0 -0
- package/dist1/Assets/Textures/maki/fire-station.png +0 -0
- package/dist1/Assets/Textures/maki/fuel.png +0 -0
- package/dist1/Assets/Textures/maki/garden.png +0 -0
- package/dist1/Assets/Textures/maki/gift.png +0 -0
- package/dist1/Assets/Textures/maki/golf.png +0 -0
- package/dist1/Assets/Textures/maki/grocery.png +0 -0
- package/dist1/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist1/Assets/Textures/maki/harbor.png +0 -0
- package/dist1/Assets/Textures/maki/heart.png +0 -0
- package/dist1/Assets/Textures/maki/heliport.png +0 -0
- package/dist1/Assets/Textures/maki/hospital.png +0 -0
- package/dist1/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist1/Assets/Textures/maki/industrial.png +0 -0
- package/dist1/Assets/Textures/maki/land-use.png +0 -0
- package/dist1/Assets/Textures/maki/laundry.png +0 -0
- package/dist1/Assets/Textures/maki/library.png +0 -0
- package/dist1/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist1/Assets/Textures/maki/lodging.png +0 -0
- package/dist1/Assets/Textures/maki/logging.png +0 -0
- package/dist1/Assets/Textures/maki/london-underground.png +0 -0
- package/dist1/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/marker.png +0 -0
- package/dist1/Assets/Textures/maki/minefield.png +0 -0
- package/dist1/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist1/Assets/Textures/maki/monument.png +0 -0
- package/dist1/Assets/Textures/maki/museum.png +0 -0
- package/dist1/Assets/Textures/maki/music.png +0 -0
- package/dist1/Assets/Textures/maki/oil-well.png +0 -0
- package/dist1/Assets/Textures/maki/park.png +0 -0
- package/dist1/Assets/Textures/maki/park2.png +0 -0
- package/dist1/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist1/Assets/Textures/maki/parking.png +0 -0
- package/dist1/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist1/Assets/Textures/maki/pitch.png +0 -0
- package/dist1/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist1/Assets/Textures/maki/playground.png +0 -0
- package/dist1/Assets/Textures/maki/police.png +0 -0
- package/dist1/Assets/Textures/maki/polling-place.png +0 -0
- package/dist1/Assets/Textures/maki/post.png +0 -0
- package/dist1/Assets/Textures/maki/prison.png +0 -0
- package/dist1/Assets/Textures/maki/rail-above.png +0 -0
- package/dist1/Assets/Textures/maki/rail-light.png +0 -0
- package/dist1/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist1/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist1/Assets/Textures/maki/rail.png +0 -0
- package/dist1/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist1/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist1/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist1/Assets/Textures/maki/restaurant.png +0 -0
- package/dist1/Assets/Textures/maki/roadblock.png +0 -0
- package/dist1/Assets/Textures/maki/rocket.png +0 -0
- package/dist1/Assets/Textures/maki/school.png +0 -0
- package/dist1/Assets/Textures/maki/scooter.png +0 -0
- package/dist1/Assets/Textures/maki/shop.png +0 -0
- package/dist1/Assets/Textures/maki/skiing.png +0 -0
- package/dist1/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist1/Assets/Textures/maki/soccer.png +0 -0
- package/dist1/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/square.png +0 -0
- package/dist1/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/star.png +0 -0
- package/dist1/Assets/Textures/maki/suitcase.png +0 -0
- package/dist1/Assets/Textures/maki/swimming.png +0 -0
- package/dist1/Assets/Textures/maki/telephone.png +0 -0
- package/dist1/Assets/Textures/maki/tennis.png +0 -0
- package/dist1/Assets/Textures/maki/theatre.png +0 -0
- package/dist1/Assets/Textures/maki/toilets.png +0 -0
- package/dist1/Assets/Textures/maki/town-hall.png +0 -0
- package/dist1/Assets/Textures/maki/town.png +0 -0
- package/dist1/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/triangle.png +0 -0
- package/dist1/Assets/Textures/maki/village.png +0 -0
- package/dist1/Assets/Textures/maki/warehouse.png +0 -0
- package/dist1/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist1/Assets/Textures/maki/water.png +0 -0
- package/dist1/Assets/Textures/maki/wetland.png +0 -0
- package/dist1/Assets/Textures/maki/zoo.png +0 -0
- package/dist1/Assets/Textures/moonSmall.jpg +0 -0
- package/dist1/Assets/Textures/pin.svg +1 -0
- package/dist1/Assets/Textures/waterNormals.jpg +0 -0
- package/dist1/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist1/Assets/approximateTerrainHeights.json +1 -0
- package/dist1/ThirdParty/Workers/basis_transcoder.js +1 -0
- package/dist1/ThirdParty/Workers/draco_decoder_nodejs.js +1 -0
- package/dist1/ThirdParty/Workers/package.json +1 -0
- package/dist1/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/dist1/ThirdParty/Workers/pako_deflate.min.js.LICENSE.txt +1 -0
- package/dist1/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/dist1/ThirdParty/Workers/pako_inflate.min.js.LICENSE.txt +1 -0
- package/dist1/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist1/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist1/ThirdParty/draco_decoder.wasm +0 -0
- package/dist1/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/dist1/Widgets/Animation/Animation.css +176 -0
- package/dist1/Widgets/Animation/lighter.css +99 -0
- package/dist1/Widgets/BaseLayerPicker/BaseLayerPicker.css +117 -0
- package/dist1/Widgets/BaseLayerPicker/lighter.css +33 -0
- package/dist1/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +122 -0
- package/dist1/Widgets/CesiumInspector/CesiumInspector.css +134 -0
- package/dist1/Widgets/CesiumWidget/CesiumWidget.css +124 -0
- package/dist1/Widgets/CesiumWidget/lighter.css +14 -0
- package/dist1/Widgets/FullscreenButton/FullscreenButton.css +7 -0
- package/dist1/Widgets/Geocoder/Geocoder.css +78 -0
- package/dist1/Widgets/Geocoder/lighter.css +19 -0
- package/dist1/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist1/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/dist1/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/dist1/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/dist1/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/dist1/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/dist1/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/dist1/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/dist1/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/dist1/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/dist1/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist1/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist1/Widgets/Images/TimelineIcons.png +0 -0
- package/dist1/Widgets/Images/info-loading.gif +0 -0
- package/dist1/Widgets/InfoBox/InfoBox.css +98 -0
- package/dist1/Widgets/InfoBox/InfoBoxDescription.css +90 -0
- package/dist1/Widgets/NavigationHelpButton/NavigationHelpButton.css +112 -0
- package/dist1/Widgets/NavigationHelpButton/lighter.css +46 -0
- package/dist1/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +16 -0
- package/dist1/Widgets/ProjectionPicker/ProjectionPicker.css +49 -0
- package/dist1/Widgets/SceneModePicker/SceneModePicker.css +80 -0
- package/dist1/Widgets/SelectionIndicator/SelectionIndicator.css +21 -0
- package/dist1/Widgets/Timeline/Timeline.css +114 -0
- package/dist1/Widgets/Timeline/lighter.css +20 -0
- package/dist1/Widgets/VRButton/VRButton.css +7 -0
- package/dist1/Widgets/Viewer/Viewer.css +118 -0
- package/dist1/Widgets/VoxelInspector/VoxelInspector.css +20 -0
- package/dist1/Widgets/lighter.css +7 -0
- package/dist1/Widgets/lighterShared.css +52 -0
- package/dist1/Widgets/shared.css +117 -0
- package/dist1/Widgets/widgets.css +18 -0
- package/dist1/Workers/ArcType-26a3f38d.js +1 -0
- package/dist1/Workers/AttributeCompression-48e336db.js +1 -0
- package/dist1/Workers/AxisAlignedBoundingBox-39ab50d0.js +1 -0
- package/dist1/Workers/BoundingRectangle-2379df5a.js +1 -0
- package/dist1/Workers/BoxGeometry-61fa3148.js +1 -0
- package/dist1/Workers/Color-7d827393.js +1 -0
- package/dist1/Workers/ComponentDatatype-ab629b88.js +1 -0
- package/dist1/Workers/CoplanarPolygonGeometryLibrary-9cff5a6c.js +1 -0
- package/dist1/Workers/CorridorGeometryLibrary-28996bf3.js +1 -0
- package/dist1/Workers/CylinderGeometry-966ff1e5.js +1 -0
- package/dist1/Workers/CylinderGeometryLibrary-f49f33a8.js +1 -0
- package/dist1/Workers/EllipseGeometry-fddb3596.js +1 -0
- package/dist1/Workers/EllipseGeometryLibrary-08d055cc.js +1 -0
- package/dist1/Workers/EllipseOutlineGeometry-a72d7da8.js +1 -0
- package/dist1/Workers/EllipsoidGeodesic-2723ab86.js +1 -0
- package/dist1/Workers/EllipsoidGeometry-fd18adbd.js +1 -0
- package/dist1/Workers/EllipsoidOutlineGeometry-d9d02643.js +1 -0
- package/dist1/Workers/EllipsoidRhumbLine-77eff028.js +1 -0
- package/dist1/Workers/EllipsoidTangentPlane-82f2a887.js +1 -0
- package/dist1/Workers/EncodedCartesian3-5e2017ab.js +1 -0
- package/dist1/Workers/FrustumGeometry-9378eccf.js +1 -0
- package/dist1/Workers/GeometryAttribute-81ff775c.js +1 -0
- package/dist1/Workers/GeometryAttributes-1e4ddcd2.js +1 -0
- package/dist1/Workers/GeometryInstance-0318e0cd.js +1 -0
- package/dist1/Workers/GeometryOffsetAttribute-2579b8d2.js +1 -0
- package/dist1/Workers/GeometryPipeline-e049e700.js +1 -0
- package/dist1/Workers/IndexDatatype-d3db4e7d.js +1 -0
- package/dist1/Workers/IntersectionTests-357c3d7f.js +1 -0
- package/dist1/Workers/Math-2ce22ee9.js +1 -0
- package/dist1/Workers/Matrix2-413c4048.js +1 -0
- package/dist1/Workers/Matrix3-81054f0f.js +1 -0
- package/dist1/Workers/OrientedBoundingBox-cfd17917.js +1 -0
- package/dist1/Workers/Plane-6add0ae1.js +1 -0
- package/dist1/Workers/PolygonGeometryLibrary-003d1689.js +1 -0
- package/dist1/Workers/PolygonPipeline-61ca1579.js +1 -0
- package/dist1/Workers/PolylinePipeline-8495667b.js +1 -0
- package/dist1/Workers/PolylineVolumeGeometryLibrary-2df3f067.js +1 -0
- package/dist1/Workers/PrimitivePipeline-8033b34b.js +1 -0
- package/dist1/Workers/RectangleGeometryLibrary-a0a06d23.js +1 -0
- package/dist1/Workers/RuntimeError-9b4ce3fb.js +1 -0
- package/dist1/Workers/TerrainEncoding-bd5c9ed5.js +1 -0
- package/dist1/Workers/Transforms-fce95115.js +2 -0
- package/dist1/Workers/Transforms-fce95115.js.LICENSE.txt +12 -0
- package/dist1/Workers/VertexFormat-fbdec922.js +1 -0
- package/dist1/Workers/WallGeometryLibrary-1c767084.js +1 -0
- package/dist1/Workers/WebGLConstants-7f557f93.js +1 -0
- package/dist1/Workers/WebMercatorProjection-943e2226.js +1 -0
- package/dist1/Workers/arrayRemoveDuplicates-9b636830.js +1 -0
- package/dist1/Workers/cesiumWorkerBootstrapper.js +2 -0
- package/dist1/Workers/cesiumWorkerBootstrapper.js.LICENSE.txt +30 -0
- package/dist1/Workers/combine-0c102d93.js +1 -0
- package/dist1/Workers/combineGeometry.js +1 -0
- package/dist1/Workers/createBoxGeometry.js +1 -0
- package/dist1/Workers/createBoxOutlineGeometry.js +1 -0
- package/dist1/Workers/createCircleGeometry.js +1 -0
- package/dist1/Workers/createCircleOutlineGeometry.js +1 -0
- package/dist1/Workers/createCoplanarPolygonGeometry.js +1 -0
- package/dist1/Workers/createCoplanarPolygonOutlineGeometry.js +1 -0
- package/dist1/Workers/createCorridorGeometry.js +1 -0
- package/dist1/Workers/createCorridorOutlineGeometry.js +1 -0
- package/dist1/Workers/createCylinderGeometry.js +1 -0
- package/dist1/Workers/createCylinderOutlineGeometry.js +1 -0
- package/dist1/Workers/createEllipseGeometry.js +1 -0
- package/dist1/Workers/createEllipseOutlineGeometry.js +1 -0
- package/dist1/Workers/createEllipsoidGeometry.js +1 -0
- package/dist1/Workers/createEllipsoidOutlineGeometry.js +1 -0
- package/dist1/Workers/createFrustumGeometry.js +1 -0
- package/dist1/Workers/createFrustumOutlineGeometry.js +1 -0
- package/dist1/Workers/createGeometry.js +1 -0
- package/dist1/Workers/createGroundPolylineGeometry.js +1 -0
- package/dist1/Workers/createPlaneGeometry.js +1 -0
- package/dist1/Workers/createPlaneOutlineGeometry.js +1 -0
- package/dist1/Workers/createPolygonGeometry.js +1 -0
- package/dist1/Workers/createPolygonOutlineGeometry.js +1 -0
- package/dist1/Workers/createPolylineGeometry.js +1 -0
- package/dist1/Workers/createPolylineVolumeGeometry.js +1 -0
- package/dist1/Workers/createPolylineVolumeOutlineGeometry.js +1 -0
- package/dist1/Workers/createRectangleGeometry.js +1 -0
- package/dist1/Workers/createRectangleOutlineGeometry.js +1 -0
- package/dist1/Workers/createSimplePolylineGeometry.js +1 -0
- package/dist1/Workers/createSphereGeometry.js +1 -0
- package/dist1/Workers/createSphereOutlineGeometry.js +1 -0
- package/dist1/Workers/createTaskProcessorWorker.js +1 -0
- package/dist1/Workers/createVectorTileClampedPolylines.js +1 -0
- package/dist1/Workers/createVectorTileGeometries.js +1 -0
- package/dist1/Workers/createVectorTilePoints.js +1 -0
- package/dist1/Workers/createVectorTilePolygons.js +1 -0
- package/dist1/Workers/createVectorTilePolylines.js +1 -0
- package/dist1/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -0
- package/dist1/Workers/createVerticesFromHeightmap.js +2 -0
- package/dist1/Workers/createVerticesFromHeightmap.js.LICENSE.txt +1 -0
- package/dist1/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -0
- package/dist1/Workers/createWallGeometry.js +1 -0
- package/dist1/Workers/createWallOutlineGeometry.js +1 -0
- package/dist1/Workers/decodeDraco.js +1 -0
- package/dist1/Workers/decodeGoogleEarthEnterprisePacket.js +1 -0
- package/dist1/Workers/decodeI3S.js +1 -0
- package/dist1/Workers/defaultValue-f6d5e6da.js +1 -0
- package/dist1/Workers/package.js +2 -0
- package/dist1/Workers/package.js.LICENSE.txt +24 -0
- package/dist1/Workers/transcodeKTX2.js +1 -0
- package/dist1/Workers/transferTypedArrayTest.js +2 -0
- package/dist1/Workers/transferTypedArrayTest.js.LICENSE.txt +24 -0
- package/dist1/Workers/upsampleQuantizedTerrainMesh.js +1 -0
- package/dist1/droneView.js +2 -0
- package/dist1/droneView.js.LICENSE.txt +80 -0
- package/package.json +1 -1
- /package/{dist → dist1}/_382d.droneView.js +0 -0
- /package/{dist → dist1}/_6b2a.droneView.js +0 -0
- /package/{dist → dist1}/_9839.droneView.js +0 -0
- /package/{dist → dist1}/_afdc.droneView.js +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
define(["./RuntimeError-9b4ce3fb","./defaultValue-f6d5e6da","./createTaskProcessorWorker"],(function(e,t,n){"use strict";function i(t,n){if(i.passThroughDataForTesting)return n;const r=t.byteLength;if(0===r||r%4!=0)throw new e.RuntimeError("The length of key must be greater than 0 and a multiple of 4.");const a=new DataView(n),o=a.getUint32(0,!0);if(1953029805===o||2917034100===o)return n;const s=new DataView(t);let l=0;const d=n.byteLength,c=d-d%8,f=r;let h,u=8;for(;l<c;)for(u=(u+8)%24,h=u;l<c&&h<f;)a.setUint32(l,a.getUint32(l,!0)^s.getUint32(h,!0),!0),a.setUint32(l+4,a.getUint32(l+4,!0)^s.getUint32(h+4,!0),!0),l+=8,h+=24;if(l<d)for(h>=f&&(u=(u+8)%24,h=u);l<d;)a.setUint8(l,a.getUint8(l)^s.getUint8(h)),l++,h++}function r(e,t){return 0!=(e&t)}i.passThroughDataForTesting=!1;const a=[1,2,4,8];function o(e,t,n,i,r,a){this._bits=e,this.cnodeVersion=t,this.imageryVersion=n,this.terrainVersion=i,this.imageryProvider=r,this.terrainProvider=a,this.ancestorHasTerrain=!1,this.terrainState=void 0}o.clone=function(e,n){return t.defined(n)?(n._bits=e._bits,n.cnodeVersion=e.cnodeVersion,n.imageryVersion=e.imageryVersion,n.terrainVersion=e.terrainVersion,n.imageryProvider=e.imageryProvider,n.terrainProvider=e.terrainProvider):n=new o(e._bits,e.cnodeVersion,e.imageryVersion,e.terrainVersion,e.imageryProvider,e.terrainProvider),n.ancestorHasTerrain=e.ancestorHasTerrain,n.terrainState=e.terrainState,n},o.prototype.setParent=function(e){this.ancestorHasTerrain=e.ancestorHasTerrain||this.hasTerrain()},o.prototype.hasSubtree=function(){return r(this._bits,16)},o.prototype.hasImagery=function(){return r(this._bits,64)},o.prototype.hasTerrain=function(){return r(this._bits,128)},o.prototype.hasChildren=function(){return r(this._bits,15)},o.prototype.hasChild=function(e){return r(this._bits,a[e])},o.prototype.getChildBitmask=function(){return 15&this._bits};var s={},l={};const d=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})()),c=16209,f=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),h=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),u=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),w=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var b={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const m=(e,t,n,i)=>{let r=65535&e|0,a=e>>>16&65535|0,o=0;for(;0!==n;){o=n>2e3?2e3:n,n-=o;do{r=r+t[i++]|0,a=a+r|0}while(--o);r%=65521,a%=65521}return r|a<<16|0},g=(e,t,n,i)=>{const r=d,a=i+n;e^=-1;for(let n=i;n<a;n++)e=e>>>8^r[255&(e^t[n])];return-1^e},k=function(e,t){let n,i,r,a,o,s,l,d,f,h,u,w,b,m,g,k,_,p,y,v,E,x,R,A;const T=e.state;n=e.next_in,R=e.input,i=n+(e.avail_in-5),r=e.next_out,A=e.output,a=r-(t-e.avail_out),o=r+(e.avail_out-257),s=T.dmax,l=T.wsize,d=T.whave,f=T.wnext,h=T.window,u=T.hold,w=T.bits,b=T.lencode,m=T.distcode,g=(1<<T.lenbits)-1,k=(1<<T.distbits)-1;e:do{w<15&&(u+=R[n++]<<w,w+=8,u+=R[n++]<<w,w+=8),_=b[u&g];t:for(;;){if(p=_>>>24,u>>>=p,w-=p,p=_>>>16&255,0===p)A[r++]=65535&_;else{if(!(16&p)){if(0==(64&p)){_=b[(65535&_)+(u&(1<<p)-1)];continue t}if(32&p){T.mode=16191;break e}e.msg="invalid literal/length code",T.mode=c;break e}y=65535&_,p&=15,p&&(w<p&&(u+=R[n++]<<w,w+=8),y+=u&(1<<p)-1,u>>>=p,w-=p),w<15&&(u+=R[n++]<<w,w+=8,u+=R[n++]<<w,w+=8),_=m[u&k];n:for(;;){if(p=_>>>24,u>>>=p,w-=p,p=_>>>16&255,!(16&p)){if(0==(64&p)){_=m[(65535&_)+(u&(1<<p)-1)];continue n}e.msg="invalid distance code",T.mode=c;break e}if(v=65535&_,p&=15,w<p&&(u+=R[n++]<<w,w+=8,w<p&&(u+=R[n++]<<w,w+=8)),v+=u&(1<<p)-1,v>s){e.msg="invalid distance too far back",T.mode=c;break e}if(u>>>=p,w-=p,p=r-a,v>p){if(p=v-p,p>d&&T.sane){e.msg="invalid distance too far back",T.mode=c;break e}if(E=0,x=h,0===f){if(E+=l-p,p<y){y-=p;do{A[r++]=h[E++]}while(--p);E=r-v,x=A}}else if(f<p){if(E+=l+f-p,p-=f,p<y){y-=p;do{A[r++]=h[E++]}while(--p);if(E=0,f<y){p=f,y-=p;do{A[r++]=h[E++]}while(--p);E=r-v,x=A}}}else if(E+=f-p,p<y){y-=p;do{A[r++]=h[E++]}while(--p);E=r-v,x=A}for(;y>2;)A[r++]=x[E++],A[r++]=x[E++],A[r++]=x[E++],y-=3;y&&(A[r++]=x[E++],y>1&&(A[r++]=x[E++]))}else{E=r-v;do{A[r++]=A[E++],A[r++]=A[E++],A[r++]=A[E++],y-=3}while(y>2);y&&(A[r++]=A[E++],y>1&&(A[r++]=A[E++]))}break}}break}}while(n<i&&r<o);y=w>>3,n-=y,w-=y<<3,u&=(1<<w)-1,e.next_in=n,e.next_out=r,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=r<o?o-r+257:257-(r-o),T.hold=u,T.bits=w},_=(e,t,n,i,r,a,o,s)=>{const l=s.bits;let d,c,b,m,g,k,_=0,p=0,y=0,v=0,E=0,x=0,R=0,A=0,T=0,U=0,S=null;const Z=new Uint16Array(16),D=new Uint16Array(16);let I,O,B,N=null;for(_=0;_<=15;_++)Z[_]=0;for(p=0;p<i;p++)Z[t[n+p]]++;for(E=l,v=15;v>=1&&0===Z[v];v--);if(E>v&&(E=v),0===v)return r[a++]=20971520,r[a++]=20971520,s.bits=1,0;for(y=1;y<v&&0===Z[y];y++);for(E<y&&(E=y),A=1,_=1;_<=15;_++)if(A<<=1,A-=Z[_],A<0)return-1;if(A>0&&(0===e||1!==v))return-1;for(D[1]=0,_=1;_<15;_++)D[_+1]=D[_]+Z[_];for(p=0;p<i;p++)0!==t[n+p]&&(o[D[t[n+p]]++]=p);if(0===e?(S=N=o,k=20):1===e?(S=f,N=h,k=257):(S=u,N=w,k=0),U=0,p=0,_=y,g=a,x=E,R=0,b=-1,T=1<<E,m=T-1,1===e&&T>852||2===e&&T>592)return 1;for(;;){I=_-R,o[p]+1<k?(O=0,B=o[p]):o[p]>=k?(O=N[o[p]-k],B=S[o[p]-k]):(O=96,B=0),d=1<<_-R,c=1<<x,y=c;do{c-=d,r[g+(U>>R)+c]=I<<24|O<<16|B|0}while(0!==c);for(d=1<<_-1;U&d;)d>>=1;if(0!==d?(U&=d-1,U+=d):U=0,p++,0==--Z[_]){if(_===v)break;_=t[n+o[p]]}if(_>E&&(U&m)!==b){for(0===R&&(R=E),g+=y,x=_-R,A=1<<x;x+R<v&&(A-=Z[x+R],!(A<=0));)x++,A<<=1;if(T+=1<<x,1===e&&T>852||2===e&&T>592)return 1;b=U&m,r[b]=E<<24|x<<16|g-a|0}}return 0!==U&&(r[g+U]=_-R<<24|64<<16|0),s.bits=E,0},{Z_FINISH:p,Z_BLOCK:y,Z_TREES:v,Z_OK:E,Z_STREAM_END:x,Z_NEED_DICT:R,Z_STREAM_ERROR:A,Z_DATA_ERROR:T,Z_MEM_ERROR:U,Z_BUF_ERROR:S,Z_DEFLATED:Z}=b,D=16180,I=16190,O=16191,B=16192,N=16194,C=16199,M=16200,L=16206,F=16209,P=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function z(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const V=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<D||t.mode>16211?1:0},H=e=>{if(V(e))return A;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=D,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,E},j=e=>{if(V(e))return A;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,H(e)},K=(e,t)=>{let n;if(V(e))return A;const i=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?A:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,j(e))},Y=(e,t)=>{if(!e)return A;const n=new z;e.state=n,n.strm=e,n.window=null,n.mode=D;const i=K(e,t);return i!==E&&(e.state=null),i};let G,Q,W=!0;const X=e=>{if(W){G=new Int32Array(512),Q=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(_(1,e.lens,0,288,G,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;_(2,e.lens,0,32,Q,0,e.work,{bits:5}),W=!1}e.lencode=G,e.lenbits=9,e.distcode=Q,e.distbits=5},q=(e,t,n,i)=>{let r;const a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(t.subarray(n-i,n-i+r),a.wnext),(i-=r)?(a.window.set(t.subarray(n-i,n),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0};l.inflateReset=j,l.inflateReset2=K,l.inflateResetKeep=H,l.inflateInit=e=>Y(e,15),l.inflateInit2=Y,l.inflate=(e,t)=>{let n,i,r,a,o,s,l,d,c,f,h,u,w,b,z,H,j,K,Y,G,Q,W,J=0;const $=new Uint8Array(4);let ee,te;const ne=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(V(e)||!e.output||!e.input&&0!==e.avail_in)return A;n=e.state,n.mode===O&&(n.mode=B),o=e.next_out,r=e.output,l=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,d=n.hold,c=n.bits,f=s,h=l,W=E;e:for(;;)switch(n.mode){case D:if(0===n.wrap){n.mode=B;break}for(;c<16;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(2&n.wrap&&35615===d){0===n.wbits&&(n.wbits=15),n.check=0,$[0]=255&d,$[1]=d>>>8&255,n.check=g(n.check,$,2,0),d=0,c=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&d)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=F;break}if((15&d)!==Z){e.msg="unknown compression method",n.mode=F;break}if(d>>>=4,c-=4,Q=8+(15&d),0===n.wbits&&(n.wbits=Q),Q>15||Q>n.wbits){e.msg="invalid window size",n.mode=F;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&d?16189:O,d=0,c=0;break;case 16181:for(;c<16;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(n.flags=d,(255&n.flags)!==Z){e.msg="unknown compression method",n.mode=F;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=F;break}n.head&&(n.head.text=d>>8&1),512&n.flags&&4&n.wrap&&($[0]=255&d,$[1]=d>>>8&255,n.check=g(n.check,$,2,0)),d=0,c=0,n.mode=16182;case 16182:for(;c<32;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}n.head&&(n.head.time=d),512&n.flags&&4&n.wrap&&($[0]=255&d,$[1]=d>>>8&255,$[2]=d>>>16&255,$[3]=d>>>24&255,n.check=g(n.check,$,4,0)),d=0,c=0,n.mode=16183;case 16183:for(;c<16;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}n.head&&(n.head.xflags=255&d,n.head.os=d>>8),512&n.flags&&4&n.wrap&&($[0]=255&d,$[1]=d>>>8&255,n.check=g(n.check,$,2,0)),d=0,c=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}n.length=d,n.head&&(n.head.extra_len=d),512&n.flags&&4&n.wrap&&($[0]=255&d,$[1]=d>>>8&255,n.check=g(n.check,$,2,0)),d=0,c=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(u=n.length,u>s&&(u=s),u&&(n.head&&(Q=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(a,a+u),Q)),512&n.flags&&4&n.wrap&&(n.check=g(n.check,i,u,a)),s-=u,a+=u,n.length-=u),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;u=0;do{Q=i[a+u++],n.head&&Q&&n.length<65536&&(n.head.name+=String.fromCharCode(Q))}while(Q&&u<s);if(512&n.flags&&4&n.wrap&&(n.check=g(n.check,i,u,a)),s-=u,a+=u,Q)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break e;u=0;do{Q=i[a+u++],n.head&&Q&&n.length<65536&&(n.head.comment+=String.fromCharCode(Q))}while(Q&&u<s);if(512&n.flags&&4&n.wrap&&(n.check=g(n.check,i,u,a)),s-=u,a+=u,Q)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(4&n.wrap&&d!==(65535&n.check)){e.msg="header crc mismatch",n.mode=F;break}d=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=O;break;case 16189:for(;c<32;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}e.adler=n.check=P(d),d=0,c=0,n.mode=I;case I:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=d,n.bits=c,R;e.adler=n.check=1,n.mode=O;case O:if(t===y||t===v)break e;case B:if(n.last){d>>>=7&c,c-=7&c,n.mode=L;break}for(;c<3;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}switch(n.last=1&d,d>>>=1,c-=1,3&d){case 0:n.mode=16193;break;case 1:if(X(n),n.mode=C,t===v){d>>>=2,c-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=F}d>>>=2,c-=2;break;case 16193:for(d>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if((65535&d)!=(d>>>16^65535)){e.msg="invalid stored block lengths",n.mode=F;break}if(n.length=65535&d,d=0,c=0,n.mode=N,t===v)break e;case N:n.mode=16195;case 16195:if(u=n.length,u){if(u>s&&(u=s),u>l&&(u=l),0===u)break e;r.set(i.subarray(a,a+u),o),s-=u,a+=u,l-=u,o+=u,n.length-=u;break}n.mode=O;break;case 16196:for(;c<14;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(n.nlen=257+(31&d),d>>>=5,c-=5,n.ndist=1+(31&d),d>>>=5,c-=5,n.ncode=4+(15&d),d>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=F;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}n.lens[ne[n.have++]]=7&d,d>>>=3,c-=3}for(;n.have<19;)n.lens[ne[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,ee={bits:n.lenbits},W=_(0,n.lens,0,19,n.lencode,0,n.work,ee),n.lenbits=ee.bits,W){e.msg="invalid code lengths set",n.mode=F;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;J=n.lencode[d&(1<<n.lenbits)-1],z=J>>>24,H=J>>>16&255,j=65535&J,!(z<=c);){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(j<16)d>>>=z,c-=z,n.lens[n.have++]=j;else{if(16===j){for(te=z+2;c<te;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(d>>>=z,c-=z,0===n.have){e.msg="invalid bit length repeat",n.mode=F;break}Q=n.lens[n.have-1],u=3+(3&d),d>>>=2,c-=2}else if(17===j){for(te=z+3;c<te;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}d>>>=z,c-=z,Q=0,u=3+(7&d),d>>>=3,c-=3}else{for(te=z+7;c<te;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}d>>>=z,c-=z,Q=0,u=11+(127&d),d>>>=7,c-=7}if(n.have+u>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=F;break}for(;u--;)n.lens[n.have++]=Q}}if(n.mode===F)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=F;break}if(n.lenbits=9,ee={bits:n.lenbits},W=_(1,n.lens,0,n.nlen,n.lencode,0,n.work,ee),n.lenbits=ee.bits,W){e.msg="invalid literal/lengths set",n.mode=F;break}if(n.distbits=6,n.distcode=n.distdyn,ee={bits:n.distbits},W=_(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,ee),n.distbits=ee.bits,W){e.msg="invalid distances set",n.mode=F;break}if(n.mode=C,t===v)break e;case C:n.mode=M;case M:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=d,n.bits=c,k(e,h),o=e.next_out,r=e.output,l=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,d=n.hold,c=n.bits,n.mode===O&&(n.back=-1);break}for(n.back=0;J=n.lencode[d&(1<<n.lenbits)-1],z=J>>>24,H=J>>>16&255,j=65535&J,!(z<=c);){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(H&&0==(240&H)){for(K=z,Y=H,G=j;J=n.lencode[G+((d&(1<<K+Y)-1)>>K)],z=J>>>24,H=J>>>16&255,j=65535&J,!(K+z<=c);){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}d>>>=K,c-=K,n.back+=K}if(d>>>=z,c-=z,n.back+=z,n.length=j,0===H){n.mode=16205;break}if(32&H){n.back=-1,n.mode=O;break}if(64&H){e.msg="invalid literal/length code",n.mode=F;break}n.extra=15&H,n.mode=16201;case 16201:if(n.extra){for(te=n.extra;c<te;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}n.length+=d&(1<<n.extra)-1,d>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;J=n.distcode[d&(1<<n.distbits)-1],z=J>>>24,H=J>>>16&255,j=65535&J,!(z<=c);){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(0==(240&H)){for(K=z,Y=H,G=j;J=n.distcode[G+((d&(1<<K+Y)-1)>>K)],z=J>>>24,H=J>>>16&255,j=65535&J,!(K+z<=c);){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}d>>>=K,c-=K,n.back+=K}if(d>>>=z,c-=z,n.back+=z,64&H){e.msg="invalid distance code",n.mode=F;break}n.offset=j,n.extra=15&H,n.mode=16203;case 16203:if(n.extra){for(te=n.extra;c<te;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}n.offset+=d&(1<<n.extra)-1,d>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=F;break}n.mode=16204;case 16204:if(0===l)break e;if(u=h-l,n.offset>u){if(u=n.offset-u,u>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=F;break}u>n.wnext?(u-=n.wnext,w=n.wsize-u):w=n.wnext-u,u>n.length&&(u=n.length),b=n.window}else b=r,w=o-n.offset,u=n.length;u>l&&(u=l),l-=u,n.length-=u;do{r[o++]=b[w++]}while(--u);0===n.length&&(n.mode=M);break;case 16205:if(0===l)break e;r[o++]=n.length,l--,n.mode=M;break;case L:if(n.wrap){for(;c<32;){if(0===s)break e;s--,d|=i[a++]<<c,c+=8}if(h-=l,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?g(n.check,r,h,o-h):m(n.check,r,h,o-h)),h=l,4&n.wrap&&(n.flags?d:P(d))!==n.check){e.msg="incorrect data check",n.mode=F;break}d=0,c=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break e;s--,d+=i[a++]<<c,c+=8}if(4&n.wrap&&d!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=F;break}d=0,c=0}n.mode=16208;case 16208:W=x;break e;case F:W=T;break e;case 16210:return U;default:return A}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=d,n.bits=c,(n.wsize||h!==e.avail_out&&n.mode<F&&(n.mode<L||t!==p))&&q(e,e.output,e.next_out,h-e.avail_out),f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?g(n.check,r,h,e.next_out-h):m(n.check,r,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===O?128:0)+(n.mode===C||n.mode===N?256:0),(0===f&&0===h||t===p)&&W===E&&(W=S),W},l.inflateEnd=e=>{if(V(e))return A;let t=e.state;return t.window&&(t.window=null),e.state=null,E},l.inflateGetHeader=(e,t)=>{if(V(e))return A;const n=e.state;return 0==(2&n.wrap)?A:(n.head=t,t.done=!1,E)},l.inflateSetDictionary=(e,t)=>{const n=t.length;let i,r,a;return V(e)?A:(i=e.state,0!==i.wrap&&i.mode!==I?A:i.mode===I&&(r=1,r=m(r,t,n,0),r!==i.check)?T:(a=q(e,t,n,n),a?(i.mode=16210,U):(i.havedict=1,E)))},l.inflateInfo="pako inflate (from Nodeca project)";var J={};const $=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);J.assign=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)$(n,t)&&(e[t]=n[t])}}return e},J.flattenChunks=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const n=new Uint8Array(t);for(let t=0,i=0,r=e.length;t<r;t++){let r=e[t];n.set(r,i),i+=r.length}return n};var ee={};let te=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){te=!1}const ne=new Uint8Array(256);for(let e=0;e<256;e++)ne[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ne[254]=ne[254]=1,ee.string2buf=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,i,r,a,o=e.length,s=0;for(r=0;r<o;r++)n=e.charCodeAt(r),55296==(64512&n)&&r+1<o&&(i=e.charCodeAt(r+1),56320==(64512&i)&&(n=65536+(n-55296<<10)+(i-56320),r++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,r=0;a<s;r++)n=e.charCodeAt(r),55296==(64512&n)&&r+1<o&&(i=e.charCodeAt(r+1),56320==(64512&i)&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},ee.buf2string=(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let i,r;const a=new Array(2*n);for(r=0,i=0;i<n;){let t=e[i++];if(t<128){a[r++]=t;continue}let o=ne[t];if(o>4)a[r++]=65533,i+=o-1;else{for(t&=2===o?31:3===o?15:7;o>1&&i<n;)t=t<<6|63&e[i++],o--;o>1?a[r++]=65533:t<65536?a[r++]=t:(t-=65536,a[r++]=55296|t>>10&1023,a[r++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&te)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n})(a,r)},ee.utf8border=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+ne[e[n]]>t?n:t};const ie=l,re=J,ae=ee,oe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},se=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},le=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},de=Object.prototype.toString,{Z_NO_FLUSH:ce,Z_FINISH:fe,Z_OK:he,Z_STREAM_END:ue,Z_NEED_DICT:we,Z_STREAM_ERROR:be,Z_DATA_ERROR:me,Z_MEM_ERROR:ge}=b;function ke(e){this.options=re.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new se,this.strm.avail_out=0;let n=ie.inflateInit2(this.strm,t.windowBits);if(n!==he)throw new Error(oe[n]);if(this.header=new le,ie.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=ae.string2buf(t.dictionary):"[object ArrayBuffer]"===de.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=ie.inflateSetDictionary(this.strm,t.dictionary),n!==he)))throw new Error(oe[n])}function _e(e,t){const n=new ke(t);if(n.push(e),n.err)throw n.msg||oe[n.err];return n.result}ke.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(o=t===~~t?t:!0===t?fe:ce,"[object ArrayBuffer]"===de.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),a=ie.inflate(n,o),a===we&&r&&(a=ie.inflateSetDictionary(n,r),a===he?a=ie.inflate(n,o):a===me&&(a=we));n.avail_in>0&&a===ue&&n.state.wrap>0&&0!==e[n.next_in];)ie.inflateReset(n),a=ie.inflate(n,o);switch(a){case be:case me:case we:case ge:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(0===n.avail_out||a===ue))if("string"===this.options.to){let e=ae.utf8border(n.output,n.next_out),t=n.next_out-e,r=ae.buf2string(n.output,e);n.next_out=t,n.avail_out=i-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(r)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(a!==he||0!==s){if(a===ue)return a=ie.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},ke.prototype.onData=function(e){this.chunks.push(e)},ke.prototype.onEnd=function(e){e===he&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=re.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},s.Inflate=ke,s.inflate=_e,s.inflateRaw=function(e,t){return(t=t||{}).raw=!0,_e(e,t)},s.ungzip=_e,s.constants=b;const pe=Uint16Array.BYTES_PER_ELEMENT,ye=Int32Array.BYTES_PER_ELEMENT,ve=Uint32Array.BYTES_PER_ELEMENT,Ee={METADATA:0,TERRAIN:1,DBROOT:2,fromString:function(e){return"Metadata"===e?Ee.METADATA:"Terrain"===e?Ee.TERRAIN:"DbRoot"===e?Ee.DBROOT:void 0}},xe=1953029805;return n((function(t,n){const r=Ee.fromString(t.type);let a=t.buffer;i(t.key,a);const l=function(t){const n=new DataView(t);let i=0;const r=n.getUint32(i,!0);if(i+=ve,r!==xe&&2917034100!==r)throw new e.RuntimeError("Invalid magic");const a=n.getUint32(i,r===xe);i+=ve;const o=new Uint8Array(t,i),l=s.inflate(o);if(l.length!==a)throw new e.RuntimeError("Size of packet doesn't match header");return l}(a);a=l.buffer;const d=l.length;switch(r){case Ee.METADATA:return function(t,n,i){const r=new DataView(t);let a=0;const s=r.getUint32(a,!0);if(a+=ve,32301!==s)throw new e.RuntimeError("Invalid magic");const l=r.getUint32(a,!0);if(a+=ve,1!==l)throw new e.RuntimeError("Invalid data type. Must be 1 for QuadTreePacket");const d=r.getUint32(a,!0);if(a+=ve,2!==d)throw new e.RuntimeError("Invalid QuadTreePacket version. Only version 2 is supported.");const c=r.getInt32(a,!0);a+=ye;const f=r.getInt32(a,!0);if(a+=ye,32!==f)throw new e.RuntimeError("Invalid instance size.");const h=r.getInt32(a,!0);a+=ye;const u=r.getInt32(a,!0);a+=ye;const w=r.getInt32(a,!0);if(a+=ye,h!==c*f+a)throw new e.RuntimeError("Invalid dataBufferOffset");if(h+u+w!==n)throw new e.RuntimeError("Invalid packet offsets");const b=[];for(let e=0;e<c;++e){const e=r.getUint8(a);++a,++a;const t=r.getUint16(a,!0);a+=pe;const n=r.getUint16(a,!0);a+=pe;const i=r.getUint16(a,!0);a+=pe,a+=pe,a+=pe,a+=ye,a+=ye,a+=8;const s=r.getUint8(a++),l=r.getUint8(a++);a+=pe,b.push(new o(e,t,n,i,s,l))}const m=[];let g=0,k=0;const _=b[g++];return""===i?++k:m[i]=_,function e(t,n,i){let r=!1;if(4===i){if(n.hasSubtree())return;r=!0}for(let a=0;a<4;++a){const o=t+a.toString();if(r)m[o]=null;else if(i<4)if(n.hasChild(a)){if(g===c)return void console.log("Incorrect number of instances");const t=b[g++];m[o]=t,e(o,t,i+1)}else m[o]=null}}(i,_,k),m}(a,d,t.quadKey);case Ee.TERRAIN:return function(t,n,i){const r=new DataView(t),a=function(t){for(let i=0;i<4;++i){const i=r.getUint32(t,!0);if(t+=ve,(t+=i)>n)throw new e.RuntimeError("Malformed terrain packet found.")}return t};let o=0;const s=[];for(;s.length<5;){const e=o;o=a(o);const n=t.slice(e,o);i.push(n),s.push(n)}return s}(a,d,n);case Ee.DBROOT:return n.push(a),{buffer:a}}}))}));
|
@@ -0,0 +1 @@
|
|
1
|
+
define(["./createTaskProcessorWorker","./defaultValue-f6d5e6da","./WebMercatorProjection-943e2226","./Matrix3-81054f0f","./Math-2ce22ee9"],(function(e,t,n,r,o){"use strict";let i;function a(e,t,n,r){return r[e+t*n]}function s(e,t,n){const r=n.nativeExtent;let o=(e-r.west)/(r.east-r.west)*(n.width-1),i=(t-r.south)/(r.north-r.south)*(n.height-1);const s=Math.floor(o);let u=Math.floor(i);o-=s,i-=u;const c=s<n.width?s+1:s;let f=u<n.height?u+1:u;u=n.height-1-u,f=n.height-1-f;let l=function(e,t,n,r,o,i){return(n*(1-e)+r*e)*(1-t)+(o*(1-e)+i*e)*t}(o,i,a(s,u,n.width,n.buffer),a(c,u,n.width,n.buffer),a(s,f,n.width,n.buffer),a(c,f,n.width,n.buffer));return l=l*n.scale+n.offset,l}function u(e,t,o){for(let i=0;i<o.length;i++){const a=o[i].nativeExtent;let u=new r.Cartesian3;if("WebMercator"===o[i].projectionType){const a=o[i].projection._ellipsoid._radii;u=new n.WebMercatorProjection(new r.Ellipsoid(a.x,a.y,a.z)).project(new r.Cartographic(e,t,0))}else u.x=e,u.y=t;if(u.x>a.west&&u.x<a.east&&u.y>a.south&&u.y<a.north)return s(u.x,u.y,o[i])}return 0}function c(e,n,r,o){const a=new Uint8Array(e,0,5);return a[0]==="D".charCodeAt()&&a[1]==="R".charCodeAt()&&a[2]==="A".charCodeAt()&&a[3]==="C".charCodeAt()&&a[4]==="O".charCodeAt()?function(e){const n=i,r=new n.DecoderBuffer,o=new Uint8Array(e);r.Init(o,o.length);const a=new n.Decoder,s=a.GetEncodedGeometryType(r),u=new n.MetadataQuerier;let c,l;s===n.TRIANGULAR_MESH&&(c=new n.Mesh,l=a.DecodeBufferToMesh(r,c));const d={vertexCount:[0],featureCount:0};if(t.defined(l)&&l.ok()&&0!==c.ptr){const e=c.num_faces(),r=c.num_attributes(),o=c.num_points();d.indices=new Uint32Array(3*e);const i=d.indices;d.vertexCount[0]=o,d.scale_x=1,d.scale_y=1;const s=new n.DracoInt32Array(3);for(let t=0;t<e;++t)a.GetFaceFromMesh(c,t,s),i[3*t]=s.GetValue(0),i[3*t+1]=s.GetValue(1),i[3*t+2]=s.GetValue(2);n.destroy(s);for(let e=0;e<r;++e){const r=a.GetAttribute(c,e),i=f(n,a,c,r,o),s=r.attribute_type();let l="unknown";s===n.POSITION?l="positions":s===n.NORMAL?l="normals":s===n.COLOR?l="colors":s===n.TEX_COORD&&(l="uv0s");const y=a.GetAttributeMetadata(c,e);if(0!==y.ptr){const e=u.NumEntries(y);for(let t=0;t<e;++t){const e=u.GetEntryName(y,t);"i3s-scale_x"===e?d.scale_x=u.GetDoubleEntry(y,"i3s-scale_x"):"i3s-scale_y"===e?d.scale_y=u.GetDoubleEntry(y,"i3s-scale_y"):"i3s-attribute-type"===e&&(l=u.GetStringEntry(y,"i3s-attribute-type"))}}t.defined(d[l])&&console.log("Attribute already exists",l),d[l]=i,"feature-index"===l&&d.featureCount++}n.destroy(c)}return n.destroy(u),n.destroy(a),d}(e):function(e,n,r,o){const i={vertexCount:0},a=new DataView(e);try{let s=0;if(i.vertexCount=a.getUint32(s,1),s+=4,i.featureCount=a.getUint32(s,1),s+=4,t.defined(r))for(let n=0;n<r.attributes.length;n++)t.defined(l[r.attributes[n]])?s=l[r.attributes[n]](i,e,s):console.error("Unknown decoder for",r.attributes[n]);else{let r=n.ordering,a=n.featureAttributeOrder;t.defined(o)&&t.defined(o.geometryData)&&t.defined(o.geometryData[0])&&t.defined(o.geometryData[0].params)&&(r=Object.keys(o.geometryData[0].params.vertexAttributes),a=Object.keys(o.geometryData[0].params.featureAttributes));for(let n=0;n<r.length;n++){const o=l[r[n]];t.defined(o)||console.log(r[n]),s=o(i,e,s)}for(let n=0;n<a.length;n++){const r=l[a[n]];t.defined(r)||console.log(a[n]),s=r(i,e,s)}}}catch(e){console.error(e)}return i.scale_x=1,i.scale_y=1,i}(e,n,r,o)}function f(e,n,r,o,i){const a=o.num_components()*i;let s;const u=[function(){},function(){s=new e.DracoInt8Array(a),n.GetAttributeInt8ForAllPoints(r,o,s)||console.error("Bad stream");const t=new Int8Array(a);for(let e=0;e<a;++e)t[e]=s.GetValue(e);return t},function(){s=new e.DracoInt8Array(a),n.GetAttributeUInt8ForAllPoints(r,o,s)||console.error("Bad stream");const t=new Uint8Array(a);for(let e=0;e<a;++e)t[e]=s.GetValue(e);return t},function(){s=new e.DracoInt16Array(a),n.GetAttributeInt16ForAllPoints(r,o,s)||console.error("Bad stream");const t=new Int16Array(a);for(let e=0;e<a;++e)t[e]=s.GetValue(e);return t},function(){s=new e.DracoInt16Array(a),n.GetAttributeUInt16ForAllPoints(r,o,s)||console.error("Bad stream");const t=new Uint16Array(a);for(let e=0;e<a;++e)t[e]=s.GetValue(e);return t},function(){s=new e.DracoInt32Array(a),n.GetAttributeInt32ForAllPoints(r,o,s)||console.error("Bad stream");const t=new Int32Array(a);for(let e=0;e<a;++e)t[e]=s.GetValue(e);return t},function(){s=new e.DracoInt32Array(a),n.GetAttributeUInt32ForAllPoints(r,o,s)||console.error("Bad stream");const t=new Uint32Array(a);for(let e=0;e<a;++e)t[e]=s.GetValue(e);return t},function(){},function(){},function(){s=new e.DracoFloat32Array(a),n.GetAttributeFloatForAllPoints(r,o,s)||console.error("Bad stream");const t=new Float32Array(a);for(let e=0;e<a;++e)t[e]=s.GetValue(e);return t},function(){},function(){s=new e.DracoUInt8Array(a),n.GetAttributeUInt8ForAllPoints(r,o,s)||console.error("Bad stream");const t=new Uint8Array(a);for(let e=0;e<a;++e)t[e]=s.GetValue(e);return t}],c=u[o.data_type()]();return t.defined(s)&&e.destroy(s),c}const l={position:function(e,t,n){const r=3*e.vertexCount;return e.positions=new Float32Array(t,n,r),n+4*r},normal:function(e,t,n){const r=3*e.vertexCount;return e.normals=new Float32Array(t,n,r),n+4*r},uv0:function(e,t,n){const r=2*e.vertexCount;return e.uv0s=new Float32Array(t,n,r),n+4*r},color:function(e,t,n){const r=4*e.vertexCount;return e.colors=new Uint8Array(t,n,r),n+r},featureId:function(e,t,n){return n+8*e.featureCount},id:function(e,t,n){return n+8*e.featureCount},faceRange:function(e,t,n){const r=2*e.featureCount;return e.faceRange=new Uint32Array(t,n,r),n+4*r},uvRegion:function(e,t,n){const r=4*e.vertexCount;return e["uv-region"]=new Uint16Array(t,n,r),n+2*r},region:function(e,t,n){const r=4*e.vertexCount;return e["uv-region"]=new Uint16Array(t,n,r),n+2*r}};function d(e){const n=c(e.binaryData,e.schema,e.bufferInfo,e.featureData);t.defined(e.geoidDataList)&&e.geoidDataList.length>0&&function(e,t,n,r,i,a,s){const c=u(i.longitude,i.latitude,a);for(let s=0;s<e;++s){const e=u(i.longitude+o.CesiumMath.toRadians(n*t[3*s]),i.latitude+o.CesiumMath.toRadians(r*t[3*s+1]),a);t[3*s+2]+=e-c}}(n.vertexCount,n.positions,n.scale_x,n.scale_y,e.cartographicCenter,e.geoidDataList),function(e,n,i,a,s,u,c,f,l){if(0===e||!t.defined(n)||0===n.length)return;const d=new r.Ellipsoid(Math.sqrt(c.x),Math.sqrt(c.y),Math.sqrt(c.z));for(let c=0;c<e;++c){const e=3*c,y=e+1,h=e+2,b=new r.Cartographic;b.longitude=a.longitude+o.CesiumMath.toRadians(f*n[e]),b.latitude=a.latitude+o.CesiumMath.toRadians(l*n[y]),b.height=a.height+n[h];const p={};d.cartographicToCartesian(b,p),p.x-=s.x,p.y-=s.y,p.z-=s.z;const g={};if(r.Matrix3.multiplyByVector(u,p,g),n[e]=g.x,n[y]=g.y,n[h]=g.z,t.defined(i)){const t=new r.Cartesian3(i[e],i[y],i[h]),n={};r.Matrix3.multiplyByVector(u,t,n),i[e]=n.x,i[y]=n.y,i[h]=n.z}}}(n.vertexCount,n.positions,n.normals,e.cartographicCenter,e.cartesianCenter,e.parentRotation,e.ellipsoidRadiiSquare,n.scale_x,n.scale_y),t.defined(n.uv0s)&&t.defined(n["uv-region"])&&function(e,t,n){for(let r=0;r<e;++r){const e=n[4*r]/65535,o=n[4*r+1]/65535,i=(n[4*r+2]-n[4*r])/65535,a=(n[4*r+3]-n[4*r+1])/65535;t[2*r]*=i,t[2*r]+=e,t[2*r+1]*=a,t[2*r+1]+=o}}(n.vertexCount,n.uv0s,n["uv-region"]);const i=function(e,n,r,o,i,a){if(0===e||!t.defined(r)||0===r.length)return{buffers:[],bufferViews:[],accessors:[],meshes:[],nodes:[],nodesInScene:[]};const s=[],u=[],c=[],f=[],l=[],d=[];t.defined(n)&&(e=n.length);const y=new Uint32Array(e);if(t.defined(n))for(let t=0;t<e;++t)y[t]=n[t];else for(let t=0;t<e;++t)y[t]=t;const h=new Blob([y],{type:"application/binary"}),b=URL.createObjectURL(h),p=e,g=r.subarray(0,3*p),m=new Blob([g],{type:"application/binary"}),A=URL.createObjectURL(m);let w=Number.POSITIVE_INFINITY,I=Number.NEGATIVE_INFINITY,C=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,L=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY;for(let e=0;e<g.length/3;e++)w=Math.min(w,g[3*e+0]),I=Math.max(I,g[3*e+0]),C=Math.min(C,g[3*e+1]),x=Math.max(x,g[3*e+1]),L=Math.min(L,g[3*e+2]),R=Math.max(R,g[3*e+2]);const O=o?o.subarray(0,3*p):void 0;let _;if(t.defined(O)){const e=new Blob([O],{type:"application/binary"});_=URL.createObjectURL(e)}const v=i?i.subarray(0,2*p):void 0;let G;if(t.defined(v)){const e=new Blob([v],{type:"application/binary"});G=URL.createObjectURL(e)}const M=t.defined(a)?a.subarray(0,4*p):void 0;let U;if(t.defined(M)){const e=new Blob([M],{type:"application/binary"});U=URL.createObjectURL(e)}let V=0,D=0,N=0,T=0,E=0;const F={POSITION:0};return s.push({uri:A,byteLength:g.byteLength}),u.push({buffer:0,byteOffset:0,byteLength:g.byteLength,target:34962}),c.push({bufferView:0,byteOffset:0,componentType:5126,count:e,type:"VEC3",max:[w,C,L],min:[I,x,R]}),t.defined(_)&&(++E,V=E,F.NORMAL=V,s.push({uri:_,byteLength:O.byteLength}),u.push({buffer:V,byteOffset:0,byteLength:O.byteLength,target:34962}),c.push({bufferView:V,byteOffset:0,componentType:5126,count:e,type:"VEC3"})),t.defined(G)&&(++E,D=E,F.TEXCOORD_0=D,s.push({uri:G,byteLength:v.byteLength}),u.push({buffer:D,byteOffset:0,byteLength:v.byteLength,target:34962}),c.push({bufferView:D,byteOffset:0,componentType:5126,count:e,type:"VEC2"})),t.defined(U)&&(++E,N=E,F.COLOR_0=N,s.push({uri:U,byteLength:M.byteLength}),u.push({buffer:N,byteOffset:0,byteLength:M.byteLength,target:34962}),c.push({bufferView:N,byteOffset:0,componentType:5121,normalized:!0,count:e,type:"VEC4"})),++E,T=E,s.push({uri:b,byteLength:y.byteLength}),u.push({buffer:T,byteOffset:0,byteLength:y.byteLength,target:34963}),c.push({bufferView:T,byteOffset:0,componentType:5125,count:e,type:"SCALAR"}),f.push({primitives:[{attributes:F,indices:T,material:0}]}),d.push(0),l.push({mesh:0}),{buffers:s,bufferViews:u,accessors:c,meshes:f,nodes:l,nodesInScene:d}}(n.vertexCount,n.indices,n.positions,n.normals,n.uv0s,n.colors),a={};if(t.defined(n["feature-index"]))a.positions=n.positions,a.indices=n.indices,a.featureIndex=n["feature-index"],a.cartesianCenter=e.cartesianCenter,a.parentRotation=e.parentRotation;else if(t.defined(n.faceRange)){a.positions=n.positions,a.indices=n.indices,a.sourceURL=e.url,a.cartesianCenter=e.cartesianCenter,a.parentRotation=e.parentRotation,a.featureIndex=new Array(n.positions.length);for(let e=0;e<n.faceRange.length-1;e+=2){const t=e/2,r=n.faceRange[e],o=n.faceRange[e+1];for(let e=r;e<=o;e++)a.featureIndex[3*e]=t,a.featureIndex[3*e+1]=t,a.featureIndex[3*e+2]=t}}return i._customAttributes=a,{meshData:i}}function y(t){i=t,self.onmessage=e(d),self.postMessage(!0)}return function(e){const n=e.data.webAssemblyConfig;if(t.defined(n))return require([n.modulePath],(function(e){t.defined(n.wasmBinaryFile)?(t.defined(e)||(e=self.DracoDecoderModule),e(n).then((function(e){y(e)}))):y(e())}))}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
define(["exports"],(function(e){"use strict";function n(e,n){return null!=e?e:n}n.EMPTY_OBJECT=Object.freeze({}),e.defaultValue=n,e.defined=function(e){return null!=e}}));
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.103
|
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
|
+
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
define(["./defaultValue-f6d5e6da","./WebGLConstants-7f557f93","./RuntimeError-9b4ce3fb","./createTaskProcessorWorker"],(function(_,R,t,e){"use strict";const A={UNSIGNED_BYTE:R.WebGLConstants.UNSIGNED_BYTE,UNSIGNED_SHORT:R.WebGLConstants.UNSIGNED_SHORT,UNSIGNED_INT:R.WebGLConstants.UNSIGNED_INT,FLOAT:R.WebGLConstants.FLOAT,HALF_FLOAT:R.WebGLConstants.HALF_FLOAT_OES,UNSIGNED_INT_24_8:R.WebGLConstants.UNSIGNED_INT_24_8,UNSIGNED_SHORT_4_4_4_4:R.WebGLConstants.UNSIGNED_SHORT_4_4_4_4,UNSIGNED_SHORT_5_5_5_1:R.WebGLConstants.UNSIGNED_SHORT_5_5_5_1,UNSIGNED_SHORT_5_6_5:R.WebGLConstants.UNSIGNED_SHORT_5_6_5,toWebGLConstant:function(_,t){switch(_){case A.UNSIGNED_BYTE:return R.WebGLConstants.UNSIGNED_BYTE;case A.UNSIGNED_SHORT:return R.WebGLConstants.UNSIGNED_SHORT;case A.UNSIGNED_INT:return R.WebGLConstants.UNSIGNED_INT;case A.FLOAT:return R.WebGLConstants.FLOAT;case A.HALF_FLOAT:return t.webgl2?R.WebGLConstants.HALF_FLOAT:R.WebGLConstants.HALF_FLOAT_OES;case A.UNSIGNED_INT_24_8:return R.WebGLConstants.UNSIGNED_INT_24_8;case A.UNSIGNED_SHORT_4_4_4_4:return R.WebGLConstants.UNSIGNED_SHORT_4_4_4_4;case A.UNSIGNED_SHORT_5_5_5_1:return R.WebGLConstants.UNSIGNED_SHORT_5_5_5_1;case A.UNSIGNED_SHORT_5_6_5:return A.UNSIGNED_SHORT_5_6_5}},isPacked:function(_){return _===A.UNSIGNED_INT_24_8||_===A.UNSIGNED_SHORT_4_4_4_4||_===A.UNSIGNED_SHORT_5_5_5_1||_===A.UNSIGNED_SHORT_5_6_5},sizeInBytes:function(_){switch(_){case A.UNSIGNED_BYTE:return 1;case A.UNSIGNED_SHORT:case A.UNSIGNED_SHORT_4_4_4_4:case A.UNSIGNED_SHORT_5_5_5_1:case A.UNSIGNED_SHORT_5_6_5:case A.HALF_FLOAT:return 2;case A.UNSIGNED_INT:case A.FLOAT:case A.UNSIGNED_INT_24_8:return 4}},validate:function(_){return _===A.UNSIGNED_BYTE||_===A.UNSIGNED_SHORT||_===A.UNSIGNED_INT||_===A.FLOAT||_===A.HALF_FLOAT||_===A.UNSIGNED_INT_24_8||_===A.UNSIGNED_SHORT_4_4_4_4||_===A.UNSIGNED_SHORT_5_5_5_1||_===A.UNSIGNED_SHORT_5_6_5}};var T=Object.freeze(A);const O={DEPTH_COMPONENT:R.WebGLConstants.DEPTH_COMPONENT,DEPTH_STENCIL:R.WebGLConstants.DEPTH_STENCIL,ALPHA:R.WebGLConstants.ALPHA,RED:R.WebGLConstants.RED,RG:R.WebGLConstants.RG,RGB:R.WebGLConstants.RGB,RGBA:R.WebGLConstants.RGBA,LUMINANCE:R.WebGLConstants.LUMINANCE,LUMINANCE_ALPHA:R.WebGLConstants.LUMINANCE_ALPHA,RGB_DXT1:R.WebGLConstants.COMPRESSED_RGB_S3TC_DXT1_EXT,RGBA_DXT1:R.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT1_EXT,RGBA_DXT3:R.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT3_EXT,RGBA_DXT5:R.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT5_EXT,RGB_PVRTC_4BPPV1:R.WebGLConstants.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,RGB_PVRTC_2BPPV1:R.WebGLConstants.COMPRESSED_RGB_PVRTC_2BPPV1_IMG,RGBA_PVRTC_4BPPV1:R.WebGLConstants.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,RGBA_PVRTC_2BPPV1:R.WebGLConstants.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG,RGBA_ASTC:R.WebGLConstants.COMPRESSED_RGBA_ASTC_4x4_WEBGL,RGB_ETC1:R.WebGLConstants.COMPRESSED_RGB_ETC1_WEBGL,RGB8_ETC2:R.WebGLConstants.COMPRESSED_RGB8_ETC2,RGBA8_ETC2_EAC:R.WebGLConstants.COMPRESSED_RGBA8_ETC2_EAC,RGBA_BC7:R.WebGLConstants.COMPRESSED_RGBA_BPTC_UNORM,componentsLength:function(_){switch(_){case O.RGB:return 3;case O.RGBA:return 4;case O.LUMINANCE_ALPHA:case O.RG:return 2;case O.ALPHA:case O.RED:case O.LUMINANCE:default:return 1}},validate:function(_){return _===O.DEPTH_COMPONENT||_===O.DEPTH_STENCIL||_===O.ALPHA||_===O.RED||_===O.RG||_===O.RGB||_===O.RGBA||_===O.LUMINANCE||_===O.LUMINANCE_ALPHA||_===O.RGB_DXT1||_===O.RGBA_DXT1||_===O.RGBA_DXT3||_===O.RGBA_DXT5||_===O.RGB_PVRTC_4BPPV1||_===O.RGB_PVRTC_2BPPV1||_===O.RGBA_PVRTC_4BPPV1||_===O.RGBA_PVRTC_2BPPV1||_===O.RGBA_ASTC||_===O.RGB_ETC1||_===O.RGB8_ETC2||_===O.RGBA8_ETC2_EAC||_===O.RGBA_BC7},isColorFormat:function(_){return _===O.ALPHA||_===O.RGB||_===O.RGBA||_===O.LUMINANCE||_===O.LUMINANCE_ALPHA},isDepthFormat:function(_){return _===O.DEPTH_COMPONENT||_===O.DEPTH_STENCIL},isCompressedFormat:function(_){return _===O.RGB_DXT1||_===O.RGBA_DXT1||_===O.RGBA_DXT3||_===O.RGBA_DXT5||_===O.RGB_PVRTC_4BPPV1||_===O.RGB_PVRTC_2BPPV1||_===O.RGBA_PVRTC_4BPPV1||_===O.RGBA_PVRTC_2BPPV1||_===O.RGBA_ASTC||_===O.RGB_ETC1||_===O.RGB8_ETC2||_===O.RGBA8_ETC2_EAC||_===O.RGBA_BC7},isDXTFormat:function(_){return _===O.RGB_DXT1||_===O.RGBA_DXT1||_===O.RGBA_DXT3||_===O.RGBA_DXT5},isPVRTCFormat:function(_){return _===O.RGB_PVRTC_4BPPV1||_===O.RGB_PVRTC_2BPPV1||_===O.RGBA_PVRTC_4BPPV1||_===O.RGBA_PVRTC_2BPPV1},isASTCFormat:function(_){return _===O.RGBA_ASTC},isETC1Format:function(_){return _===O.RGB_ETC1},isETC2Format:function(_){return _===O.RGB8_ETC2||_===O.RGBA8_ETC2_EAC},isBC7Format:function(_){return _===O.RGBA_BC7},compressedTextureSizeInBytes:function(_,R,t){switch(_){case O.RGB_DXT1:case O.RGBA_DXT1:case O.RGB_ETC1:case O.RGB8_ETC2:return Math.floor((R+3)/4)*Math.floor((t+3)/4)*8;case O.RGBA_DXT3:case O.RGBA_DXT5:case O.RGBA_ASTC:case O.RGBA8_ETC2_EAC:return Math.floor((R+3)/4)*Math.floor((t+3)/4)*16;case O.RGB_PVRTC_4BPPV1:case O.RGBA_PVRTC_4BPPV1:return Math.floor((Math.max(R,8)*Math.max(t,8)*4+7)/8);case O.RGB_PVRTC_2BPPV1:case O.RGBA_PVRTC_2BPPV1:return Math.floor((Math.max(R,16)*Math.max(t,8)*2+7)/8);case O.RGBA_BC7:return Math.ceil(R/4)*Math.ceil(t/4)*16;default:return 0}},textureSizeInBytes:function(_,R,t,e){let A=O.componentsLength(_);return T.isPacked(R)&&(A=1),A*T.sizeInBytes(R)*t*e},alignmentInBytes:function(_,R,t){const e=O.textureSizeInBytes(_,R,t,1)%4;return 0===e?4:2===e?2:1},createTypedArray:function(_,R,t,e){let A;const n=T.sizeInBytes(R);return A=n===Uint8Array.BYTES_PER_ELEMENT?Uint8Array:n===Uint16Array.BYTES_PER_ELEMENT?Uint16Array:n===Float32Array.BYTES_PER_ELEMENT&&R===T.FLOAT?Float32Array:Uint32Array,new A(O.componentsLength(_)*t*e)},flipY:function(_,R,t,e,A){if(1===A)return _;const T=O.createTypedArray(R,t,e,A),n=O.componentsLength(R),B=e*n;for(let R=0;R<A;++R){const t=R*e*n,O=(A-R-1)*e*n;for(let R=0;R<B;++R)T[O+R]=_[t+R]}return T},toInternalFormat:function(_,t,e){if(!e.webgl2)return _;if(_===O.DEPTH_STENCIL)return R.WebGLConstants.DEPTH24_STENCIL8;if(_===O.DEPTH_COMPONENT){if(t===T.UNSIGNED_SHORT)return R.WebGLConstants.DEPTH_COMPONENT16;if(t===T.UNSIGNED_INT)return R.WebGLConstants.DEPTH_COMPONENT24}if(t===T.FLOAT)switch(_){case O.RGBA:return R.WebGLConstants.RGBA32F;case O.RGB:return R.WebGLConstants.RGB32F;case O.RG:return R.WebGLConstants.RG32F;case O.RED:return R.WebGLConstants.R32F}if(t===T.HALF_FLOAT)switch(_){case O.RGBA:return R.WebGLConstants.RGBA16F;case O.RGB:return R.WebGLConstants.RGB16F;case O.RG:return R.WebGLConstants.RG16F;case O.RED:return R.WebGLConstants.R16F}return _}};var n=Object.freeze(O),B=Object.freeze({VK_FORMAT_UNDEFINED:0,VK_FORMAT_R4G4_UNORM_PACK8:1,VK_FORMAT_R4G4B4A4_UNORM_PACK16:2,VK_FORMAT_B4G4R4A4_UNORM_PACK16:3,VK_FORMAT_R5G6B5_UNORM_PACK16:4,VK_FORMAT_B5G6R5_UNORM_PACK16:5,VK_FORMAT_R5G5B5A1_UNORM_PACK16:6,VK_FORMAT_B5G5R5A1_UNORM_PACK16:7,VK_FORMAT_A1R5G5B5_UNORM_PACK16:8,VK_FORMAT_R8_UNORM:9,VK_FORMAT_R8_SNORM:10,VK_FORMAT_R8_USCALED:11,VK_FORMAT_R8_SSCALED:12,VK_FORMAT_R8_UINT:13,VK_FORMAT_R8_SINT:14,VK_FORMAT_R8_SRGB:15,VK_FORMAT_R8G8_UNORM:16,VK_FORMAT_R8G8_SNORM:17,VK_FORMAT_R8G8_USCALED:18,VK_FORMAT_R8G8_SSCALED:19,VK_FORMAT_R8G8_UINT:20,VK_FORMAT_R8G8_SINT:21,VK_FORMAT_R8G8_SRGB:22,VK_FORMAT_R8G8B8_UNORM:23,VK_FORMAT_R8G8B8_SNORM:24,VK_FORMAT_R8G8B8_USCALED:25,VK_FORMAT_R8G8B8_SSCALED:26,VK_FORMAT_R8G8B8_UINT:27,VK_FORMAT_R8G8B8_SINT:28,VK_FORMAT_R8G8B8_SRGB:29,VK_FORMAT_B8G8R8_UNORM:30,VK_FORMAT_B8G8R8_SNORM:31,VK_FORMAT_B8G8R8_USCALED:32,VK_FORMAT_B8G8R8_SSCALED:33,VK_FORMAT_B8G8R8_UINT:34,VK_FORMAT_B8G8R8_SINT:35,VK_FORMAT_B8G8R8_SRGB:36,VK_FORMAT_R8G8B8A8_UNORM:37,VK_FORMAT_R8G8B8A8_SNORM:38,VK_FORMAT_R8G8B8A8_USCALED:39,VK_FORMAT_R8G8B8A8_SSCALED:40,VK_FORMAT_R8G8B8A8_UINT:41,VK_FORMAT_R8G8B8A8_SINT:42,VK_FORMAT_R8G8B8A8_SRGB:43,VK_FORMAT_B8G8R8A8_UNORM:44,VK_FORMAT_B8G8R8A8_SNORM:45,VK_FORMAT_B8G8R8A8_USCALED:46,VK_FORMAT_B8G8R8A8_SSCALED:47,VK_FORMAT_B8G8R8A8_UINT:48,VK_FORMAT_B8G8R8A8_SINT:49,VK_FORMAT_B8G8R8A8_SRGB:50,VK_FORMAT_A8B8G8R8_UNORM_PACK32:51,VK_FORMAT_A8B8G8R8_SNORM_PACK32:52,VK_FORMAT_A8B8G8R8_USCALED_PACK32:53,VK_FORMAT_A8B8G8R8_SSCALED_PACK32:54,VK_FORMAT_A8B8G8R8_UINT_PACK32:55,VK_FORMAT_A8B8G8R8_SINT_PACK32:56,VK_FORMAT_A8B8G8R8_SRGB_PACK32:57,VK_FORMAT_A2R10G10B10_UNORM_PACK32:58,VK_FORMAT_A2R10G10B10_SNORM_PACK32:59,VK_FORMAT_A2R10G10B10_USCALED_PACK32:60,VK_FORMAT_A2R10G10B10_SSCALED_PACK32:61,VK_FORMAT_A2R10G10B10_UINT_PACK32:62,VK_FORMAT_A2R10G10B10_SINT_PACK32:63,VK_FORMAT_A2B10G10R10_UNORM_PACK32:64,VK_FORMAT_A2B10G10R10_SNORM_PACK32:65,VK_FORMAT_A2B10G10R10_USCALED_PACK32:66,VK_FORMAT_A2B10G10R10_SSCALED_PACK32:67,VK_FORMAT_A2B10G10R10_UINT_PACK32:68,VK_FORMAT_A2B10G10R10_SINT_PACK32:69,VK_FORMAT_R16_UNORM:70,VK_FORMAT_R16_SNORM:71,VK_FORMAT_R16_USCALED:72,VK_FORMAT_R16_SSCALED:73,VK_FORMAT_R16_UINT:74,VK_FORMAT_R16_SINT:75,VK_FORMAT_R16_SFLOAT:76,VK_FORMAT_R16G16_UNORM:77,VK_FORMAT_R16G16_SNORM:78,VK_FORMAT_R16G16_USCALED:79,VK_FORMAT_R16G16_SSCALED:80,VK_FORMAT_R16G16_UINT:81,VK_FORMAT_R16G16_SINT:82,VK_FORMAT_R16G16_SFLOAT:83,VK_FORMAT_R16G16B16_UNORM:84,VK_FORMAT_R16G16B16_SNORM:85,VK_FORMAT_R16G16B16_USCALED:86,VK_FORMAT_R16G16B16_SSCALED:87,VK_FORMAT_R16G16B16_UINT:88,VK_FORMAT_R16G16B16_SINT:89,VK_FORMAT_R16G16B16_SFLOAT:90,VK_FORMAT_R16G16B16A16_UNORM:91,VK_FORMAT_R16G16B16A16_SNORM:92,VK_FORMAT_R16G16B16A16_USCALED:93,VK_FORMAT_R16G16B16A16_SSCALED:94,VK_FORMAT_R16G16B16A16_UINT:95,VK_FORMAT_R16G16B16A16_SINT:96,VK_FORMAT_R16G16B16A16_SFLOAT:97,VK_FORMAT_R32_UINT:98,VK_FORMAT_R32_SINT:99,VK_FORMAT_R32_SFLOAT:100,VK_FORMAT_R32G32_UINT:101,VK_FORMAT_R32G32_SINT:102,VK_FORMAT_R32G32_SFLOAT:103,VK_FORMAT_R32G32B32_UINT:104,VK_FORMAT_R32G32B32_SINT:105,VK_FORMAT_R32G32B32_SFLOAT:106,VK_FORMAT_R32G32B32A32_UINT:107,VK_FORMAT_R32G32B32A32_SINT:108,VK_FORMAT_R32G32B32A32_SFLOAT:109,VK_FORMAT_R64_UINT:110,VK_FORMAT_R64_SINT:111,VK_FORMAT_R64_SFLOAT:112,VK_FORMAT_R64G64_UINT:113,VK_FORMAT_R64G64_SINT:114,VK_FORMAT_R64G64_SFLOAT:115,VK_FORMAT_R64G64B64_UINT:116,VK_FORMAT_R64G64B64_SINT:117,VK_FORMAT_R64G64B64_SFLOAT:118,VK_FORMAT_R64G64B64A64_UINT:119,VK_FORMAT_R64G64B64A64_SINT:120,VK_FORMAT_R64G64B64A64_SFLOAT:121,VK_FORMAT_B10G11R11_UFLOAT_PACK32:122,VK_FORMAT_E5B9G9R9_UFLOAT_PACK32:123,VK_FORMAT_D16_UNORM:124,VK_FORMAT_X8_D24_UNORM_PACK32:125,VK_FORMAT_D32_SFLOAT:126,VK_FORMAT_S8_UINT:127,VK_FORMAT_D16_UNORM_S8_UINT:128,VK_FORMAT_D24_UNORM_S8_UINT:129,VK_FORMAT_D32_SFLOAT_S8_UINT:130,VK_FORMAT_BC1_RGB_UNORM_BLOCK:131,VK_FORMAT_BC1_RGB_SRGB_BLOCK:132,VK_FORMAT_BC1_RGBA_UNORM_BLOCK:133,VK_FORMAT_BC1_RGBA_SRGB_BLOCK:134,VK_FORMAT_BC2_UNORM_BLOCK:135,VK_FORMAT_BC2_SRGB_BLOCK:136,VK_FORMAT_BC3_UNORM_BLOCK:137,VK_FORMAT_BC3_SRGB_BLOCK:138,VK_FORMAT_BC4_UNORM_BLOCK:139,VK_FORMAT_BC4_SNORM_BLOCK:140,VK_FORMAT_BC5_UNORM_BLOCK:141,VK_FORMAT_BC5_SNORM_BLOCK:142,VK_FORMAT_BC6H_UFLOAT_BLOCK:143,VK_FORMAT_BC6H_SFLOAT_BLOCK:144,VK_FORMAT_BC7_UNORM_BLOCK:145,VK_FORMAT_BC7_SRGB_BLOCK:146,VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:147,VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK:148,VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK:149,VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK:150,VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK:151,VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK:152,VK_FORMAT_EAC_R11_UNORM_BLOCK:153,VK_FORMAT_EAC_R11_SNORM_BLOCK:154,VK_FORMAT_EAC_R11G11_UNORM_BLOCK:155,VK_FORMAT_EAC_R11G11_SNORM_BLOCK:156,VK_FORMAT_ASTC_4x4_UNORM_BLOCK:157,VK_FORMAT_ASTC_4x4_SRGB_BLOCK:158,VK_FORMAT_ASTC_5x4_UNORM_BLOCK:159,VK_FORMAT_ASTC_5x4_SRGB_BLOCK:160,VK_FORMAT_ASTC_5x5_UNORM_BLOCK:161,VK_FORMAT_ASTC_5x5_SRGB_BLOCK:162,VK_FORMAT_ASTC_6x5_UNORM_BLOCK:163,VK_FORMAT_ASTC_6x5_SRGB_BLOCK:164,VK_FORMAT_ASTC_6x6_UNORM_BLOCK:165,VK_FORMAT_ASTC_6x6_SRGB_BLOCK:166,VK_FORMAT_ASTC_8x5_UNORM_BLOCK:167,VK_FORMAT_ASTC_8x5_SRGB_BLOCK:168,VK_FORMAT_ASTC_8x6_UNORM_BLOCK:169,VK_FORMAT_ASTC_8x6_SRGB_BLOCK:170,VK_FORMAT_ASTC_8x8_UNORM_BLOCK:171,VK_FORMAT_ASTC_8x8_SRGB_BLOCK:172,VK_FORMAT_ASTC_10x5_UNORM_BLOCK:173,VK_FORMAT_ASTC_10x5_SRGB_BLOCK:174,VK_FORMAT_ASTC_10x6_UNORM_BLOCK:175,VK_FORMAT_ASTC_10x6_SRGB_BLOCK:176,VK_FORMAT_ASTC_10x8_UNORM_BLOCK:177,VK_FORMAT_ASTC_10x8_SRGB_BLOCK:178,VK_FORMAT_ASTC_10x10_UNORM_BLOCK:179,VK_FORMAT_ASTC_10x10_SRGB_BLOCK:180,VK_FORMAT_ASTC_12x10_UNORM_BLOCK:181,VK_FORMAT_ASTC_12x10_SRGB_BLOCK:182,VK_FORMAT_ASTC_12x12_UNORM_BLOCK:183,VK_FORMAT_ASTC_12x12_SRGB_BLOCK:184,VK_FORMAT_G8B8G8R8_422_UNORM:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM:1000156006,VK_FORMAT_R10X6_UNORM_PACK16:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16:1000156016,VK_FORMAT_R12X4_UNORM_PACK16:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:1000156033,VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG:1000054e3,VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG:1000054001,VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG:1000054002,VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG:1000054003,VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG:1000054004,VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG:1000054005,VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG:1000054006,VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG:1000054007,VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT:1000066e3,VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT:1000066001,VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT:1000066002,VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT:1000066003,VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT:1000066004,VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT:1000066005,VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT:1000066006,VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT:1000066007,VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT:1000066008,VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT:1000066009,VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT:1000066010,VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT:1000066011,VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT:1000066012,VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT:1000066013,VK_FORMAT_G8B8G8R8_422_UNORM_KHR:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM_KHR:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR:1000156006,VK_FORMAT_R10X6_UNORM_PACK16_KHR:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR:1000156016,VK_FORMAT_R12X4_UNORM_PACK16_KHR:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM_KHR:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM_KHR:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR:1000156033});const G=64;class M{constructor(){this.vkFormat=0,this.typeSize=1,this.pixelWidth=0,this.pixelHeight=0,this.pixelDepth=0,this.layerCount=0,this.faceCount=1,this.supercompressionScheme=0,this.levels=[],this.dataFormatDescriptor=[{vendorId:0,descriptorType:0,descriptorBlockSize:0,versionNumber:2,colorModel:0,colorPrimaries:1,transferFunction:2,flags:0,texelBlockDimension:[0,0,0,0],bytesPlane:[0,0,0,0,0,0,0,0],samples:[]}],this.keyValue={},this.globalData=null}}class K{constructor(_,R,t,e){this._dataView=void 0,this._littleEndian=void 0,this._offset=void 0,this._dataView=new DataView(_.buffer,_.byteOffset+R,t),this._littleEndian=e,this._offset=0}_nextUint8(){const _=this._dataView.getUint8(this._offset);return this._offset+=1,_}_nextUint16(){const _=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,_}_nextUint32(){const _=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,_}_nextUint64(){const _=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,_}_nextInt32(){const _=this._dataView.getInt32(this._offset,this._littleEndian);return this._offset+=4,_}_skip(_){return this._offset+=_,this}_scan(_,R=0){const t=this._offset;let e=0;for(;this._dataView.getUint8(this._offset)!==R&&e<_;)e++,this._offset++;return e<_&&this._offset++,new Uint8Array(this._dataView.buffer,this._dataView.byteOffset+t,e)}}const C=[171,75,84,88,32,50,48,187,13,10,26,10];function s(_){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(_):Buffer.from(_).toString("utf8")}const r=["positiveX","negativeX","positiveY","negativeY","positiveZ","negativeZ"],F=163,N=166;let i;function V(R,e){const A=R.ktx2Buffer,O=R.supportedTargetFormats;let V;try{V=function(_){const R=new Uint8Array(_.buffer,_.byteOffset,C.length);if(R[0]!==C[0]||R[1]!==C[1]||R[2]!==C[2]||R[3]!==C[3]||R[4]!==C[4]||R[5]!==C[5]||R[6]!==C[6]||R[7]!==C[7]||R[8]!==C[8]||R[9]!==C[9]||R[10]!==C[10]||R[11]!==C[11])throw new Error("Missing KTX 2.0 identifier.");const t=new M,e=17*Uint32Array.BYTES_PER_ELEMENT,A=new K(_,C.length,e,!0);t.vkFormat=A._nextUint32(),t.typeSize=A._nextUint32(),t.pixelWidth=A._nextUint32(),t.pixelHeight=A._nextUint32(),t.pixelDepth=A._nextUint32(),t.layerCount=A._nextUint32(),t.faceCount=A._nextUint32();const T=A._nextUint32();t.supercompressionScheme=A._nextUint32();const O=A._nextUint32(),n=A._nextUint32(),B=A._nextUint32(),r=A._nextUint32(),F=A._nextUint64(),N=A._nextUint64(),i=3*T*8,V=new K(_,C.length+e,i,!0);for(let R=0;R<T;R++)t.levels.push({levelData:new Uint8Array(_.buffer,_.byteOffset+V._nextUint64(),V._nextUint64()),uncompressedByteLength:V._nextUint64()});const o=new K(_,O,n,!0),a={vendorId:o._skip(4)._nextUint16(),descriptorType:o._nextUint16(),versionNumber:o._nextUint16(),descriptorBlockSize:o._nextUint16(),colorModel:o._nextUint8(),colorPrimaries:o._nextUint8(),transferFunction:o._nextUint8(),flags:o._nextUint8(),texelBlockDimension:[o._nextUint8(),o._nextUint8(),o._nextUint8(),o._nextUint8()],bytesPlane:[o._nextUint8(),o._nextUint8(),o._nextUint8(),o._nextUint8(),o._nextUint8(),o._nextUint8(),o._nextUint8(),o._nextUint8()],samples:[]},S=(a.descriptorBlockSize/4-6)/4;for(let _=0;_<S;_++){const R={bitOffset:o._nextUint16(),bitLength:o._nextUint8(),channelType:o._nextUint8(),samplePosition:[o._nextUint8(),o._nextUint8(),o._nextUint8(),o._nextUint8()],sampleLower:-1/0,sampleUpper:1/0};R.channelType&G?(R.sampleLower=o._nextInt32(),R.sampleUpper=o._nextInt32()):(R.sampleLower=o._nextUint32(),R.sampleUpper=o._nextUint32()),a.samples[_]=R}t.dataFormatDescriptor.length=0,t.dataFormatDescriptor.push(a);const U=new K(_,B,r,!0);for(;U._offset<r;){const _=U._nextUint32(),R=U._scan(_),e=s(R),A=U._scan(_-R.byteLength);t.keyValue[e]=e.match(/^ktx/i)?s(A):A,U._offset%4&&U._skip(4-U._offset%4)}if(N<=0)return t;const E=new K(_,F,N,!0),L=E._nextUint16(),P=E._nextUint16(),c=E._nextUint32(),f=E._nextUint32(),l=E._nextUint32(),X=E._nextUint32(),u=[];for(let _=0;_<T;_++)u.push({imageFlags:E._nextUint32(),rgbSliceByteOffset:E._nextUint32(),rgbSliceByteLength:E._nextUint32(),alphaSliceByteOffset:E._nextUint32(),alphaSliceByteLength:E._nextUint32()});const D=F+E._offset,I=D+c,x=I+f,h=x+l,d=new Uint8Array(_.buffer,_.byteOffset+D,c),H=new Uint8Array(_.buffer,_.byteOffset+I,f),b=new Uint8Array(_.buffer,_.byteOffset+x,l),p=new Uint8Array(_.buffer,_.byteOffset+h,X);return t.globalData={endpointCount:L,selectorCount:P,imageDescs:u,endpointsData:d,selectorsData:H,tablesData:b,extendedData:p},t}(A)}catch(_){throw new t.RuntimeError("Invalid KTX2 file.")}if(0!==V.layerCount)throw new t.RuntimeError("KTX2 texture arrays are not supported.");if(0!==V.pixelDepth)throw new t.RuntimeError("KTX2 3D textures are unsupported.");const o=V.dataFormatDescriptor[0],a=new Array(V.levelCount);return 0!==V.vkFormat||o.colorModel!==F&&o.colorModel!==N?(e.push(A.buffer),function(R,t){const e=R.vkFormat===B.VK_FORMAT_R8G8B8_SRGB?n.RGB:n.RGBA;let A;R.vkFormat===B.VK_FORMAT_R8G8B8A8_UNORM?A=T.UNSIGNED_BYTE:R.vkFormat===B.VK_FORMAT_R16G16B16A16_SFLOAT?A=T.HALF_FLOAT:R.vkFormat===B.VK_FORMAT_R32G32B32A32_SFLOAT&&(A=T.FLOAT);for(let O=0;O<R.levels.length;++O){const B={};t[O]=B;const G=R.levels[O].levelData,M=R.pixelWidth>>O,K=R.pixelHeight>>O,C=M*K*n.componentsLength(e);for(let t=0;t<R.faceCount;++t){const O=G.byteOffset+C*R.typeSize*t;let n;n=_.defined(A)&&1!==T.sizeInBytes(A)?2===T.sizeInBytes(A)?new Uint16Array(G.buffer,O,C):new Float32Array(G.buffer,O,C):new Uint8Array(G.buffer,O,C),B[r[t]]={internalFormat:e,datatype:A,width:M,height:K,levelBuffer:n}}}}(V,a)):function(R,e,A,T,O,B){const G=new T.KTX2File(R);let M=G.getWidth(),K=G.getHeight();const C=G.getLevels(),s=G.getHasAlpha();if(!(M>0&&K>0&&C>0))throw G.close(),G.delete(),new t.RuntimeError("Invalid KTX2 file");let i,V;const o=e.dataFormatDescriptor[0],a=T.transcoder_texture_format;if(o.colorModel===F)if(A.etc)i=s?n.RGBA8_ETC2_EAC:n.RGB8_ETC2,V=s?a.cTFETC2_RGBA:a.cTFETC1_RGB;else if(A.etc1&&!s)i=n.RGB_ETC1,V=a.cTFETC1_RGB;else if(A.s3tc)i=s?n.RGBA_DXT5:n.RGB_DXT1,V=s?a.cTFBC3_RGBA:a.cTFBC1_RGB;else if(A.pvrtc)i=s?n.RGBA_PVRTC_4BPPV1:n.RGB_PVRTC_4BPPV1,V=s?a.cTFPVRTC1_4_RGBA:a.cTFPVRTC1_4_RGB;else if(A.astc)i=n.RGBA_ASTC,V=a.cTFASTC_4x4_RGBA;else{if(!A.bc7)throw new t.RuntimeError("No transcoding format target available for ETC1S compressed ktx2.");i=n.RGBA_BC7,V=a.cTFBC7_RGBA}else if(o.colorModel===N)if(A.astc)i=n.RGBA_ASTC,V=a.cTFASTC_4x4_RGBA;else if(A.bc7)i=n.RGBA_BC7,V=a.cTFBC7_RGBA;else if(A.s3tc)i=s?n.RGBA_DXT5:n.RGB_DXT1,V=s?a.cTFBC3_RGBA:a.cTFBC1_RGB;else if(A.etc)i=s?n.RGBA8_ETC2_EAC:n.RGB8_ETC2,V=s?a.cTFETC2_RGBA:a.cTFETC1_RGB;else if(A.etc1&&!s)i=n.RGB_ETC1,V=a.cTFETC1_RGB;else{if(!A.pvrtc)throw new t.RuntimeError("No transcoding format target available for UASTC compressed ktx2.");i=s?n.RGBA_PVRTC_4BPPV1:n.RGB_PVRTC_4BPPV1,V=s?a.cTFPVRTC1_4_RGBA:a.cTFPVRTC1_4_RGB}if(!G.startTranscoding())throw G.close(),G.delete(),new t.RuntimeError("startTranscoding() failed");for(let R=0;R<e.levels.length;++R){const A={};B[R]=A,M=e.pixelWidth>>R,K=e.pixelHeight>>R;const T=G.getImageTranscodedSizeInBytes(R,0,0,V.value),n=new Uint8Array(T),C=G.transcodeImage(n,R,0,0,V.value,0,-1,-1);if(!_.defined(C))throw new t.RuntimeError("transcodeImage() failed.");O.push(n.buffer),A[r[0]]={internalFormat:i,width:M,height:K,levelBuffer:n}}G.close(),G.delete()}(A,V,O,i,e,a),a}function o(_){i=_,i.initializeBasis(),self.onmessage=e(V),self.postMessage(!0)}return function(R){const t=R.data.webAssemblyConfig;if(_.defined(t))return require([t.modulePath],(function(R){if(!_.defined(t.wasmBinaryFile))return R().then((function(_){o(_)}));_.defined(R)||(R=self.MSC_TRANSCODER),R(t).then((function(_){o(_)}))}))}}));
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.103
|
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
|
+
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
define(["./AttributeCompression-48e336db","./Transforms-fce95115","./Matrix2-413c4048","./Matrix3-81054f0f","./defaultValue-f6d5e6da","./TerrainEncoding-bd5c9ed5","./IndexDatatype-d3db4e7d","./Math-2ce22ee9","./OrientedBoundingBox-cfd17917","./createTaskProcessorWorker","./ComponentDatatype-ab629b88","./WebGLConstants-7f557f93","./combine-0c102d93","./RuntimeError-9b4ce3fb","./EllipsoidTangentPlane-82f2a887","./AxisAlignedBoundingBox-39ab50d0","./IntersectionTests-357c3d7f","./Plane-6add0ae1"],(function(e,t,n,i,s,r,h,o,u,d,p,l,a,f,c,g,m,x){"use strict";const w={clipTriangleAtAxisAlignedThreshold:function(e,t,n,i,r,h){let o,u,d;s.defined(h)?h.length=0:h=[],t?(o=n<e,u=i<e,d=r<e):(o=n>e,u=i>e,d=r>e);const p=o+u+d;let l,a,f,c,g,m;return 1===p?o?(l=(e-n)/(i-n),a=(e-n)/(r-n),h.push(1),h.push(2),1!==a&&(h.push(-1),h.push(0),h.push(2),h.push(a)),1!==l&&(h.push(-1),h.push(0),h.push(1),h.push(l))):u?(f=(e-i)/(r-i),c=(e-i)/(n-i),h.push(2),h.push(0),1!==c&&(h.push(-1),h.push(1),h.push(0),h.push(c)),1!==f&&(h.push(-1),h.push(1),h.push(2),h.push(f))):d&&(g=(e-r)/(n-r),m=(e-r)/(i-r),h.push(0),h.push(1),1!==m&&(h.push(-1),h.push(2),h.push(1),h.push(m)),1!==g&&(h.push(-1),h.push(2),h.push(0),h.push(g))):2===p?o||n===e?u||i===e?d||r===e||(a=(e-n)/(r-n),f=(e-i)/(r-i),h.push(2),h.push(-1),h.push(0),h.push(2),h.push(a),h.push(-1),h.push(1),h.push(2),h.push(f)):(m=(e-r)/(i-r),l=(e-n)/(i-n),h.push(1),h.push(-1),h.push(2),h.push(1),h.push(m),h.push(-1),h.push(0),h.push(1),h.push(l)):(c=(e-i)/(n-i),g=(e-r)/(n-r),h.push(0),h.push(-1),h.push(1),h.push(0),h.push(c),h.push(-1),h.push(2),h.push(0),h.push(g)):3!==p&&(h.push(0),h.push(1),h.push(2)),h},computeBarycentricCoordinates:function(e,t,n,r,h,o,u,d,p){const l=n-u,a=u-h,f=o-d,c=r-d,g=1/(f*l+a*c),m=t-d,x=e-u,w=(f*x+a*m)*g,C=(-c*x+l*m)*g,B=1-w-C;return s.defined(p)?(p.x=w,p.y=C,p.z=B,p):new i.Cartesian3(w,C,B)},computeLineSegmentLineSegmentIntersection:function(e,t,i,r,h,o,u,d,p){const l=(d-o)*(i-e)-(u-h)*(r-t);if(0===l)return;const a=((u-h)*(t-o)-(d-o)*(e-h))/l,f=((i-e)*(t-o)-(r-t)*(e-h))/l;return a>=0&&a<=1&&f>=0&&f<=1?(s.defined(p)||(p=new n.Cartesian2),p.x=e+a*(i-e),p.y=t+a*(r-t),p):void 0}};var C=w;const B=32767,y=16383,I=[],A=[],b=[],v=new i.Cartographic;let T=new i.Cartesian3;const M=[],z=[],V=[],N=[],E=[],R=new i.Cartesian3,H=new t.BoundingSphere,O=new u.OrientedBoundingBox,S=new n.Cartesian2,U=new i.Cartesian3;function F(){this.vertexBuffer=void 0,this.index=void 0,this.first=void 0,this.second=void 0,this.ratio=void 0}F.prototype.clone=function(e){return s.defined(e)||(e=new F),e.uBuffer=this.uBuffer,e.vBuffer=this.vBuffer,e.heightBuffer=this.heightBuffer,e.normalBuffer=this.normalBuffer,e.index=this.index,e.first=this.first,e.second=this.second,e.ratio=this.ratio,e},F.prototype.initializeIndexed=function(e,t,n,i,s){this.uBuffer=e,this.vBuffer=t,this.heightBuffer=n,this.normalBuffer=i,this.index=s,this.first=void 0,this.second=void 0,this.ratio=void 0},F.prototype.initializeFromClipResult=function(e,t,n){let i=t+1;return-1!==e[t]?n[e[t]].clone(this):(this.vertexBuffer=void 0,this.index=void 0,this.first=n[e[i]],++i,this.second=n[e[i]],++i,this.ratio=e[i],++i),i},F.prototype.getKey=function(){return this.isIndexed()?this.index:JSON.stringify({first:this.first.getKey(),second:this.second.getKey(),ratio:this.ratio})},F.prototype.isIndexed=function(){return s.defined(this.index)},F.prototype.getH=function(){return s.defined(this.index)?this.heightBuffer[this.index]:o.CesiumMath.lerp(this.first.getH(),this.second.getH(),this.ratio)},F.prototype.getU=function(){return s.defined(this.index)?this.uBuffer[this.index]:o.CesiumMath.lerp(this.first.getU(),this.second.getU(),this.ratio)},F.prototype.getV=function(){return s.defined(this.index)?this.vBuffer[this.index]:o.CesiumMath.lerp(this.first.getV(),this.second.getV(),this.ratio)};let P=new n.Cartesian2,D=-1;const W=[new i.Cartesian3,new i.Cartesian3],X=[new i.Cartesian3,new i.Cartesian3];function k(t,n){++D;let s=W[D],r=X[D];return s=e.AttributeCompression.octDecode(t.first.getNormalX(),t.first.getNormalY(),s),r=e.AttributeCompression.octDecode(t.second.getNormalX(),t.second.getNormalY(),r),T=i.Cartesian3.lerp(s,r,t.ratio,T),i.Cartesian3.normalize(T,T),e.AttributeCompression.octEncode(T,n),--D,n}F.prototype.getNormalX=function(){return s.defined(this.index)?this.normalBuffer[2*this.index]:(P=k(this,P),P.x)},F.prototype.getNormalY=function(){return s.defined(this.index)?this.normalBuffer[2*this.index+1]:(P=k(this,P),P.y)};const K=[];function L(e,t,n,i,r,h,o,u,d){if(0===o.length)return;let p=0,l=0;for(;l<o.length;)l=K[p++].initializeFromClipResult(o,l,u);for(let r=0;r<p;++r){const o=K[r];if(o.isIndexed())o.newIndex=h[o.index],o.uBuffer=e,o.vBuffer=t,o.heightBuffer=n,d&&(o.normalBuffer=i);else{const r=o.getKey();if(s.defined(h[r]))o.newIndex=h[r];else{const s=e.length;e.push(o.getU()),t.push(o.getV()),n.push(o.getH()),d&&(i.push(o.getNormalX()),i.push(o.getNormalY())),o.newIndex=s,h[r]=s}}}3===p?(r.push(K[0].newIndex),r.push(K[1].newIndex),r.push(K[2].newIndex)):4===p&&(r.push(K[0].newIndex),r.push(K[1].newIndex),r.push(K[2].newIndex),r.push(K[0].newIndex),r.push(K[2].newIndex),r.push(K[3].newIndex))}return K.push(new F),K.push(new F),K.push(new F),K.push(new F),d((function(e,s){const d=e.isEastChild,p=e.isNorthChild,l=d?y:0,a=d?B:y,f=p?y:0,c=p?B:y,g=M,m=z,x=V,w=E;g.length=0,m.length=0,x.length=0,w.length=0;const P=N;P.length=0;const D={},W=e.vertices;let X=e.indices;X=X.subarray(0,e.indexCountWithoutSkirts);const k=r.TerrainEncoding.clone(e.encoding),K=k.hasVertexNormals;let Y=0;const _=e.vertexCountWithoutSkirts,G=e.minimumHeight,J=e.maximumHeight,Z=new Array(_),j=new Array(_),q=new Array(_),Q=K?new Array(2*_):void 0;let $,ee,te,ne,ie;for(ee=0,te=0;ee<_;++ee,te+=2){const e=k.decodeTextureCoordinates(W,ee,S);if($=k.decodeHeight(W,ee),ne=o.CesiumMath.clamp(e.x*B|0,0,B),ie=o.CesiumMath.clamp(e.y*B|0,0,B),q[ee]=o.CesiumMath.clamp(($-G)/(J-G)*B|0,0,B),ne<20&&(ne=0),ie<20&&(ie=0),B-ne<20&&(ne=B),B-ie<20&&(ie=B),Z[ee]=ne,j[ee]=ie,K){const e=k.getOctEncodedNormal(W,ee,U);Q[te]=e.x,Q[te+1]=e.y}(d&&ne>=y||!d&&ne<=y)&&(p&&ie>=y||!p&&ie<=y)&&(D[ee]=Y,g.push(ne),m.push(ie),x.push(q[ee]),K&&(w.push(Q[te]),w.push(Q[te+1])),++Y)}const se=[];se.push(new F),se.push(new F),se.push(new F);const re=[];let he,oe;for(re.push(new F),re.push(new F),re.push(new F),ee=0;ee<X.length;ee+=3){const e=X[ee],t=X[ee+1],n=X[ee+2],i=Z[e],s=Z[t],r=Z[n];se[0].initializeIndexed(Z,j,q,Q,e),se[1].initializeIndexed(Z,j,q,Q,t),se[2].initializeIndexed(Z,j,q,Q,n);const h=C.clipTriangleAtAxisAlignedThreshold(y,d,i,s,r,I);he=0,he>=h.length||(he=re[0].initializeFromClipResult(h,he,se),he>=h.length||(he=re[1].initializeFromClipResult(h,he,se),he>=h.length||(he=re[2].initializeFromClipResult(h,he,se),oe=C.clipTriangleAtAxisAlignedThreshold(y,p,re[0].getV(),re[1].getV(),re[2].getV(),A),L(g,m,x,w,P,D,oe,re,K),he<h.length&&(re[2].clone(re[1]),re[2].initializeFromClipResult(h,he,se),oe=C.clipTriangleAtAxisAlignedThreshold(y,p,re[0].getV(),re[1].getV(),re[2].getV(),A),L(g,m,x,w,P,D,oe,re,K)))))}const ue=d?-B:0,de=p?-B:0,pe=[],le=[],ae=[],fe=[];let ce=Number.MAX_VALUE,ge=-ce;const me=b;me.length=0;const xe=i.Ellipsoid.clone(e.ellipsoid),we=n.Rectangle.clone(e.childRectangle),Ce=we.north,Be=we.south;let ye=we.east;const Ie=we.west;for(ye<Ie&&(ye+=o.CesiumMath.TWO_PI),ee=0;ee<g.length;++ee)ne=Math.round(g[ee]),ne<=l?(pe.push(ee),ne=0):ne>=a?(ae.push(ee),ne=B):ne=2*ne+ue,g[ee]=ne,ie=Math.round(m[ee]),ie<=f?(le.push(ee),ie=0):ie>=c?(fe.push(ee),ie=B):ie=2*ie+de,m[ee]=ie,$=o.CesiumMath.lerp(G,J,x[ee]/B),$<ce&&(ce=$),$>ge&&(ge=$),x[ee]=$,v.longitude=o.CesiumMath.lerp(Ie,ye,ne/B),v.latitude=o.CesiumMath.lerp(Be,Ce,ie/B),v.height=$,xe.cartographicToCartesian(v,T),me.push(T.x),me.push(T.y),me.push(T.z);const Ae=t.BoundingSphere.fromVertices(me,i.Cartesian3.ZERO,3,H),be=u.OrientedBoundingBox.fromRectangle(we,ce,ge,xe,O),ve=new r.EllipsoidalOccluder(xe).computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid(Ae.center,me,3,Ae.center,ce,R),Te=ge-ce,Me=new Uint16Array(g.length+m.length+x.length);for(ee=0;ee<g.length;++ee)Me[ee]=g[ee];let ze=g.length;for(ee=0;ee<m.length;++ee)Me[ze+ee]=m[ee];for(ze+=m.length,ee=0;ee<x.length;++ee)Me[ze+ee]=B*(x[ee]-ce)/Te;const Ve=h.IndexDatatype.createTypedArray(g.length,P);let Ne;if(K){const e=new Uint8Array(w);s.push(Me.buffer,Ve.buffer,e.buffer),Ne=e.buffer}else s.push(Me.buffer,Ve.buffer);return{vertices:Me.buffer,encodedNormals:Ne,indices:Ve.buffer,minimumHeight:ce,maximumHeight:ge,westIndices:pe,southIndices:le,eastIndices:ae,northIndices:fe,boundingSphere:Ae,orientedBoundingBox:be,horizonOcclusionPoint:ve}}))}));
|