@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,634 @@
|
|
|
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
|
+
FeatureDetection_default
|
|
28
|
+
} from "./chunk-HOT2SNXP.js";
|
|
29
|
+
import {
|
|
30
|
+
Math_default
|
|
31
|
+
} from "./chunk-BP467WX3.js";
|
|
32
|
+
import {
|
|
33
|
+
defaultValue_default
|
|
34
|
+
} from "./chunk-CWJQGBWT.js";
|
|
35
|
+
import {
|
|
36
|
+
Check_default
|
|
37
|
+
} from "./chunk-5HLGKKG3.js";
|
|
38
|
+
import {
|
|
39
|
+
defined_default
|
|
40
|
+
} from "./chunk-YBKFS53K.js";
|
|
41
|
+
|
|
42
|
+
// packages/engine/Source/Core/Color.js
|
|
43
|
+
function hue2rgb(m1, m2, h) {
|
|
44
|
+
if (h < 0) {
|
|
45
|
+
h += 1;
|
|
46
|
+
}
|
|
47
|
+
if (h > 1) {
|
|
48
|
+
h -= 1;
|
|
49
|
+
}
|
|
50
|
+
if (h * 6 < 1) {
|
|
51
|
+
return m1 + (m2 - m1) * 6 * h;
|
|
52
|
+
}
|
|
53
|
+
if (h * 2 < 1) {
|
|
54
|
+
return m2;
|
|
55
|
+
}
|
|
56
|
+
if (h * 3 < 2) {
|
|
57
|
+
return m1 + (m2 - m1) * (2 / 3 - h) * 6;
|
|
58
|
+
}
|
|
59
|
+
return m1;
|
|
60
|
+
}
|
|
61
|
+
function Color(red, green, blue, alpha) {
|
|
62
|
+
this.red = defaultValue_default(red, 1);
|
|
63
|
+
this.green = defaultValue_default(green, 1);
|
|
64
|
+
this.blue = defaultValue_default(blue, 1);
|
|
65
|
+
this.alpha = defaultValue_default(alpha, 1);
|
|
66
|
+
}
|
|
67
|
+
Color.fromCartesian4 = function(cartesian, result) {
|
|
68
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
|
69
|
+
if (!defined_default(result)) {
|
|
70
|
+
return new Color(cartesian.x, cartesian.y, cartesian.z, cartesian.w);
|
|
71
|
+
}
|
|
72
|
+
result.red = cartesian.x;
|
|
73
|
+
result.green = cartesian.y;
|
|
74
|
+
result.blue = cartesian.z;
|
|
75
|
+
result.alpha = cartesian.w;
|
|
76
|
+
return result;
|
|
77
|
+
};
|
|
78
|
+
Color.fromBytes = function(red, green, blue, alpha, result) {
|
|
79
|
+
red = Color.byteToFloat(defaultValue_default(red, 255));
|
|
80
|
+
green = Color.byteToFloat(defaultValue_default(green, 255));
|
|
81
|
+
blue = Color.byteToFloat(defaultValue_default(blue, 255));
|
|
82
|
+
alpha = Color.byteToFloat(defaultValue_default(alpha, 255));
|
|
83
|
+
if (!defined_default(result)) {
|
|
84
|
+
return new Color(red, green, blue, alpha);
|
|
85
|
+
}
|
|
86
|
+
result.red = red;
|
|
87
|
+
result.green = green;
|
|
88
|
+
result.blue = blue;
|
|
89
|
+
result.alpha = alpha;
|
|
90
|
+
return result;
|
|
91
|
+
};
|
|
92
|
+
Color.fromAlpha = function(color, alpha, result) {
|
|
93
|
+
Check_default.typeOf.object("color", color);
|
|
94
|
+
Check_default.typeOf.number("alpha", alpha);
|
|
95
|
+
if (!defined_default(result)) {
|
|
96
|
+
return new Color(color.red, color.green, color.blue, alpha);
|
|
97
|
+
}
|
|
98
|
+
result.red = color.red;
|
|
99
|
+
result.green = color.green;
|
|
100
|
+
result.blue = color.blue;
|
|
101
|
+
result.alpha = alpha;
|
|
102
|
+
return result;
|
|
103
|
+
};
|
|
104
|
+
var scratchArrayBuffer;
|
|
105
|
+
var scratchUint32Array;
|
|
106
|
+
var scratchUint8Array;
|
|
107
|
+
if (FeatureDetection_default.supportsTypedArrays()) {
|
|
108
|
+
scratchArrayBuffer = new ArrayBuffer(4);
|
|
109
|
+
scratchUint32Array = new Uint32Array(scratchArrayBuffer);
|
|
110
|
+
scratchUint8Array = new Uint8Array(scratchArrayBuffer);
|
|
111
|
+
}
|
|
112
|
+
Color.fromRgba = function(rgba, result) {
|
|
113
|
+
scratchUint32Array[0] = rgba;
|
|
114
|
+
return Color.fromBytes(
|
|
115
|
+
scratchUint8Array[0],
|
|
116
|
+
scratchUint8Array[1],
|
|
117
|
+
scratchUint8Array[2],
|
|
118
|
+
scratchUint8Array[3],
|
|
119
|
+
result
|
|
120
|
+
);
|
|
121
|
+
};
|
|
122
|
+
Color.fromHsl = function(hue, saturation, lightness, alpha, result) {
|
|
123
|
+
hue = defaultValue_default(hue, 0) % 1;
|
|
124
|
+
saturation = defaultValue_default(saturation, 0);
|
|
125
|
+
lightness = defaultValue_default(lightness, 0);
|
|
126
|
+
alpha = defaultValue_default(alpha, 1);
|
|
127
|
+
let red = lightness;
|
|
128
|
+
let green = lightness;
|
|
129
|
+
let blue = lightness;
|
|
130
|
+
if (saturation !== 0) {
|
|
131
|
+
let m2;
|
|
132
|
+
if (lightness < 0.5) {
|
|
133
|
+
m2 = lightness * (1 + saturation);
|
|
134
|
+
} else {
|
|
135
|
+
m2 = lightness + saturation - lightness * saturation;
|
|
136
|
+
}
|
|
137
|
+
const m1 = 2 * lightness - m2;
|
|
138
|
+
red = hue2rgb(m1, m2, hue + 1 / 3);
|
|
139
|
+
green = hue2rgb(m1, m2, hue);
|
|
140
|
+
blue = hue2rgb(m1, m2, hue - 1 / 3);
|
|
141
|
+
}
|
|
142
|
+
if (!defined_default(result)) {
|
|
143
|
+
return new Color(red, green, blue, alpha);
|
|
144
|
+
}
|
|
145
|
+
result.red = red;
|
|
146
|
+
result.green = green;
|
|
147
|
+
result.blue = blue;
|
|
148
|
+
result.alpha = alpha;
|
|
149
|
+
return result;
|
|
150
|
+
};
|
|
151
|
+
Color.fromRandom = function(options, result) {
|
|
152
|
+
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
153
|
+
let red = options.red;
|
|
154
|
+
if (!defined_default(red)) {
|
|
155
|
+
const minimumRed = defaultValue_default(options.minimumRed, 0);
|
|
156
|
+
const maximumRed = defaultValue_default(options.maximumRed, 1);
|
|
157
|
+
Check_default.typeOf.number.lessThanOrEquals("minimumRed", minimumRed, maximumRed);
|
|
158
|
+
red = minimumRed + Math_default.nextRandomNumber() * (maximumRed - minimumRed);
|
|
159
|
+
}
|
|
160
|
+
let green = options.green;
|
|
161
|
+
if (!defined_default(green)) {
|
|
162
|
+
const minimumGreen = defaultValue_default(options.minimumGreen, 0);
|
|
163
|
+
const maximumGreen = defaultValue_default(options.maximumGreen, 1);
|
|
164
|
+
Check_default.typeOf.number.lessThanOrEquals(
|
|
165
|
+
"minimumGreen",
|
|
166
|
+
minimumGreen,
|
|
167
|
+
maximumGreen
|
|
168
|
+
);
|
|
169
|
+
green = minimumGreen + Math_default.nextRandomNumber() * (maximumGreen - minimumGreen);
|
|
170
|
+
}
|
|
171
|
+
let blue = options.blue;
|
|
172
|
+
if (!defined_default(blue)) {
|
|
173
|
+
const minimumBlue = defaultValue_default(options.minimumBlue, 0);
|
|
174
|
+
const maximumBlue = defaultValue_default(options.maximumBlue, 1);
|
|
175
|
+
Check_default.typeOf.number.lessThanOrEquals(
|
|
176
|
+
"minimumBlue",
|
|
177
|
+
minimumBlue,
|
|
178
|
+
maximumBlue
|
|
179
|
+
);
|
|
180
|
+
blue = minimumBlue + Math_default.nextRandomNumber() * (maximumBlue - minimumBlue);
|
|
181
|
+
}
|
|
182
|
+
let alpha = options.alpha;
|
|
183
|
+
if (!defined_default(alpha)) {
|
|
184
|
+
const minimumAlpha = defaultValue_default(options.minimumAlpha, 0);
|
|
185
|
+
const maximumAlpha = defaultValue_default(options.maximumAlpha, 1);
|
|
186
|
+
Check_default.typeOf.number.lessThanOrEquals(
|
|
187
|
+
"minumumAlpha",
|
|
188
|
+
minimumAlpha,
|
|
189
|
+
maximumAlpha
|
|
190
|
+
);
|
|
191
|
+
alpha = minimumAlpha + Math_default.nextRandomNumber() * (maximumAlpha - minimumAlpha);
|
|
192
|
+
}
|
|
193
|
+
if (!defined_default(result)) {
|
|
194
|
+
return new Color(red, green, blue, alpha);
|
|
195
|
+
}
|
|
196
|
+
result.red = red;
|
|
197
|
+
result.green = green;
|
|
198
|
+
result.blue = blue;
|
|
199
|
+
result.alpha = alpha;
|
|
200
|
+
return result;
|
|
201
|
+
};
|
|
202
|
+
var rgbaMatcher = /^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i;
|
|
203
|
+
var rrggbbaaMatcher = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i;
|
|
204
|
+
var rgbParenthesesMatcher = /^rgba?\s*\(\s*([0-9.]+%?)\s*[,\s]+\s*([0-9.]+%?)\s*[,\s]+\s*([0-9.]+%?)(?:\s*[,\s/]+\s*([0-9.]+))?\s*\)$/i;
|
|
205
|
+
var hslParenthesesMatcher = /^hsla?\s*\(\s*([0-9.]+)\s*[,\s]+\s*([0-9.]+%)\s*[,\s]+\s*([0-9.]+%)(?:\s*[,\s/]+\s*([0-9.]+))?\s*\)$/i;
|
|
206
|
+
Color.fromCssColorString = function(color, result) {
|
|
207
|
+
Check_default.typeOf.string("color", color);
|
|
208
|
+
if (!defined_default(result)) {
|
|
209
|
+
result = new Color();
|
|
210
|
+
}
|
|
211
|
+
color = color.trim();
|
|
212
|
+
const namedColor = Color[color.toUpperCase()];
|
|
213
|
+
if (defined_default(namedColor)) {
|
|
214
|
+
Color.clone(namedColor, result);
|
|
215
|
+
return result;
|
|
216
|
+
}
|
|
217
|
+
let matches = rgbaMatcher.exec(color);
|
|
218
|
+
if (matches !== null) {
|
|
219
|
+
result.red = parseInt(matches[1], 16) / 15;
|
|
220
|
+
result.green = parseInt(matches[2], 16) / 15;
|
|
221
|
+
result.blue = parseInt(matches[3], 16) / 15;
|
|
222
|
+
result.alpha = parseInt(defaultValue_default(matches[4], "f"), 16) / 15;
|
|
223
|
+
return result;
|
|
224
|
+
}
|
|
225
|
+
matches = rrggbbaaMatcher.exec(color);
|
|
226
|
+
if (matches !== null) {
|
|
227
|
+
result.red = parseInt(matches[1], 16) / 255;
|
|
228
|
+
result.green = parseInt(matches[2], 16) / 255;
|
|
229
|
+
result.blue = parseInt(matches[3], 16) / 255;
|
|
230
|
+
result.alpha = parseInt(defaultValue_default(matches[4], "ff"), 16) / 255;
|
|
231
|
+
return result;
|
|
232
|
+
}
|
|
233
|
+
matches = rgbParenthesesMatcher.exec(color);
|
|
234
|
+
if (matches !== null) {
|
|
235
|
+
result.red = parseFloat(matches[1]) / ("%" === matches[1].substr(-1) ? 100 : 255);
|
|
236
|
+
result.green = parseFloat(matches[2]) / ("%" === matches[2].substr(-1) ? 100 : 255);
|
|
237
|
+
result.blue = parseFloat(matches[3]) / ("%" === matches[3].substr(-1) ? 100 : 255);
|
|
238
|
+
result.alpha = parseFloat(defaultValue_default(matches[4], "1.0"));
|
|
239
|
+
return result;
|
|
240
|
+
}
|
|
241
|
+
matches = hslParenthesesMatcher.exec(color);
|
|
242
|
+
if (matches !== null) {
|
|
243
|
+
return Color.fromHsl(
|
|
244
|
+
parseFloat(matches[1]) / 360,
|
|
245
|
+
parseFloat(matches[2]) / 100,
|
|
246
|
+
parseFloat(matches[3]) / 100,
|
|
247
|
+
parseFloat(defaultValue_default(matches[4], "1.0")),
|
|
248
|
+
result
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
result = void 0;
|
|
252
|
+
return result;
|
|
253
|
+
};
|
|
254
|
+
Color.packedLength = 4;
|
|
255
|
+
Color.pack = function(value, array, startingIndex) {
|
|
256
|
+
Check_default.typeOf.object("value", value);
|
|
257
|
+
Check_default.defined("array", array);
|
|
258
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
259
|
+
array[startingIndex++] = value.red;
|
|
260
|
+
array[startingIndex++] = value.green;
|
|
261
|
+
array[startingIndex++] = value.blue;
|
|
262
|
+
array[startingIndex] = value.alpha;
|
|
263
|
+
return array;
|
|
264
|
+
};
|
|
265
|
+
Color.unpack = function(array, startingIndex, result) {
|
|
266
|
+
Check_default.defined("array", array);
|
|
267
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
268
|
+
if (!defined_default(result)) {
|
|
269
|
+
result = new Color();
|
|
270
|
+
}
|
|
271
|
+
result.red = array[startingIndex++];
|
|
272
|
+
result.green = array[startingIndex++];
|
|
273
|
+
result.blue = array[startingIndex++];
|
|
274
|
+
result.alpha = array[startingIndex];
|
|
275
|
+
return result;
|
|
276
|
+
};
|
|
277
|
+
Color.byteToFloat = function(number) {
|
|
278
|
+
return number / 255;
|
|
279
|
+
};
|
|
280
|
+
Color.floatToByte = function(number) {
|
|
281
|
+
return number === 1 ? 255 : number * 256 | 0;
|
|
282
|
+
};
|
|
283
|
+
Color.clone = function(color, result) {
|
|
284
|
+
if (!defined_default(color)) {
|
|
285
|
+
return void 0;
|
|
286
|
+
}
|
|
287
|
+
if (!defined_default(result)) {
|
|
288
|
+
return new Color(color.red, color.green, color.blue, color.alpha);
|
|
289
|
+
}
|
|
290
|
+
result.red = color.red;
|
|
291
|
+
result.green = color.green;
|
|
292
|
+
result.blue = color.blue;
|
|
293
|
+
result.alpha = color.alpha;
|
|
294
|
+
return result;
|
|
295
|
+
};
|
|
296
|
+
Color.equals = function(left, right) {
|
|
297
|
+
return left === right || //
|
|
298
|
+
defined_default(left) && //
|
|
299
|
+
defined_default(right) && //
|
|
300
|
+
left.red === right.red && //
|
|
301
|
+
left.green === right.green && //
|
|
302
|
+
left.blue === right.blue && //
|
|
303
|
+
left.alpha === right.alpha;
|
|
304
|
+
};
|
|
305
|
+
Color.equalsArray = function(color, array, offset) {
|
|
306
|
+
return color.red === array[offset] && color.green === array[offset + 1] && color.blue === array[offset + 2] && color.alpha === array[offset + 3];
|
|
307
|
+
};
|
|
308
|
+
Color.prototype.clone = function(result) {
|
|
309
|
+
return Color.clone(this, result);
|
|
310
|
+
};
|
|
311
|
+
Color.prototype.equals = function(other) {
|
|
312
|
+
return Color.equals(this, other);
|
|
313
|
+
};
|
|
314
|
+
Color.prototype.equalsEpsilon = function(other, epsilon) {
|
|
315
|
+
return this === other || //
|
|
316
|
+
defined_default(other) && //
|
|
317
|
+
Math.abs(this.red - other.red) <= epsilon && //
|
|
318
|
+
Math.abs(this.green - other.green) <= epsilon && //
|
|
319
|
+
Math.abs(this.blue - other.blue) <= epsilon && //
|
|
320
|
+
Math.abs(this.alpha - other.alpha) <= epsilon;
|
|
321
|
+
};
|
|
322
|
+
Color.prototype.toString = function() {
|
|
323
|
+
return `(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;
|
|
324
|
+
};
|
|
325
|
+
Color.prototype.toCssColorString = function() {
|
|
326
|
+
const red = Color.floatToByte(this.red);
|
|
327
|
+
const green = Color.floatToByte(this.green);
|
|
328
|
+
const blue = Color.floatToByte(this.blue);
|
|
329
|
+
if (this.alpha === 1) {
|
|
330
|
+
return `rgb(${red},${green},${blue})`;
|
|
331
|
+
}
|
|
332
|
+
return `rgba(${red},${green},${blue},${this.alpha})`;
|
|
333
|
+
};
|
|
334
|
+
Color.prototype.toCssHexString = function() {
|
|
335
|
+
let r = Color.floatToByte(this.red).toString(16);
|
|
336
|
+
if (r.length < 2) {
|
|
337
|
+
r = `0${r}`;
|
|
338
|
+
}
|
|
339
|
+
let g = Color.floatToByte(this.green).toString(16);
|
|
340
|
+
if (g.length < 2) {
|
|
341
|
+
g = `0${g}`;
|
|
342
|
+
}
|
|
343
|
+
let b = Color.floatToByte(this.blue).toString(16);
|
|
344
|
+
if (b.length < 2) {
|
|
345
|
+
b = `0${b}`;
|
|
346
|
+
}
|
|
347
|
+
if (this.alpha < 1) {
|
|
348
|
+
let hexAlpha = Color.floatToByte(this.alpha).toString(16);
|
|
349
|
+
if (hexAlpha.length < 2) {
|
|
350
|
+
hexAlpha = `0${hexAlpha}`;
|
|
351
|
+
}
|
|
352
|
+
return `#${r}${g}${b}${hexAlpha}`;
|
|
353
|
+
}
|
|
354
|
+
return `#${r}${g}${b}`;
|
|
355
|
+
};
|
|
356
|
+
Color.prototype.toBytes = function(result) {
|
|
357
|
+
const red = Color.floatToByte(this.red);
|
|
358
|
+
const green = Color.floatToByte(this.green);
|
|
359
|
+
const blue = Color.floatToByte(this.blue);
|
|
360
|
+
const alpha = Color.floatToByte(this.alpha);
|
|
361
|
+
if (!defined_default(result)) {
|
|
362
|
+
return [red, green, blue, alpha];
|
|
363
|
+
}
|
|
364
|
+
result[0] = red;
|
|
365
|
+
result[1] = green;
|
|
366
|
+
result[2] = blue;
|
|
367
|
+
result[3] = alpha;
|
|
368
|
+
return result;
|
|
369
|
+
};
|
|
370
|
+
Color.prototype.toRgba = function() {
|
|
371
|
+
scratchUint8Array[0] = Color.floatToByte(this.red);
|
|
372
|
+
scratchUint8Array[1] = Color.floatToByte(this.green);
|
|
373
|
+
scratchUint8Array[2] = Color.floatToByte(this.blue);
|
|
374
|
+
scratchUint8Array[3] = Color.floatToByte(this.alpha);
|
|
375
|
+
return scratchUint32Array[0];
|
|
376
|
+
};
|
|
377
|
+
Color.prototype.brighten = function(magnitude, result) {
|
|
378
|
+
Check_default.typeOf.number("magnitude", magnitude);
|
|
379
|
+
Check_default.typeOf.number.greaterThanOrEquals("magnitude", magnitude, 0);
|
|
380
|
+
Check_default.typeOf.object("result", result);
|
|
381
|
+
magnitude = 1 - magnitude;
|
|
382
|
+
result.red = 1 - (1 - this.red) * magnitude;
|
|
383
|
+
result.green = 1 - (1 - this.green) * magnitude;
|
|
384
|
+
result.blue = 1 - (1 - this.blue) * magnitude;
|
|
385
|
+
result.alpha = this.alpha;
|
|
386
|
+
return result;
|
|
387
|
+
};
|
|
388
|
+
Color.prototype.darken = function(magnitude, result) {
|
|
389
|
+
Check_default.typeOf.number("magnitude", magnitude);
|
|
390
|
+
Check_default.typeOf.number.greaterThanOrEquals("magnitude", magnitude, 0);
|
|
391
|
+
Check_default.typeOf.object("result", result);
|
|
392
|
+
magnitude = 1 - magnitude;
|
|
393
|
+
result.red = this.red * magnitude;
|
|
394
|
+
result.green = this.green * magnitude;
|
|
395
|
+
result.blue = this.blue * magnitude;
|
|
396
|
+
result.alpha = this.alpha;
|
|
397
|
+
return result;
|
|
398
|
+
};
|
|
399
|
+
Color.prototype.withAlpha = function(alpha, result) {
|
|
400
|
+
return Color.fromAlpha(this, alpha, result);
|
|
401
|
+
};
|
|
402
|
+
Color.add = function(left, right, result) {
|
|
403
|
+
Check_default.typeOf.object("left", left);
|
|
404
|
+
Check_default.typeOf.object("right", right);
|
|
405
|
+
Check_default.typeOf.object("result", result);
|
|
406
|
+
result.red = left.red + right.red;
|
|
407
|
+
result.green = left.green + right.green;
|
|
408
|
+
result.blue = left.blue + right.blue;
|
|
409
|
+
result.alpha = left.alpha + right.alpha;
|
|
410
|
+
return result;
|
|
411
|
+
};
|
|
412
|
+
Color.subtract = function(left, right, result) {
|
|
413
|
+
Check_default.typeOf.object("left", left);
|
|
414
|
+
Check_default.typeOf.object("right", right);
|
|
415
|
+
Check_default.typeOf.object("result", result);
|
|
416
|
+
result.red = left.red - right.red;
|
|
417
|
+
result.green = left.green - right.green;
|
|
418
|
+
result.blue = left.blue - right.blue;
|
|
419
|
+
result.alpha = left.alpha - right.alpha;
|
|
420
|
+
return result;
|
|
421
|
+
};
|
|
422
|
+
Color.multiply = function(left, right, result) {
|
|
423
|
+
Check_default.typeOf.object("left", left);
|
|
424
|
+
Check_default.typeOf.object("right", right);
|
|
425
|
+
Check_default.typeOf.object("result", result);
|
|
426
|
+
result.red = left.red * right.red;
|
|
427
|
+
result.green = left.green * right.green;
|
|
428
|
+
result.blue = left.blue * right.blue;
|
|
429
|
+
result.alpha = left.alpha * right.alpha;
|
|
430
|
+
return result;
|
|
431
|
+
};
|
|
432
|
+
Color.divide = function(left, right, result) {
|
|
433
|
+
Check_default.typeOf.object("left", left);
|
|
434
|
+
Check_default.typeOf.object("right", right);
|
|
435
|
+
Check_default.typeOf.object("result", result);
|
|
436
|
+
result.red = left.red / right.red;
|
|
437
|
+
result.green = left.green / right.green;
|
|
438
|
+
result.blue = left.blue / right.blue;
|
|
439
|
+
result.alpha = left.alpha / right.alpha;
|
|
440
|
+
return result;
|
|
441
|
+
};
|
|
442
|
+
Color.mod = function(left, right, result) {
|
|
443
|
+
Check_default.typeOf.object("left", left);
|
|
444
|
+
Check_default.typeOf.object("right", right);
|
|
445
|
+
Check_default.typeOf.object("result", result);
|
|
446
|
+
result.red = left.red % right.red;
|
|
447
|
+
result.green = left.green % right.green;
|
|
448
|
+
result.blue = left.blue % right.blue;
|
|
449
|
+
result.alpha = left.alpha % right.alpha;
|
|
450
|
+
return result;
|
|
451
|
+
};
|
|
452
|
+
Color.lerp = function(start, end, t, result) {
|
|
453
|
+
Check_default.typeOf.object("start", start);
|
|
454
|
+
Check_default.typeOf.object("end", end);
|
|
455
|
+
Check_default.typeOf.number("t", t);
|
|
456
|
+
Check_default.typeOf.object("result", result);
|
|
457
|
+
result.red = Math_default.lerp(start.red, end.red, t);
|
|
458
|
+
result.green = Math_default.lerp(start.green, end.green, t);
|
|
459
|
+
result.blue = Math_default.lerp(start.blue, end.blue, t);
|
|
460
|
+
result.alpha = Math_default.lerp(start.alpha, end.alpha, t);
|
|
461
|
+
return result;
|
|
462
|
+
};
|
|
463
|
+
Color.multiplyByScalar = function(color, scalar, result) {
|
|
464
|
+
Check_default.typeOf.object("color", color);
|
|
465
|
+
Check_default.typeOf.number("scalar", scalar);
|
|
466
|
+
Check_default.typeOf.object("result", result);
|
|
467
|
+
result.red = color.red * scalar;
|
|
468
|
+
result.green = color.green * scalar;
|
|
469
|
+
result.blue = color.blue * scalar;
|
|
470
|
+
result.alpha = color.alpha * scalar;
|
|
471
|
+
return result;
|
|
472
|
+
};
|
|
473
|
+
Color.divideByScalar = function(color, scalar, result) {
|
|
474
|
+
Check_default.typeOf.object("color", color);
|
|
475
|
+
Check_default.typeOf.number("scalar", scalar);
|
|
476
|
+
Check_default.typeOf.object("result", result);
|
|
477
|
+
result.red = color.red / scalar;
|
|
478
|
+
result.green = color.green / scalar;
|
|
479
|
+
result.blue = color.blue / scalar;
|
|
480
|
+
result.alpha = color.alpha / scalar;
|
|
481
|
+
return result;
|
|
482
|
+
};
|
|
483
|
+
Color.ALICEBLUE = Object.freeze(Color.fromCssColorString("#F0F8FF"));
|
|
484
|
+
Color.ANTIQUEWHITE = Object.freeze(Color.fromCssColorString("#FAEBD7"));
|
|
485
|
+
Color.AQUA = Object.freeze(Color.fromCssColorString("#00FFFF"));
|
|
486
|
+
Color.AQUAMARINE = Object.freeze(Color.fromCssColorString("#7FFFD4"));
|
|
487
|
+
Color.AZURE = Object.freeze(Color.fromCssColorString("#F0FFFF"));
|
|
488
|
+
Color.BEIGE = Object.freeze(Color.fromCssColorString("#F5F5DC"));
|
|
489
|
+
Color.BISQUE = Object.freeze(Color.fromCssColorString("#FFE4C4"));
|
|
490
|
+
Color.BLACK = Object.freeze(Color.fromCssColorString("#000000"));
|
|
491
|
+
Color.BLANCHEDALMOND = Object.freeze(Color.fromCssColorString("#FFEBCD"));
|
|
492
|
+
Color.BLUE = Object.freeze(Color.fromCssColorString("#0000FF"));
|
|
493
|
+
Color.BLUEVIOLET = Object.freeze(Color.fromCssColorString("#8A2BE2"));
|
|
494
|
+
Color.BROWN = Object.freeze(Color.fromCssColorString("#A52A2A"));
|
|
495
|
+
Color.BURLYWOOD = Object.freeze(Color.fromCssColorString("#DEB887"));
|
|
496
|
+
Color.CADETBLUE = Object.freeze(Color.fromCssColorString("#5F9EA0"));
|
|
497
|
+
Color.CHARTREUSE = Object.freeze(Color.fromCssColorString("#7FFF00"));
|
|
498
|
+
Color.CHOCOLATE = Object.freeze(Color.fromCssColorString("#D2691E"));
|
|
499
|
+
Color.CORAL = Object.freeze(Color.fromCssColorString("#FF7F50"));
|
|
500
|
+
Color.CORNFLOWERBLUE = Object.freeze(Color.fromCssColorString("#6495ED"));
|
|
501
|
+
Color.CORNSILK = Object.freeze(Color.fromCssColorString("#FFF8DC"));
|
|
502
|
+
Color.CRIMSON = Object.freeze(Color.fromCssColorString("#DC143C"));
|
|
503
|
+
Color.CYAN = Object.freeze(Color.fromCssColorString("#00FFFF"));
|
|
504
|
+
Color.DARKBLUE = Object.freeze(Color.fromCssColorString("#00008B"));
|
|
505
|
+
Color.DARKCYAN = Object.freeze(Color.fromCssColorString("#008B8B"));
|
|
506
|
+
Color.DARKGOLDENROD = Object.freeze(Color.fromCssColorString("#B8860B"));
|
|
507
|
+
Color.DARKGRAY = Object.freeze(Color.fromCssColorString("#A9A9A9"));
|
|
508
|
+
Color.DARKGREEN = Object.freeze(Color.fromCssColorString("#006400"));
|
|
509
|
+
Color.DARKGREY = Color.DARKGRAY;
|
|
510
|
+
Color.DARKKHAKI = Object.freeze(Color.fromCssColorString("#BDB76B"));
|
|
511
|
+
Color.DARKMAGENTA = Object.freeze(Color.fromCssColorString("#8B008B"));
|
|
512
|
+
Color.DARKOLIVEGREEN = Object.freeze(Color.fromCssColorString("#556B2F"));
|
|
513
|
+
Color.DARKORANGE = Object.freeze(Color.fromCssColorString("#FF8C00"));
|
|
514
|
+
Color.DARKORCHID = Object.freeze(Color.fromCssColorString("#9932CC"));
|
|
515
|
+
Color.DARKRED = Object.freeze(Color.fromCssColorString("#8B0000"));
|
|
516
|
+
Color.DARKSALMON = Object.freeze(Color.fromCssColorString("#E9967A"));
|
|
517
|
+
Color.DARKSEAGREEN = Object.freeze(Color.fromCssColorString("#8FBC8F"));
|
|
518
|
+
Color.DARKSLATEBLUE = Object.freeze(Color.fromCssColorString("#483D8B"));
|
|
519
|
+
Color.DARKSLATEGRAY = Object.freeze(Color.fromCssColorString("#2F4F4F"));
|
|
520
|
+
Color.DARKSLATEGREY = Color.DARKSLATEGRAY;
|
|
521
|
+
Color.DARKTURQUOISE = Object.freeze(Color.fromCssColorString("#00CED1"));
|
|
522
|
+
Color.DARKVIOLET = Object.freeze(Color.fromCssColorString("#9400D3"));
|
|
523
|
+
Color.DEEPPINK = Object.freeze(Color.fromCssColorString("#FF1493"));
|
|
524
|
+
Color.DEEPSKYBLUE = Object.freeze(Color.fromCssColorString("#00BFFF"));
|
|
525
|
+
Color.DIMGRAY = Object.freeze(Color.fromCssColorString("#696969"));
|
|
526
|
+
Color.DIMGREY = Color.DIMGRAY;
|
|
527
|
+
Color.DODGERBLUE = Object.freeze(Color.fromCssColorString("#1E90FF"));
|
|
528
|
+
Color.FIREBRICK = Object.freeze(Color.fromCssColorString("#B22222"));
|
|
529
|
+
Color.FLORALWHITE = Object.freeze(Color.fromCssColorString("#FFFAF0"));
|
|
530
|
+
Color.FORESTGREEN = Object.freeze(Color.fromCssColorString("#228B22"));
|
|
531
|
+
Color.FUCHSIA = Object.freeze(Color.fromCssColorString("#FF00FF"));
|
|
532
|
+
Color.GAINSBORO = Object.freeze(Color.fromCssColorString("#DCDCDC"));
|
|
533
|
+
Color.GHOSTWHITE = Object.freeze(Color.fromCssColorString("#F8F8FF"));
|
|
534
|
+
Color.GOLD = Object.freeze(Color.fromCssColorString("#FFD700"));
|
|
535
|
+
Color.GOLDENROD = Object.freeze(Color.fromCssColorString("#DAA520"));
|
|
536
|
+
Color.GRAY = Object.freeze(Color.fromCssColorString("#808080"));
|
|
537
|
+
Color.GREEN = Object.freeze(Color.fromCssColorString("#008000"));
|
|
538
|
+
Color.GREENYELLOW = Object.freeze(Color.fromCssColorString("#ADFF2F"));
|
|
539
|
+
Color.GREY = Color.GRAY;
|
|
540
|
+
Color.HONEYDEW = Object.freeze(Color.fromCssColorString("#F0FFF0"));
|
|
541
|
+
Color.HOTPINK = Object.freeze(Color.fromCssColorString("#FF69B4"));
|
|
542
|
+
Color.INDIANRED = Object.freeze(Color.fromCssColorString("#CD5C5C"));
|
|
543
|
+
Color.INDIGO = Object.freeze(Color.fromCssColorString("#4B0082"));
|
|
544
|
+
Color.IVORY = Object.freeze(Color.fromCssColorString("#FFFFF0"));
|
|
545
|
+
Color.KHAKI = Object.freeze(Color.fromCssColorString("#F0E68C"));
|
|
546
|
+
Color.LAVENDER = Object.freeze(Color.fromCssColorString("#E6E6FA"));
|
|
547
|
+
Color.LAVENDAR_BLUSH = Object.freeze(Color.fromCssColorString("#FFF0F5"));
|
|
548
|
+
Color.LAWNGREEN = Object.freeze(Color.fromCssColorString("#7CFC00"));
|
|
549
|
+
Color.LEMONCHIFFON = Object.freeze(Color.fromCssColorString("#FFFACD"));
|
|
550
|
+
Color.LIGHTBLUE = Object.freeze(Color.fromCssColorString("#ADD8E6"));
|
|
551
|
+
Color.LIGHTCORAL = Object.freeze(Color.fromCssColorString("#F08080"));
|
|
552
|
+
Color.LIGHTCYAN = Object.freeze(Color.fromCssColorString("#E0FFFF"));
|
|
553
|
+
Color.LIGHTGOLDENRODYELLOW = Object.freeze(Color.fromCssColorString("#FAFAD2"));
|
|
554
|
+
Color.LIGHTGRAY = Object.freeze(Color.fromCssColorString("#D3D3D3"));
|
|
555
|
+
Color.LIGHTGREEN = Object.freeze(Color.fromCssColorString("#90EE90"));
|
|
556
|
+
Color.LIGHTGREY = Color.LIGHTGRAY;
|
|
557
|
+
Color.LIGHTPINK = Object.freeze(Color.fromCssColorString("#FFB6C1"));
|
|
558
|
+
Color.LIGHTSEAGREEN = Object.freeze(Color.fromCssColorString("#20B2AA"));
|
|
559
|
+
Color.LIGHTSKYBLUE = Object.freeze(Color.fromCssColorString("#87CEFA"));
|
|
560
|
+
Color.LIGHTSLATEGRAY = Object.freeze(Color.fromCssColorString("#778899"));
|
|
561
|
+
Color.LIGHTSLATEGREY = Color.LIGHTSLATEGRAY;
|
|
562
|
+
Color.LIGHTSTEELBLUE = Object.freeze(Color.fromCssColorString("#B0C4DE"));
|
|
563
|
+
Color.LIGHTYELLOW = Object.freeze(Color.fromCssColorString("#FFFFE0"));
|
|
564
|
+
Color.LIME = Object.freeze(Color.fromCssColorString("#00FF00"));
|
|
565
|
+
Color.LIMEGREEN = Object.freeze(Color.fromCssColorString("#32CD32"));
|
|
566
|
+
Color.LINEN = Object.freeze(Color.fromCssColorString("#FAF0E6"));
|
|
567
|
+
Color.MAGENTA = Object.freeze(Color.fromCssColorString("#FF00FF"));
|
|
568
|
+
Color.MAROON = Object.freeze(Color.fromCssColorString("#800000"));
|
|
569
|
+
Color.MEDIUMAQUAMARINE = Object.freeze(Color.fromCssColorString("#66CDAA"));
|
|
570
|
+
Color.MEDIUMBLUE = Object.freeze(Color.fromCssColorString("#0000CD"));
|
|
571
|
+
Color.MEDIUMORCHID = Object.freeze(Color.fromCssColorString("#BA55D3"));
|
|
572
|
+
Color.MEDIUMPURPLE = Object.freeze(Color.fromCssColorString("#9370DB"));
|
|
573
|
+
Color.MEDIUMSEAGREEN = Object.freeze(Color.fromCssColorString("#3CB371"));
|
|
574
|
+
Color.MEDIUMSLATEBLUE = Object.freeze(Color.fromCssColorString("#7B68EE"));
|
|
575
|
+
Color.MEDIUMSPRINGGREEN = Object.freeze(Color.fromCssColorString("#00FA9A"));
|
|
576
|
+
Color.MEDIUMTURQUOISE = Object.freeze(Color.fromCssColorString("#48D1CC"));
|
|
577
|
+
Color.MEDIUMVIOLETRED = Object.freeze(Color.fromCssColorString("#C71585"));
|
|
578
|
+
Color.MIDNIGHTBLUE = Object.freeze(Color.fromCssColorString("#191970"));
|
|
579
|
+
Color.MINTCREAM = Object.freeze(Color.fromCssColorString("#F5FFFA"));
|
|
580
|
+
Color.MISTYROSE = Object.freeze(Color.fromCssColorString("#FFE4E1"));
|
|
581
|
+
Color.MOCCASIN = Object.freeze(Color.fromCssColorString("#FFE4B5"));
|
|
582
|
+
Color.NAVAJOWHITE = Object.freeze(Color.fromCssColorString("#FFDEAD"));
|
|
583
|
+
Color.NAVY = Object.freeze(Color.fromCssColorString("#000080"));
|
|
584
|
+
Color.OLDLACE = Object.freeze(Color.fromCssColorString("#FDF5E6"));
|
|
585
|
+
Color.OLIVE = Object.freeze(Color.fromCssColorString("#808000"));
|
|
586
|
+
Color.OLIVEDRAB = Object.freeze(Color.fromCssColorString("#6B8E23"));
|
|
587
|
+
Color.ORANGE = Object.freeze(Color.fromCssColorString("#FFA500"));
|
|
588
|
+
Color.ORANGERED = Object.freeze(Color.fromCssColorString("#FF4500"));
|
|
589
|
+
Color.ORCHID = Object.freeze(Color.fromCssColorString("#DA70D6"));
|
|
590
|
+
Color.PALEGOLDENROD = Object.freeze(Color.fromCssColorString("#EEE8AA"));
|
|
591
|
+
Color.PALEGREEN = Object.freeze(Color.fromCssColorString("#98FB98"));
|
|
592
|
+
Color.PALETURQUOISE = Object.freeze(Color.fromCssColorString("#AFEEEE"));
|
|
593
|
+
Color.PALEVIOLETRED = Object.freeze(Color.fromCssColorString("#DB7093"));
|
|
594
|
+
Color.PAPAYAWHIP = Object.freeze(Color.fromCssColorString("#FFEFD5"));
|
|
595
|
+
Color.PEACHPUFF = Object.freeze(Color.fromCssColorString("#FFDAB9"));
|
|
596
|
+
Color.PERU = Object.freeze(Color.fromCssColorString("#CD853F"));
|
|
597
|
+
Color.PINK = Object.freeze(Color.fromCssColorString("#FFC0CB"));
|
|
598
|
+
Color.PLUM = Object.freeze(Color.fromCssColorString("#DDA0DD"));
|
|
599
|
+
Color.POWDERBLUE = Object.freeze(Color.fromCssColorString("#B0E0E6"));
|
|
600
|
+
Color.PURPLE = Object.freeze(Color.fromCssColorString("#800080"));
|
|
601
|
+
Color.RED = Object.freeze(Color.fromCssColorString("#FF0000"));
|
|
602
|
+
Color.ROSYBROWN = Object.freeze(Color.fromCssColorString("#BC8F8F"));
|
|
603
|
+
Color.ROYALBLUE = Object.freeze(Color.fromCssColorString("#4169E1"));
|
|
604
|
+
Color.SADDLEBROWN = Object.freeze(Color.fromCssColorString("#8B4513"));
|
|
605
|
+
Color.SALMON = Object.freeze(Color.fromCssColorString("#FA8072"));
|
|
606
|
+
Color.SANDYBROWN = Object.freeze(Color.fromCssColorString("#F4A460"));
|
|
607
|
+
Color.SEAGREEN = Object.freeze(Color.fromCssColorString("#2E8B57"));
|
|
608
|
+
Color.SEASHELL = Object.freeze(Color.fromCssColorString("#FFF5EE"));
|
|
609
|
+
Color.SIENNA = Object.freeze(Color.fromCssColorString("#A0522D"));
|
|
610
|
+
Color.SILVER = Object.freeze(Color.fromCssColorString("#C0C0C0"));
|
|
611
|
+
Color.SKYBLUE = Object.freeze(Color.fromCssColorString("#87CEEB"));
|
|
612
|
+
Color.SLATEBLUE = Object.freeze(Color.fromCssColorString("#6A5ACD"));
|
|
613
|
+
Color.SLATEGRAY = Object.freeze(Color.fromCssColorString("#708090"));
|
|
614
|
+
Color.SLATEGREY = Color.SLATEGRAY;
|
|
615
|
+
Color.SNOW = Object.freeze(Color.fromCssColorString("#FFFAFA"));
|
|
616
|
+
Color.SPRINGGREEN = Object.freeze(Color.fromCssColorString("#00FF7F"));
|
|
617
|
+
Color.STEELBLUE = Object.freeze(Color.fromCssColorString("#4682B4"));
|
|
618
|
+
Color.TAN = Object.freeze(Color.fromCssColorString("#D2B48C"));
|
|
619
|
+
Color.TEAL = Object.freeze(Color.fromCssColorString("#008080"));
|
|
620
|
+
Color.THISTLE = Object.freeze(Color.fromCssColorString("#D8BFD8"));
|
|
621
|
+
Color.TOMATO = Object.freeze(Color.fromCssColorString("#FF6347"));
|
|
622
|
+
Color.TURQUOISE = Object.freeze(Color.fromCssColorString("#40E0D0"));
|
|
623
|
+
Color.VIOLET = Object.freeze(Color.fromCssColorString("#EE82EE"));
|
|
624
|
+
Color.WHEAT = Object.freeze(Color.fromCssColorString("#F5DEB3"));
|
|
625
|
+
Color.WHITE = Object.freeze(Color.fromCssColorString("#FFFFFF"));
|
|
626
|
+
Color.WHITESMOKE = Object.freeze(Color.fromCssColorString("#F5F5F5"));
|
|
627
|
+
Color.YELLOW = Object.freeze(Color.fromCssColorString("#FFFF00"));
|
|
628
|
+
Color.YELLOWGREEN = Object.freeze(Color.fromCssColorString("#9ACD32"));
|
|
629
|
+
Color.TRANSPARENT = Object.freeze(new Color(0, 0, 0, 0));
|
|
630
|
+
var Color_default = Color;
|
|
631
|
+
|
|
632
|
+
export {
|
|
633
|
+
Color_default
|
|
634
|
+
};
|