gm-builds 4.3.0
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/README.md +59 -0
- package/dist/gm.min.css +1 -0
- package/dist/gm.min.js +16269 -0
- package/dist/gm.module.js +32 -0
- package/dist/index.js +16267 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/resources/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/resources/Assets/Images/cesium_credit.png +0 -0
- package/dist/resources/Assets/Images/google_earth_credit.png +0 -0
- package/dist/resources/Assets/Images/ion-credit.png +0 -0
- package/dist/resources/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/resources/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/resources/Assets/Textures/maki/airfield.png +0 -0
- package/dist/resources/Assets/Textures/maki/airport.png +0 -0
- package/dist/resources/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/resources/Assets/Textures/maki/america-football.png +0 -0
- package/dist/resources/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/resources/Assets/Textures/maki/bakery.png +0 -0
- package/dist/resources/Assets/Textures/maki/bank.png +0 -0
- package/dist/resources/Assets/Textures/maki/bar.png +0 -0
- package/dist/resources/Assets/Textures/maki/baseball.png +0 -0
- package/dist/resources/Assets/Textures/maki/basketball.png +0 -0
- package/dist/resources/Assets/Textures/maki/beer.png +0 -0
- package/dist/resources/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/resources/Assets/Textures/maki/building.png +0 -0
- package/dist/resources/Assets/Textures/maki/bus.png +0 -0
- package/dist/resources/Assets/Textures/maki/cafe.png +0 -0
- package/dist/resources/Assets/Textures/maki/camera.png +0 -0
- package/dist/resources/Assets/Textures/maki/campsite.png +0 -0
- package/dist/resources/Assets/Textures/maki/car.png +0 -0
- package/dist/resources/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/resources/Assets/Textures/maki/cesium.png +0 -0
- package/dist/resources/Assets/Textures/maki/chemist.png +0 -0
- package/dist/resources/Assets/Textures/maki/cinema.png +0 -0
- package/dist/resources/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/circle.png +0 -0
- package/dist/resources/Assets/Textures/maki/city.png +0 -0
- package/dist/resources/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/resources/Assets/Textures/maki/college.png +0 -0
- package/dist/resources/Assets/Textures/maki/commercial.png +0 -0
- package/dist/resources/Assets/Textures/maki/cricket.png +0 -0
- package/dist/resources/Assets/Textures/maki/cross.png +0 -0
- package/dist/resources/Assets/Textures/maki/dam.png +0 -0
- package/dist/resources/Assets/Textures/maki/danger.png +0 -0
- package/dist/resources/Assets/Textures/maki/disability.png +0 -0
- package/dist/resources/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/resources/Assets/Textures/maki/embassy.png +0 -0
- package/dist/resources/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/entrance.png +0 -0
- package/dist/resources/Assets/Textures/maki/farm.png +0 -0
- package/dist/resources/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/resources/Assets/Textures/maki/ferry.png +0 -0
- package/dist/resources/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/resources/Assets/Textures/maki/fuel.png +0 -0
- package/dist/resources/Assets/Textures/maki/garden.png +0 -0
- package/dist/resources/Assets/Textures/maki/gift.png +0 -0
- package/dist/resources/Assets/Textures/maki/golf.png +0 -0
- package/dist/resources/Assets/Textures/maki/grocery.png +0 -0
- package/dist/resources/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/resources/Assets/Textures/maki/harbor.png +0 -0
- package/dist/resources/Assets/Textures/maki/heart.png +0 -0
- package/dist/resources/Assets/Textures/maki/heliport.png +0 -0
- package/dist/resources/Assets/Textures/maki/hospital.png +0 -0
- package/dist/resources/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/resources/Assets/Textures/maki/industrial.png +0 -0
- package/dist/resources/Assets/Textures/maki/land-use.png +0 -0
- package/dist/resources/Assets/Textures/maki/laundry.png +0 -0
- package/dist/resources/Assets/Textures/maki/library.png +0 -0
- package/dist/resources/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/lodging.png +0 -0
- package/dist/resources/Assets/Textures/maki/logging.png +0 -0
- package/dist/resources/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/resources/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/marker.png +0 -0
- package/dist/resources/Assets/Textures/maki/minefield.png +0 -0
- package/dist/resources/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/monument.png +0 -0
- package/dist/resources/Assets/Textures/maki/museum.png +0 -0
- package/dist/resources/Assets/Textures/maki/music.png +0 -0
- package/dist/resources/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/resources/Assets/Textures/maki/park.png +0 -0
- package/dist/resources/Assets/Textures/maki/park2.png +0 -0
- package/dist/resources/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/resources/Assets/Textures/maki/parking.png +0 -0
- package/dist/resources/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/resources/Assets/Textures/maki/pitch.png +0 -0
- package/dist/resources/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/resources/Assets/Textures/maki/playground.png +0 -0
- package/dist/resources/Assets/Textures/maki/police.png +0 -0
- package/dist/resources/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/resources/Assets/Textures/maki/post.png +0 -0
- package/dist/resources/Assets/Textures/maki/prison.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/resources/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/resources/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/resources/Assets/Textures/maki/rocket.png +0 -0
- package/dist/resources/Assets/Textures/maki/school.png +0 -0
- package/dist/resources/Assets/Textures/maki/scooter.png +0 -0
- package/dist/resources/Assets/Textures/maki/shop.png +0 -0
- package/dist/resources/Assets/Textures/maki/skiing.png +0 -0
- package/dist/resources/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/soccer.png +0 -0
- package/dist/resources/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/square.png +0 -0
- package/dist/resources/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/star.png +0 -0
- package/dist/resources/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/resources/Assets/Textures/maki/swimming.png +0 -0
- package/dist/resources/Assets/Textures/maki/telephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/tennis.png +0 -0
- package/dist/resources/Assets/Textures/maki/theatre.png +0 -0
- package/dist/resources/Assets/Textures/maki/toilets.png +0 -0
- package/dist/resources/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/resources/Assets/Textures/maki/town.png +0 -0
- package/dist/resources/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/triangle.png +0 -0
- package/dist/resources/Assets/Textures/maki/village.png +0 -0
- package/dist/resources/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/resources/Assets/Textures/maki/water.png +0 -0
- package/dist/resources/Assets/Textures/maki/wetland.png +0 -0
- package/dist/resources/Assets/Textures/maki/zoo.png +0 -0
- package/dist/resources/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/resources/Assets/Textures/pin.svg +1 -0
- package/dist/resources/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/resources/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/resources/Assets/approximateTerrainHeights.json +1 -0
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +21 -0
- package/dist/resources/ThirdParty/Workers/package.json +1 -0
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist/resources/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +8337 -0
- package/dist/resources/Workers/chunk-3JBEPBPL.js +390 -0
- package/dist/resources/Workers/chunk-3LYROPON.js +781 -0
- package/dist/resources/Workers/chunk-3PIZQT3I.js +305 -0
- package/dist/resources/Workers/chunk-3QLSKXKF.js +456 -0
- package/dist/resources/Workers/chunk-4CHMVQTQ.js +138 -0
- package/dist/resources/Workers/chunk-5KWRW7YL.js +58 -0
- package/dist/resources/Workers/chunk-5S5OOA6U.js +37 -0
- package/dist/resources/Workers/chunk-77XPS7ZA.js +758 -0
- package/dist/resources/Workers/chunk-7EO56M5R.js +1800 -0
- package/dist/resources/Workers/chunk-7UHKH6M3.js +634 -0
- package/dist/resources/Workers/chunk-7ZB2RVIQ.js +834 -0
- package/dist/resources/Workers/chunk-B4GSRXE3.js +157 -0
- package/dist/resources/Workers/chunk-CI2HEJFC.js +1481 -0
- package/dist/resources/Workers/chunk-D7ZBZPHV.js +139 -0
- package/dist/resources/Workers/chunk-DT5NFR5C.js +239 -0
- package/dist/resources/Workers/chunk-ED6GLQTK.js +629 -0
- package/dist/resources/Workers/chunk-EWDGNOJE.js +1258 -0
- package/dist/resources/Workers/chunk-F4CUH4MR.js +500 -0
- package/dist/resources/Workers/chunk-FFBJDW4A.js +196 -0
- package/dist/resources/Workers/chunk-FX4R4MTH.js +115 -0
- package/dist/resources/Workers/chunk-FYGLNDKG.js +963 -0
- package/dist/resources/Workers/chunk-G3BVMPWG.js +101 -0
- package/dist/resources/Workers/chunk-HEZHXDYB.js +55 -0
- package/dist/resources/Workers/chunk-HKHQ3EDR.js +102 -0
- package/dist/resources/Workers/chunk-HUFQVUMY.js +300 -0
- package/dist/resources/Workers/chunk-J7IH4EYI.js +220 -0
- package/dist/resources/Workers/chunk-JHBPC4LK.js +435 -0
- package/dist/resources/Workers/chunk-JPDKYBLF.js +511 -0
- package/dist/resources/Workers/chunk-K4AH3TDT.js +959 -0
- package/dist/resources/Workers/chunk-KHWLAQVA.js +75 -0
- package/dist/resources/Workers/chunk-KM6MITPF.js +2857 -0
- package/dist/resources/Workers/chunk-KSYBJA4M.js +262 -0
- package/dist/resources/Workers/chunk-LJBJM6VI.js +171 -0
- package/dist/resources/Workers/chunk-LNSWJ43X.js +421 -0
- package/dist/resources/Workers/chunk-LOZ4NKY3.js +684 -0
- package/dist/resources/Workers/chunk-LS3KVHYY.js +353 -0
- package/dist/resources/Workers/chunk-MVM4JV5U.js +691 -0
- package/dist/resources/Workers/chunk-N2XAJBC6.js +368 -0
- package/dist/resources/Workers/chunk-OMXHEJTK.js +163 -0
- package/dist/resources/Workers/chunk-PWF4EY5P.js +122 -0
- package/dist/resources/Workers/chunk-Q4ZVWJXX.js +59 -0
- package/dist/resources/Workers/chunk-SDIDRZDG.js +476 -0
- package/dist/resources/Workers/chunk-TVL3F7IU.js +39 -0
- package/dist/resources/Workers/chunk-TY4DKOWR.js +44 -0
- package/dist/resources/Workers/chunk-VCNOFQYH.js +287 -0
- package/dist/resources/Workers/chunk-WEHZP4SE.js +10357 -0
- package/dist/resources/Workers/chunk-WVNLSTOF.js +73 -0
- package/dist/resources/Workers/chunk-XK4OP6VA.js +1073 -0
- package/dist/resources/Workers/chunk-YJX7X577.js +2717 -0
- package/dist/resources/Workers/chunk-Z3QWTHI7.js +398 -0
- package/dist/resources/Workers/chunk-ZGFIT57T.js +1048 -0
- package/dist/resources/Workers/chunk-ZMNLEL6W.js +100 -0
- package/dist/resources/Workers/combineGeometry.js +64 -0
- package/dist/resources/Workers/createBoxGeometry.js +56 -0
- package/dist/resources/Workers/createBoxOutlineGeometry.js +233 -0
- package/dist/resources/Workers/createCircleGeometry.js +199 -0
- package/dist/resources/Workers/createCircleOutlineGeometry.js +145 -0
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +505 -0
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +223 -0
- package/dist/resources/Workers/createCorridorGeometry.js +1261 -0
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +566 -0
- package/dist/resources/Workers/createCylinderGeometry.js +58 -0
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +229 -0
- package/dist/resources/Workers/createEllipseGeometry.js +69 -0
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +62 -0
- package/dist/resources/Workers/createEllipsoidGeometry.js +57 -0
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +59 -0
- package/dist/resources/Workers/createFrustumGeometry.js +56 -0
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +234 -0
- package/dist/resources/Workers/createGeometry.js +168 -0
- package/dist/resources/Workers/createGroundPolylineGeometry.js +1606 -0
- package/dist/resources/Workers/createPlaneGeometry.js +222 -0
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +122 -0
- package/dist/resources/Workers/createPolygonGeometry.js +1405 -0
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +533 -0
- package/dist/resources/Workers/createPolylineGeometry.js +494 -0
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +377 -0
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +275 -0
- package/dist/resources/Workers/createRectangleGeometry.js +1270 -0
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +477 -0
- package/dist/resources/Workers/createSimplePolylineGeometry.js +398 -0
- package/dist/resources/Workers/createSphereGeometry.js +116 -0
- package/dist/resources/Workers/createSphereOutlineGeometry.js +116 -0
- package/dist/resources/Workers/createTaskProcessorWorker.js +32 -0
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +490 -0
- package/dist/resources/Workers/createVectorTileGeometries.js +385 -0
- package/dist/resources/Workers/createVectorTilePoints.js +112 -0
- package/dist/resources/Workers/createVectorTilePolygons.js +383 -0
- package/dist/resources/Workers/createVectorTilePolylines.js +260 -0
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +563 -0
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2276 -0
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +753 -0
- package/dist/resources/Workers/createWallGeometry.js +488 -0
- package/dist/resources/Workers/createWallOutlineGeometry.js +336 -0
- package/dist/resources/Workers/decodeDraco.js +370 -0
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2666 -0
- package/dist/resources/Workers/decodeI3S.js +1343 -0
- package/dist/resources/Workers/transcodeKTX2.js +3387 -0
- package/dist/resources/Workers/transferTypedArrayTest.js +41 -0
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +817 -0
- package/package.json +22 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.126
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
Math_default
|
|
28
|
+
} from "./chunk-F4CUH4MR.js";
|
|
29
|
+
import {
|
|
30
|
+
WebGLConstants_default
|
|
31
|
+
} from "./chunk-ED6GLQTK.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-OMXHEJTK.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-KHWLAQVA.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/IndexDatatype.js
|
|
40
|
+
var IndexDatatype = {
|
|
41
|
+
/**
|
|
42
|
+
* 8-bit unsigned byte corresponding to <code>UNSIGNED_BYTE</code> and the type
|
|
43
|
+
* of an element in <code>Uint8Array</code>.
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @constant
|
|
47
|
+
*/
|
|
48
|
+
UNSIGNED_BYTE: WebGLConstants_default.UNSIGNED_BYTE,
|
|
49
|
+
/**
|
|
50
|
+
* 16-bit unsigned short corresponding to <code>UNSIGNED_SHORT</code> and the type
|
|
51
|
+
* of an element in <code>Uint16Array</code>.
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @constant
|
|
55
|
+
*/
|
|
56
|
+
UNSIGNED_SHORT: WebGLConstants_default.UNSIGNED_SHORT,
|
|
57
|
+
/**
|
|
58
|
+
* 32-bit unsigned int corresponding to <code>UNSIGNED_INT</code> and the type
|
|
59
|
+
* of an element in <code>Uint32Array</code>.
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @constant
|
|
63
|
+
*/
|
|
64
|
+
UNSIGNED_INT: WebGLConstants_default.UNSIGNED_INT
|
|
65
|
+
};
|
|
66
|
+
IndexDatatype.getSizeInBytes = function(indexDatatype) {
|
|
67
|
+
switch (indexDatatype) {
|
|
68
|
+
case IndexDatatype.UNSIGNED_BYTE:
|
|
69
|
+
return Uint8Array.BYTES_PER_ELEMENT;
|
|
70
|
+
case IndexDatatype.UNSIGNED_SHORT:
|
|
71
|
+
return Uint16Array.BYTES_PER_ELEMENT;
|
|
72
|
+
case IndexDatatype.UNSIGNED_INT:
|
|
73
|
+
return Uint32Array.BYTES_PER_ELEMENT;
|
|
74
|
+
}
|
|
75
|
+
throw new DeveloperError_default(
|
|
76
|
+
"indexDatatype is required and must be a valid IndexDatatype constant."
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
IndexDatatype.fromSizeInBytes = function(sizeInBytes) {
|
|
80
|
+
switch (sizeInBytes) {
|
|
81
|
+
case 2:
|
|
82
|
+
return IndexDatatype.UNSIGNED_SHORT;
|
|
83
|
+
case 4:
|
|
84
|
+
return IndexDatatype.UNSIGNED_INT;
|
|
85
|
+
case 1:
|
|
86
|
+
return IndexDatatype.UNSIGNED_BYTE;
|
|
87
|
+
//>>includeStart('debug', pragmas.debug);
|
|
88
|
+
default:
|
|
89
|
+
throw new DeveloperError_default(
|
|
90
|
+
"Size in bytes cannot be mapped to an IndexDatatype"
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
IndexDatatype.validate = function(indexDatatype) {
|
|
95
|
+
return defined_default(indexDatatype) && (indexDatatype === IndexDatatype.UNSIGNED_BYTE || indexDatatype === IndexDatatype.UNSIGNED_SHORT || indexDatatype === IndexDatatype.UNSIGNED_INT);
|
|
96
|
+
};
|
|
97
|
+
IndexDatatype.createTypedArray = function(numberOfVertices, indicesLengthOrArray) {
|
|
98
|
+
if (!defined_default(numberOfVertices)) {
|
|
99
|
+
throw new DeveloperError_default("numberOfVertices is required.");
|
|
100
|
+
}
|
|
101
|
+
if (numberOfVertices >= Math_default.SIXTY_FOUR_KILOBYTES) {
|
|
102
|
+
return new Uint32Array(indicesLengthOrArray);
|
|
103
|
+
}
|
|
104
|
+
return new Uint16Array(indicesLengthOrArray);
|
|
105
|
+
};
|
|
106
|
+
IndexDatatype.createTypedArrayFromArrayBuffer = function(numberOfVertices, sourceArray, byteOffset, length) {
|
|
107
|
+
if (!defined_default(numberOfVertices)) {
|
|
108
|
+
throw new DeveloperError_default("numberOfVertices is required.");
|
|
109
|
+
}
|
|
110
|
+
if (!defined_default(sourceArray)) {
|
|
111
|
+
throw new DeveloperError_default("sourceArray is required.");
|
|
112
|
+
}
|
|
113
|
+
if (!defined_default(byteOffset)) {
|
|
114
|
+
throw new DeveloperError_default("byteOffset is required.");
|
|
115
|
+
}
|
|
116
|
+
if (numberOfVertices >= Math_default.SIXTY_FOUR_KILOBYTES) {
|
|
117
|
+
return new Uint32Array(sourceArray, byteOffset, length);
|
|
118
|
+
}
|
|
119
|
+
return new Uint16Array(sourceArray, byteOffset, length);
|
|
120
|
+
};
|
|
121
|
+
IndexDatatype.fromTypedArray = function(array) {
|
|
122
|
+
if (array instanceof Uint8Array) {
|
|
123
|
+
return IndexDatatype.UNSIGNED_BYTE;
|
|
124
|
+
}
|
|
125
|
+
if (array instanceof Uint16Array) {
|
|
126
|
+
return IndexDatatype.UNSIGNED_SHORT;
|
|
127
|
+
}
|
|
128
|
+
if (array instanceof Uint32Array) {
|
|
129
|
+
return IndexDatatype.UNSIGNED_INT;
|
|
130
|
+
}
|
|
131
|
+
throw new DeveloperError_default(
|
|
132
|
+
"array must be a Uint8Array, Uint16Array, or Uint32Array."
|
|
133
|
+
);
|
|
134
|
+
};
|
|
135
|
+
var IndexDatatype_default = Object.freeze(IndexDatatype);
|
|
136
|
+
|
|
137
|
+
export {
|
|
138
|
+
IndexDatatype_default
|
|
139
|
+
};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.126
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
GeographicProjection_default
|
|
28
|
+
} from "./chunk-FYGLNDKG.js";
|
|
29
|
+
import {
|
|
30
|
+
Matrix2_default,
|
|
31
|
+
Rectangle_default
|
|
32
|
+
} from "./chunk-WEHZP4SE.js";
|
|
33
|
+
import {
|
|
34
|
+
Cartesian3_default,
|
|
35
|
+
Cartographic_default,
|
|
36
|
+
Ellipsoid_default
|
|
37
|
+
} from "./chunk-KM6MITPF.js";
|
|
38
|
+
import {
|
|
39
|
+
Math_default
|
|
40
|
+
} from "./chunk-F4CUH4MR.js";
|
|
41
|
+
import {
|
|
42
|
+
DeveloperError_default
|
|
43
|
+
} from "./chunk-OMXHEJTK.js";
|
|
44
|
+
import {
|
|
45
|
+
defined_default
|
|
46
|
+
} from "./chunk-KHWLAQVA.js";
|
|
47
|
+
|
|
48
|
+
// packages/engine/Source/Core/RectangleGeometryLibrary.js
|
|
49
|
+
var cos = Math.cos;
|
|
50
|
+
var sin = Math.sin;
|
|
51
|
+
var sqrt = Math.sqrt;
|
|
52
|
+
var RectangleGeometryLibrary = {};
|
|
53
|
+
RectangleGeometryLibrary.computePosition = function(computedOptions, ellipsoid, computeST, row, col, position, st) {
|
|
54
|
+
const radiiSquared = ellipsoid.radiiSquared;
|
|
55
|
+
const nwCorner = computedOptions.nwCorner;
|
|
56
|
+
const rectangle = computedOptions.boundingRectangle;
|
|
57
|
+
let stLatitude = nwCorner.latitude - computedOptions.granYCos * row + col * computedOptions.granXSin;
|
|
58
|
+
const cosLatitude = cos(stLatitude);
|
|
59
|
+
const nZ = sin(stLatitude);
|
|
60
|
+
const kZ = radiiSquared.z * nZ;
|
|
61
|
+
let stLongitude = nwCorner.longitude + row * computedOptions.granYSin + col * computedOptions.granXCos;
|
|
62
|
+
const nX = cosLatitude * cos(stLongitude);
|
|
63
|
+
const nY = cosLatitude * sin(stLongitude);
|
|
64
|
+
const kX = radiiSquared.x * nX;
|
|
65
|
+
const kY = radiiSquared.y * nY;
|
|
66
|
+
const gamma = sqrt(kX * nX + kY * nY + kZ * nZ);
|
|
67
|
+
position.x = kX / gamma;
|
|
68
|
+
position.y = kY / gamma;
|
|
69
|
+
position.z = kZ / gamma;
|
|
70
|
+
if (computeST) {
|
|
71
|
+
const stNwCorner = computedOptions.stNwCorner;
|
|
72
|
+
if (defined_default(stNwCorner)) {
|
|
73
|
+
stLatitude = stNwCorner.latitude - computedOptions.stGranYCos * row + col * computedOptions.stGranXSin;
|
|
74
|
+
stLongitude = stNwCorner.longitude + row * computedOptions.stGranYSin + col * computedOptions.stGranXCos;
|
|
75
|
+
st.x = (stLongitude - computedOptions.stWest) * computedOptions.lonScalar;
|
|
76
|
+
st.y = (stLatitude - computedOptions.stSouth) * computedOptions.latScalar;
|
|
77
|
+
} else {
|
|
78
|
+
st.x = (stLongitude - rectangle.west) * computedOptions.lonScalar;
|
|
79
|
+
st.y = (stLatitude - rectangle.south) * computedOptions.latScalar;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
var rotationMatrixScratch = new Matrix2_default();
|
|
84
|
+
var nwCartesian = new Cartesian3_default();
|
|
85
|
+
var centerScratch = new Cartographic_default();
|
|
86
|
+
var centerCartesian = new Cartesian3_default();
|
|
87
|
+
var proj = new GeographicProjection_default();
|
|
88
|
+
function getRotationOptions(nwCorner, rotation, granularityX, granularityY, center, width, height) {
|
|
89
|
+
const cosRotation = Math.cos(rotation);
|
|
90
|
+
const granYCos = granularityY * cosRotation;
|
|
91
|
+
const granXCos = granularityX * cosRotation;
|
|
92
|
+
const sinRotation = Math.sin(rotation);
|
|
93
|
+
const granYSin = granularityY * sinRotation;
|
|
94
|
+
const granXSin = granularityX * sinRotation;
|
|
95
|
+
proj._ellipsoid = Ellipsoid_default.default;
|
|
96
|
+
nwCartesian = proj.project(nwCorner, nwCartesian);
|
|
97
|
+
nwCartesian = Cartesian3_default.subtract(nwCartesian, centerCartesian, nwCartesian);
|
|
98
|
+
const rotationMatrix = Matrix2_default.fromRotation(rotation, rotationMatrixScratch);
|
|
99
|
+
nwCartesian = Matrix2_default.multiplyByVector(
|
|
100
|
+
rotationMatrix,
|
|
101
|
+
nwCartesian,
|
|
102
|
+
nwCartesian
|
|
103
|
+
);
|
|
104
|
+
nwCartesian = Cartesian3_default.add(nwCartesian, centerCartesian, nwCartesian);
|
|
105
|
+
nwCorner = proj.unproject(nwCartesian, nwCorner);
|
|
106
|
+
width -= 1;
|
|
107
|
+
height -= 1;
|
|
108
|
+
const latitude = nwCorner.latitude;
|
|
109
|
+
const latitude0 = latitude + width * granXSin;
|
|
110
|
+
const latitude1 = latitude - granYCos * height;
|
|
111
|
+
const latitude2 = latitude - granYCos * height + width * granXSin;
|
|
112
|
+
const north = Math.max(latitude, latitude0, latitude1, latitude2);
|
|
113
|
+
const south = Math.min(latitude, latitude0, latitude1, latitude2);
|
|
114
|
+
const longitude = nwCorner.longitude;
|
|
115
|
+
const longitude0 = longitude + width * granXCos;
|
|
116
|
+
const longitude1 = longitude + height * granYSin;
|
|
117
|
+
const longitude2 = longitude + height * granYSin + width * granXCos;
|
|
118
|
+
const east = Math.max(longitude, longitude0, longitude1, longitude2);
|
|
119
|
+
const west = Math.min(longitude, longitude0, longitude1, longitude2);
|
|
120
|
+
return {
|
|
121
|
+
north,
|
|
122
|
+
south,
|
|
123
|
+
east,
|
|
124
|
+
west,
|
|
125
|
+
granYCos,
|
|
126
|
+
granYSin,
|
|
127
|
+
granXCos,
|
|
128
|
+
granXSin,
|
|
129
|
+
nwCorner
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
RectangleGeometryLibrary.computeOptions = function(rectangle, granularity, rotation, stRotation, boundingRectangleScratch, nwCornerResult, stNwCornerResult) {
|
|
133
|
+
let east = rectangle.east;
|
|
134
|
+
let west = rectangle.west;
|
|
135
|
+
let north = rectangle.north;
|
|
136
|
+
let south = rectangle.south;
|
|
137
|
+
let northCap = false;
|
|
138
|
+
let southCap = false;
|
|
139
|
+
if (north === Math_default.PI_OVER_TWO) {
|
|
140
|
+
northCap = true;
|
|
141
|
+
}
|
|
142
|
+
if (south === -Math_default.PI_OVER_TWO) {
|
|
143
|
+
southCap = true;
|
|
144
|
+
}
|
|
145
|
+
let dx;
|
|
146
|
+
const dy = north - south;
|
|
147
|
+
if (west > east) {
|
|
148
|
+
dx = Math_default.TWO_PI - west + east;
|
|
149
|
+
} else {
|
|
150
|
+
dx = east - west;
|
|
151
|
+
}
|
|
152
|
+
const width = Math.ceil(dx / granularity) + 1;
|
|
153
|
+
const height = Math.ceil(dy / granularity) + 1;
|
|
154
|
+
const granularityX = dx / (width - 1);
|
|
155
|
+
const granularityY = dy / (height - 1);
|
|
156
|
+
const nwCorner = Rectangle_default.northwest(rectangle, nwCornerResult);
|
|
157
|
+
const center = Rectangle_default.center(rectangle, centerScratch);
|
|
158
|
+
if (rotation !== 0 || stRotation !== 0) {
|
|
159
|
+
if (center.longitude < nwCorner.longitude) {
|
|
160
|
+
center.longitude += Math_default.TWO_PI;
|
|
161
|
+
}
|
|
162
|
+
proj._ellipsoid = Ellipsoid_default.default;
|
|
163
|
+
centerCartesian = proj.project(center, centerCartesian);
|
|
164
|
+
}
|
|
165
|
+
const granYCos = granularityY;
|
|
166
|
+
const granXCos = granularityX;
|
|
167
|
+
const granYSin = 0;
|
|
168
|
+
const granXSin = 0;
|
|
169
|
+
const boundingRectangle = Rectangle_default.clone(
|
|
170
|
+
rectangle,
|
|
171
|
+
boundingRectangleScratch
|
|
172
|
+
);
|
|
173
|
+
const computedOptions = {
|
|
174
|
+
granYCos,
|
|
175
|
+
granYSin,
|
|
176
|
+
granXCos,
|
|
177
|
+
granXSin,
|
|
178
|
+
nwCorner,
|
|
179
|
+
boundingRectangle,
|
|
180
|
+
width,
|
|
181
|
+
height,
|
|
182
|
+
northCap,
|
|
183
|
+
southCap
|
|
184
|
+
};
|
|
185
|
+
if (rotation !== 0) {
|
|
186
|
+
const rotationOptions = getRotationOptions(
|
|
187
|
+
nwCorner,
|
|
188
|
+
rotation,
|
|
189
|
+
granularityX,
|
|
190
|
+
granularityY,
|
|
191
|
+
center,
|
|
192
|
+
width,
|
|
193
|
+
height
|
|
194
|
+
);
|
|
195
|
+
north = rotationOptions.north;
|
|
196
|
+
south = rotationOptions.south;
|
|
197
|
+
east = rotationOptions.east;
|
|
198
|
+
west = rotationOptions.west;
|
|
199
|
+
if (north < -Math_default.PI_OVER_TWO || north > Math_default.PI_OVER_TWO || south < -Math_default.PI_OVER_TWO || south > Math_default.PI_OVER_TWO) {
|
|
200
|
+
throw new DeveloperError_default(
|
|
201
|
+
"Rotated rectangle is invalid. It crosses over either the north or south pole."
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
computedOptions.granYCos = rotationOptions.granYCos;
|
|
205
|
+
computedOptions.granYSin = rotationOptions.granYSin;
|
|
206
|
+
computedOptions.granXCos = rotationOptions.granXCos;
|
|
207
|
+
computedOptions.granXSin = rotationOptions.granXSin;
|
|
208
|
+
boundingRectangle.north = north;
|
|
209
|
+
boundingRectangle.south = south;
|
|
210
|
+
boundingRectangle.east = east;
|
|
211
|
+
boundingRectangle.west = west;
|
|
212
|
+
}
|
|
213
|
+
if (stRotation !== 0) {
|
|
214
|
+
rotation = rotation - stRotation;
|
|
215
|
+
const stNwCorner = Rectangle_default.northwest(boundingRectangle, stNwCornerResult);
|
|
216
|
+
const stRotationOptions = getRotationOptions(
|
|
217
|
+
stNwCorner,
|
|
218
|
+
rotation,
|
|
219
|
+
granularityX,
|
|
220
|
+
granularityY,
|
|
221
|
+
center,
|
|
222
|
+
width,
|
|
223
|
+
height
|
|
224
|
+
);
|
|
225
|
+
computedOptions.stGranYCos = stRotationOptions.granYCos;
|
|
226
|
+
computedOptions.stGranXCos = stRotationOptions.granXCos;
|
|
227
|
+
computedOptions.stGranYSin = stRotationOptions.granYSin;
|
|
228
|
+
computedOptions.stGranXSin = stRotationOptions.granXSin;
|
|
229
|
+
computedOptions.stNwCorner = stNwCorner;
|
|
230
|
+
computedOptions.stWest = stRotationOptions.west;
|
|
231
|
+
computedOptions.stSouth = stRotationOptions.south;
|
|
232
|
+
}
|
|
233
|
+
return computedOptions;
|
|
234
|
+
};
|
|
235
|
+
var RectangleGeometryLibrary_default = RectangleGeometryLibrary;
|
|
236
|
+
|
|
237
|
+
export {
|
|
238
|
+
RectangleGeometryLibrary_default
|
|
239
|
+
};
|