@pggis/pg-sdk 3.2.9
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 +152 -0
- package/dist/index.cjs +43 -0
- package/dist/pggis.min.css +1 -0
- package/dist/pggis.min.js +42 -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-3PW6ZBN4.js +2977 -0
- package/dist/resources/Workers/chunk-434ZTTFX.js +73 -0
- package/dist/resources/Workers/chunk-4KP73B43.js +73 -0
- package/dist/resources/Workers/chunk-52VSIKEA.js +2716 -0
- package/dist/resources/Workers/chunk-5GDBZTHX.js +1075 -0
- package/dist/resources/Workers/chunk-5HLGKKG3.js +163 -0
- package/dist/resources/Workers/chunk-5IRLXUTA.js +1258 -0
- package/dist/resources/Workers/chunk-5SK36PU4.js +430 -0
- package/dist/resources/Workers/chunk-ARPTYYKS.js +258 -0
- package/dist/resources/Workers/chunk-ATB2I7OS.js +55 -0
- package/dist/resources/Workers/chunk-AXFRNOVC.js +368 -0
- package/dist/resources/Workers/chunk-BP467WX3.js +501 -0
- package/dist/resources/Workers/chunk-BUZDZBUH.js +1007 -0
- package/dist/resources/Workers/chunk-CDGHUKQ4.js +1477 -0
- package/dist/resources/Workers/chunk-CSIZ3BGT.js +398 -0
- package/dist/resources/Workers/chunk-CWJQGBWT.js +39 -0
- package/dist/resources/Workers/chunk-DMCSY5BU.js +100 -0
- package/dist/resources/Workers/chunk-DR5XZ6K5.js +390 -0
- package/dist/resources/Workers/chunk-FWGNCYP6.js +476 -0
- package/dist/resources/Workers/chunk-GF5TNNKP.js +353 -0
- package/dist/resources/Workers/chunk-GVL5I7TC.js +1052 -0
- package/dist/resources/Workers/chunk-H5DUXHCV.js +421 -0
- package/dist/resources/Workers/chunk-HFKSAB5K.js +511 -0
- package/dist/resources/Workers/chunk-HOT2SNXP.js +8639 -0
- package/dist/resources/Workers/chunk-HPH5HSFE.js +1860 -0
- package/dist/resources/Workers/chunk-HPP4JLNH.js +218 -0
- package/dist/resources/Workers/chunk-HUPNRBWW.js +196 -0
- package/dist/resources/Workers/chunk-JGG36SQV.js +102 -0
- package/dist/resources/Workers/chunk-LGJUI2CE.js +2361 -0
- package/dist/resources/Workers/chunk-LGL4P5KL.js +171 -0
- package/dist/resources/Workers/chunk-LX6XV4DK.js +138 -0
- package/dist/resources/Workers/chunk-MN34FIF5.js +37 -0
- package/dist/resources/Workers/chunk-MW3CJYLX.js +101 -0
- package/dist/resources/Workers/chunk-NE4JNU6H.js +767 -0
- package/dist/resources/Workers/chunk-O43GWBSF.js +55 -0
- package/dist/resources/Workers/chunk-PIXK6KHB.js +44 -0
- package/dist/resources/Workers/chunk-PZ2WJWUG.js +634 -0
- package/dist/resources/Workers/chunk-QRBRVGZC.js +305 -0
- package/dist/resources/Workers/chunk-QTZQZY2C.js +669 -0
- package/dist/resources/Workers/chunk-R3HUGXBH.js +302 -0
- package/dist/resources/Workers/chunk-R4OZKBXH.js +456 -0
- package/dist/resources/Workers/chunk-RH4N2ONY.js +236 -0
- package/dist/resources/Workers/chunk-RIDPF7PO.js +58 -0
- package/dist/resources/Workers/chunk-SNN7WOC2.js +781 -0
- package/dist/resources/Workers/chunk-SQVTYRZY.js +122 -0
- package/dist/resources/Workers/chunk-SV7DDPAC.js +629 -0
- package/dist/resources/Workers/chunk-TIXXVKUY.js +834 -0
- package/dist/resources/Workers/chunk-TMPVBFJQ.js +289 -0
- package/dist/resources/Workers/chunk-XUTVA4K5.js +684 -0
- package/dist/resources/Workers/chunk-Y4OJ4B23.js +59 -0
- package/dist/resources/Workers/chunk-YBKFS53K.js +77 -0
- package/dist/resources/Workers/chunk-Z2SIPUKB.js +117 -0
- package/dist/resources/Workers/chunk-Z4JUBRHP.js +157 -0
- package/dist/resources/Workers/chunk-ZQRZBHYI.js +138 -0
- package/dist/resources/Workers/combineGeometry.js +67 -0
- package/dist/resources/Workers/createBoxGeometry.js +57 -0
- package/dist/resources/Workers/createBoxOutlineGeometry.js +234 -0
- package/dist/resources/Workers/createCircleGeometry.js +196 -0
- package/dist/resources/Workers/createCircleOutlineGeometry.js +146 -0
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +505 -0
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +224 -0
- package/dist/resources/Workers/createCorridorGeometry.js +1263 -0
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +568 -0
- package/dist/resources/Workers/createCylinderGeometry.js +59 -0
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +230 -0
- package/dist/resources/Workers/createEllipseGeometry.js +70 -0
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +63 -0
- package/dist/resources/Workers/createEllipsoidGeometry.js +58 -0
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +60 -0
- package/dist/resources/Workers/createFrustumGeometry.js +57 -0
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +234 -0
- package/dist/resources/Workers/createGeometry.js +150 -0
- package/dist/resources/Workers/createGroundPolylineGeometry.js +1607 -0
- package/dist/resources/Workers/createPlaneGeometry.js +223 -0
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +123 -0
- package/dist/resources/Workers/createPolygonGeometry.js +1545 -0
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +542 -0
- package/dist/resources/Workers/createPolylineGeometry.js +495 -0
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +380 -0
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +277 -0
- package/dist/resources/Workers/createRectangleGeometry.js +1273 -0
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +478 -0
- package/dist/resources/Workers/createSimplePolylineGeometry.js +399 -0
- package/dist/resources/Workers/createSphereGeometry.js +117 -0
- package/dist/resources/Workers/createSphereOutlineGeometry.js +117 -0
- package/dist/resources/Workers/createTaskProcessorWorker.js +32 -0
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +492 -0
- package/dist/resources/Workers/createVectorTileGeometries.js +386 -0
- package/dist/resources/Workers/createVectorTilePoints.js +112 -0
- package/dist/resources/Workers/createVectorTilePolygons.js +384 -0
- package/dist/resources/Workers/createVectorTilePolylines.js +262 -0
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +568 -0
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2277 -0
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +745 -0
- package/dist/resources/Workers/createWallGeometry.js +489 -0
- package/dist/resources/Workers/createWallOutlineGeometry.js +337 -0
- package/dist/resources/Workers/decodeDraco.js +369 -0
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2650 -0
- package/dist/resources/Workers/decodeI3S.js +835 -0
- package/dist/resources/Workers/transcodeKTX2.js +3425 -0
- package/dist/resources/Workers/transferTypedArrayTest.js +41 -0
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +818 -0
- package/package.json +81 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.113
|
|
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
|
+
Matrix4_default
|
|
28
|
+
} from "./chunk-3PW6ZBN4.js";
|
|
29
|
+
import {
|
|
30
|
+
defaultValue_default
|
|
31
|
+
} from "./chunk-CWJQGBWT.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-5HLGKKG3.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-YBKFS53K.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/GeometryInstance.js
|
|
40
|
+
function GeometryInstance(options) {
|
|
41
|
+
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
42
|
+
if (!defined_default(options.geometry)) {
|
|
43
|
+
throw new DeveloperError_default("options.geometry is required.");
|
|
44
|
+
}
|
|
45
|
+
this.geometry = options.geometry;
|
|
46
|
+
this.modelMatrix = Matrix4_default.clone(
|
|
47
|
+
defaultValue_default(options.modelMatrix, Matrix4_default.IDENTITY)
|
|
48
|
+
);
|
|
49
|
+
this.id = options.id;
|
|
50
|
+
this.pickPrimitive = options.pickPrimitive;
|
|
51
|
+
this.attributes = defaultValue_default(options.attributes, {});
|
|
52
|
+
this.westHemisphereGeometry = void 0;
|
|
53
|
+
this.eastHemisphereGeometry = void 0;
|
|
54
|
+
}
|
|
55
|
+
var GeometryInstance_default = GeometryInstance;
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
GeometryInstance_default
|
|
59
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.113
|
|
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
|
+
var __create = Object.create;
|
|
27
|
+
var __defProp = Object.defineProperty;
|
|
28
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
29
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
30
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
31
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
32
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
33
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
34
|
+
}) : x)(function(x) {
|
|
35
|
+
if (typeof require !== "undefined")
|
|
36
|
+
return require.apply(this, arguments);
|
|
37
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
38
|
+
});
|
|
39
|
+
var __glob = (map) => (path) => {
|
|
40
|
+
var fn = map[path];
|
|
41
|
+
if (fn)
|
|
42
|
+
return fn();
|
|
43
|
+
throw new Error("Module not found in bundle: " + path);
|
|
44
|
+
};
|
|
45
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
46
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
47
|
+
};
|
|
48
|
+
var __copyProps = (to, from, except, desc) => {
|
|
49
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
50
|
+
for (let key of __getOwnPropNames(from))
|
|
51
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
52
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
53
|
+
}
|
|
54
|
+
return to;
|
|
55
|
+
};
|
|
56
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
57
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
58
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
59
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
60
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
61
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
62
|
+
mod
|
|
63
|
+
));
|
|
64
|
+
|
|
65
|
+
// packages/engine/Source/Core/defined.js
|
|
66
|
+
function defined(value) {
|
|
67
|
+
return value !== void 0 && value !== null;
|
|
68
|
+
}
|
|
69
|
+
var defined_default = defined;
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
__require,
|
|
73
|
+
__glob,
|
|
74
|
+
__commonJS,
|
|
75
|
+
__toESM,
|
|
76
|
+
defined_default
|
|
77
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.113
|
|
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
|
+
Cartesian3_default,
|
|
28
|
+
Cartographic_default,
|
|
29
|
+
Ellipsoid_default
|
|
30
|
+
} from "./chunk-LGJUI2CE.js";
|
|
31
|
+
import {
|
|
32
|
+
Math_default
|
|
33
|
+
} from "./chunk-BP467WX3.js";
|
|
34
|
+
import {
|
|
35
|
+
defaultValue_default
|
|
36
|
+
} from "./chunk-CWJQGBWT.js";
|
|
37
|
+
import {
|
|
38
|
+
DeveloperError_default
|
|
39
|
+
} from "./chunk-5HLGKKG3.js";
|
|
40
|
+
import {
|
|
41
|
+
defined_default
|
|
42
|
+
} from "./chunk-YBKFS53K.js";
|
|
43
|
+
|
|
44
|
+
// packages/engine/Source/Core/WebMercatorProjection.js
|
|
45
|
+
function WebMercatorProjection(ellipsoid) {
|
|
46
|
+
this._ellipsoid = defaultValue_default(ellipsoid, Ellipsoid_default.WGS84);
|
|
47
|
+
this._semimajorAxis = this._ellipsoid.maximumRadius;
|
|
48
|
+
this._oneOverSemimajorAxis = 1 / this._semimajorAxis;
|
|
49
|
+
}
|
|
50
|
+
Object.defineProperties(WebMercatorProjection.prototype, {
|
|
51
|
+
/**
|
|
52
|
+
* Gets the {@link Ellipsoid}.
|
|
53
|
+
*
|
|
54
|
+
* @memberof WebMercatorProjection.prototype
|
|
55
|
+
*
|
|
56
|
+
* @type {Ellipsoid}
|
|
57
|
+
* @readonly
|
|
58
|
+
*/
|
|
59
|
+
ellipsoid: {
|
|
60
|
+
get: function() {
|
|
61
|
+
return this._ellipsoid;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
WebMercatorProjection.mercatorAngleToGeodeticLatitude = function(mercatorAngle) {
|
|
66
|
+
return Math_default.PI_OVER_TWO - 2 * Math.atan(Math.exp(-mercatorAngle));
|
|
67
|
+
};
|
|
68
|
+
WebMercatorProjection.geodeticLatitudeToMercatorAngle = function(latitude) {
|
|
69
|
+
if (latitude > WebMercatorProjection.MaximumLatitude) {
|
|
70
|
+
latitude = WebMercatorProjection.MaximumLatitude;
|
|
71
|
+
} else if (latitude < -WebMercatorProjection.MaximumLatitude) {
|
|
72
|
+
latitude = -WebMercatorProjection.MaximumLatitude;
|
|
73
|
+
}
|
|
74
|
+
const sinLatitude = Math.sin(latitude);
|
|
75
|
+
return 0.5 * Math.log((1 + sinLatitude) / (1 - sinLatitude));
|
|
76
|
+
};
|
|
77
|
+
WebMercatorProjection.MaximumLatitude = WebMercatorProjection.mercatorAngleToGeodeticLatitude(
|
|
78
|
+
Math.PI
|
|
79
|
+
);
|
|
80
|
+
WebMercatorProjection.prototype.project = function(cartographic, result) {
|
|
81
|
+
const semimajorAxis = this._semimajorAxis;
|
|
82
|
+
const x = cartographic.longitude * semimajorAxis;
|
|
83
|
+
const y = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
84
|
+
cartographic.latitude
|
|
85
|
+
) * semimajorAxis;
|
|
86
|
+
const z = cartographic.height;
|
|
87
|
+
if (!defined_default(result)) {
|
|
88
|
+
return new Cartesian3_default(x, y, z);
|
|
89
|
+
}
|
|
90
|
+
result.x = x;
|
|
91
|
+
result.y = y;
|
|
92
|
+
result.z = z;
|
|
93
|
+
return result;
|
|
94
|
+
};
|
|
95
|
+
WebMercatorProjection.prototype.unproject = function(cartesian, result) {
|
|
96
|
+
if (!defined_default(cartesian)) {
|
|
97
|
+
throw new DeveloperError_default("cartesian is required");
|
|
98
|
+
}
|
|
99
|
+
const oneOverEarthSemimajorAxis = this._oneOverSemimajorAxis;
|
|
100
|
+
const longitude = cartesian.x * oneOverEarthSemimajorAxis;
|
|
101
|
+
const latitude = WebMercatorProjection.mercatorAngleToGeodeticLatitude(
|
|
102
|
+
cartesian.y * oneOverEarthSemimajorAxis
|
|
103
|
+
);
|
|
104
|
+
const height = cartesian.z;
|
|
105
|
+
if (!defined_default(result)) {
|
|
106
|
+
return new Cartographic_default(longitude, latitude, height);
|
|
107
|
+
}
|
|
108
|
+
result.longitude = longitude;
|
|
109
|
+
result.latitude = latitude;
|
|
110
|
+
result.height = height;
|
|
111
|
+
return result;
|
|
112
|
+
};
|
|
113
|
+
var WebMercatorProjection_default = WebMercatorProjection;
|
|
114
|
+
|
|
115
|
+
export {
|
|
116
|
+
WebMercatorProjection_default
|
|
117
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.113
|
|
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
|
+
Intersect_default
|
|
28
|
+
} from "./chunk-HOT2SNXP.js";
|
|
29
|
+
import {
|
|
30
|
+
Cartesian3_default
|
|
31
|
+
} from "./chunk-LGJUI2CE.js";
|
|
32
|
+
import {
|
|
33
|
+
defaultValue_default
|
|
34
|
+
} from "./chunk-CWJQGBWT.js";
|
|
35
|
+
import {
|
|
36
|
+
Check_default
|
|
37
|
+
} from "./chunk-5HLGKKG3.js";
|
|
38
|
+
import {
|
|
39
|
+
defined_default
|
|
40
|
+
} from "./chunk-YBKFS53K.js";
|
|
41
|
+
|
|
42
|
+
// packages/engine/Source/Core/AxisAlignedBoundingBox.js
|
|
43
|
+
function AxisAlignedBoundingBox(minimum, maximum, center) {
|
|
44
|
+
this.minimum = Cartesian3_default.clone(defaultValue_default(minimum, Cartesian3_default.ZERO));
|
|
45
|
+
this.maximum = Cartesian3_default.clone(defaultValue_default(maximum, Cartesian3_default.ZERO));
|
|
46
|
+
if (!defined_default(center)) {
|
|
47
|
+
center = Cartesian3_default.midpoint(this.minimum, this.maximum, new Cartesian3_default());
|
|
48
|
+
} else {
|
|
49
|
+
center = Cartesian3_default.clone(center);
|
|
50
|
+
}
|
|
51
|
+
this.center = center;
|
|
52
|
+
}
|
|
53
|
+
AxisAlignedBoundingBox.fromCorners = function(minimum, maximum, result) {
|
|
54
|
+
Check_default.defined("minimum", minimum);
|
|
55
|
+
Check_default.defined("maximum", maximum);
|
|
56
|
+
if (!defined_default(result)) {
|
|
57
|
+
result = new AxisAlignedBoundingBox();
|
|
58
|
+
}
|
|
59
|
+
result.minimum = Cartesian3_default.clone(minimum, result.minimum);
|
|
60
|
+
result.maximum = Cartesian3_default.clone(maximum, result.maximum);
|
|
61
|
+
result.center = Cartesian3_default.midpoint(minimum, maximum, result.center);
|
|
62
|
+
return result;
|
|
63
|
+
};
|
|
64
|
+
AxisAlignedBoundingBox.fromPoints = function(positions, result) {
|
|
65
|
+
if (!defined_default(result)) {
|
|
66
|
+
result = new AxisAlignedBoundingBox();
|
|
67
|
+
}
|
|
68
|
+
if (!defined_default(positions) || positions.length === 0) {
|
|
69
|
+
result.minimum = Cartesian3_default.clone(Cartesian3_default.ZERO, result.minimum);
|
|
70
|
+
result.maximum = Cartesian3_default.clone(Cartesian3_default.ZERO, result.maximum);
|
|
71
|
+
result.center = Cartesian3_default.clone(Cartesian3_default.ZERO, result.center);
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
let minimumX = positions[0].x;
|
|
75
|
+
let minimumY = positions[0].y;
|
|
76
|
+
let minimumZ = positions[0].z;
|
|
77
|
+
let maximumX = positions[0].x;
|
|
78
|
+
let maximumY = positions[0].y;
|
|
79
|
+
let maximumZ = positions[0].z;
|
|
80
|
+
const length = positions.length;
|
|
81
|
+
for (let i = 1; i < length; i++) {
|
|
82
|
+
const p = positions[i];
|
|
83
|
+
const x = p.x;
|
|
84
|
+
const y = p.y;
|
|
85
|
+
const z = p.z;
|
|
86
|
+
minimumX = Math.min(x, minimumX);
|
|
87
|
+
maximumX = Math.max(x, maximumX);
|
|
88
|
+
minimumY = Math.min(y, minimumY);
|
|
89
|
+
maximumY = Math.max(y, maximumY);
|
|
90
|
+
minimumZ = Math.min(z, minimumZ);
|
|
91
|
+
maximumZ = Math.max(z, maximumZ);
|
|
92
|
+
}
|
|
93
|
+
const minimum = result.minimum;
|
|
94
|
+
minimum.x = minimumX;
|
|
95
|
+
minimum.y = minimumY;
|
|
96
|
+
minimum.z = minimumZ;
|
|
97
|
+
const maximum = result.maximum;
|
|
98
|
+
maximum.x = maximumX;
|
|
99
|
+
maximum.y = maximumY;
|
|
100
|
+
maximum.z = maximumZ;
|
|
101
|
+
result.center = Cartesian3_default.midpoint(minimum, maximum, result.center);
|
|
102
|
+
return result;
|
|
103
|
+
};
|
|
104
|
+
AxisAlignedBoundingBox.clone = function(box, result) {
|
|
105
|
+
if (!defined_default(box)) {
|
|
106
|
+
return void 0;
|
|
107
|
+
}
|
|
108
|
+
if (!defined_default(result)) {
|
|
109
|
+
return new AxisAlignedBoundingBox(box.minimum, box.maximum, box.center);
|
|
110
|
+
}
|
|
111
|
+
result.minimum = Cartesian3_default.clone(box.minimum, result.minimum);
|
|
112
|
+
result.maximum = Cartesian3_default.clone(box.maximum, result.maximum);
|
|
113
|
+
result.center = Cartesian3_default.clone(box.center, result.center);
|
|
114
|
+
return result;
|
|
115
|
+
};
|
|
116
|
+
AxisAlignedBoundingBox.equals = function(left, right) {
|
|
117
|
+
return left === right || defined_default(left) && defined_default(right) && Cartesian3_default.equals(left.center, right.center) && Cartesian3_default.equals(left.minimum, right.minimum) && Cartesian3_default.equals(left.maximum, right.maximum);
|
|
118
|
+
};
|
|
119
|
+
var intersectScratch = new Cartesian3_default();
|
|
120
|
+
AxisAlignedBoundingBox.intersectPlane = function(box, plane) {
|
|
121
|
+
Check_default.defined("box", box);
|
|
122
|
+
Check_default.defined("plane", plane);
|
|
123
|
+
intersectScratch = Cartesian3_default.subtract(
|
|
124
|
+
box.maximum,
|
|
125
|
+
box.minimum,
|
|
126
|
+
intersectScratch
|
|
127
|
+
);
|
|
128
|
+
const h = Cartesian3_default.multiplyByScalar(
|
|
129
|
+
intersectScratch,
|
|
130
|
+
0.5,
|
|
131
|
+
intersectScratch
|
|
132
|
+
);
|
|
133
|
+
const normal = plane.normal;
|
|
134
|
+
const e = h.x * Math.abs(normal.x) + h.y * Math.abs(normal.y) + h.z * Math.abs(normal.z);
|
|
135
|
+
const s = Cartesian3_default.dot(box.center, normal) + plane.distance;
|
|
136
|
+
if (s - e > 0) {
|
|
137
|
+
return Intersect_default.INSIDE;
|
|
138
|
+
}
|
|
139
|
+
if (s + e < 0) {
|
|
140
|
+
return Intersect_default.OUTSIDE;
|
|
141
|
+
}
|
|
142
|
+
return Intersect_default.INTERSECTING;
|
|
143
|
+
};
|
|
144
|
+
AxisAlignedBoundingBox.prototype.clone = function(result) {
|
|
145
|
+
return AxisAlignedBoundingBox.clone(this, result);
|
|
146
|
+
};
|
|
147
|
+
AxisAlignedBoundingBox.prototype.intersectPlane = function(plane) {
|
|
148
|
+
return AxisAlignedBoundingBox.intersectPlane(this, plane);
|
|
149
|
+
};
|
|
150
|
+
AxisAlignedBoundingBox.prototype.equals = function(right) {
|
|
151
|
+
return AxisAlignedBoundingBox.equals(this, right);
|
|
152
|
+
};
|
|
153
|
+
var AxisAlignedBoundingBox_default = AxisAlignedBoundingBox;
|
|
154
|
+
|
|
155
|
+
export {
|
|
156
|
+
AxisAlignedBoundingBox_default
|
|
157
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.113
|
|
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
|
+
defaultValue_default
|
|
28
|
+
} from "./chunk-CWJQGBWT.js";
|
|
29
|
+
import {
|
|
30
|
+
DeveloperError_default
|
|
31
|
+
} from "./chunk-5HLGKKG3.js";
|
|
32
|
+
import {
|
|
33
|
+
defined_default
|
|
34
|
+
} from "./chunk-YBKFS53K.js";
|
|
35
|
+
|
|
36
|
+
// packages/engine/Source/Core/VertexFormat.js
|
|
37
|
+
function VertexFormat(options) {
|
|
38
|
+
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
39
|
+
this.position = defaultValue_default(options.position, false);
|
|
40
|
+
this.normal = defaultValue_default(options.normal, false);
|
|
41
|
+
this.st = defaultValue_default(options.st, false);
|
|
42
|
+
this.bitangent = defaultValue_default(options.bitangent, false);
|
|
43
|
+
this.tangent = defaultValue_default(options.tangent, false);
|
|
44
|
+
this.color = defaultValue_default(options.color, false);
|
|
45
|
+
}
|
|
46
|
+
VertexFormat.POSITION_ONLY = Object.freeze(
|
|
47
|
+
new VertexFormat({
|
|
48
|
+
position: true
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
VertexFormat.POSITION_AND_NORMAL = Object.freeze(
|
|
52
|
+
new VertexFormat({
|
|
53
|
+
position: true,
|
|
54
|
+
normal: true
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
VertexFormat.POSITION_NORMAL_AND_ST = Object.freeze(
|
|
58
|
+
new VertexFormat({
|
|
59
|
+
position: true,
|
|
60
|
+
normal: true,
|
|
61
|
+
st: true
|
|
62
|
+
})
|
|
63
|
+
);
|
|
64
|
+
VertexFormat.POSITION_AND_ST = Object.freeze(
|
|
65
|
+
new VertexFormat({
|
|
66
|
+
position: true,
|
|
67
|
+
st: true
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
VertexFormat.POSITION_AND_COLOR = Object.freeze(
|
|
71
|
+
new VertexFormat({
|
|
72
|
+
position: true,
|
|
73
|
+
color: true
|
|
74
|
+
})
|
|
75
|
+
);
|
|
76
|
+
VertexFormat.ALL = Object.freeze(
|
|
77
|
+
new VertexFormat({
|
|
78
|
+
position: true,
|
|
79
|
+
normal: true,
|
|
80
|
+
st: true,
|
|
81
|
+
tangent: true,
|
|
82
|
+
bitangent: true
|
|
83
|
+
})
|
|
84
|
+
);
|
|
85
|
+
VertexFormat.DEFAULT = VertexFormat.POSITION_NORMAL_AND_ST;
|
|
86
|
+
VertexFormat.packedLength = 6;
|
|
87
|
+
VertexFormat.pack = function(value, array, startingIndex) {
|
|
88
|
+
if (!defined_default(value)) {
|
|
89
|
+
throw new DeveloperError_default("value is required");
|
|
90
|
+
}
|
|
91
|
+
if (!defined_default(array)) {
|
|
92
|
+
throw new DeveloperError_default("array is required");
|
|
93
|
+
}
|
|
94
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
95
|
+
array[startingIndex++] = value.position ? 1 : 0;
|
|
96
|
+
array[startingIndex++] = value.normal ? 1 : 0;
|
|
97
|
+
array[startingIndex++] = value.st ? 1 : 0;
|
|
98
|
+
array[startingIndex++] = value.tangent ? 1 : 0;
|
|
99
|
+
array[startingIndex++] = value.bitangent ? 1 : 0;
|
|
100
|
+
array[startingIndex] = value.color ? 1 : 0;
|
|
101
|
+
return array;
|
|
102
|
+
};
|
|
103
|
+
VertexFormat.unpack = function(array, startingIndex, result) {
|
|
104
|
+
if (!defined_default(array)) {
|
|
105
|
+
throw new DeveloperError_default("array is required");
|
|
106
|
+
}
|
|
107
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
108
|
+
if (!defined_default(result)) {
|
|
109
|
+
result = new VertexFormat();
|
|
110
|
+
}
|
|
111
|
+
result.position = array[startingIndex++] === 1;
|
|
112
|
+
result.normal = array[startingIndex++] === 1;
|
|
113
|
+
result.st = array[startingIndex++] === 1;
|
|
114
|
+
result.tangent = array[startingIndex++] === 1;
|
|
115
|
+
result.bitangent = array[startingIndex++] === 1;
|
|
116
|
+
result.color = array[startingIndex] === 1;
|
|
117
|
+
return result;
|
|
118
|
+
};
|
|
119
|
+
VertexFormat.clone = function(vertexFormat, result) {
|
|
120
|
+
if (!defined_default(vertexFormat)) {
|
|
121
|
+
return void 0;
|
|
122
|
+
}
|
|
123
|
+
if (!defined_default(result)) {
|
|
124
|
+
result = new VertexFormat();
|
|
125
|
+
}
|
|
126
|
+
result.position = vertexFormat.position;
|
|
127
|
+
result.normal = vertexFormat.normal;
|
|
128
|
+
result.st = vertexFormat.st;
|
|
129
|
+
result.tangent = vertexFormat.tangent;
|
|
130
|
+
result.bitangent = vertexFormat.bitangent;
|
|
131
|
+
result.color = vertexFormat.color;
|
|
132
|
+
return result;
|
|
133
|
+
};
|
|
134
|
+
var VertexFormat_default = VertexFormat;
|
|
135
|
+
|
|
136
|
+
export {
|
|
137
|
+
VertexFormat_default
|
|
138
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.113
|
|
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
|
+
PrimitivePipeline_default
|
|
28
|
+
} from "./chunk-SNN7WOC2.js";
|
|
29
|
+
import {
|
|
30
|
+
createTaskProcessorWorker_default
|
|
31
|
+
} from "./chunk-MW3CJYLX.js";
|
|
32
|
+
import "./chunk-Z2SIPUKB.js";
|
|
33
|
+
import "./chunk-52VSIKEA.js";
|
|
34
|
+
import "./chunk-5SK36PU4.js";
|
|
35
|
+
import "./chunk-JGG36SQV.js";
|
|
36
|
+
import "./chunk-5IRLXUTA.js";
|
|
37
|
+
import "./chunk-LGL4P5KL.js";
|
|
38
|
+
import "./chunk-LX6XV4DK.js";
|
|
39
|
+
import "./chunk-PIXK6KHB.js";
|
|
40
|
+
import "./chunk-R3HUGXBH.js";
|
|
41
|
+
import "./chunk-HOT2SNXP.js";
|
|
42
|
+
import "./chunk-4KP73B43.js";
|
|
43
|
+
import "./chunk-3PW6ZBN4.js";
|
|
44
|
+
import "./chunk-ARPTYYKS.js";
|
|
45
|
+
import "./chunk-LGJUI2CE.js";
|
|
46
|
+
import "./chunk-BP467WX3.js";
|
|
47
|
+
import "./chunk-SV7DDPAC.js";
|
|
48
|
+
import "./chunk-RIDPF7PO.js";
|
|
49
|
+
import "./chunk-CWJQGBWT.js";
|
|
50
|
+
import "./chunk-5HLGKKG3.js";
|
|
51
|
+
import "./chunk-YBKFS53K.js";
|
|
52
|
+
|
|
53
|
+
// packages/engine/Source/Workers/combineGeometry.js
|
|
54
|
+
function combineGeometry(packedParameters, transferableObjects) {
|
|
55
|
+
const parameters = PrimitivePipeline_default.unpackCombineGeometryParameters(
|
|
56
|
+
packedParameters
|
|
57
|
+
);
|
|
58
|
+
const results = PrimitivePipeline_default.combineGeometry(parameters);
|
|
59
|
+
return PrimitivePipeline_default.packCombineGeometryResults(
|
|
60
|
+
results,
|
|
61
|
+
transferableObjects
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
var combineGeometry_default = createTaskProcessorWorker_default(combineGeometry);
|
|
65
|
+
export {
|
|
66
|
+
combineGeometry_default as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.113
|
|
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
|
+
BoxGeometry_default
|
|
28
|
+
} from "./chunk-XUTVA4K5.js";
|
|
29
|
+
import "./chunk-MN34FIF5.js";
|
|
30
|
+
import "./chunk-ZQRZBHYI.js";
|
|
31
|
+
import "./chunk-PIXK6KHB.js";
|
|
32
|
+
import "./chunk-R3HUGXBH.js";
|
|
33
|
+
import "./chunk-HOT2SNXP.js";
|
|
34
|
+
import "./chunk-4KP73B43.js";
|
|
35
|
+
import "./chunk-3PW6ZBN4.js";
|
|
36
|
+
import "./chunk-ARPTYYKS.js";
|
|
37
|
+
import "./chunk-LGJUI2CE.js";
|
|
38
|
+
import "./chunk-BP467WX3.js";
|
|
39
|
+
import "./chunk-SV7DDPAC.js";
|
|
40
|
+
import "./chunk-RIDPF7PO.js";
|
|
41
|
+
import "./chunk-CWJQGBWT.js";
|
|
42
|
+
import "./chunk-5HLGKKG3.js";
|
|
43
|
+
import {
|
|
44
|
+
defined_default
|
|
45
|
+
} from "./chunk-YBKFS53K.js";
|
|
46
|
+
|
|
47
|
+
// packages/engine/Source/Workers/createBoxGeometry.js
|
|
48
|
+
function createBoxGeometry(boxGeometry, offset) {
|
|
49
|
+
if (defined_default(offset)) {
|
|
50
|
+
boxGeometry = BoxGeometry_default.unpack(boxGeometry, offset);
|
|
51
|
+
}
|
|
52
|
+
return BoxGeometry_default.createGeometry(boxGeometry);
|
|
53
|
+
}
|
|
54
|
+
var createBoxGeometry_default = createBoxGeometry;
|
|
55
|
+
export {
|
|
56
|
+
createBoxGeometry_default as default
|
|
57
|
+
};
|