@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,218 @@
|
|
|
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
|
+
GeographicProjection_default,
|
|
28
|
+
Intersect_default
|
|
29
|
+
} from "./chunk-HOT2SNXP.js";
|
|
30
|
+
import {
|
|
31
|
+
Rectangle_default
|
|
32
|
+
} from "./chunk-3PW6ZBN4.js";
|
|
33
|
+
import {
|
|
34
|
+
Cartesian2_default,
|
|
35
|
+
Cartographic_default
|
|
36
|
+
} from "./chunk-LGJUI2CE.js";
|
|
37
|
+
import {
|
|
38
|
+
defaultValue_default
|
|
39
|
+
} from "./chunk-CWJQGBWT.js";
|
|
40
|
+
import {
|
|
41
|
+
Check_default
|
|
42
|
+
} from "./chunk-5HLGKKG3.js";
|
|
43
|
+
import {
|
|
44
|
+
defined_default
|
|
45
|
+
} from "./chunk-YBKFS53K.js";
|
|
46
|
+
|
|
47
|
+
// packages/engine/Source/Core/BoundingRectangle.js
|
|
48
|
+
function BoundingRectangle(x, y, width, height) {
|
|
49
|
+
this.x = defaultValue_default(x, 0);
|
|
50
|
+
this.y = defaultValue_default(y, 0);
|
|
51
|
+
this.width = defaultValue_default(width, 0);
|
|
52
|
+
this.height = defaultValue_default(height, 0);
|
|
53
|
+
}
|
|
54
|
+
BoundingRectangle.packedLength = 4;
|
|
55
|
+
BoundingRectangle.pack = function(value, array, startingIndex) {
|
|
56
|
+
Check_default.typeOf.object("value", value);
|
|
57
|
+
Check_default.defined("array", array);
|
|
58
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
59
|
+
array[startingIndex++] = value.x;
|
|
60
|
+
array[startingIndex++] = value.y;
|
|
61
|
+
array[startingIndex++] = value.width;
|
|
62
|
+
array[startingIndex] = value.height;
|
|
63
|
+
return array;
|
|
64
|
+
};
|
|
65
|
+
BoundingRectangle.unpack = function(array, startingIndex, result) {
|
|
66
|
+
Check_default.defined("array", array);
|
|
67
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
68
|
+
if (!defined_default(result)) {
|
|
69
|
+
result = new BoundingRectangle();
|
|
70
|
+
}
|
|
71
|
+
result.x = array[startingIndex++];
|
|
72
|
+
result.y = array[startingIndex++];
|
|
73
|
+
result.width = array[startingIndex++];
|
|
74
|
+
result.height = array[startingIndex];
|
|
75
|
+
return result;
|
|
76
|
+
};
|
|
77
|
+
BoundingRectangle.fromPoints = function(positions, result) {
|
|
78
|
+
if (!defined_default(result)) {
|
|
79
|
+
result = new BoundingRectangle();
|
|
80
|
+
}
|
|
81
|
+
if (!defined_default(positions) || positions.length === 0) {
|
|
82
|
+
result.x = 0;
|
|
83
|
+
result.y = 0;
|
|
84
|
+
result.width = 0;
|
|
85
|
+
result.height = 0;
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
const length = positions.length;
|
|
89
|
+
let minimumX = positions[0].x;
|
|
90
|
+
let minimumY = positions[0].y;
|
|
91
|
+
let maximumX = positions[0].x;
|
|
92
|
+
let maximumY = positions[0].y;
|
|
93
|
+
for (let i = 1; i < length; i++) {
|
|
94
|
+
const p = positions[i];
|
|
95
|
+
const x = p.x;
|
|
96
|
+
const y = p.y;
|
|
97
|
+
minimumX = Math.min(x, minimumX);
|
|
98
|
+
maximumX = Math.max(x, maximumX);
|
|
99
|
+
minimumY = Math.min(y, minimumY);
|
|
100
|
+
maximumY = Math.max(y, maximumY);
|
|
101
|
+
}
|
|
102
|
+
result.x = minimumX;
|
|
103
|
+
result.y = minimumY;
|
|
104
|
+
result.width = maximumX - minimumX;
|
|
105
|
+
result.height = maximumY - minimumY;
|
|
106
|
+
return result;
|
|
107
|
+
};
|
|
108
|
+
var defaultProjection = new GeographicProjection_default();
|
|
109
|
+
var fromRectangleLowerLeft = new Cartographic_default();
|
|
110
|
+
var fromRectangleUpperRight = new Cartographic_default();
|
|
111
|
+
BoundingRectangle.fromRectangle = function(rectangle, projection, result) {
|
|
112
|
+
if (!defined_default(result)) {
|
|
113
|
+
result = new BoundingRectangle();
|
|
114
|
+
}
|
|
115
|
+
if (!defined_default(rectangle)) {
|
|
116
|
+
result.x = 0;
|
|
117
|
+
result.y = 0;
|
|
118
|
+
result.width = 0;
|
|
119
|
+
result.height = 0;
|
|
120
|
+
return result;
|
|
121
|
+
}
|
|
122
|
+
projection = defaultValue_default(projection, defaultProjection);
|
|
123
|
+
const lowerLeft = projection.project(
|
|
124
|
+
Rectangle_default.southwest(rectangle, fromRectangleLowerLeft)
|
|
125
|
+
);
|
|
126
|
+
const upperRight = projection.project(
|
|
127
|
+
Rectangle_default.northeast(rectangle, fromRectangleUpperRight)
|
|
128
|
+
);
|
|
129
|
+
Cartesian2_default.subtract(upperRight, lowerLeft, upperRight);
|
|
130
|
+
result.x = lowerLeft.x;
|
|
131
|
+
result.y = lowerLeft.y;
|
|
132
|
+
result.width = upperRight.x;
|
|
133
|
+
result.height = upperRight.y;
|
|
134
|
+
return result;
|
|
135
|
+
};
|
|
136
|
+
BoundingRectangle.clone = function(rectangle, result) {
|
|
137
|
+
if (!defined_default(rectangle)) {
|
|
138
|
+
return void 0;
|
|
139
|
+
}
|
|
140
|
+
if (!defined_default(result)) {
|
|
141
|
+
return new BoundingRectangle(
|
|
142
|
+
rectangle.x,
|
|
143
|
+
rectangle.y,
|
|
144
|
+
rectangle.width,
|
|
145
|
+
rectangle.height
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
result.x = rectangle.x;
|
|
149
|
+
result.y = rectangle.y;
|
|
150
|
+
result.width = rectangle.width;
|
|
151
|
+
result.height = rectangle.height;
|
|
152
|
+
return result;
|
|
153
|
+
};
|
|
154
|
+
BoundingRectangle.union = function(left, right, result) {
|
|
155
|
+
Check_default.typeOf.object("left", left);
|
|
156
|
+
Check_default.typeOf.object("right", right);
|
|
157
|
+
if (!defined_default(result)) {
|
|
158
|
+
result = new BoundingRectangle();
|
|
159
|
+
}
|
|
160
|
+
const lowerLeftX = Math.min(left.x, right.x);
|
|
161
|
+
const lowerLeftY = Math.min(left.y, right.y);
|
|
162
|
+
const upperRightX = Math.max(left.x + left.width, right.x + right.width);
|
|
163
|
+
const upperRightY = Math.max(left.y + left.height, right.y + right.height);
|
|
164
|
+
result.x = lowerLeftX;
|
|
165
|
+
result.y = lowerLeftY;
|
|
166
|
+
result.width = upperRightX - lowerLeftX;
|
|
167
|
+
result.height = upperRightY - lowerLeftY;
|
|
168
|
+
return result;
|
|
169
|
+
};
|
|
170
|
+
BoundingRectangle.expand = function(rectangle, point, result) {
|
|
171
|
+
Check_default.typeOf.object("rectangle", rectangle);
|
|
172
|
+
Check_default.typeOf.object("point", point);
|
|
173
|
+
result = BoundingRectangle.clone(rectangle, result);
|
|
174
|
+
const width = point.x - result.x;
|
|
175
|
+
const height = point.y - result.y;
|
|
176
|
+
if (width > result.width) {
|
|
177
|
+
result.width = width;
|
|
178
|
+
} else if (width < 0) {
|
|
179
|
+
result.width -= width;
|
|
180
|
+
result.x = point.x;
|
|
181
|
+
}
|
|
182
|
+
if (height > result.height) {
|
|
183
|
+
result.height = height;
|
|
184
|
+
} else if (height < 0) {
|
|
185
|
+
result.height -= height;
|
|
186
|
+
result.y = point.y;
|
|
187
|
+
}
|
|
188
|
+
return result;
|
|
189
|
+
};
|
|
190
|
+
BoundingRectangle.intersect = function(left, right) {
|
|
191
|
+
Check_default.typeOf.object("left", left);
|
|
192
|
+
Check_default.typeOf.object("right", right);
|
|
193
|
+
const leftX = left.x;
|
|
194
|
+
const leftY = left.y;
|
|
195
|
+
const rightX = right.x;
|
|
196
|
+
const rightY = right.y;
|
|
197
|
+
if (!(leftX > rightX + right.width || leftX + left.width < rightX || leftY + left.height < rightY || leftY > rightY + right.height)) {
|
|
198
|
+
return Intersect_default.INTERSECTING;
|
|
199
|
+
}
|
|
200
|
+
return Intersect_default.OUTSIDE;
|
|
201
|
+
};
|
|
202
|
+
BoundingRectangle.equals = function(left, right) {
|
|
203
|
+
return left === right || defined_default(left) && defined_default(right) && left.x === right.x && left.y === right.y && left.width === right.width && left.height === right.height;
|
|
204
|
+
};
|
|
205
|
+
BoundingRectangle.prototype.clone = function(result) {
|
|
206
|
+
return BoundingRectangle.clone(this, result);
|
|
207
|
+
};
|
|
208
|
+
BoundingRectangle.prototype.intersect = function(right) {
|
|
209
|
+
return BoundingRectangle.intersect(this, right);
|
|
210
|
+
};
|
|
211
|
+
BoundingRectangle.prototype.equals = function(right) {
|
|
212
|
+
return BoundingRectangle.equals(this, right);
|
|
213
|
+
};
|
|
214
|
+
var BoundingRectangle_default = BoundingRectangle;
|
|
215
|
+
|
|
216
|
+
export {
|
|
217
|
+
BoundingRectangle_default
|
|
218
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
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
|
+
PolylinePipeline_default
|
|
28
|
+
} from "./chunk-H5DUXHCV.js";
|
|
29
|
+
import {
|
|
30
|
+
arrayRemoveDuplicates_default
|
|
31
|
+
} from "./chunk-DMCSY5BU.js";
|
|
32
|
+
import {
|
|
33
|
+
Cartesian3_default,
|
|
34
|
+
Cartographic_default
|
|
35
|
+
} from "./chunk-LGJUI2CE.js";
|
|
36
|
+
import {
|
|
37
|
+
Math_default
|
|
38
|
+
} from "./chunk-BP467WX3.js";
|
|
39
|
+
import {
|
|
40
|
+
defined_default
|
|
41
|
+
} from "./chunk-YBKFS53K.js";
|
|
42
|
+
|
|
43
|
+
// packages/engine/Source/Core/WallGeometryLibrary.js
|
|
44
|
+
var WallGeometryLibrary = {};
|
|
45
|
+
function latLonEquals(c0, c1) {
|
|
46
|
+
return Math_default.equalsEpsilon(c0.latitude, c1.latitude, Math_default.EPSILON10) && Math_default.equalsEpsilon(c0.longitude, c1.longitude, Math_default.EPSILON10);
|
|
47
|
+
}
|
|
48
|
+
var scratchCartographic1 = new Cartographic_default();
|
|
49
|
+
var scratchCartographic2 = new Cartographic_default();
|
|
50
|
+
function removeDuplicates(ellipsoid, positions, topHeights, bottomHeights) {
|
|
51
|
+
positions = arrayRemoveDuplicates_default(positions, Cartesian3_default.equalsEpsilon);
|
|
52
|
+
const length = positions.length;
|
|
53
|
+
if (length < 2) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const hasBottomHeights = defined_default(bottomHeights);
|
|
57
|
+
const hasTopHeights = defined_default(topHeights);
|
|
58
|
+
const cleanedPositions = new Array(length);
|
|
59
|
+
const cleanedTopHeights = new Array(length);
|
|
60
|
+
const cleanedBottomHeights = new Array(length);
|
|
61
|
+
const v0 = positions[0];
|
|
62
|
+
cleanedPositions[0] = v0;
|
|
63
|
+
const c0 = ellipsoid.cartesianToCartographic(v0, scratchCartographic1);
|
|
64
|
+
if (hasTopHeights) {
|
|
65
|
+
c0.height = topHeights[0];
|
|
66
|
+
}
|
|
67
|
+
cleanedTopHeights[0] = c0.height;
|
|
68
|
+
if (hasBottomHeights) {
|
|
69
|
+
cleanedBottomHeights[0] = bottomHeights[0];
|
|
70
|
+
} else {
|
|
71
|
+
cleanedBottomHeights[0] = 0;
|
|
72
|
+
}
|
|
73
|
+
const startTopHeight = cleanedTopHeights[0];
|
|
74
|
+
const startBottomHeight = cleanedBottomHeights[0];
|
|
75
|
+
let hasAllSameHeights = startTopHeight === startBottomHeight;
|
|
76
|
+
let index = 1;
|
|
77
|
+
for (let i = 1; i < length; ++i) {
|
|
78
|
+
const v1 = positions[i];
|
|
79
|
+
const c1 = ellipsoid.cartesianToCartographic(v1, scratchCartographic2);
|
|
80
|
+
if (hasTopHeights) {
|
|
81
|
+
c1.height = topHeights[i];
|
|
82
|
+
}
|
|
83
|
+
hasAllSameHeights = hasAllSameHeights && c1.height === 0;
|
|
84
|
+
if (!latLonEquals(c0, c1)) {
|
|
85
|
+
cleanedPositions[index] = v1;
|
|
86
|
+
cleanedTopHeights[index] = c1.height;
|
|
87
|
+
if (hasBottomHeights) {
|
|
88
|
+
cleanedBottomHeights[index] = bottomHeights[i];
|
|
89
|
+
} else {
|
|
90
|
+
cleanedBottomHeights[index] = 0;
|
|
91
|
+
}
|
|
92
|
+
hasAllSameHeights = hasAllSameHeights && cleanedTopHeights[index] === cleanedBottomHeights[index];
|
|
93
|
+
Cartographic_default.clone(c1, c0);
|
|
94
|
+
++index;
|
|
95
|
+
} else if (c0.height < c1.height) {
|
|
96
|
+
cleanedTopHeights[index - 1] = c1.height;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (hasAllSameHeights || index < 2) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
cleanedPositions.length = index;
|
|
103
|
+
cleanedTopHeights.length = index;
|
|
104
|
+
cleanedBottomHeights.length = index;
|
|
105
|
+
return {
|
|
106
|
+
positions: cleanedPositions,
|
|
107
|
+
topHeights: cleanedTopHeights,
|
|
108
|
+
bottomHeights: cleanedBottomHeights
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
var positionsArrayScratch = new Array(2);
|
|
112
|
+
var heightsArrayScratch = new Array(2);
|
|
113
|
+
var generateArcOptionsScratch = {
|
|
114
|
+
positions: void 0,
|
|
115
|
+
height: void 0,
|
|
116
|
+
granularity: void 0,
|
|
117
|
+
ellipsoid: void 0
|
|
118
|
+
};
|
|
119
|
+
WallGeometryLibrary.computePositions = function(ellipsoid, wallPositions, maximumHeights, minimumHeights, granularity, duplicateCorners) {
|
|
120
|
+
const o = removeDuplicates(
|
|
121
|
+
ellipsoid,
|
|
122
|
+
wallPositions,
|
|
123
|
+
maximumHeights,
|
|
124
|
+
minimumHeights
|
|
125
|
+
);
|
|
126
|
+
if (!defined_default(o)) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
wallPositions = o.positions;
|
|
130
|
+
maximumHeights = o.topHeights;
|
|
131
|
+
minimumHeights = o.bottomHeights;
|
|
132
|
+
const length = wallPositions.length;
|
|
133
|
+
const numCorners = length - 2;
|
|
134
|
+
let topPositions;
|
|
135
|
+
let bottomPositions;
|
|
136
|
+
const minDistance = Math_default.chordLength(
|
|
137
|
+
granularity,
|
|
138
|
+
ellipsoid.maximumRadius
|
|
139
|
+
);
|
|
140
|
+
const generateArcOptions = generateArcOptionsScratch;
|
|
141
|
+
generateArcOptions.minDistance = minDistance;
|
|
142
|
+
generateArcOptions.ellipsoid = ellipsoid;
|
|
143
|
+
if (duplicateCorners) {
|
|
144
|
+
let count = 0;
|
|
145
|
+
let i;
|
|
146
|
+
for (i = 0; i < length - 1; i++) {
|
|
147
|
+
count += PolylinePipeline_default.numberOfPoints(
|
|
148
|
+
wallPositions[i],
|
|
149
|
+
wallPositions[i + 1],
|
|
150
|
+
minDistance
|
|
151
|
+
) + 1;
|
|
152
|
+
}
|
|
153
|
+
topPositions = new Float64Array(count * 3);
|
|
154
|
+
bottomPositions = new Float64Array(count * 3);
|
|
155
|
+
const generateArcPositions = positionsArrayScratch;
|
|
156
|
+
const generateArcHeights = heightsArrayScratch;
|
|
157
|
+
generateArcOptions.positions = generateArcPositions;
|
|
158
|
+
generateArcOptions.height = generateArcHeights;
|
|
159
|
+
let offset = 0;
|
|
160
|
+
for (i = 0; i < length - 1; i++) {
|
|
161
|
+
generateArcPositions[0] = wallPositions[i];
|
|
162
|
+
generateArcPositions[1] = wallPositions[i + 1];
|
|
163
|
+
generateArcHeights[0] = maximumHeights[i];
|
|
164
|
+
generateArcHeights[1] = maximumHeights[i + 1];
|
|
165
|
+
const pos = PolylinePipeline_default.generateArc(generateArcOptions);
|
|
166
|
+
topPositions.set(pos, offset);
|
|
167
|
+
generateArcHeights[0] = minimumHeights[i];
|
|
168
|
+
generateArcHeights[1] = minimumHeights[i + 1];
|
|
169
|
+
bottomPositions.set(
|
|
170
|
+
PolylinePipeline_default.generateArc(generateArcOptions),
|
|
171
|
+
offset
|
|
172
|
+
);
|
|
173
|
+
offset += pos.length;
|
|
174
|
+
}
|
|
175
|
+
} else {
|
|
176
|
+
generateArcOptions.positions = wallPositions;
|
|
177
|
+
generateArcOptions.height = maximumHeights;
|
|
178
|
+
topPositions = new Float64Array(
|
|
179
|
+
PolylinePipeline_default.generateArc(generateArcOptions)
|
|
180
|
+
);
|
|
181
|
+
generateArcOptions.height = minimumHeights;
|
|
182
|
+
bottomPositions = new Float64Array(
|
|
183
|
+
PolylinePipeline_default.generateArc(generateArcOptions)
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
bottomPositions,
|
|
188
|
+
topPositions,
|
|
189
|
+
numCorners
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
var WallGeometryLibrary_default = WallGeometryLibrary;
|
|
193
|
+
|
|
194
|
+
export {
|
|
195
|
+
WallGeometryLibrary_default
|
|
196
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
} from "./chunk-LGJUI2CE.js";
|
|
29
|
+
import {
|
|
30
|
+
Check_default
|
|
31
|
+
} from "./chunk-5HLGKKG3.js";
|
|
32
|
+
import {
|
|
33
|
+
defined_default
|
|
34
|
+
} from "./chunk-YBKFS53K.js";
|
|
35
|
+
|
|
36
|
+
// packages/engine/Source/Core/EncodedCartesian3.js
|
|
37
|
+
function EncodedCartesian3() {
|
|
38
|
+
this.high = Cartesian3_default.clone(Cartesian3_default.ZERO);
|
|
39
|
+
this.low = Cartesian3_default.clone(Cartesian3_default.ZERO);
|
|
40
|
+
}
|
|
41
|
+
EncodedCartesian3.encode = function(value, result) {
|
|
42
|
+
Check_default.typeOf.number("value", value);
|
|
43
|
+
if (!defined_default(result)) {
|
|
44
|
+
result = {
|
|
45
|
+
high: 0,
|
|
46
|
+
low: 0
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
let doubleHigh;
|
|
50
|
+
if (value >= 0) {
|
|
51
|
+
doubleHigh = Math.floor(value / 65536) * 65536;
|
|
52
|
+
result.high = doubleHigh;
|
|
53
|
+
result.low = value - doubleHigh;
|
|
54
|
+
} else {
|
|
55
|
+
doubleHigh = Math.floor(-value / 65536) * 65536;
|
|
56
|
+
result.high = -doubleHigh;
|
|
57
|
+
result.low = value + doubleHigh;
|
|
58
|
+
}
|
|
59
|
+
return result;
|
|
60
|
+
};
|
|
61
|
+
var scratchEncode = {
|
|
62
|
+
high: 0,
|
|
63
|
+
low: 0
|
|
64
|
+
};
|
|
65
|
+
EncodedCartesian3.fromCartesian = function(cartesian, result) {
|
|
66
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
|
67
|
+
if (!defined_default(result)) {
|
|
68
|
+
result = new EncodedCartesian3();
|
|
69
|
+
}
|
|
70
|
+
const high = result.high;
|
|
71
|
+
const low = result.low;
|
|
72
|
+
EncodedCartesian3.encode(cartesian.x, scratchEncode);
|
|
73
|
+
high.x = scratchEncode.high;
|
|
74
|
+
low.x = scratchEncode.low;
|
|
75
|
+
EncodedCartesian3.encode(cartesian.y, scratchEncode);
|
|
76
|
+
high.y = scratchEncode.high;
|
|
77
|
+
low.y = scratchEncode.low;
|
|
78
|
+
EncodedCartesian3.encode(cartesian.z, scratchEncode);
|
|
79
|
+
high.z = scratchEncode.high;
|
|
80
|
+
low.z = scratchEncode.low;
|
|
81
|
+
return result;
|
|
82
|
+
};
|
|
83
|
+
var encodedP = new EncodedCartesian3();
|
|
84
|
+
EncodedCartesian3.writeElements = function(cartesian, cartesianArray, index) {
|
|
85
|
+
Check_default.defined("cartesianArray", cartesianArray);
|
|
86
|
+
Check_default.typeOf.number("index", index);
|
|
87
|
+
Check_default.typeOf.number.greaterThanOrEquals("index", index, 0);
|
|
88
|
+
EncodedCartesian3.fromCartesian(cartesian, encodedP);
|
|
89
|
+
const high = encodedP.high;
|
|
90
|
+
const low = encodedP.low;
|
|
91
|
+
cartesianArray[index] = high.x;
|
|
92
|
+
cartesianArray[index + 1] = high.y;
|
|
93
|
+
cartesianArray[index + 2] = high.z;
|
|
94
|
+
cartesianArray[index + 3] = low.x;
|
|
95
|
+
cartesianArray[index + 4] = low.y;
|
|
96
|
+
cartesianArray[index + 5] = low.z;
|
|
97
|
+
};
|
|
98
|
+
var EncodedCartesian3_default = EncodedCartesian3;
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
EncodedCartesian3_default
|
|
102
|
+
};
|