@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,421 @@
|
|
|
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
|
+
EllipsoidGeodesic_default
|
|
28
|
+
} from "./chunk-GF5TNNKP.js";
|
|
29
|
+
import {
|
|
30
|
+
EllipsoidRhumbLine_default
|
|
31
|
+
} from "./chunk-R4OZKBXH.js";
|
|
32
|
+
import {
|
|
33
|
+
IntersectionTests_default
|
|
34
|
+
} from "./chunk-5IRLXUTA.js";
|
|
35
|
+
import {
|
|
36
|
+
Plane_default
|
|
37
|
+
} from "./chunk-LGL4P5KL.js";
|
|
38
|
+
import {
|
|
39
|
+
Matrix4_default
|
|
40
|
+
} from "./chunk-3PW6ZBN4.js";
|
|
41
|
+
import {
|
|
42
|
+
Cartesian3_default,
|
|
43
|
+
Cartographic_default,
|
|
44
|
+
Ellipsoid_default
|
|
45
|
+
} from "./chunk-LGJUI2CE.js";
|
|
46
|
+
import {
|
|
47
|
+
Math_default
|
|
48
|
+
} from "./chunk-BP467WX3.js";
|
|
49
|
+
import {
|
|
50
|
+
defaultValue_default
|
|
51
|
+
} from "./chunk-CWJQGBWT.js";
|
|
52
|
+
import {
|
|
53
|
+
DeveloperError_default
|
|
54
|
+
} from "./chunk-5HLGKKG3.js";
|
|
55
|
+
import {
|
|
56
|
+
defined_default
|
|
57
|
+
} from "./chunk-YBKFS53K.js";
|
|
58
|
+
|
|
59
|
+
// packages/engine/Source/Core/PolylinePipeline.js
|
|
60
|
+
var PolylinePipeline = {};
|
|
61
|
+
PolylinePipeline.numberOfPoints = function(p0, p1, minDistance) {
|
|
62
|
+
const distance = Cartesian3_default.distance(p0, p1);
|
|
63
|
+
return Math.ceil(distance / minDistance);
|
|
64
|
+
};
|
|
65
|
+
PolylinePipeline.numberOfPointsRhumbLine = function(p0, p1, granularity) {
|
|
66
|
+
const radiansDistanceSquared = Math.pow(p0.longitude - p1.longitude, 2) + Math.pow(p0.latitude - p1.latitude, 2);
|
|
67
|
+
return Math.max(
|
|
68
|
+
1,
|
|
69
|
+
Math.ceil(Math.sqrt(radiansDistanceSquared / (granularity * granularity)))
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
var cartoScratch = new Cartographic_default();
|
|
73
|
+
PolylinePipeline.extractHeights = function(positions, ellipsoid) {
|
|
74
|
+
const length = positions.length;
|
|
75
|
+
const heights = new Array(length);
|
|
76
|
+
for (let i = 0; i < length; i++) {
|
|
77
|
+
const p = positions[i];
|
|
78
|
+
heights[i] = ellipsoid.cartesianToCartographic(p, cartoScratch).height;
|
|
79
|
+
}
|
|
80
|
+
return heights;
|
|
81
|
+
};
|
|
82
|
+
var wrapLongitudeInversMatrix = new Matrix4_default();
|
|
83
|
+
var wrapLongitudeOrigin = new Cartesian3_default();
|
|
84
|
+
var wrapLongitudeXZNormal = new Cartesian3_default();
|
|
85
|
+
var wrapLongitudeXZPlane = new Plane_default(Cartesian3_default.UNIT_X, 0);
|
|
86
|
+
var wrapLongitudeYZNormal = new Cartesian3_default();
|
|
87
|
+
var wrapLongitudeYZPlane = new Plane_default(Cartesian3_default.UNIT_X, 0);
|
|
88
|
+
var wrapLongitudeIntersection = new Cartesian3_default();
|
|
89
|
+
var wrapLongitudeOffset = new Cartesian3_default();
|
|
90
|
+
var subdivideHeightsScratchArray = [];
|
|
91
|
+
function subdivideHeights(numPoints, h0, h1) {
|
|
92
|
+
const heights = subdivideHeightsScratchArray;
|
|
93
|
+
heights.length = numPoints;
|
|
94
|
+
let i;
|
|
95
|
+
if (h0 === h1) {
|
|
96
|
+
for (i = 0; i < numPoints; i++) {
|
|
97
|
+
heights[i] = h0;
|
|
98
|
+
}
|
|
99
|
+
return heights;
|
|
100
|
+
}
|
|
101
|
+
const dHeight = h1 - h0;
|
|
102
|
+
const heightPerVertex = dHeight / numPoints;
|
|
103
|
+
for (i = 0; i < numPoints; i++) {
|
|
104
|
+
const h = h0 + i * heightPerVertex;
|
|
105
|
+
heights[i] = h;
|
|
106
|
+
}
|
|
107
|
+
return heights;
|
|
108
|
+
}
|
|
109
|
+
var carto1 = new Cartographic_default();
|
|
110
|
+
var carto2 = new Cartographic_default();
|
|
111
|
+
var cartesian = new Cartesian3_default();
|
|
112
|
+
var scaleFirst = new Cartesian3_default();
|
|
113
|
+
var scaleLast = new Cartesian3_default();
|
|
114
|
+
var ellipsoidGeodesic = new EllipsoidGeodesic_default();
|
|
115
|
+
var ellipsoidRhumb = new EllipsoidRhumbLine_default();
|
|
116
|
+
function generateCartesianArc(p0, p1, minDistance, ellipsoid, h0, h1, array, offset) {
|
|
117
|
+
const first = ellipsoid.scaleToGeodeticSurface(p0, scaleFirst);
|
|
118
|
+
const last = ellipsoid.scaleToGeodeticSurface(p1, scaleLast);
|
|
119
|
+
const numPoints = PolylinePipeline.numberOfPoints(p0, p1, minDistance);
|
|
120
|
+
const start = ellipsoid.cartesianToCartographic(first, carto1);
|
|
121
|
+
const end = ellipsoid.cartesianToCartographic(last, carto2);
|
|
122
|
+
const heights = subdivideHeights(numPoints, h0, h1);
|
|
123
|
+
ellipsoidGeodesic.setEndPoints(start, end);
|
|
124
|
+
const surfaceDistanceBetweenPoints = ellipsoidGeodesic.surfaceDistance / numPoints;
|
|
125
|
+
let index = offset;
|
|
126
|
+
start.height = h0;
|
|
127
|
+
let cart = ellipsoid.cartographicToCartesian(start, cartesian);
|
|
128
|
+
Cartesian3_default.pack(cart, array, index);
|
|
129
|
+
index += 3;
|
|
130
|
+
for (let i = 1; i < numPoints; i++) {
|
|
131
|
+
const carto = ellipsoidGeodesic.interpolateUsingSurfaceDistance(
|
|
132
|
+
i * surfaceDistanceBetweenPoints,
|
|
133
|
+
carto2
|
|
134
|
+
);
|
|
135
|
+
carto.height = heights[i];
|
|
136
|
+
cart = ellipsoid.cartographicToCartesian(carto, cartesian);
|
|
137
|
+
Cartesian3_default.pack(cart, array, index);
|
|
138
|
+
index += 3;
|
|
139
|
+
}
|
|
140
|
+
return index;
|
|
141
|
+
}
|
|
142
|
+
function generateCartesianRhumbArc(p0, p1, granularity, ellipsoid, h0, h1, array, offset) {
|
|
143
|
+
const start = ellipsoid.cartesianToCartographic(p0, carto1);
|
|
144
|
+
const end = ellipsoid.cartesianToCartographic(p1, carto2);
|
|
145
|
+
const numPoints = PolylinePipeline.numberOfPointsRhumbLine(
|
|
146
|
+
start,
|
|
147
|
+
end,
|
|
148
|
+
granularity
|
|
149
|
+
);
|
|
150
|
+
start.height = 0;
|
|
151
|
+
end.height = 0;
|
|
152
|
+
const heights = subdivideHeights(numPoints, h0, h1);
|
|
153
|
+
if (!ellipsoidRhumb.ellipsoid.equals(ellipsoid)) {
|
|
154
|
+
ellipsoidRhumb = new EllipsoidRhumbLine_default(void 0, void 0, ellipsoid);
|
|
155
|
+
}
|
|
156
|
+
ellipsoidRhumb.setEndPoints(start, end);
|
|
157
|
+
const surfaceDistanceBetweenPoints = ellipsoidRhumb.surfaceDistance / numPoints;
|
|
158
|
+
let index = offset;
|
|
159
|
+
start.height = h0;
|
|
160
|
+
let cart = ellipsoid.cartographicToCartesian(start, cartesian);
|
|
161
|
+
Cartesian3_default.pack(cart, array, index);
|
|
162
|
+
index += 3;
|
|
163
|
+
for (let i = 1; i < numPoints; i++) {
|
|
164
|
+
const carto = ellipsoidRhumb.interpolateUsingSurfaceDistance(
|
|
165
|
+
i * surfaceDistanceBetweenPoints,
|
|
166
|
+
carto2
|
|
167
|
+
);
|
|
168
|
+
carto.height = heights[i];
|
|
169
|
+
cart = ellipsoid.cartographicToCartesian(carto, cartesian);
|
|
170
|
+
Cartesian3_default.pack(cart, array, index);
|
|
171
|
+
index += 3;
|
|
172
|
+
}
|
|
173
|
+
return index;
|
|
174
|
+
}
|
|
175
|
+
PolylinePipeline.wrapLongitude = function(positions, modelMatrix) {
|
|
176
|
+
const cartesians = [];
|
|
177
|
+
const segments = [];
|
|
178
|
+
if (defined_default(positions) && positions.length > 0) {
|
|
179
|
+
modelMatrix = defaultValue_default(modelMatrix, Matrix4_default.IDENTITY);
|
|
180
|
+
const inverseModelMatrix = Matrix4_default.inverseTransformation(
|
|
181
|
+
modelMatrix,
|
|
182
|
+
wrapLongitudeInversMatrix
|
|
183
|
+
);
|
|
184
|
+
const origin = Matrix4_default.multiplyByPoint(
|
|
185
|
+
inverseModelMatrix,
|
|
186
|
+
Cartesian3_default.ZERO,
|
|
187
|
+
wrapLongitudeOrigin
|
|
188
|
+
);
|
|
189
|
+
const xzNormal = Cartesian3_default.normalize(
|
|
190
|
+
Matrix4_default.multiplyByPointAsVector(
|
|
191
|
+
inverseModelMatrix,
|
|
192
|
+
Cartesian3_default.UNIT_Y,
|
|
193
|
+
wrapLongitudeXZNormal
|
|
194
|
+
),
|
|
195
|
+
wrapLongitudeXZNormal
|
|
196
|
+
);
|
|
197
|
+
const xzPlane = Plane_default.fromPointNormal(
|
|
198
|
+
origin,
|
|
199
|
+
xzNormal,
|
|
200
|
+
wrapLongitudeXZPlane
|
|
201
|
+
);
|
|
202
|
+
const yzNormal = Cartesian3_default.normalize(
|
|
203
|
+
Matrix4_default.multiplyByPointAsVector(
|
|
204
|
+
inverseModelMatrix,
|
|
205
|
+
Cartesian3_default.UNIT_X,
|
|
206
|
+
wrapLongitudeYZNormal
|
|
207
|
+
),
|
|
208
|
+
wrapLongitudeYZNormal
|
|
209
|
+
);
|
|
210
|
+
const yzPlane = Plane_default.fromPointNormal(
|
|
211
|
+
origin,
|
|
212
|
+
yzNormal,
|
|
213
|
+
wrapLongitudeYZPlane
|
|
214
|
+
);
|
|
215
|
+
let count = 1;
|
|
216
|
+
cartesians.push(Cartesian3_default.clone(positions[0]));
|
|
217
|
+
let prev = cartesians[0];
|
|
218
|
+
const length = positions.length;
|
|
219
|
+
for (let i = 1; i < length; ++i) {
|
|
220
|
+
const cur = positions[i];
|
|
221
|
+
if (Plane_default.getPointDistance(yzPlane, prev) < 0 || Plane_default.getPointDistance(yzPlane, cur) < 0) {
|
|
222
|
+
const intersection = IntersectionTests_default.lineSegmentPlane(
|
|
223
|
+
prev,
|
|
224
|
+
cur,
|
|
225
|
+
xzPlane,
|
|
226
|
+
wrapLongitudeIntersection
|
|
227
|
+
);
|
|
228
|
+
if (defined_default(intersection)) {
|
|
229
|
+
const offset = Cartesian3_default.multiplyByScalar(
|
|
230
|
+
xzNormal,
|
|
231
|
+
5e-9,
|
|
232
|
+
wrapLongitudeOffset
|
|
233
|
+
);
|
|
234
|
+
if (Plane_default.getPointDistance(xzPlane, prev) < 0) {
|
|
235
|
+
Cartesian3_default.negate(offset, offset);
|
|
236
|
+
}
|
|
237
|
+
cartesians.push(
|
|
238
|
+
Cartesian3_default.add(intersection, offset, new Cartesian3_default())
|
|
239
|
+
);
|
|
240
|
+
segments.push(count + 1);
|
|
241
|
+
Cartesian3_default.negate(offset, offset);
|
|
242
|
+
cartesians.push(
|
|
243
|
+
Cartesian3_default.add(intersection, offset, new Cartesian3_default())
|
|
244
|
+
);
|
|
245
|
+
count = 1;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
cartesians.push(Cartesian3_default.clone(positions[i]));
|
|
249
|
+
count++;
|
|
250
|
+
prev = cur;
|
|
251
|
+
}
|
|
252
|
+
segments.push(count);
|
|
253
|
+
}
|
|
254
|
+
return {
|
|
255
|
+
positions: cartesians,
|
|
256
|
+
lengths: segments
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
PolylinePipeline.generateArc = function(options) {
|
|
260
|
+
if (!defined_default(options)) {
|
|
261
|
+
options = {};
|
|
262
|
+
}
|
|
263
|
+
const positions = options.positions;
|
|
264
|
+
if (!defined_default(positions)) {
|
|
265
|
+
throw new DeveloperError_default("options.positions is required.");
|
|
266
|
+
}
|
|
267
|
+
const length = positions.length;
|
|
268
|
+
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.WGS84);
|
|
269
|
+
let height = defaultValue_default(options.height, 0);
|
|
270
|
+
const hasHeightArray = Array.isArray(height);
|
|
271
|
+
if (length < 1) {
|
|
272
|
+
return [];
|
|
273
|
+
} else if (length === 1) {
|
|
274
|
+
const p = ellipsoid.scaleToGeodeticSurface(positions[0], scaleFirst);
|
|
275
|
+
height = hasHeightArray ? height[0] : height;
|
|
276
|
+
if (height !== 0) {
|
|
277
|
+
const n = ellipsoid.geodeticSurfaceNormal(p, cartesian);
|
|
278
|
+
Cartesian3_default.multiplyByScalar(n, height, n);
|
|
279
|
+
Cartesian3_default.add(p, n, p);
|
|
280
|
+
}
|
|
281
|
+
return [p.x, p.y, p.z];
|
|
282
|
+
}
|
|
283
|
+
let minDistance = options.minDistance;
|
|
284
|
+
if (!defined_default(minDistance)) {
|
|
285
|
+
const granularity = defaultValue_default(
|
|
286
|
+
options.granularity,
|
|
287
|
+
Math_default.RADIANS_PER_DEGREE
|
|
288
|
+
);
|
|
289
|
+
minDistance = Math_default.chordLength(granularity, ellipsoid.maximumRadius);
|
|
290
|
+
}
|
|
291
|
+
let numPoints = 0;
|
|
292
|
+
let i;
|
|
293
|
+
for (i = 0; i < length - 1; i++) {
|
|
294
|
+
numPoints += PolylinePipeline.numberOfPoints(
|
|
295
|
+
positions[i],
|
|
296
|
+
positions[i + 1],
|
|
297
|
+
minDistance
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
const arrayLength = (numPoints + 1) * 3;
|
|
301
|
+
const newPositions = new Array(arrayLength);
|
|
302
|
+
let offset = 0;
|
|
303
|
+
for (i = 0; i < length - 1; i++) {
|
|
304
|
+
const p0 = positions[i];
|
|
305
|
+
const p1 = positions[i + 1];
|
|
306
|
+
const h0 = hasHeightArray ? height[i] : height;
|
|
307
|
+
const h1 = hasHeightArray ? height[i + 1] : height;
|
|
308
|
+
offset = generateCartesianArc(
|
|
309
|
+
p0,
|
|
310
|
+
p1,
|
|
311
|
+
minDistance,
|
|
312
|
+
ellipsoid,
|
|
313
|
+
h0,
|
|
314
|
+
h1,
|
|
315
|
+
newPositions,
|
|
316
|
+
offset
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
subdivideHeightsScratchArray.length = 0;
|
|
320
|
+
const lastPoint = positions[length - 1];
|
|
321
|
+
const carto = ellipsoid.cartesianToCartographic(lastPoint, carto1);
|
|
322
|
+
carto.height = hasHeightArray ? height[length - 1] : height;
|
|
323
|
+
const cart = ellipsoid.cartographicToCartesian(carto, cartesian);
|
|
324
|
+
Cartesian3_default.pack(cart, newPositions, arrayLength - 3);
|
|
325
|
+
return newPositions;
|
|
326
|
+
};
|
|
327
|
+
var scratchCartographic0 = new Cartographic_default();
|
|
328
|
+
var scratchCartographic1 = new Cartographic_default();
|
|
329
|
+
PolylinePipeline.generateRhumbArc = function(options) {
|
|
330
|
+
if (!defined_default(options)) {
|
|
331
|
+
options = {};
|
|
332
|
+
}
|
|
333
|
+
const positions = options.positions;
|
|
334
|
+
if (!defined_default(positions)) {
|
|
335
|
+
throw new DeveloperError_default("options.positions is required.");
|
|
336
|
+
}
|
|
337
|
+
const length = positions.length;
|
|
338
|
+
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.WGS84);
|
|
339
|
+
let height = defaultValue_default(options.height, 0);
|
|
340
|
+
const hasHeightArray = Array.isArray(height);
|
|
341
|
+
if (length < 1) {
|
|
342
|
+
return [];
|
|
343
|
+
} else if (length === 1) {
|
|
344
|
+
const p = ellipsoid.scaleToGeodeticSurface(positions[0], scaleFirst);
|
|
345
|
+
height = hasHeightArray ? height[0] : height;
|
|
346
|
+
if (height !== 0) {
|
|
347
|
+
const n = ellipsoid.geodeticSurfaceNormal(p, cartesian);
|
|
348
|
+
Cartesian3_default.multiplyByScalar(n, height, n);
|
|
349
|
+
Cartesian3_default.add(p, n, p);
|
|
350
|
+
}
|
|
351
|
+
return [p.x, p.y, p.z];
|
|
352
|
+
}
|
|
353
|
+
const granularity = defaultValue_default(
|
|
354
|
+
options.granularity,
|
|
355
|
+
Math_default.RADIANS_PER_DEGREE
|
|
356
|
+
);
|
|
357
|
+
let numPoints = 0;
|
|
358
|
+
let i;
|
|
359
|
+
let c0 = ellipsoid.cartesianToCartographic(
|
|
360
|
+
positions[0],
|
|
361
|
+
scratchCartographic0
|
|
362
|
+
);
|
|
363
|
+
let c1;
|
|
364
|
+
for (i = 0; i < length - 1; i++) {
|
|
365
|
+
c1 = ellipsoid.cartesianToCartographic(
|
|
366
|
+
positions[i + 1],
|
|
367
|
+
scratchCartographic1
|
|
368
|
+
);
|
|
369
|
+
numPoints += PolylinePipeline.numberOfPointsRhumbLine(c0, c1, granularity);
|
|
370
|
+
c0 = Cartographic_default.clone(c1, scratchCartographic0);
|
|
371
|
+
}
|
|
372
|
+
const arrayLength = (numPoints + 1) * 3;
|
|
373
|
+
const newPositions = new Array(arrayLength);
|
|
374
|
+
let offset = 0;
|
|
375
|
+
for (i = 0; i < length - 1; i++) {
|
|
376
|
+
const p0 = positions[i];
|
|
377
|
+
const p1 = positions[i + 1];
|
|
378
|
+
const h0 = hasHeightArray ? height[i] : height;
|
|
379
|
+
const h1 = hasHeightArray ? height[i + 1] : height;
|
|
380
|
+
offset = generateCartesianRhumbArc(
|
|
381
|
+
p0,
|
|
382
|
+
p1,
|
|
383
|
+
granularity,
|
|
384
|
+
ellipsoid,
|
|
385
|
+
h0,
|
|
386
|
+
h1,
|
|
387
|
+
newPositions,
|
|
388
|
+
offset
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
subdivideHeightsScratchArray.length = 0;
|
|
392
|
+
const lastPoint = positions[length - 1];
|
|
393
|
+
const carto = ellipsoid.cartesianToCartographic(lastPoint, carto1);
|
|
394
|
+
carto.height = hasHeightArray ? height[length - 1] : height;
|
|
395
|
+
const cart = ellipsoid.cartographicToCartesian(carto, cartesian);
|
|
396
|
+
Cartesian3_default.pack(cart, newPositions, arrayLength - 3);
|
|
397
|
+
return newPositions;
|
|
398
|
+
};
|
|
399
|
+
PolylinePipeline.generateCartesianArc = function(options) {
|
|
400
|
+
const numberArray = PolylinePipeline.generateArc(options);
|
|
401
|
+
const size = numberArray.length / 3;
|
|
402
|
+
const newPositions = new Array(size);
|
|
403
|
+
for (let i = 0; i < size; i++) {
|
|
404
|
+
newPositions[i] = Cartesian3_default.unpack(numberArray, i * 3);
|
|
405
|
+
}
|
|
406
|
+
return newPositions;
|
|
407
|
+
};
|
|
408
|
+
PolylinePipeline.generateCartesianRhumbArc = function(options) {
|
|
409
|
+
const numberArray = PolylinePipeline.generateRhumbArc(options);
|
|
410
|
+
const size = numberArray.length / 3;
|
|
411
|
+
const newPositions = new Array(size);
|
|
412
|
+
for (let i = 0; i < size; i++) {
|
|
413
|
+
newPositions[i] = Cartesian3_default.unpack(numberArray, i * 3);
|
|
414
|
+
}
|
|
415
|
+
return newPositions;
|
|
416
|
+
};
|
|
417
|
+
var PolylinePipeline_default = PolylinePipeline;
|
|
418
|
+
|
|
419
|
+
export {
|
|
420
|
+
PolylinePipeline_default
|
|
421
|
+
};
|