@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,568 @@
|
|
|
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
|
+
CorridorGeometryLibrary_default
|
|
28
|
+
} from "./chunk-FWGNCYP6.js";
|
|
29
|
+
import {
|
|
30
|
+
CornerType_default
|
|
31
|
+
} from "./chunk-QTZQZY2C.js";
|
|
32
|
+
import "./chunk-ATB2I7OS.js";
|
|
33
|
+
import "./chunk-H5DUXHCV.js";
|
|
34
|
+
import "./chunk-GF5TNNKP.js";
|
|
35
|
+
import {
|
|
36
|
+
GeometryOffsetAttribute_default
|
|
37
|
+
} from "./chunk-MN34FIF5.js";
|
|
38
|
+
import "./chunk-TMPVBFJQ.js";
|
|
39
|
+
import "./chunk-Z4JUBRHP.js";
|
|
40
|
+
import {
|
|
41
|
+
PolygonPipeline_default
|
|
42
|
+
} from "./chunk-BUZDZBUH.js";
|
|
43
|
+
import {
|
|
44
|
+
arrayRemoveDuplicates_default
|
|
45
|
+
} from "./chunk-DMCSY5BU.js";
|
|
46
|
+
import "./chunk-R4OZKBXH.js";
|
|
47
|
+
import "./chunk-5IRLXUTA.js";
|
|
48
|
+
import "./chunk-LGL4P5KL.js";
|
|
49
|
+
import {
|
|
50
|
+
IndexDatatype_default
|
|
51
|
+
} from "./chunk-LX6XV4DK.js";
|
|
52
|
+
import {
|
|
53
|
+
GeometryAttributes_default
|
|
54
|
+
} from "./chunk-PIXK6KHB.js";
|
|
55
|
+
import {
|
|
56
|
+
GeometryAttribute_default,
|
|
57
|
+
Geometry_default,
|
|
58
|
+
PrimitiveType_default
|
|
59
|
+
} from "./chunk-R3HUGXBH.js";
|
|
60
|
+
import {
|
|
61
|
+
BoundingSphere_default
|
|
62
|
+
} from "./chunk-HOT2SNXP.js";
|
|
63
|
+
import "./chunk-4KP73B43.js";
|
|
64
|
+
import "./chunk-3PW6ZBN4.js";
|
|
65
|
+
import {
|
|
66
|
+
ComponentDatatype_default
|
|
67
|
+
} from "./chunk-ARPTYYKS.js";
|
|
68
|
+
import {
|
|
69
|
+
Cartesian3_default,
|
|
70
|
+
Ellipsoid_default
|
|
71
|
+
} from "./chunk-LGJUI2CE.js";
|
|
72
|
+
import {
|
|
73
|
+
Math_default
|
|
74
|
+
} from "./chunk-BP467WX3.js";
|
|
75
|
+
import "./chunk-SV7DDPAC.js";
|
|
76
|
+
import "./chunk-RIDPF7PO.js";
|
|
77
|
+
import {
|
|
78
|
+
defaultValue_default
|
|
79
|
+
} from "./chunk-CWJQGBWT.js";
|
|
80
|
+
import {
|
|
81
|
+
Check_default
|
|
82
|
+
} from "./chunk-5HLGKKG3.js";
|
|
83
|
+
import {
|
|
84
|
+
defined_default
|
|
85
|
+
} from "./chunk-YBKFS53K.js";
|
|
86
|
+
|
|
87
|
+
// packages/engine/Source/Core/CorridorOutlineGeometry.js
|
|
88
|
+
var cartesian1 = new Cartesian3_default();
|
|
89
|
+
var cartesian2 = new Cartesian3_default();
|
|
90
|
+
var cartesian3 = new Cartesian3_default();
|
|
91
|
+
function scaleToSurface(positions, ellipsoid) {
|
|
92
|
+
for (let i = 0; i < positions.length; i++) {
|
|
93
|
+
positions[i] = ellipsoid.scaleToGeodeticSurface(positions[i], positions[i]);
|
|
94
|
+
}
|
|
95
|
+
return positions;
|
|
96
|
+
}
|
|
97
|
+
function combine(computedPositions, cornerType) {
|
|
98
|
+
const wallIndices = [];
|
|
99
|
+
const positions = computedPositions.positions;
|
|
100
|
+
const corners = computedPositions.corners;
|
|
101
|
+
const endPositions = computedPositions.endPositions;
|
|
102
|
+
const attributes = new GeometryAttributes_default();
|
|
103
|
+
let corner;
|
|
104
|
+
let leftCount = 0;
|
|
105
|
+
let rightCount = 0;
|
|
106
|
+
let i;
|
|
107
|
+
let indicesLength = 0;
|
|
108
|
+
let length;
|
|
109
|
+
for (i = 0; i < positions.length; i += 2) {
|
|
110
|
+
length = positions[i].length - 3;
|
|
111
|
+
leftCount += length;
|
|
112
|
+
indicesLength += length / 3 * 4;
|
|
113
|
+
rightCount += positions[i + 1].length - 3;
|
|
114
|
+
}
|
|
115
|
+
leftCount += 3;
|
|
116
|
+
rightCount += 3;
|
|
117
|
+
for (i = 0; i < corners.length; i++) {
|
|
118
|
+
corner = corners[i];
|
|
119
|
+
const leftSide = corners[i].leftPositions;
|
|
120
|
+
if (defined_default(leftSide)) {
|
|
121
|
+
length = leftSide.length;
|
|
122
|
+
leftCount += length;
|
|
123
|
+
indicesLength += length / 3 * 2;
|
|
124
|
+
} else {
|
|
125
|
+
length = corners[i].rightPositions.length;
|
|
126
|
+
rightCount += length;
|
|
127
|
+
indicesLength += length / 3 * 2;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const addEndPositions = defined_default(endPositions);
|
|
131
|
+
let endPositionLength;
|
|
132
|
+
if (addEndPositions) {
|
|
133
|
+
endPositionLength = endPositions[0].length - 3;
|
|
134
|
+
leftCount += endPositionLength;
|
|
135
|
+
rightCount += endPositionLength;
|
|
136
|
+
endPositionLength /= 3;
|
|
137
|
+
indicesLength += endPositionLength * 4;
|
|
138
|
+
}
|
|
139
|
+
const size = leftCount + rightCount;
|
|
140
|
+
const finalPositions = new Float64Array(size);
|
|
141
|
+
let front = 0;
|
|
142
|
+
let back = size - 1;
|
|
143
|
+
let UL, LL, UR, LR;
|
|
144
|
+
let rightPos, leftPos;
|
|
145
|
+
const halfLength = endPositionLength / 2;
|
|
146
|
+
const indices = IndexDatatype_default.createTypedArray(size / 3, indicesLength + 4);
|
|
147
|
+
let index = 0;
|
|
148
|
+
indices[index++] = front / 3;
|
|
149
|
+
indices[index++] = (back - 2) / 3;
|
|
150
|
+
if (addEndPositions) {
|
|
151
|
+
wallIndices.push(front / 3);
|
|
152
|
+
leftPos = cartesian1;
|
|
153
|
+
rightPos = cartesian2;
|
|
154
|
+
const firstEndPositions = endPositions[0];
|
|
155
|
+
for (i = 0; i < halfLength; i++) {
|
|
156
|
+
leftPos = Cartesian3_default.fromArray(
|
|
157
|
+
firstEndPositions,
|
|
158
|
+
(halfLength - 1 - i) * 3,
|
|
159
|
+
leftPos
|
|
160
|
+
);
|
|
161
|
+
rightPos = Cartesian3_default.fromArray(
|
|
162
|
+
firstEndPositions,
|
|
163
|
+
(halfLength + i) * 3,
|
|
164
|
+
rightPos
|
|
165
|
+
);
|
|
166
|
+
CorridorGeometryLibrary_default.addAttribute(finalPositions, rightPos, front);
|
|
167
|
+
CorridorGeometryLibrary_default.addAttribute(
|
|
168
|
+
finalPositions,
|
|
169
|
+
leftPos,
|
|
170
|
+
void 0,
|
|
171
|
+
back
|
|
172
|
+
);
|
|
173
|
+
LL = front / 3;
|
|
174
|
+
LR = LL + 1;
|
|
175
|
+
UL = (back - 2) / 3;
|
|
176
|
+
UR = UL - 1;
|
|
177
|
+
indices[index++] = UL;
|
|
178
|
+
indices[index++] = UR;
|
|
179
|
+
indices[index++] = LL;
|
|
180
|
+
indices[index++] = LR;
|
|
181
|
+
front += 3;
|
|
182
|
+
back -= 3;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
let posIndex = 0;
|
|
186
|
+
let rightEdge = positions[posIndex++];
|
|
187
|
+
let leftEdge = positions[posIndex++];
|
|
188
|
+
finalPositions.set(rightEdge, front);
|
|
189
|
+
finalPositions.set(leftEdge, back - leftEdge.length + 1);
|
|
190
|
+
length = leftEdge.length - 3;
|
|
191
|
+
wallIndices.push(front / 3, (back - 2) / 3);
|
|
192
|
+
for (i = 0; i < length; i += 3) {
|
|
193
|
+
LL = front / 3;
|
|
194
|
+
LR = LL + 1;
|
|
195
|
+
UL = (back - 2) / 3;
|
|
196
|
+
UR = UL - 1;
|
|
197
|
+
indices[index++] = UL;
|
|
198
|
+
indices[index++] = UR;
|
|
199
|
+
indices[index++] = LL;
|
|
200
|
+
indices[index++] = LR;
|
|
201
|
+
front += 3;
|
|
202
|
+
back -= 3;
|
|
203
|
+
}
|
|
204
|
+
for (i = 0; i < corners.length; i++) {
|
|
205
|
+
let j;
|
|
206
|
+
corner = corners[i];
|
|
207
|
+
const l = corner.leftPositions;
|
|
208
|
+
const r = corner.rightPositions;
|
|
209
|
+
let start;
|
|
210
|
+
let outsidePoint = cartesian3;
|
|
211
|
+
if (defined_default(l)) {
|
|
212
|
+
back -= 3;
|
|
213
|
+
start = UR;
|
|
214
|
+
wallIndices.push(LR);
|
|
215
|
+
for (j = 0; j < l.length / 3; j++) {
|
|
216
|
+
outsidePoint = Cartesian3_default.fromArray(l, j * 3, outsidePoint);
|
|
217
|
+
indices[index++] = start - j - 1;
|
|
218
|
+
indices[index++] = start - j;
|
|
219
|
+
CorridorGeometryLibrary_default.addAttribute(
|
|
220
|
+
finalPositions,
|
|
221
|
+
outsidePoint,
|
|
222
|
+
void 0,
|
|
223
|
+
back
|
|
224
|
+
);
|
|
225
|
+
back -= 3;
|
|
226
|
+
}
|
|
227
|
+
wallIndices.push(start - Math.floor(l.length / 6));
|
|
228
|
+
if (cornerType === CornerType_default.BEVELED) {
|
|
229
|
+
wallIndices.push((back - 2) / 3 + 1);
|
|
230
|
+
}
|
|
231
|
+
front += 3;
|
|
232
|
+
} else {
|
|
233
|
+
front += 3;
|
|
234
|
+
start = LR;
|
|
235
|
+
wallIndices.push(UR);
|
|
236
|
+
for (j = 0; j < r.length / 3; j++) {
|
|
237
|
+
outsidePoint = Cartesian3_default.fromArray(r, j * 3, outsidePoint);
|
|
238
|
+
indices[index++] = start + j;
|
|
239
|
+
indices[index++] = start + j + 1;
|
|
240
|
+
CorridorGeometryLibrary_default.addAttribute(
|
|
241
|
+
finalPositions,
|
|
242
|
+
outsidePoint,
|
|
243
|
+
front
|
|
244
|
+
);
|
|
245
|
+
front += 3;
|
|
246
|
+
}
|
|
247
|
+
wallIndices.push(start + Math.floor(r.length / 6));
|
|
248
|
+
if (cornerType === CornerType_default.BEVELED) {
|
|
249
|
+
wallIndices.push(front / 3 - 1);
|
|
250
|
+
}
|
|
251
|
+
back -= 3;
|
|
252
|
+
}
|
|
253
|
+
rightEdge = positions[posIndex++];
|
|
254
|
+
leftEdge = positions[posIndex++];
|
|
255
|
+
rightEdge.splice(0, 3);
|
|
256
|
+
leftEdge.splice(leftEdge.length - 3, 3);
|
|
257
|
+
finalPositions.set(rightEdge, front);
|
|
258
|
+
finalPositions.set(leftEdge, back - leftEdge.length + 1);
|
|
259
|
+
length = leftEdge.length - 3;
|
|
260
|
+
for (j = 0; j < leftEdge.length; j += 3) {
|
|
261
|
+
LR = front / 3;
|
|
262
|
+
LL = LR - 1;
|
|
263
|
+
UR = (back - 2) / 3;
|
|
264
|
+
UL = UR + 1;
|
|
265
|
+
indices[index++] = UL;
|
|
266
|
+
indices[index++] = UR;
|
|
267
|
+
indices[index++] = LL;
|
|
268
|
+
indices[index++] = LR;
|
|
269
|
+
front += 3;
|
|
270
|
+
back -= 3;
|
|
271
|
+
}
|
|
272
|
+
front -= 3;
|
|
273
|
+
back += 3;
|
|
274
|
+
wallIndices.push(front / 3, (back - 2) / 3);
|
|
275
|
+
}
|
|
276
|
+
if (addEndPositions) {
|
|
277
|
+
front += 3;
|
|
278
|
+
back -= 3;
|
|
279
|
+
leftPos = cartesian1;
|
|
280
|
+
rightPos = cartesian2;
|
|
281
|
+
const lastEndPositions = endPositions[1];
|
|
282
|
+
for (i = 0; i < halfLength; i++) {
|
|
283
|
+
leftPos = Cartesian3_default.fromArray(
|
|
284
|
+
lastEndPositions,
|
|
285
|
+
(endPositionLength - i - 1) * 3,
|
|
286
|
+
leftPos
|
|
287
|
+
);
|
|
288
|
+
rightPos = Cartesian3_default.fromArray(lastEndPositions, i * 3, rightPos);
|
|
289
|
+
CorridorGeometryLibrary_default.addAttribute(
|
|
290
|
+
finalPositions,
|
|
291
|
+
leftPos,
|
|
292
|
+
void 0,
|
|
293
|
+
back
|
|
294
|
+
);
|
|
295
|
+
CorridorGeometryLibrary_default.addAttribute(finalPositions, rightPos, front);
|
|
296
|
+
LR = front / 3;
|
|
297
|
+
LL = LR - 1;
|
|
298
|
+
UR = (back - 2) / 3;
|
|
299
|
+
UL = UR + 1;
|
|
300
|
+
indices[index++] = UL;
|
|
301
|
+
indices[index++] = UR;
|
|
302
|
+
indices[index++] = LL;
|
|
303
|
+
indices[index++] = LR;
|
|
304
|
+
front += 3;
|
|
305
|
+
back -= 3;
|
|
306
|
+
}
|
|
307
|
+
wallIndices.push(front / 3);
|
|
308
|
+
} else {
|
|
309
|
+
wallIndices.push(front / 3, (back - 2) / 3);
|
|
310
|
+
}
|
|
311
|
+
indices[index++] = front / 3;
|
|
312
|
+
indices[index++] = (back - 2) / 3;
|
|
313
|
+
attributes.position = new GeometryAttribute_default({
|
|
314
|
+
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
315
|
+
componentsPerAttribute: 3,
|
|
316
|
+
values: finalPositions
|
|
317
|
+
});
|
|
318
|
+
return {
|
|
319
|
+
attributes,
|
|
320
|
+
indices,
|
|
321
|
+
wallIndices
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
function computePositionsExtruded(params) {
|
|
325
|
+
const ellipsoid = params.ellipsoid;
|
|
326
|
+
const computedPositions = CorridorGeometryLibrary_default.computePositions(params);
|
|
327
|
+
const attr = combine(computedPositions, params.cornerType);
|
|
328
|
+
const wallIndices = attr.wallIndices;
|
|
329
|
+
const height = params.height;
|
|
330
|
+
const extrudedHeight = params.extrudedHeight;
|
|
331
|
+
const attributes = attr.attributes;
|
|
332
|
+
const indices = attr.indices;
|
|
333
|
+
let positions = attributes.position.values;
|
|
334
|
+
let length = positions.length;
|
|
335
|
+
let extrudedPositions = new Float64Array(length);
|
|
336
|
+
extrudedPositions.set(positions);
|
|
337
|
+
const newPositions = new Float64Array(length * 2);
|
|
338
|
+
positions = PolygonPipeline_default.scaleToGeodeticHeight(
|
|
339
|
+
positions,
|
|
340
|
+
height,
|
|
341
|
+
ellipsoid
|
|
342
|
+
);
|
|
343
|
+
extrudedPositions = PolygonPipeline_default.scaleToGeodeticHeight(
|
|
344
|
+
extrudedPositions,
|
|
345
|
+
extrudedHeight,
|
|
346
|
+
ellipsoid
|
|
347
|
+
);
|
|
348
|
+
newPositions.set(positions);
|
|
349
|
+
newPositions.set(extrudedPositions, length);
|
|
350
|
+
attributes.position.values = newPositions;
|
|
351
|
+
length /= 3;
|
|
352
|
+
if (defined_default(params.offsetAttribute)) {
|
|
353
|
+
let applyOffset = new Uint8Array(length * 2);
|
|
354
|
+
if (params.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
|
|
355
|
+
applyOffset = applyOffset.fill(1, 0, length);
|
|
356
|
+
} else {
|
|
357
|
+
const applyOffsetValue = params.offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
|
|
358
|
+
applyOffset = applyOffset.fill(applyOffsetValue);
|
|
359
|
+
}
|
|
360
|
+
attributes.applyOffset = new GeometryAttribute_default({
|
|
361
|
+
componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
|
|
362
|
+
componentsPerAttribute: 1,
|
|
363
|
+
values: applyOffset
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
let i;
|
|
367
|
+
const iLength = indices.length;
|
|
368
|
+
const newIndices = IndexDatatype_default.createTypedArray(
|
|
369
|
+
newPositions.length / 3,
|
|
370
|
+
(iLength + wallIndices.length) * 2
|
|
371
|
+
);
|
|
372
|
+
newIndices.set(indices);
|
|
373
|
+
let index = iLength;
|
|
374
|
+
for (i = 0; i < iLength; i += 2) {
|
|
375
|
+
const v0 = indices[i];
|
|
376
|
+
const v1 = indices[i + 1];
|
|
377
|
+
newIndices[index++] = v0 + length;
|
|
378
|
+
newIndices[index++] = v1 + length;
|
|
379
|
+
}
|
|
380
|
+
let UL, LL;
|
|
381
|
+
for (i = 0; i < wallIndices.length; i++) {
|
|
382
|
+
UL = wallIndices[i];
|
|
383
|
+
LL = UL + length;
|
|
384
|
+
newIndices[index++] = UL;
|
|
385
|
+
newIndices[index++] = LL;
|
|
386
|
+
}
|
|
387
|
+
return {
|
|
388
|
+
attributes,
|
|
389
|
+
indices: newIndices
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
function CorridorOutlineGeometry(options) {
|
|
393
|
+
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
394
|
+
const positions = options.positions;
|
|
395
|
+
const width = options.width;
|
|
396
|
+
Check_default.typeOf.object("options.positions", positions);
|
|
397
|
+
Check_default.typeOf.number("options.width", width);
|
|
398
|
+
const height = defaultValue_default(options.height, 0);
|
|
399
|
+
const extrudedHeight = defaultValue_default(options.extrudedHeight, height);
|
|
400
|
+
this._positions = positions;
|
|
401
|
+
this._ellipsoid = Ellipsoid_default.clone(
|
|
402
|
+
defaultValue_default(options.ellipsoid, Ellipsoid_default.WGS84)
|
|
403
|
+
);
|
|
404
|
+
this._width = width;
|
|
405
|
+
this._height = Math.max(height, extrudedHeight);
|
|
406
|
+
this._extrudedHeight = Math.min(height, extrudedHeight);
|
|
407
|
+
this._cornerType = defaultValue_default(options.cornerType, CornerType_default.ROUNDED);
|
|
408
|
+
this._granularity = defaultValue_default(
|
|
409
|
+
options.granularity,
|
|
410
|
+
Math_default.RADIANS_PER_DEGREE
|
|
411
|
+
);
|
|
412
|
+
this._offsetAttribute = options.offsetAttribute;
|
|
413
|
+
this._workerName = "createCorridorOutlineGeometry";
|
|
414
|
+
this.packedLength = 1 + positions.length * Cartesian3_default.packedLength + Ellipsoid_default.packedLength + 6;
|
|
415
|
+
}
|
|
416
|
+
CorridorOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
417
|
+
Check_default.typeOf.object("value", value);
|
|
418
|
+
Check_default.typeOf.object("array", array);
|
|
419
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
420
|
+
const positions = value._positions;
|
|
421
|
+
const length = positions.length;
|
|
422
|
+
array[startingIndex++] = length;
|
|
423
|
+
for (let i = 0; i < length; ++i, startingIndex += Cartesian3_default.packedLength) {
|
|
424
|
+
Cartesian3_default.pack(positions[i], array, startingIndex);
|
|
425
|
+
}
|
|
426
|
+
Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
|
|
427
|
+
startingIndex += Ellipsoid_default.packedLength;
|
|
428
|
+
array[startingIndex++] = value._width;
|
|
429
|
+
array[startingIndex++] = value._height;
|
|
430
|
+
array[startingIndex++] = value._extrudedHeight;
|
|
431
|
+
array[startingIndex++] = value._cornerType;
|
|
432
|
+
array[startingIndex++] = value._granularity;
|
|
433
|
+
array[startingIndex] = defaultValue_default(value._offsetAttribute, -1);
|
|
434
|
+
return array;
|
|
435
|
+
};
|
|
436
|
+
var scratchEllipsoid = Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE);
|
|
437
|
+
var scratchOptions = {
|
|
438
|
+
positions: void 0,
|
|
439
|
+
ellipsoid: scratchEllipsoid,
|
|
440
|
+
width: void 0,
|
|
441
|
+
height: void 0,
|
|
442
|
+
extrudedHeight: void 0,
|
|
443
|
+
cornerType: void 0,
|
|
444
|
+
granularity: void 0,
|
|
445
|
+
offsetAttribute: void 0
|
|
446
|
+
};
|
|
447
|
+
CorridorOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
448
|
+
Check_default.typeOf.object("array", array);
|
|
449
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
450
|
+
const length = array[startingIndex++];
|
|
451
|
+
const positions = new Array(length);
|
|
452
|
+
for (let i = 0; i < length; ++i, startingIndex += Cartesian3_default.packedLength) {
|
|
453
|
+
positions[i] = Cartesian3_default.unpack(array, startingIndex);
|
|
454
|
+
}
|
|
455
|
+
const ellipsoid = Ellipsoid_default.unpack(array, startingIndex, scratchEllipsoid);
|
|
456
|
+
startingIndex += Ellipsoid_default.packedLength;
|
|
457
|
+
const width = array[startingIndex++];
|
|
458
|
+
const height = array[startingIndex++];
|
|
459
|
+
const extrudedHeight = array[startingIndex++];
|
|
460
|
+
const cornerType = array[startingIndex++];
|
|
461
|
+
const granularity = array[startingIndex++];
|
|
462
|
+
const offsetAttribute = array[startingIndex];
|
|
463
|
+
if (!defined_default(result)) {
|
|
464
|
+
scratchOptions.positions = positions;
|
|
465
|
+
scratchOptions.width = width;
|
|
466
|
+
scratchOptions.height = height;
|
|
467
|
+
scratchOptions.extrudedHeight = extrudedHeight;
|
|
468
|
+
scratchOptions.cornerType = cornerType;
|
|
469
|
+
scratchOptions.granularity = granularity;
|
|
470
|
+
scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
|
|
471
|
+
return new CorridorOutlineGeometry(scratchOptions);
|
|
472
|
+
}
|
|
473
|
+
result._positions = positions;
|
|
474
|
+
result._ellipsoid = Ellipsoid_default.clone(ellipsoid, result._ellipsoid);
|
|
475
|
+
result._width = width;
|
|
476
|
+
result._height = height;
|
|
477
|
+
result._extrudedHeight = extrudedHeight;
|
|
478
|
+
result._cornerType = cornerType;
|
|
479
|
+
result._granularity = granularity;
|
|
480
|
+
result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
|
|
481
|
+
return result;
|
|
482
|
+
};
|
|
483
|
+
CorridorOutlineGeometry.createGeometry = function(corridorOutlineGeometry) {
|
|
484
|
+
let positions = corridorOutlineGeometry._positions;
|
|
485
|
+
const width = corridorOutlineGeometry._width;
|
|
486
|
+
const ellipsoid = corridorOutlineGeometry._ellipsoid;
|
|
487
|
+
positions = scaleToSurface(positions, ellipsoid);
|
|
488
|
+
const cleanPositions = arrayRemoveDuplicates_default(
|
|
489
|
+
positions,
|
|
490
|
+
Cartesian3_default.equalsEpsilon
|
|
491
|
+
);
|
|
492
|
+
if (cleanPositions.length < 2 || width <= 0) {
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
const height = corridorOutlineGeometry._height;
|
|
496
|
+
const extrudedHeight = corridorOutlineGeometry._extrudedHeight;
|
|
497
|
+
const extrude = !Math_default.equalsEpsilon(
|
|
498
|
+
height,
|
|
499
|
+
extrudedHeight,
|
|
500
|
+
0,
|
|
501
|
+
Math_default.EPSILON2
|
|
502
|
+
);
|
|
503
|
+
const params = {
|
|
504
|
+
ellipsoid,
|
|
505
|
+
positions: cleanPositions,
|
|
506
|
+
width,
|
|
507
|
+
cornerType: corridorOutlineGeometry._cornerType,
|
|
508
|
+
granularity: corridorOutlineGeometry._granularity,
|
|
509
|
+
saveAttributes: false
|
|
510
|
+
};
|
|
511
|
+
let attr;
|
|
512
|
+
if (extrude) {
|
|
513
|
+
params.height = height;
|
|
514
|
+
params.extrudedHeight = extrudedHeight;
|
|
515
|
+
params.offsetAttribute = corridorOutlineGeometry._offsetAttribute;
|
|
516
|
+
attr = computePositionsExtruded(params);
|
|
517
|
+
} else {
|
|
518
|
+
const computedPositions = CorridorGeometryLibrary_default.computePositions(params);
|
|
519
|
+
attr = combine(computedPositions, params.cornerType);
|
|
520
|
+
attr.attributes.position.values = PolygonPipeline_default.scaleToGeodeticHeight(
|
|
521
|
+
attr.attributes.position.values,
|
|
522
|
+
height,
|
|
523
|
+
ellipsoid
|
|
524
|
+
);
|
|
525
|
+
if (defined_default(corridorOutlineGeometry._offsetAttribute)) {
|
|
526
|
+
const length = attr.attributes.position.values.length;
|
|
527
|
+
const offsetValue = corridorOutlineGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
|
|
528
|
+
const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
|
|
529
|
+
attr.attributes.applyOffset = new GeometryAttribute_default({
|
|
530
|
+
componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
|
|
531
|
+
componentsPerAttribute: 1,
|
|
532
|
+
values: applyOffset
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
const attributes = attr.attributes;
|
|
537
|
+
const boundingSphere = BoundingSphere_default.fromVertices(
|
|
538
|
+
attributes.position.values,
|
|
539
|
+
void 0,
|
|
540
|
+
3
|
|
541
|
+
);
|
|
542
|
+
return new Geometry_default({
|
|
543
|
+
attributes,
|
|
544
|
+
indices: attr.indices,
|
|
545
|
+
primitiveType: PrimitiveType_default.LINES,
|
|
546
|
+
boundingSphere,
|
|
547
|
+
offsetAttribute: corridorOutlineGeometry._offsetAttribute
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
var CorridorOutlineGeometry_default = CorridorOutlineGeometry;
|
|
551
|
+
|
|
552
|
+
// packages/engine/Source/Workers/createCorridorOutlineGeometry.js
|
|
553
|
+
function createCorridorOutlineGeometry(corridorOutlineGeometry, offset) {
|
|
554
|
+
if (defined_default(offset)) {
|
|
555
|
+
corridorOutlineGeometry = CorridorOutlineGeometry_default.unpack(
|
|
556
|
+
corridorOutlineGeometry,
|
|
557
|
+
offset
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
corridorOutlineGeometry._ellipsoid = Ellipsoid_default.clone(
|
|
561
|
+
corridorOutlineGeometry._ellipsoid
|
|
562
|
+
);
|
|
563
|
+
return CorridorOutlineGeometry_default.createGeometry(corridorOutlineGeometry);
|
|
564
|
+
}
|
|
565
|
+
var createCorridorOutlineGeometry_default = createCorridorOutlineGeometry;
|
|
566
|
+
export {
|
|
567
|
+
createCorridorOutlineGeometry_default as default
|
|
568
|
+
};
|
|
@@ -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
|
+
CylinderGeometry_default
|
|
28
|
+
} from "./chunk-CSIZ3BGT.js";
|
|
29
|
+
import "./chunk-434ZTTFX.js";
|
|
30
|
+
import "./chunk-MN34FIF5.js";
|
|
31
|
+
import "./chunk-ZQRZBHYI.js";
|
|
32
|
+
import "./chunk-LX6XV4DK.js";
|
|
33
|
+
import "./chunk-PIXK6KHB.js";
|
|
34
|
+
import "./chunk-R3HUGXBH.js";
|
|
35
|
+
import "./chunk-HOT2SNXP.js";
|
|
36
|
+
import "./chunk-4KP73B43.js";
|
|
37
|
+
import "./chunk-3PW6ZBN4.js";
|
|
38
|
+
import "./chunk-ARPTYYKS.js";
|
|
39
|
+
import "./chunk-LGJUI2CE.js";
|
|
40
|
+
import "./chunk-BP467WX3.js";
|
|
41
|
+
import "./chunk-SV7DDPAC.js";
|
|
42
|
+
import "./chunk-RIDPF7PO.js";
|
|
43
|
+
import "./chunk-CWJQGBWT.js";
|
|
44
|
+
import "./chunk-5HLGKKG3.js";
|
|
45
|
+
import {
|
|
46
|
+
defined_default
|
|
47
|
+
} from "./chunk-YBKFS53K.js";
|
|
48
|
+
|
|
49
|
+
// packages/engine/Source/Workers/createCylinderGeometry.js
|
|
50
|
+
function createCylinderGeometry(cylinderGeometry, offset) {
|
|
51
|
+
if (defined_default(offset)) {
|
|
52
|
+
cylinderGeometry = CylinderGeometry_default.unpack(cylinderGeometry, offset);
|
|
53
|
+
}
|
|
54
|
+
return CylinderGeometry_default.createGeometry(cylinderGeometry);
|
|
55
|
+
}
|
|
56
|
+
var createCylinderGeometry_default = createCylinderGeometry;
|
|
57
|
+
export {
|
|
58
|
+
createCylinderGeometry_default as default
|
|
59
|
+
};
|