@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,234 @@
|
|
|
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
|
+
FrustumGeometry_default,
|
|
28
|
+
OrthographicFrustum_default,
|
|
29
|
+
PerspectiveFrustum_default
|
|
30
|
+
} from "./chunk-CDGHUKQ4.js";
|
|
31
|
+
import "./chunk-ZQRZBHYI.js";
|
|
32
|
+
import "./chunk-LGL4P5KL.js";
|
|
33
|
+
import {
|
|
34
|
+
GeometryAttributes_default
|
|
35
|
+
} from "./chunk-PIXK6KHB.js";
|
|
36
|
+
import {
|
|
37
|
+
GeometryAttribute_default,
|
|
38
|
+
Geometry_default,
|
|
39
|
+
PrimitiveType_default
|
|
40
|
+
} from "./chunk-R3HUGXBH.js";
|
|
41
|
+
import {
|
|
42
|
+
BoundingSphere_default,
|
|
43
|
+
Quaternion_default
|
|
44
|
+
} from "./chunk-HOT2SNXP.js";
|
|
45
|
+
import "./chunk-4KP73B43.js";
|
|
46
|
+
import "./chunk-3PW6ZBN4.js";
|
|
47
|
+
import {
|
|
48
|
+
ComponentDatatype_default
|
|
49
|
+
} from "./chunk-ARPTYYKS.js";
|
|
50
|
+
import {
|
|
51
|
+
Cartesian3_default
|
|
52
|
+
} from "./chunk-LGJUI2CE.js";
|
|
53
|
+
import "./chunk-BP467WX3.js";
|
|
54
|
+
import "./chunk-SV7DDPAC.js";
|
|
55
|
+
import "./chunk-RIDPF7PO.js";
|
|
56
|
+
import {
|
|
57
|
+
defaultValue_default
|
|
58
|
+
} from "./chunk-CWJQGBWT.js";
|
|
59
|
+
import {
|
|
60
|
+
Check_default
|
|
61
|
+
} from "./chunk-5HLGKKG3.js";
|
|
62
|
+
import {
|
|
63
|
+
defined_default
|
|
64
|
+
} from "./chunk-YBKFS53K.js";
|
|
65
|
+
|
|
66
|
+
// packages/engine/Source/Core/FrustumOutlineGeometry.js
|
|
67
|
+
var PERSPECTIVE = 0;
|
|
68
|
+
var ORTHOGRAPHIC = 1;
|
|
69
|
+
function FrustumOutlineGeometry(options) {
|
|
70
|
+
Check_default.typeOf.object("options", options);
|
|
71
|
+
Check_default.typeOf.object("options.frustum", options.frustum);
|
|
72
|
+
Check_default.typeOf.object("options.origin", options.origin);
|
|
73
|
+
Check_default.typeOf.object("options.orientation", options.orientation);
|
|
74
|
+
const frustum = options.frustum;
|
|
75
|
+
const orientation = options.orientation;
|
|
76
|
+
const origin = options.origin;
|
|
77
|
+
const drawNearPlane = defaultValue_default(options._drawNearPlane, true);
|
|
78
|
+
let frustumType;
|
|
79
|
+
let frustumPackedLength;
|
|
80
|
+
if (frustum instanceof PerspectiveFrustum_default) {
|
|
81
|
+
frustumType = PERSPECTIVE;
|
|
82
|
+
frustumPackedLength = PerspectiveFrustum_default.packedLength;
|
|
83
|
+
} else if (frustum instanceof OrthographicFrustum_default) {
|
|
84
|
+
frustumType = ORTHOGRAPHIC;
|
|
85
|
+
frustumPackedLength = OrthographicFrustum_default.packedLength;
|
|
86
|
+
}
|
|
87
|
+
this._frustumType = frustumType;
|
|
88
|
+
this._frustum = frustum.clone();
|
|
89
|
+
this._origin = Cartesian3_default.clone(origin);
|
|
90
|
+
this._orientation = Quaternion_default.clone(orientation);
|
|
91
|
+
this._drawNearPlane = drawNearPlane;
|
|
92
|
+
this._workerName = "createFrustumOutlineGeometry";
|
|
93
|
+
this.packedLength = 2 + frustumPackedLength + Cartesian3_default.packedLength + Quaternion_default.packedLength;
|
|
94
|
+
}
|
|
95
|
+
FrustumOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
96
|
+
Check_default.typeOf.object("value", value);
|
|
97
|
+
Check_default.defined("array", array);
|
|
98
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
99
|
+
const frustumType = value._frustumType;
|
|
100
|
+
const frustum = value._frustum;
|
|
101
|
+
array[startingIndex++] = frustumType;
|
|
102
|
+
if (frustumType === PERSPECTIVE) {
|
|
103
|
+
PerspectiveFrustum_default.pack(frustum, array, startingIndex);
|
|
104
|
+
startingIndex += PerspectiveFrustum_default.packedLength;
|
|
105
|
+
} else {
|
|
106
|
+
OrthographicFrustum_default.pack(frustum, array, startingIndex);
|
|
107
|
+
startingIndex += OrthographicFrustum_default.packedLength;
|
|
108
|
+
}
|
|
109
|
+
Cartesian3_default.pack(value._origin, array, startingIndex);
|
|
110
|
+
startingIndex += Cartesian3_default.packedLength;
|
|
111
|
+
Quaternion_default.pack(value._orientation, array, startingIndex);
|
|
112
|
+
startingIndex += Quaternion_default.packedLength;
|
|
113
|
+
array[startingIndex] = value._drawNearPlane ? 1 : 0;
|
|
114
|
+
return array;
|
|
115
|
+
};
|
|
116
|
+
var scratchPackPerspective = new PerspectiveFrustum_default();
|
|
117
|
+
var scratchPackOrthographic = new OrthographicFrustum_default();
|
|
118
|
+
var scratchPackQuaternion = new Quaternion_default();
|
|
119
|
+
var scratchPackorigin = new Cartesian3_default();
|
|
120
|
+
FrustumOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
121
|
+
Check_default.defined("array", array);
|
|
122
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
123
|
+
const frustumType = array[startingIndex++];
|
|
124
|
+
let frustum;
|
|
125
|
+
if (frustumType === PERSPECTIVE) {
|
|
126
|
+
frustum = PerspectiveFrustum_default.unpack(
|
|
127
|
+
array,
|
|
128
|
+
startingIndex,
|
|
129
|
+
scratchPackPerspective
|
|
130
|
+
);
|
|
131
|
+
startingIndex += PerspectiveFrustum_default.packedLength;
|
|
132
|
+
} else {
|
|
133
|
+
frustum = OrthographicFrustum_default.unpack(
|
|
134
|
+
array,
|
|
135
|
+
startingIndex,
|
|
136
|
+
scratchPackOrthographic
|
|
137
|
+
);
|
|
138
|
+
startingIndex += OrthographicFrustum_default.packedLength;
|
|
139
|
+
}
|
|
140
|
+
const origin = Cartesian3_default.unpack(array, startingIndex, scratchPackorigin);
|
|
141
|
+
startingIndex += Cartesian3_default.packedLength;
|
|
142
|
+
const orientation = Quaternion_default.unpack(
|
|
143
|
+
array,
|
|
144
|
+
startingIndex,
|
|
145
|
+
scratchPackQuaternion
|
|
146
|
+
);
|
|
147
|
+
startingIndex += Quaternion_default.packedLength;
|
|
148
|
+
const drawNearPlane = array[startingIndex] === 1;
|
|
149
|
+
if (!defined_default(result)) {
|
|
150
|
+
return new FrustumOutlineGeometry({
|
|
151
|
+
frustum,
|
|
152
|
+
origin,
|
|
153
|
+
orientation,
|
|
154
|
+
_drawNearPlane: drawNearPlane
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
const frustumResult = frustumType === result._frustumType ? result._frustum : void 0;
|
|
158
|
+
result._frustum = frustum.clone(frustumResult);
|
|
159
|
+
result._frustumType = frustumType;
|
|
160
|
+
result._origin = Cartesian3_default.clone(origin, result._origin);
|
|
161
|
+
result._orientation = Quaternion_default.clone(orientation, result._orientation);
|
|
162
|
+
result._drawNearPlane = drawNearPlane;
|
|
163
|
+
return result;
|
|
164
|
+
};
|
|
165
|
+
FrustumOutlineGeometry.createGeometry = function(frustumGeometry) {
|
|
166
|
+
const frustumType = frustumGeometry._frustumType;
|
|
167
|
+
const frustum = frustumGeometry._frustum;
|
|
168
|
+
const origin = frustumGeometry._origin;
|
|
169
|
+
const orientation = frustumGeometry._orientation;
|
|
170
|
+
const drawNearPlane = frustumGeometry._drawNearPlane;
|
|
171
|
+
const positions = new Float64Array(3 * 4 * 2);
|
|
172
|
+
FrustumGeometry_default._computeNearFarPlanes(
|
|
173
|
+
origin,
|
|
174
|
+
orientation,
|
|
175
|
+
frustumType,
|
|
176
|
+
frustum,
|
|
177
|
+
positions
|
|
178
|
+
);
|
|
179
|
+
const attributes = new GeometryAttributes_default({
|
|
180
|
+
position: new GeometryAttribute_default({
|
|
181
|
+
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
182
|
+
componentsPerAttribute: 3,
|
|
183
|
+
values: positions
|
|
184
|
+
})
|
|
185
|
+
});
|
|
186
|
+
let offset;
|
|
187
|
+
let index;
|
|
188
|
+
const numberOfPlanes = drawNearPlane ? 2 : 1;
|
|
189
|
+
const indices = new Uint16Array(8 * (numberOfPlanes + 1));
|
|
190
|
+
let i = drawNearPlane ? 0 : 1;
|
|
191
|
+
for (; i < 2; ++i) {
|
|
192
|
+
offset = drawNearPlane ? i * 8 : 0;
|
|
193
|
+
index = i * 4;
|
|
194
|
+
indices[offset] = index;
|
|
195
|
+
indices[offset + 1] = index + 1;
|
|
196
|
+
indices[offset + 2] = index + 1;
|
|
197
|
+
indices[offset + 3] = index + 2;
|
|
198
|
+
indices[offset + 4] = index + 2;
|
|
199
|
+
indices[offset + 5] = index + 3;
|
|
200
|
+
indices[offset + 6] = index + 3;
|
|
201
|
+
indices[offset + 7] = index;
|
|
202
|
+
}
|
|
203
|
+
for (i = 0; i < 2; ++i) {
|
|
204
|
+
offset = (numberOfPlanes + i) * 8;
|
|
205
|
+
index = i * 4;
|
|
206
|
+
indices[offset] = index;
|
|
207
|
+
indices[offset + 1] = index + 4;
|
|
208
|
+
indices[offset + 2] = index + 1;
|
|
209
|
+
indices[offset + 3] = index + 5;
|
|
210
|
+
indices[offset + 4] = index + 2;
|
|
211
|
+
indices[offset + 5] = index + 6;
|
|
212
|
+
indices[offset + 6] = index + 3;
|
|
213
|
+
indices[offset + 7] = index + 7;
|
|
214
|
+
}
|
|
215
|
+
return new Geometry_default({
|
|
216
|
+
attributes,
|
|
217
|
+
indices,
|
|
218
|
+
primitiveType: PrimitiveType_default.LINES,
|
|
219
|
+
boundingSphere: BoundingSphere_default.fromVertices(positions)
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
var FrustumOutlineGeometry_default = FrustumOutlineGeometry;
|
|
223
|
+
|
|
224
|
+
// packages/engine/Source/Workers/createFrustumOutlineGeometry.js
|
|
225
|
+
function createFrustumOutlineGeometry(frustumGeometry, offset) {
|
|
226
|
+
if (defined_default(offset)) {
|
|
227
|
+
frustumGeometry = FrustumOutlineGeometry_default.unpack(frustumGeometry, offset);
|
|
228
|
+
}
|
|
229
|
+
return FrustumOutlineGeometry_default.createGeometry(frustumGeometry);
|
|
230
|
+
}
|
|
231
|
+
var createFrustumOutlineGeometry_default = createFrustumOutlineGeometry;
|
|
232
|
+
export {
|
|
233
|
+
createFrustumOutlineGeometry_default as default
|
|
234
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
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 {
|
|
52
|
+
__glob,
|
|
53
|
+
__require,
|
|
54
|
+
defined_default
|
|
55
|
+
} from "./chunk-YBKFS53K.js";
|
|
56
|
+
|
|
57
|
+
// import("./**/*.js") in packages/engine/Source/Workers/createGeometry.js
|
|
58
|
+
var globImport_js = __glob({
|
|
59
|
+
"./combineGeometry.js": () => import("./combineGeometry.js"),
|
|
60
|
+
"./createBoxGeometry.js": () => import("./createBoxGeometry.js"),
|
|
61
|
+
"./createBoxOutlineGeometry.js": () => import("./createBoxOutlineGeometry.js"),
|
|
62
|
+
"./createCircleGeometry.js": () => import("./createCircleGeometry.js"),
|
|
63
|
+
"./createCircleOutlineGeometry.js": () => import("./createCircleOutlineGeometry.js"),
|
|
64
|
+
"./createCoplanarPolygonGeometry.js": () => import("./createCoplanarPolygonGeometry.js"),
|
|
65
|
+
"./createCoplanarPolygonOutlineGeometry.js": () => import("./createCoplanarPolygonOutlineGeometry.js"),
|
|
66
|
+
"./createCorridorGeometry.js": () => import("./createCorridorGeometry.js"),
|
|
67
|
+
"./createCorridorOutlineGeometry.js": () => import("./createCorridorOutlineGeometry.js"),
|
|
68
|
+
"./createCylinderGeometry.js": () => import("./createCylinderGeometry.js"),
|
|
69
|
+
"./createCylinderOutlineGeometry.js": () => import("./createCylinderOutlineGeometry.js"),
|
|
70
|
+
"./createEllipseGeometry.js": () => import("./createEllipseGeometry.js"),
|
|
71
|
+
"./createEllipseOutlineGeometry.js": () => import("./createEllipseOutlineGeometry.js"),
|
|
72
|
+
"./createEllipsoidGeometry.js": () => import("./createEllipsoidGeometry.js"),
|
|
73
|
+
"./createEllipsoidOutlineGeometry.js": () => import("./createEllipsoidOutlineGeometry.js"),
|
|
74
|
+
"./createFrustumGeometry.js": () => import("./createFrustumGeometry.js"),
|
|
75
|
+
"./createFrustumOutlineGeometry.js": () => import("./createFrustumOutlineGeometry.js"),
|
|
76
|
+
"./createGeometry.js": () => import("./createGeometry.js"),
|
|
77
|
+
"./createGroundPolylineGeometry.js": () => import("./createGroundPolylineGeometry.js"),
|
|
78
|
+
"./createPlaneGeometry.js": () => import("./createPlaneGeometry.js"),
|
|
79
|
+
"./createPlaneOutlineGeometry.js": () => import("./createPlaneOutlineGeometry.js"),
|
|
80
|
+
"./createPolygonGeometry.js": () => import("./createPolygonGeometry.js"),
|
|
81
|
+
"./createPolygonOutlineGeometry.js": () => import("./createPolygonOutlineGeometry.js"),
|
|
82
|
+
"./createPolylineGeometry.js": () => import("./createPolylineGeometry.js"),
|
|
83
|
+
"./createPolylineVolumeGeometry.js": () => import("./createPolylineVolumeGeometry.js"),
|
|
84
|
+
"./createPolylineVolumeOutlineGeometry.js": () => import("./createPolylineVolumeOutlineGeometry.js"),
|
|
85
|
+
"./createRectangleGeometry.js": () => import("./createRectangleGeometry.js"),
|
|
86
|
+
"./createRectangleOutlineGeometry.js": () => import("./createRectangleOutlineGeometry.js"),
|
|
87
|
+
"./createSimplePolylineGeometry.js": () => import("./createSimplePolylineGeometry.js"),
|
|
88
|
+
"./createSphereGeometry.js": () => import("./createSphereGeometry.js"),
|
|
89
|
+
"./createSphereOutlineGeometry.js": () => import("./createSphereOutlineGeometry.js"),
|
|
90
|
+
"./createTaskProcessorWorker.js": () => import("./createTaskProcessorWorker.js"),
|
|
91
|
+
"./createVectorTileClampedPolylines.js": () => import("./createVectorTileClampedPolylines.js"),
|
|
92
|
+
"./createVectorTileGeometries.js": () => import("./createVectorTileGeometries.js"),
|
|
93
|
+
"./createVectorTilePoints.js": () => import("./createVectorTilePoints.js"),
|
|
94
|
+
"./createVectorTilePolygons.js": () => import("./createVectorTilePolygons.js"),
|
|
95
|
+
"./createVectorTilePolylines.js": () => import("./createVectorTilePolylines.js"),
|
|
96
|
+
"./createVerticesFromGoogleEarthEnterpriseBuffer.js": () => import("./createVerticesFromGoogleEarthEnterpriseBuffer.js"),
|
|
97
|
+
"./createVerticesFromHeightmap.js": () => import("./createVerticesFromHeightmap.js"),
|
|
98
|
+
"./createVerticesFromQuantizedTerrainMesh.js": () => import("./createVerticesFromQuantizedTerrainMesh.js"),
|
|
99
|
+
"./createWallGeometry.js": () => import("./createWallGeometry.js"),
|
|
100
|
+
"./createWallOutlineGeometry.js": () => import("./createWallOutlineGeometry.js"),
|
|
101
|
+
"./decodeDraco.js": () => import("./decodeDraco.js"),
|
|
102
|
+
"./decodeGoogleEarthEnterprisePacket.js": () => import("./decodeGoogleEarthEnterprisePacket.js"),
|
|
103
|
+
"./decodeI3S.js": () => import("./decodeI3S.js"),
|
|
104
|
+
"./transcodeKTX2.js": () => import("./transcodeKTX2.js"),
|
|
105
|
+
"./transferTypedArrayTest.js": () => import("./transferTypedArrayTest.js"),
|
|
106
|
+
"./upsampleQuantizedTerrainMesh.js": () => import("./upsampleQuantizedTerrainMesh.js")
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// packages/engine/Source/Workers/createGeometry.js
|
|
110
|
+
var moduleCache = {};
|
|
111
|
+
async function getModule(moduleName) {
|
|
112
|
+
let module = moduleCache[moduleName];
|
|
113
|
+
if (!defined_default(module)) {
|
|
114
|
+
if (typeof exports === "object") {
|
|
115
|
+
moduleCache[module] = module = __require(`Workers/${moduleName}`);
|
|
116
|
+
} else {
|
|
117
|
+
const result = await globImport_js(`./${moduleName}.js`);
|
|
118
|
+
module = result.default;
|
|
119
|
+
moduleCache[module] = module;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return module;
|
|
123
|
+
}
|
|
124
|
+
async function createGeometry(parameters, transferableObjects) {
|
|
125
|
+
const subTasks = parameters.subTasks;
|
|
126
|
+
const length = subTasks.length;
|
|
127
|
+
const resultsOrPromises = new Array(length);
|
|
128
|
+
for (let i = 0; i < length; i++) {
|
|
129
|
+
const task = subTasks[i];
|
|
130
|
+
const geometry = task.geometry;
|
|
131
|
+
const moduleName = task.moduleName;
|
|
132
|
+
if (defined_default(moduleName)) {
|
|
133
|
+
resultsOrPromises[i] = getModule(moduleName).then(
|
|
134
|
+
(createFunction) => createFunction(geometry, task.offset)
|
|
135
|
+
);
|
|
136
|
+
} else {
|
|
137
|
+
resultsOrPromises[i] = geometry;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return Promise.all(resultsOrPromises).then(function(results) {
|
|
141
|
+
return PrimitivePipeline_default.packCreateGeometryResults(
|
|
142
|
+
results,
|
|
143
|
+
transferableObjects
|
|
144
|
+
);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
var createGeometry_default = createTaskProcessorWorker_default(createGeometry);
|
|
148
|
+
export {
|
|
149
|
+
createGeometry_default as default
|
|
150
|
+
};
|