@cesium/engine 0.1.0
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/Build/ThirdParty/Workers/basis_transcoder.js +2233 -0
- package/Build/ThirdParty/Workers/draco_decoder_nodejs.js +1872 -0
- package/Build/ThirdParty/Workers/package.json +1 -0
- package/Build/ThirdParty/Workers/pako_deflate.min.js +589 -0
- package/Build/ThirdParty/Workers/pako_inflate.min.js +798 -0
- package/Build/ThirdParty/Workers/z-worker-pako.js +503 -0
- package/Build/ThirdParty/basis_transcoder.wasm +0 -0
- package/Build/ThirdParty/draco_decoder.wasm +0 -0
- package/Build/ThirdParty/google-earth-dbroot-parser.js +8019 -0
- package/Build/Widget/CesiumWidget.css +120 -0
- package/Build/Widget/lighter.css +13 -0
- package/Build/Workers/ArcType-ce2e50ab.js +37 -0
- package/Build/Workers/AttributeCompression-4589338a.js +716 -0
- package/Build/Workers/AxisAlignedBoundingBox-bfb1234f.js +258 -0
- package/Build/Workers/BoundingRectangle-7ffc2153.js +369 -0
- package/Build/Workers/BoxGeometry-93f344a3.js +884 -0
- package/Build/Workers/Check-666ab1a0.js +290 -0
- package/Build/Workers/Color-0c5aaf47.js +2262 -0
- package/Build/Workers/ComponentDatatype-f7b11d02.js +341 -0
- package/Build/Workers/CoplanarPolygonGeometryLibrary-6597982a.js +132 -0
- package/Build/Workers/CorridorGeometryLibrary-2119580e.js +498 -0
- package/Build/Workers/CylinderGeometry-f9503c6d.js +467 -0
- package/Build/Workers/CylinderGeometryLibrary-372c07d8.js +63 -0
- package/Build/Workers/EllipseGeometry-fedf72d5.js +1304 -0
- package/Build/Workers/EllipseGeometryLibrary-4ea68687.js +366 -0
- package/Build/Workers/EllipseOutlineGeometry-e2ae6a35.js +443 -0
- package/Build/Workers/EllipsoidGeodesic-16de63ea.js +520 -0
- package/Build/Workers/EllipsoidGeometry-95c0330e.js +637 -0
- package/Build/Workers/EllipsoidOutlineGeometry-d6d2ceec.js +454 -0
- package/Build/Workers/EllipsoidRhumbLine-ae5e65e0.js +741 -0
- package/Build/Workers/EllipsoidTangentPlane-bfc674bf.js +373 -0
- package/Build/Workers/EncodedCartesian3-f473ea18.js +171 -0
- package/Build/Workers/FrustumGeometry-3bf2e4eb.js +2512 -0
- package/Build/Workers/GeometryAttribute-df5f473e.js +619 -0
- package/Build/Workers/GeometryAttributes-f06a2792.js +91 -0
- package/Build/Workers/GeometryInstance-aa75b4cf.js +121 -0
- package/Build/Workers/GeometryOffsetAttribute-04332ce7.js +16 -0
- package/Build/Workers/GeometryPipeline-f0e46c42.js +3690 -0
- package/Build/Workers/IndexDatatype-a55ceaa1.js +200 -0
- package/Build/Workers/IntersectionTests-9de29d51.js +1836 -0
- package/Build/Workers/Math-2dbd6b93.js +1330 -0
- package/Build/Workers/Matrix2-ce637455.js +7084 -0
- package/Build/Workers/Matrix3-4f4df527.js +4282 -0
- package/Build/Workers/OrientedBoundingBox-d3ff3d4d.js +1257 -0
- package/Build/Workers/Plane-b81241c2.js +309 -0
- package/Build/Workers/PolygonGeometryLibrary-6f4937bb.js +1074 -0
- package/Build/Workers/PolygonPipeline-774a8aaf.js +1341 -0
- package/Build/Workers/PolylinePipeline-2e2b015c.js +573 -0
- package/Build/Workers/PolylineVolumeGeometryLibrary-7ee1d449.js +781 -0
- package/Build/Workers/PrimitivePipeline-a9b7aae0.js +966 -0
- package/Build/Workers/RectangleGeometryLibrary-9aa6c8f6.js +280 -0
- package/Build/Workers/RuntimeError-06c93819.js +68 -0
- package/Build/Workers/TerrainEncoding-b52dcfc5.js +1227 -0
- package/Build/Workers/Transforms-2f755df8.js +14683 -0
- package/Build/Workers/VertexFormat-6b480673.js +312 -0
- package/Build/Workers/WallGeometryLibrary-ab19a93d.js +211 -0
- package/Build/Workers/WebGLConstants-a8cc3e8c.js +620 -0
- package/Build/Workers/WebMercatorProjection-9f25de49.js +151 -0
- package/Build/Workers/arrayRemoveDuplicates-c2038105.js +129 -0
- package/Build/Workers/cesiumWorkerBootstrapper.js +1273 -0
- package/Build/Workers/combine-ca22a614.js +82 -0
- package/Build/Workers/combineGeometry.js +17 -0
- package/Build/Workers/createBoxGeometry.js +12 -0
- package/Build/Workers/createBoxOutlineGeometry.js +313 -0
- package/Build/Workers/createCircleGeometry.js +213 -0
- package/Build/Workers/createCircleOutlineGeometry.js +160 -0
- package/Build/Workers/createCoplanarPolygonGeometry.js +586 -0
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +236 -0
- package/Build/Workers/createCorridorGeometry.js +1407 -0
- package/Build/Workers/createCorridorOutlineGeometry.js +603 -0
- package/Build/Workers/createCylinderGeometry.js +12 -0
- package/Build/Workers/createCylinderOutlineGeometry.js +265 -0
- package/Build/Workers/createEllipseGeometry.js +14 -0
- package/Build/Workers/createEllipseOutlineGeometry.js +14 -0
- package/Build/Workers/createEllipsoidGeometry.js +12 -0
- package/Build/Workers/createEllipsoidOutlineGeometry.js +15 -0
- package/Build/Workers/createFrustumGeometry.js +12 -0
- package/Build/Workers/createFrustumOutlineGeometry.js +251 -0
- package/Build/Workers/createGeometry.js +55 -0
- package/Build/Workers/createGroundPolylineGeometry.js +2134 -0
- package/Build/Workers/createPlaneGeometry.js +250 -0
- package/Build/Workers/createPlaneOutlineGeometry.js +115 -0
- package/Build/Workers/createPolygonGeometry.js +1420 -0
- package/Build/Workers/createPolygonOutlineGeometry.js +683 -0
- package/Build/Workers/createPolylineGeometry.js +571 -0
- package/Build/Workers/createPolylineVolumeGeometry.js +411 -0
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +301 -0
- package/Build/Workers/createRectangleGeometry.js +1476 -0
- package/Build/Workers/createRectangleOutlineGeometry.js +535 -0
- package/Build/Workers/createSimplePolylineGeometry.js +458 -0
- package/Build/Workers/createSphereGeometry.js +123 -0
- package/Build/Workers/createSphereOutlineGeometry.js +126 -0
- package/Build/Workers/createTaskProcessorWorker.js +127 -0
- package/Build/Workers/createVectorTileClampedPolylines.js +535 -0
- package/Build/Workers/createVectorTileGeometries.js +445 -0
- package/Build/Workers/createVectorTilePoints.js +79 -0
- package/Build/Workers/createVectorTilePolygons.js +406 -0
- package/Build/Workers/createVectorTilePolylines.js +254 -0
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +640 -0
- package/Build/Workers/createVerticesFromHeightmap.js +2707 -0
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +994 -0
- package/Build/Workers/createWallGeometry.js +623 -0
- package/Build/Workers/createWallOutlineGeometry.js +432 -0
- package/Build/Workers/decodeDraco.js +381 -0
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +3668 -0
- package/Build/Workers/decodeI3S.js +1040 -0
- package/Build/Workers/defaultValue-0a909f67.js +51 -0
- package/Build/Workers/package.js +2 -0
- package/Build/Workers/transcodeKTX2.js +1516 -0
- package/Build/Workers/transferTypedArrayTest.js +18 -0
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +1023 -0
- package/LICENSE.md +933 -0
- package/README.md +58 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/Source/Assets/Images/bing_maps_credit.png +0 -0
- package/Source/Assets/Images/cesium_credit.png +0 -0
- package/Source/Assets/Images/google_earth_credit.png +0 -0
- package/Source/Assets/Images/ion-credit.png +0 -0
- package/Source/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/Source/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/Source/Assets/Textures/maki/airfield.png +0 -0
- package/Source/Assets/Textures/maki/airport.png +0 -0
- package/Source/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/Source/Assets/Textures/maki/america-football.png +0 -0
- package/Source/Assets/Textures/maki/art-gallery.png +0 -0
- package/Source/Assets/Textures/maki/bakery.png +0 -0
- package/Source/Assets/Textures/maki/bank.png +0 -0
- package/Source/Assets/Textures/maki/bar.png +0 -0
- package/Source/Assets/Textures/maki/baseball.png +0 -0
- package/Source/Assets/Textures/maki/basketball.png +0 -0
- package/Source/Assets/Textures/maki/beer.png +0 -0
- package/Source/Assets/Textures/maki/bicycle.png +0 -0
- package/Source/Assets/Textures/maki/building.png +0 -0
- package/Source/Assets/Textures/maki/bus.png +0 -0
- package/Source/Assets/Textures/maki/cafe.png +0 -0
- package/Source/Assets/Textures/maki/camera.png +0 -0
- package/Source/Assets/Textures/maki/campsite.png +0 -0
- package/Source/Assets/Textures/maki/car.png +0 -0
- package/Source/Assets/Textures/maki/cemetery.png +0 -0
- package/Source/Assets/Textures/maki/cesium.png +0 -0
- package/Source/Assets/Textures/maki/chemist.png +0 -0
- package/Source/Assets/Textures/maki/cinema.png +0 -0
- package/Source/Assets/Textures/maki/circle-stroked.png +0 -0
- package/Source/Assets/Textures/maki/circle.png +0 -0
- package/Source/Assets/Textures/maki/city.png +0 -0
- package/Source/Assets/Textures/maki/clothing-store.png +0 -0
- package/Source/Assets/Textures/maki/college.png +0 -0
- package/Source/Assets/Textures/maki/commercial.png +0 -0
- package/Source/Assets/Textures/maki/cricket.png +0 -0
- package/Source/Assets/Textures/maki/cross.png +0 -0
- package/Source/Assets/Textures/maki/dam.png +0 -0
- package/Source/Assets/Textures/maki/danger.png +0 -0
- package/Source/Assets/Textures/maki/disability.png +0 -0
- package/Source/Assets/Textures/maki/dog-park.png +0 -0
- package/Source/Assets/Textures/maki/embassy.png +0 -0
- package/Source/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/Source/Assets/Textures/maki/entrance.png +0 -0
- package/Source/Assets/Textures/maki/farm.png +0 -0
- package/Source/Assets/Textures/maki/fast-food.png +0 -0
- package/Source/Assets/Textures/maki/ferry.png +0 -0
- package/Source/Assets/Textures/maki/fire-station.png +0 -0
- package/Source/Assets/Textures/maki/fuel.png +0 -0
- package/Source/Assets/Textures/maki/garden.png +0 -0
- package/Source/Assets/Textures/maki/gift.png +0 -0
- package/Source/Assets/Textures/maki/golf.png +0 -0
- package/Source/Assets/Textures/maki/grocery.png +0 -0
- package/Source/Assets/Textures/maki/hairdresser.png +0 -0
- package/Source/Assets/Textures/maki/harbor.png +0 -0
- package/Source/Assets/Textures/maki/heart.png +0 -0
- package/Source/Assets/Textures/maki/heliport.png +0 -0
- package/Source/Assets/Textures/maki/hospital.png +0 -0
- package/Source/Assets/Textures/maki/ice-cream.png +0 -0
- package/Source/Assets/Textures/maki/industrial.png +0 -0
- package/Source/Assets/Textures/maki/land-use.png +0 -0
- package/Source/Assets/Textures/maki/laundry.png +0 -0
- package/Source/Assets/Textures/maki/library.png +0 -0
- package/Source/Assets/Textures/maki/lighthouse.png +0 -0
- package/Source/Assets/Textures/maki/lodging.png +0 -0
- package/Source/Assets/Textures/maki/logging.png +0 -0
- package/Source/Assets/Textures/maki/london-underground.png +0 -0
- package/Source/Assets/Textures/maki/marker-stroked.png +0 -0
- package/Source/Assets/Textures/maki/marker.png +0 -0
- package/Source/Assets/Textures/maki/minefield.png +0 -0
- package/Source/Assets/Textures/maki/mobilephone.png +0 -0
- package/Source/Assets/Textures/maki/monument.png +0 -0
- package/Source/Assets/Textures/maki/museum.png +0 -0
- package/Source/Assets/Textures/maki/music.png +0 -0
- package/Source/Assets/Textures/maki/oil-well.png +0 -0
- package/Source/Assets/Textures/maki/park.png +0 -0
- package/Source/Assets/Textures/maki/park2.png +0 -0
- package/Source/Assets/Textures/maki/parking-garage.png +0 -0
- package/Source/Assets/Textures/maki/parking.png +0 -0
- package/Source/Assets/Textures/maki/pharmacy.png +0 -0
- package/Source/Assets/Textures/maki/pitch.png +0 -0
- package/Source/Assets/Textures/maki/place-of-worship.png +0 -0
- package/Source/Assets/Textures/maki/playground.png +0 -0
- package/Source/Assets/Textures/maki/police.png +0 -0
- package/Source/Assets/Textures/maki/polling-place.png +0 -0
- package/Source/Assets/Textures/maki/post.png +0 -0
- package/Source/Assets/Textures/maki/prison.png +0 -0
- package/Source/Assets/Textures/maki/rail-above.png +0 -0
- package/Source/Assets/Textures/maki/rail-light.png +0 -0
- package/Source/Assets/Textures/maki/rail-metro.png +0 -0
- package/Source/Assets/Textures/maki/rail-underground.png +0 -0
- package/Source/Assets/Textures/maki/rail.png +0 -0
- package/Source/Assets/Textures/maki/religious-christian.png +0 -0
- package/Source/Assets/Textures/maki/religious-jewish.png +0 -0
- package/Source/Assets/Textures/maki/religious-muslim.png +0 -0
- package/Source/Assets/Textures/maki/restaurant.png +0 -0
- package/Source/Assets/Textures/maki/roadblock.png +0 -0
- package/Source/Assets/Textures/maki/rocket.png +0 -0
- package/Source/Assets/Textures/maki/school.png +0 -0
- package/Source/Assets/Textures/maki/scooter.png +0 -0
- package/Source/Assets/Textures/maki/shop.png +0 -0
- package/Source/Assets/Textures/maki/skiing.png +0 -0
- package/Source/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/Source/Assets/Textures/maki/soccer.png +0 -0
- package/Source/Assets/Textures/maki/square-stroked.png +0 -0
- package/Source/Assets/Textures/maki/square.png +0 -0
- package/Source/Assets/Textures/maki/star-stroked.png +0 -0
- package/Source/Assets/Textures/maki/star.png +0 -0
- package/Source/Assets/Textures/maki/suitcase.png +0 -0
- package/Source/Assets/Textures/maki/swimming.png +0 -0
- package/Source/Assets/Textures/maki/telephone.png +0 -0
- package/Source/Assets/Textures/maki/tennis.png +0 -0
- package/Source/Assets/Textures/maki/theatre.png +0 -0
- package/Source/Assets/Textures/maki/toilets.png +0 -0
- package/Source/Assets/Textures/maki/town-hall.png +0 -0
- package/Source/Assets/Textures/maki/town.png +0 -0
- package/Source/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/Source/Assets/Textures/maki/triangle.png +0 -0
- package/Source/Assets/Textures/maki/village.png +0 -0
- package/Source/Assets/Textures/maki/warehouse.png +0 -0
- package/Source/Assets/Textures/maki/waste-basket.png +0 -0
- package/Source/Assets/Textures/maki/water.png +0 -0
- package/Source/Assets/Textures/maki/wetland.png +0 -0
- package/Source/Assets/Textures/maki/zoo.png +0 -0
- package/Source/Assets/Textures/moonSmall.jpg +0 -0
- package/Source/Assets/Textures/pin.svg +1 -0
- package/Source/Assets/Textures/waterNormals.jpg +0 -0
- package/Source/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/Source/Assets/approximateTerrainHeights.json +1 -0
- package/Source/Core/ApproximateTerrainHeights.js +256 -0
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +728 -0
- package/Source/Core/ArcType.js +31 -0
- package/Source/Core/ArticulationStageType.js +23 -0
- package/Source/Core/AssociativeArray.js +127 -0
- package/Source/Core/AttributeCompression.js +527 -0
- package/Source/Core/AxisAlignedBoundingBox.js +259 -0
- package/Source/Core/BingMapsGeocoderService.js +107 -0
- package/Source/Core/BoundingRectangle.js +373 -0
- package/Source/Core/BoundingSphere.js +1505 -0
- package/Source/Core/BoxGeometry.js +893 -0
- package/Source/Core/BoxOutlineGeometry.js +314 -0
- package/Source/Core/Cartesian2.js +824 -0
- package/Source/Core/Cartesian3.js +1218 -0
- package/Source/Core/Cartesian4.js +980 -0
- package/Source/Core/Cartographic.js +302 -0
- package/Source/Core/CartographicGeocoderService.js +58 -0
- package/Source/Core/CatmullRomSpline.js +324 -0
- package/Source/Core/CesiumTerrainProvider.js +1318 -0
- package/Source/Core/Check.js +213 -0
- package/Source/Core/CircleGeometry.js +203 -0
- package/Source/Core/CircleOutlineGeometry.js +149 -0
- package/Source/Core/Clock.js +319 -0
- package/Source/Core/ClockRange.js +39 -0
- package/Source/Core/ClockStep.js +38 -0
- package/Source/Core/Color.js +2263 -0
- package/Source/Core/ColorGeometryInstanceAttribute.js +182 -0
- package/Source/Core/ComponentDatatype.js +340 -0
- package/Source/Core/CompressedTextureBuffer.js +114 -0
- package/Source/Core/ConstantSpline.js +119 -0
- package/Source/Core/CoplanarPolygonGeometry.js +599 -0
- package/Source/Core/CoplanarPolygonGeometryLibrary.js +132 -0
- package/Source/Core/CoplanarPolygonOutlineGeometry.js +237 -0
- package/Source/Core/CornerType.js +37 -0
- package/Source/Core/CorridorGeometry.js +1416 -0
- package/Source/Core/CorridorGeometryLibrary.js +501 -0
- package/Source/Core/CorridorOutlineGeometry.js +604 -0
- package/Source/Core/Credit.js +166 -0
- package/Source/Core/CubicRealPolynomial.js +238 -0
- package/Source/Core/CullingVolume.js +217 -0
- package/Source/Core/CustomHeightmapTerrainProvider.js +299 -0
- package/Source/Core/CylinderGeometry.js +479 -0
- package/Source/Core/CylinderGeometryLibrary.js +59 -0
- package/Source/Core/CylinderOutlineGeometry.js +269 -0
- package/Source/Core/DefaultProxy.js +26 -0
- package/Source/Core/DeveloperError.js +75 -0
- package/Source/Core/DistanceDisplayCondition.js +172 -0
- package/Source/Core/DistanceDisplayConditionGeometryInstanceAttribute.js +181 -0
- package/Source/Core/DoubleEndedPriorityQueue.js +405 -0
- package/Source/Core/DoublyLinkedList.js +112 -0
- package/Source/Core/EarthOrientationParameters.js +431 -0
- package/Source/Core/EarthOrientationParametersSample.js +52 -0
- package/Source/Core/EasingFunction.js +257 -0
- package/Source/Core/EllipseGeometry.js +1325 -0
- package/Source/Core/EllipseGeometryLibrary.js +365 -0
- package/Source/Core/EllipseOutlineGeometry.js +454 -0
- package/Source/Core/Ellipsoid.js +804 -0
- package/Source/Core/EllipsoidGeodesic.js +523 -0
- package/Source/Core/EllipsoidGeometry.js +649 -0
- package/Source/Core/EllipsoidOutlineGeometry.js +464 -0
- package/Source/Core/EllipsoidRhumbLine.js +745 -0
- package/Source/Core/EllipsoidTangentPlane.js +383 -0
- package/Source/Core/EllipsoidTerrainProvider.js +230 -0
- package/Source/Core/EllipsoidalOccluder.js +559 -0
- package/Source/Core/EncodedCartesian3.js +170 -0
- package/Source/Core/Event.js +164 -0
- package/Source/Core/EventHelper.js +74 -0
- package/Source/Core/ExtrapolationType.js +34 -0
- package/Source/Core/FeatureDetection.js +411 -0
- package/Source/Core/FrustumGeometry.js +583 -0
- package/Source/Core/FrustumOutlineGeometry.js +254 -0
- package/Source/Core/Fullscreen.js +249 -0
- package/Source/Core/GeocodeType.js +24 -0
- package/Source/Core/GeocoderService.js +29 -0
- package/Source/Core/GeographicProjection.js +105 -0
- package/Source/Core/GeographicTilingScheme.js +251 -0
- package/Source/Core/Geometry.js +376 -0
- package/Source/Core/GeometryAttribute.js +138 -0
- package/Source/Core/GeometryAttributes.js +88 -0
- package/Source/Core/GeometryFactory.js +25 -0
- package/Source/Core/GeometryInstance.js +121 -0
- package/Source/Core/GeometryInstanceAttribute.js +138 -0
- package/Source/Core/GeometryOffsetAttribute.js +10 -0
- package/Source/Core/GeometryPipeline.js +3296 -0
- package/Source/Core/GeometryType.js +10 -0
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +597 -0
- package/Source/Core/GoogleEarthEnterpriseTerrainData.js +607 -0
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +641 -0
- package/Source/Core/GoogleEarthEnterpriseTileInformation.js +136 -0
- package/Source/Core/GregorianDate.js +69 -0
- package/Source/Core/GroundPolylineGeometry.js +1658 -0
- package/Source/Core/HeadingPitchRange.js +60 -0
- package/Source/Core/HeadingPitchRoll.js +236 -0
- package/Source/Core/Heap.js +234 -0
- package/Source/Core/HeightmapEncoding.js +25 -0
- package/Source/Core/HeightmapTerrainData.js +925 -0
- package/Source/Core/HeightmapTessellator.js +535 -0
- package/Source/Core/HermitePolynomialApproximation.js +342 -0
- package/Source/Core/HermiteSpline.js +620 -0
- package/Source/Core/HilbertOrder.js +118 -0
- package/Source/Core/Iau2000Orientation.js +167 -0
- package/Source/Core/Iau2006XysData.js +277 -0
- package/Source/Core/Iau2006XysSample.js +32 -0
- package/Source/Core/IauOrientationAxes.js +105 -0
- package/Source/Core/IauOrientationParameters.js +54 -0
- package/Source/Core/IndexDatatype.js +199 -0
- package/Source/Core/InterpolationAlgorithm.js +65 -0
- package/Source/Core/InterpolationType.js +14 -0
- package/Source/Core/Intersect.js +34 -0
- package/Source/Core/IntersectionTests.js +1047 -0
- package/Source/Core/Intersections2D.js +358 -0
- package/Source/Core/Interval.js +25 -0
- package/Source/Core/Ion.js +57 -0
- package/Source/Core/IonGeocoderService.js +64 -0
- package/Source/Core/IonResource.js +270 -0
- package/Source/Core/Iso8601.js +54 -0
- package/Source/Core/JulianDate.js +1233 -0
- package/Source/Core/KTX2Transcoder.js +95 -0
- package/Source/Core/KeyboardEventModifier.js +32 -0
- package/Source/Core/LagrangePolynomialApproximation.js +71 -0
- package/Source/Core/LeapSecond.js +24 -0
- package/Source/Core/LinearApproximation.js +83 -0
- package/Source/Core/LinearSpline.js +166 -0
- package/Source/Core/ManagedArray.js +163 -0
- package/Source/Core/MapProjection.js +62 -0
- package/Source/Core/Math.js +1119 -0
- package/Source/Core/Matrix2.js +1092 -0
- package/Source/Core/Matrix3.js +1838 -0
- package/Source/Core/Matrix4.js +3232 -0
- package/Source/Core/MorphWeightSpline.js +161 -0
- package/Source/Core/MortonOrder.js +214 -0
- package/Source/Core/NearFarScalar.js +174 -0
- package/Source/Core/Occluder.js +732 -0
- package/Source/Core/OffsetGeometryInstanceAttribute.js +126 -0
- package/Source/Core/OpenCageGeocoderService.js +118 -0
- package/Source/Core/OrientedBoundingBox.js +1270 -0
- package/Source/Core/OrthographicFrustum.js +338 -0
- package/Source/Core/OrthographicOffCenterFrustum.js +463 -0
- package/Source/Core/Packable.js +40 -0
- package/Source/Core/PackableForInterpolation.js +43 -0
- package/Source/Core/PeliasGeocoderService.js +93 -0
- package/Source/Core/PerspectiveFrustum.js +439 -0
- package/Source/Core/PerspectiveOffCenterFrustum.js +523 -0
- package/Source/Core/PinBuilder.js +234 -0
- package/Source/Core/PixelFormat.js +493 -0
- package/Source/Core/Plane.js +312 -0
- package/Source/Core/PlaneGeometry.js +250 -0
- package/Source/Core/PlaneOutlineGeometry.js +113 -0
- package/Source/Core/PolygonGeometry.js +1436 -0
- package/Source/Core/PolygonGeometryLibrary.js +981 -0
- package/Source/Core/PolygonHierarchy.js +25 -0
- package/Source/Core/PolygonOutlineGeometry.js +692 -0
- package/Source/Core/PolygonPipeline.js +633 -0
- package/Source/Core/PolylineGeometry.js +578 -0
- package/Source/Core/PolylinePipeline.js +580 -0
- package/Source/Core/PolylineVolumeGeometry.js +417 -0
- package/Source/Core/PolylineVolumeGeometryLibrary.js +701 -0
- package/Source/Core/PolylineVolumeOutlineGeometry.js +299 -0
- package/Source/Core/PrimitiveType.js +107 -0
- package/Source/Core/Proxy.js +24 -0
- package/Source/Core/QuadraticRealPolynomial.js +147 -0
- package/Source/Core/QuantizedMeshTerrainData.js +772 -0
- package/Source/Core/QuarticRealPolynomial.js +342 -0
- package/Source/Core/Quaternion.js +1142 -0
- package/Source/Core/QuaternionSpline.js +155 -0
- package/Source/Core/Queue.js +126 -0
- package/Source/Core/Ray.js +80 -0
- package/Source/Core/Rectangle.js +982 -0
- package/Source/Core/RectangleCollisionChecker.js +95 -0
- package/Source/Core/RectangleGeometry.js +1489 -0
- package/Source/Core/RectangleGeometryLibrary.js +283 -0
- package/Source/Core/RectangleOutlineGeometry.js +537 -0
- package/Source/Core/ReferenceFrame.js +23 -0
- package/Source/Core/Request.js +192 -0
- package/Source/Core/RequestErrorEvent.js +58 -0
- package/Source/Core/RequestScheduler.js +520 -0
- package/Source/Core/RequestState.js +55 -0
- package/Source/Core/RequestType.js +39 -0
- package/Source/Core/Resource.js +2307 -0
- package/Source/Core/RuntimeError.js +65 -0
- package/Source/Core/S2Cell.js +811 -0
- package/Source/Core/ScreenSpaceEventHandler.js +1140 -0
- package/Source/Core/ScreenSpaceEventType.js +127 -0
- package/Source/Core/ShowGeometryInstanceAttribute.js +123 -0
- package/Source/Core/Simon1994PlanetaryPositions.js +682 -0
- package/Source/Core/SimplePolylineGeometry.js +457 -0
- package/Source/Core/SphereGeometry.js +118 -0
- package/Source/Core/SphereOutlineGeometry.js +120 -0
- package/Source/Core/Spherical.js +184 -0
- package/Source/Core/Spline.js +189 -0
- package/Source/Core/SteppedSpline.js +160 -0
- package/Source/Core/TaskProcessor.js +377 -0
- package/Source/Core/TerrainData.js +125 -0
- package/Source/Core/TerrainEncoding.js +607 -0
- package/Source/Core/TerrainExaggeration.js +49 -0
- package/Source/Core/TerrainMesh.js +156 -0
- package/Source/Core/TerrainProvider.js +461 -0
- package/Source/Core/TerrainQuantization.js +25 -0
- package/Source/Core/TileAvailability.js +564 -0
- package/Source/Core/TileEdge.js +14 -0
- package/Source/Core/TileProviderError.js +171 -0
- package/Source/Core/TilingScheme.js +132 -0
- package/Source/Core/TimeConstants.js +83 -0
- package/Source/Core/TimeInterval.js +438 -0
- package/Source/Core/TimeIntervalCollection.js +1136 -0
- package/Source/Core/TimeStandard.js +30 -0
- package/Source/Core/Tipsify.js +314 -0
- package/Source/Core/Transforms.js +1132 -0
- package/Source/Core/TranslationRotationScale.js +60 -0
- package/Source/Core/TridiagonalSystemSolver.js +113 -0
- package/Source/Core/TrustedServers.js +146 -0
- package/Source/Core/VRTheWorldTerrainProvider.js +450 -0
- package/Source/Core/VertexFormat.js +311 -0
- package/Source/Core/VideoSynchronizer.js +222 -0
- package/Source/Core/Visibility.js +34 -0
- package/Source/Core/VulkanConstants.js +286 -0
- package/Source/Core/WallGeometry.js +626 -0
- package/Source/Core/WallGeometryLibrary.js +212 -0
- package/Source/Core/WallOutlineGeometry.js +434 -0
- package/Source/Core/WebGLConstants.js +614 -0
- package/Source/Core/WebMercatorProjection.js +154 -0
- package/Source/Core/WebMercatorTilingScheme.js +297 -0
- package/Source/Core/WindingOrder.js +36 -0
- package/Source/Core/WireframeIndexGenerator.js +238 -0
- package/Source/Core/appendForwardSlash.js +10 -0
- package/Source/Core/arrayRemoveDuplicates.js +130 -0
- package/Source/Core/barycentricCoordinates.js +109 -0
- package/Source/Core/binarySearch.js +67 -0
- package/Source/Core/buildModuleUrl.js +151 -0
- package/Source/Core/cancelAnimationFrame.js +53 -0
- package/Source/Core/clone.js +32 -0
- package/Source/Core/combine.js +80 -0
- package/Source/Core/createGuid.js +22 -0
- package/Source/Core/createWorldTerrain.js +42 -0
- package/Source/Core/decodeGoogleEarthEnterpriseData.js +93 -0
- package/Source/Core/decodeVectorPolylinePositions.js +51 -0
- package/Source/Core/defaultValue.js +29 -0
- package/Source/Core/defer.js +44 -0
- package/Source/Core/defined.js +17 -0
- package/Source/Core/deprecationWarning.js +53 -0
- package/Source/Core/destroyObject.js +57 -0
- package/Source/Core/formatError.js +30 -0
- package/Source/Core/getAbsoluteUri.js +47 -0
- package/Source/Core/getBaseUri.js +47 -0
- package/Source/Core/getExtensionFromUri.js +38 -0
- package/Source/Core/getFilenameFromUri.js +32 -0
- package/Source/Core/getImageFromTypedArray.js +24 -0
- package/Source/Core/getImagePixels.js +43 -0
- package/Source/Core/getJsonFromTypedArray.js +21 -0
- package/Source/Core/getMagic.js +15 -0
- package/Source/Core/getStringFromTypedArray.js +166 -0
- package/Source/Core/getTimestamp.js +26 -0
- package/Source/Core/isBitSet.js +7 -0
- package/Source/Core/isBlobUri.js +22 -0
- package/Source/Core/isCrossOriginUrl.js +30 -0
- package/Source/Core/isDataUri.js +22 -0
- package/Source/Core/isLeapYear.js +23 -0
- package/Source/Core/loadAndExecuteScript.js +27 -0
- package/Source/Core/loadImageFromTypedArray.js +64 -0
- package/Source/Core/loadKTX2.js +104 -0
- package/Source/Core/mergeSort.js +111 -0
- package/Source/Core/objectToQuery.js +57 -0
- package/Source/Core/oneTimeWarning.js +52 -0
- package/Source/Core/parseResponseHeaders.js +37 -0
- package/Source/Core/pointInsideTriangle.js +39 -0
- package/Source/Core/queryToObject.js +60 -0
- package/Source/Core/requestAnimationFrame.js +83 -0
- package/Source/Core/resizeImageToNextPowerOfTwo.js +31 -0
- package/Source/Core/sampleTerrain.js +257 -0
- package/Source/Core/sampleTerrainMostDetailed.js +117 -0
- package/Source/Core/scaleToGeodeticSurface.js +147 -0
- package/Source/Core/subdivideArray.js +35 -0
- package/Source/Core/webGLConstantToGlslType.js +25 -0
- package/Source/Core/wrapFunction.js +26 -0
- package/Source/Core/writeTextToCanvas.js +222 -0
- package/Source/DataSources/BillboardGraphics.js +429 -0
- package/Source/DataSources/BillboardVisualizer.js +341 -0
- package/Source/DataSources/BoundingSphereState.js +26 -0
- package/Source/DataSources/BoxGeometryUpdater.js +325 -0
- package/Source/DataSources/BoxGraphics.js +213 -0
- package/Source/DataSources/CallbackProperty.js +111 -0
- package/Source/DataSources/Cesium3DTilesetGraphics.js +113 -0
- package/Source/DataSources/Cesium3DTilesetVisualizer.js +249 -0
- package/Source/DataSources/CheckerboardMaterialProperty.js +151 -0
- package/Source/DataSources/ColorMaterialProperty.js +106 -0
- package/Source/DataSources/CompositeEntityCollection.js +592 -0
- package/Source/DataSources/CompositeMaterialProperty.js +129 -0
- package/Source/DataSources/CompositePositionProperty.js +149 -0
- package/Source/DataSources/CompositeProperty.js +154 -0
- package/Source/DataSources/ConstantPositionProperty.js +146 -0
- package/Source/DataSources/ConstantProperty.js +116 -0
- package/Source/DataSources/CorridorGeometryUpdater.js +404 -0
- package/Source/DataSources/CorridorGraphics.js +328 -0
- package/Source/DataSources/CustomDataSource.js +173 -0
- package/Source/DataSources/CylinderGeometryUpdater.js +373 -0
- package/Source/DataSources/CylinderGraphics.js +265 -0
- package/Source/DataSources/CzmlDataSource.js +5141 -0
- package/Source/DataSources/DataSource.js +121 -0
- package/Source/DataSources/DataSourceClock.js +165 -0
- package/Source/DataSources/DataSourceCollection.js +336 -0
- package/Source/DataSources/DataSourceDisplay.js +510 -0
- package/Source/DataSources/DynamicGeometryBatch.js +56 -0
- package/Source/DataSources/DynamicGeometryUpdater.js +274 -0
- package/Source/DataSources/EllipseGeometryUpdater.js +430 -0
- package/Source/DataSources/EllipseGraphics.js +357 -0
- package/Source/DataSources/EllipsoidGeometryUpdater.js +710 -0
- package/Source/DataSources/EllipsoidGraphics.js +323 -0
- package/Source/DataSources/Entity.js +752 -0
- package/Source/DataSources/EntityCluster.js +997 -0
- package/Source/DataSources/EntityCollection.js +440 -0
- package/Source/DataSources/EntityView.js +426 -0
- package/Source/DataSources/GeoJsonDataSource.js +1064 -0
- package/Source/DataSources/GeometryUpdater.js +545 -0
- package/Source/DataSources/GeometryVisualizer.js +620 -0
- package/Source/DataSources/GpxDataSource.js +1023 -0
- package/Source/DataSources/GridMaterialProperty.js +198 -0
- package/Source/DataSources/GroundGeometryUpdater.js +232 -0
- package/Source/DataSources/ImageMaterialProperty.js +166 -0
- package/Source/DataSources/KmlCamera.js +13 -0
- package/Source/DataSources/KmlDataSource.js +4326 -0
- package/Source/DataSources/KmlLookAt.js +12 -0
- package/Source/DataSources/KmlTour.js +176 -0
- package/Source/DataSources/KmlTourFlyTo.js +109 -0
- package/Source/DataSources/KmlTourWait.js +52 -0
- package/Source/DataSources/LabelGraphics.js +430 -0
- package/Source/DataSources/LabelVisualizer.js +360 -0
- package/Source/DataSources/MaterialProperty.js +105 -0
- package/Source/DataSources/ModelGraphics.js +447 -0
- package/Source/DataSources/ModelVisualizer.js +548 -0
- package/Source/DataSources/NodeTransformationProperty.js +144 -0
- package/Source/DataSources/PathGraphics.js +163 -0
- package/Source/DataSources/PathVisualizer.js +759 -0
- package/Source/DataSources/PlaneGeometryUpdater.js +384 -0
- package/Source/DataSources/PlaneGraphics.js +210 -0
- package/Source/DataSources/PointGraphics.js +221 -0
- package/Source/DataSources/PointVisualizer.js +426 -0
- package/Source/DataSources/PolygonGeometryUpdater.js +575 -0
- package/Source/DataSources/PolygonGraphics.js +400 -0
- package/Source/DataSources/PolylineArrowMaterialProperty.js +104 -0
- package/Source/DataSources/PolylineDashMaterialProperty.js +168 -0
- package/Source/DataSources/PolylineGeometryUpdater.js +886 -0
- package/Source/DataSources/PolylineGlowMaterialProperty.js +146 -0
- package/Source/DataSources/PolylineGraphics.js +248 -0
- package/Source/DataSources/PolylineOutlineMaterialProperty.js +152 -0
- package/Source/DataSources/PolylineVisualizer.js +414 -0
- package/Source/DataSources/PolylineVolumeGeometryUpdater.js +304 -0
- package/Source/DataSources/PolylineVolumeGraphics.js +237 -0
- package/Source/DataSources/PositionProperty.js +133 -0
- package/Source/DataSources/PositionPropertyArray.js +187 -0
- package/Source/DataSources/Property.js +138 -0
- package/Source/DataSources/PropertyArray.js +147 -0
- package/Source/DataSources/PropertyBag.js +275 -0
- package/Source/DataSources/RectangleGeometryUpdater.js +422 -0
- package/Source/DataSources/RectangleGraphics.js +329 -0
- package/Source/DataSources/ReferenceProperty.js +365 -0
- package/Source/DataSources/Rotation.js +156 -0
- package/Source/DataSources/SampledPositionProperty.js +325 -0
- package/Source/DataSources/SampledProperty.js +834 -0
- package/Source/DataSources/ScaledPositionProperty.js +97 -0
- package/Source/DataSources/StaticGeometryColorBatch.js +570 -0
- package/Source/DataSources/StaticGeometryPerMaterialBatch.js +488 -0
- package/Source/DataSources/StaticGroundGeometryColorBatch.js +395 -0
- package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +426 -0
- package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +434 -0
- package/Source/DataSources/StaticOutlineGeometryBatch.js +466 -0
- package/Source/DataSources/StripeMaterialProperty.js +187 -0
- package/Source/DataSources/StripeOrientation.js +19 -0
- package/Source/DataSources/TerrainOffsetProperty.js +246 -0
- package/Source/DataSources/TimeIntervalCollectionPositionProperty.js +152 -0
- package/Source/DataSources/TimeIntervalCollectionProperty.js +136 -0
- package/Source/DataSources/VelocityOrientationProperty.js +154 -0
- package/Source/DataSources/VelocityVectorProperty.js +216 -0
- package/Source/DataSources/Visualizer.js +61 -0
- package/Source/DataSources/WallGeometryUpdater.js +275 -0
- package/Source/DataSources/WallGraphics.js +244 -0
- package/Source/DataSources/createMaterialPropertyDescriptor.js +35 -0
- package/Source/DataSources/createPropertyDescriptor.js +72 -0
- package/Source/DataSources/createRawPropertyDescriptor.js +13 -0
- package/Source/DataSources/exportKml.js +1519 -0
- package/Source/DataSources/getElement.js +26 -0
- package/Source/DataSources/heightReferenceOnEntityPropertyChanged.js +47 -0
- package/Source/Renderer/AutomaticUniforms.js +1625 -0
- package/Source/Renderer/Buffer.js +420 -0
- package/Source/Renderer/BufferUsage.js +19 -0
- package/Source/Renderer/ClearCommand.js +102 -0
- package/Source/Renderer/ComputeCommand.js +119 -0
- package/Source/Renderer/ComputeEngine.js +135 -0
- package/Source/Renderer/Context.js +1601 -0
- package/Source/Renderer/ContextLimits.js +297 -0
- package/Source/Renderer/CubeMap.js +631 -0
- package/Source/Renderer/CubeMapFace.js +361 -0
- package/Source/Renderer/DrawCommand.js +610 -0
- package/Source/Renderer/Framebuffer.js +448 -0
- package/Source/Renderer/FramebufferManager.js +497 -0
- package/Source/Renderer/MipmapHint.js +19 -0
- package/Source/Renderer/MultisampleFramebuffer.js +115 -0
- package/Source/Renderer/Pass.js +26 -0
- package/Source/Renderer/PassState.js +57 -0
- package/Source/Renderer/PixelDatatype.js +98 -0
- package/Source/Renderer/RenderState.js +996 -0
- package/Source/Renderer/Renderbuffer.js +103 -0
- package/Source/Renderer/RenderbufferFormat.js +42 -0
- package/Source/Renderer/Sampler.js +109 -0
- package/Source/Renderer/ShaderBuilder.js +593 -0
- package/Source/Renderer/ShaderCache.js +291 -0
- package/Source/Renderer/ShaderDestination.js +51 -0
- package/Source/Renderer/ShaderFunction.js +66 -0
- package/Source/Renderer/ShaderProgram.js +612 -0
- package/Source/Renderer/ShaderSource.js +519 -0
- package/Source/Renderer/ShaderStruct.js +55 -0
- package/Source/Renderer/Texture.js +1035 -0
- package/Source/Renderer/TextureCache.js +81 -0
- package/Source/Renderer/TextureMagnificationFilter.js +41 -0
- package/Source/Renderer/TextureMinificationFilter.js +94 -0
- package/Source/Renderer/TextureWrap.js +19 -0
- package/Source/Renderer/UniformState.js +1710 -0
- package/Source/Renderer/VertexArray.js +853 -0
- package/Source/Renderer/VertexArrayFacade.js +514 -0
- package/Source/Renderer/createUniform.js +419 -0
- package/Source/Renderer/createUniformArray.js +637 -0
- package/Source/Renderer/freezeRenderState.js +30 -0
- package/Source/Renderer/loadCubeMap.js +93 -0
- package/Source/Renderer/modernizeShader.js +242 -0
- package/Source/Scene/AlphaMode.js +33 -0
- package/Source/Scene/Appearance.js +204 -0
- package/Source/Scene/ArcGisMapServerImageryProvider.js +905 -0
- package/Source/Scene/AttributeType.js +200 -0
- package/Source/Scene/AutoExposure.js +387 -0
- package/Source/Scene/Axis.js +111 -0
- package/Source/Scene/B3dmParser.js +174 -0
- package/Source/Scene/BatchTable.js +636 -0
- package/Source/Scene/BatchTableHierarchy.js +556 -0
- package/Source/Scene/BatchTexture.js +574 -0
- package/Source/Scene/Billboard.js +1552 -0
- package/Source/Scene/BillboardCollection.js +2417 -0
- package/Source/Scene/BingMapsImageryProvider.js +855 -0
- package/Source/Scene/BingMapsStyle.js +93 -0
- package/Source/Scene/BlendEquation.js +53 -0
- package/Source/Scene/BlendFunction.js +129 -0
- package/Source/Scene/BlendOption.js +28 -0
- package/Source/Scene/BlendingState.js +73 -0
- package/Source/Scene/BoxEmitter.js +75 -0
- package/Source/Scene/BrdfLutGenerator.js +75 -0
- package/Source/Scene/BufferLoader.js +146 -0
- package/Source/Scene/Camera.js +3951 -0
- package/Source/Scene/CameraEventAggregator.js +565 -0
- package/Source/Scene/CameraEventType.js +47 -0
- package/Source/Scene/CameraFlightPath.js +576 -0
- package/Source/Scene/Cesium3DContentGroup.js +44 -0
- package/Source/Scene/Cesium3DTile.js +2115 -0
- package/Source/Scene/Cesium3DTileBatchTable.js +1176 -0
- package/Source/Scene/Cesium3DTileColorBlendMode.js +52 -0
- package/Source/Scene/Cesium3DTileContent.js +397 -0
- package/Source/Scene/Cesium3DTileContentFactory.js +104 -0
- package/Source/Scene/Cesium3DTileContentState.js +12 -0
- package/Source/Scene/Cesium3DTileContentType.js +160 -0
- package/Source/Scene/Cesium3DTileFeature.js +444 -0
- package/Source/Scene/Cesium3DTileFeatureTable.js +132 -0
- package/Source/Scene/Cesium3DTileOptimizationHint.js +13 -0
- package/Source/Scene/Cesium3DTileOptimizations.js +115 -0
- package/Source/Scene/Cesium3DTilePass.js +82 -0
- package/Source/Scene/Cesium3DTilePassState.js +52 -0
- package/Source/Scene/Cesium3DTilePointFeature.js +864 -0
- package/Source/Scene/Cesium3DTileRefine.js +29 -0
- package/Source/Scene/Cesium3DTileStyle.js +1475 -0
- package/Source/Scene/Cesium3DTileStyleEngine.js +78 -0
- package/Source/Scene/Cesium3DTileset.js +3158 -0
- package/Source/Scene/Cesium3DTilesetCache.js +82 -0
- package/Source/Scene/Cesium3DTilesetHeatmap.js +165 -0
- package/Source/Scene/Cesium3DTilesetMetadata.js +199 -0
- package/Source/Scene/Cesium3DTilesetMostDetailedTraversal.js +144 -0
- package/Source/Scene/Cesium3DTilesetStatistics.js +129 -0
- package/Source/Scene/Cesium3DTilesetTraversal.js +773 -0
- package/Source/Scene/CircleEmitter.js +62 -0
- package/Source/Scene/ClassificationPrimitive.js +1433 -0
- package/Source/Scene/ClassificationType.js +35 -0
- package/Source/Scene/ClippingPlane.js +184 -0
- package/Source/Scene/ClippingPlaneCollection.js +771 -0
- package/Source/Scene/CloudCollection.js +1050 -0
- package/Source/Scene/CloudType.js +33 -0
- package/Source/Scene/ColorBlendMode.js +33 -0
- package/Source/Scene/Composite3DTileContent.js +346 -0
- package/Source/Scene/ConditionsExpression.js +218 -0
- package/Source/Scene/ConeEmitter.js +62 -0
- package/Source/Scene/ContentMetadata.js +184 -0
- package/Source/Scene/CreditDisplay.js +610 -0
- package/Source/Scene/CullFace.js +33 -0
- package/Source/Scene/CumulusCloud.js +353 -0
- package/Source/Scene/DebugAppearance.js +268 -0
- package/Source/Scene/DebugCameraPrimitive.js +257 -0
- package/Source/Scene/DebugInspector.js +151 -0
- package/Source/Scene/DebugModelMatrixPrimitive.js +222 -0
- package/Source/Scene/DepthFunction.js +73 -0
- package/Source/Scene/DepthPlane.js +245 -0
- package/Source/Scene/DerivedCommand.js +433 -0
- package/Source/Scene/DeviceOrientationCameraController.js +120 -0
- package/Source/Scene/DirectionalLight.js +50 -0
- package/Source/Scene/DiscardEmptyTileImagePolicy.js +54 -0
- package/Source/Scene/DiscardMissingTileImagePolicy.js +148 -0
- package/Source/Scene/DracoLoader.js +76 -0
- package/Source/Scene/EllipsoidPrimitive.js +511 -0
- package/Source/Scene/EllipsoidSurfaceAppearance.js +282 -0
- package/Source/Scene/Empty3DTileContent.js +151 -0
- package/Source/Scene/Expression.js +2232 -0
- package/Source/Scene/ExpressionNodeType.js +25 -0
- package/Source/Scene/Fog.js +205 -0
- package/Source/Scene/FrameRateMonitor.js +384 -0
- package/Source/Scene/FrameState.js +419 -0
- package/Source/Scene/FrustumCommands.js +30 -0
- package/Source/Scene/Geometry3DTileContent.js +526 -0
- package/Source/Scene/GetFeatureInfoFormat.js +395 -0
- package/Source/Scene/Globe.js +1121 -0
- package/Source/Scene/GlobeDepth.js +378 -0
- package/Source/Scene/GlobeSurfaceShaderSet.js +413 -0
- package/Source/Scene/GlobeSurfaceTile.js +997 -0
- package/Source/Scene/GlobeSurfaceTileProvider.js +2818 -0
- package/Source/Scene/GlobeTranslucency.js +239 -0
- package/Source/Scene/GlobeTranslucencyFramebuffer.js +201 -0
- package/Source/Scene/GlobeTranslucencyState.js +1117 -0
- package/Source/Scene/GltfBufferViewLoader.js +268 -0
- package/Source/Scene/GltfDracoLoader.js +250 -0
- package/Source/Scene/GltfImageLoader.js +327 -0
- package/Source/Scene/GltfIndexBufferLoader.js +429 -0
- package/Source/Scene/GltfJsonLoader.js +301 -0
- package/Source/Scene/GltfLoader.js +2663 -0
- package/Source/Scene/GltfLoaderUtil.js +201 -0
- package/Source/Scene/GltfPipeline/ForEach.js +424 -0
- package/Source/Scene/GltfPipeline/addBuffer.js +30 -0
- package/Source/Scene/GltfPipeline/addDefaults.js +236 -0
- package/Source/Scene/GltfPipeline/addExtensionsRequired.js +24 -0
- package/Source/Scene/GltfPipeline/addExtensionsUsed.js +22 -0
- package/Source/Scene/GltfPipeline/addPipelineExtras.js +36 -0
- package/Source/Scene/GltfPipeline/addToArray.js +25 -0
- package/Source/Scene/GltfPipeline/findAccessorMinMax.js +71 -0
- package/Source/Scene/GltfPipeline/forEachTextureInMaterial.js +139 -0
- package/Source/Scene/GltfPipeline/getAccessorByteStride.js +29 -0
- package/Source/Scene/GltfPipeline/getComponentReader.js +147 -0
- package/Source/Scene/GltfPipeline/moveTechniqueRenderStates.js +138 -0
- package/Source/Scene/GltfPipeline/moveTechniquesToExtension.js +145 -0
- package/Source/Scene/GltfPipeline/numberOfComponentsForType.js +29 -0
- package/Source/Scene/GltfPipeline/parseGlb.js +122 -0
- package/Source/Scene/GltfPipeline/readAccessorPacked.js +54 -0
- package/Source/Scene/GltfPipeline/removeExtension.js +64 -0
- package/Source/Scene/GltfPipeline/removeExtensionsRequired.js +24 -0
- package/Source/Scene/GltfPipeline/removeExtensionsUsed.js +26 -0
- package/Source/Scene/GltfPipeline/removePipelineExtras.js +42 -0
- package/Source/Scene/GltfPipeline/removeUnusedElements.js +881 -0
- package/Source/Scene/GltfPipeline/updateAccessorComponentTypes.js +53 -0
- package/Source/Scene/GltfPipeline/updateVersion.js +1151 -0
- package/Source/Scene/GltfPipeline/usesExtension.js +18 -0
- package/Source/Scene/GltfStructuralMetadataLoader.js +504 -0
- package/Source/Scene/GltfTextureLoader.js +383 -0
- package/Source/Scene/GltfVertexBufferLoader.js +470 -0
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +758 -0
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +756 -0
- package/Source/Scene/GridImageryProvider.js +436 -0
- package/Source/Scene/GroundPolylinePrimitive.js +926 -0
- package/Source/Scene/GroundPrimitive.js +1040 -0
- package/Source/Scene/GroupMetadata.js +203 -0
- package/Source/Scene/HeightReference.js +28 -0
- package/Source/Scene/HorizontalOrigin.js +41 -0
- package/Source/Scene/I3SDataProvider.js +668 -0
- package/Source/Scene/I3SFeature.js +63 -0
- package/Source/Scene/I3SField.js +255 -0
- package/Source/Scene/I3SGeometry.js +409 -0
- package/Source/Scene/I3SLayer.js +365 -0
- package/Source/Scene/I3SNode.js +816 -0
- package/Source/Scene/I3dmParser.js +141 -0
- package/Source/Scene/ImageBasedLighting.js +510 -0
- package/Source/Scene/Imagery.js +120 -0
- package/Source/Scene/ImageryLayer.js +1541 -0
- package/Source/Scene/ImageryLayerCollection.js +621 -0
- package/Source/Scene/ImageryLayerFeatureInfo.js +112 -0
- package/Source/Scene/ImageryProvider.js +387 -0
- package/Source/Scene/ImageryState.js +14 -0
- package/Source/Scene/Implicit3DTileContent.js +1154 -0
- package/Source/Scene/ImplicitAvailabilityBitstream.js +137 -0
- package/Source/Scene/ImplicitMetadataView.js +178 -0
- package/Source/Scene/ImplicitSubdivisionScheme.js +48 -0
- package/Source/Scene/ImplicitSubtree.js +1146 -0
- package/Source/Scene/ImplicitSubtreeMetadata.js +191 -0
- package/Source/Scene/ImplicitTileCoordinates.js +647 -0
- package/Source/Scene/ImplicitTileset.js +263 -0
- package/Source/Scene/InstanceAttributeSemantic.js +79 -0
- package/Source/Scene/InvertClassification.js +382 -0
- package/Source/Scene/IonImageryProvider.js +555 -0
- package/Source/Scene/IonWorldImageryStyle.js +33 -0
- package/Source/Scene/JobScheduler.js +199 -0
- package/Source/Scene/JobType.js +10 -0
- package/Source/Scene/JsonMetadataTable.js +114 -0
- package/Source/Scene/Label.js +1588 -0
- package/Source/Scene/LabelCollection.js +994 -0
- package/Source/Scene/LabelStyle.js +33 -0
- package/Source/Scene/Light.js +34 -0
- package/Source/Scene/MapMode2D.js +23 -0
- package/Source/Scene/MapboxImageryProvider.js +448 -0
- package/Source/Scene/MapboxStyleImageryProvider.js +457 -0
- package/Source/Scene/Material.js +1742 -0
- package/Source/Scene/MaterialAppearance.js +334 -0
- package/Source/Scene/MetadataClass.js +167 -0
- package/Source/Scene/MetadataClassProperty.js +1104 -0
- package/Source/Scene/MetadataComponentType.js +448 -0
- package/Source/Scene/MetadataEntity.js +425 -0
- package/Source/Scene/MetadataEnum.js +186 -0
- package/Source/Scene/MetadataEnumValue.js +97 -0
- package/Source/Scene/MetadataSchema.js +173 -0
- package/Source/Scene/MetadataSchemaLoader.js +145 -0
- package/Source/Scene/MetadataSemantic.js +145 -0
- package/Source/Scene/MetadataTable.js +357 -0
- package/Source/Scene/MetadataTableProperty.js +859 -0
- package/Source/Scene/MetadataType.js +208 -0
- package/Source/Scene/Model/AlphaPipelineStage.js +52 -0
- package/Source/Scene/Model/B3dmLoader.js +379 -0
- package/Source/Scene/Model/BatchTexturePipelineStage.js +72 -0
- package/Source/Scene/Model/CPUStylingPipelineStage.js +77 -0
- package/Source/Scene/Model/ClassificationModelDrawCommand.js +533 -0
- package/Source/Scene/Model/ClassificationPipelineStage.js +132 -0
- package/Source/Scene/Model/CustomShader.js +473 -0
- package/Source/Scene/Model/CustomShaderMode.js +40 -0
- package/Source/Scene/Model/CustomShaderPipelineStage.js +654 -0
- package/Source/Scene/Model/CustomShaderTranslucencyMode.js +35 -0
- package/Source/Scene/Model/DequantizationPipelineStage.js +178 -0
- package/Source/Scene/Model/FeatureIdPipelineStage.js +504 -0
- package/Source/Scene/Model/GeoJsonLoader.js +722 -0
- package/Source/Scene/Model/GeometryPipelineStage.js +558 -0
- package/Source/Scene/Model/I3dmLoader.js +909 -0
- package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +147 -0
- package/Source/Scene/Model/InstancingPipelineStage.js +1043 -0
- package/Source/Scene/Model/LightingModel.js +30 -0
- package/Source/Scene/Model/LightingPipelineStage.js +75 -0
- package/Source/Scene/Model/MaterialPipelineStage.js +510 -0
- package/Source/Scene/Model/MetadataPipelineStage.js +638 -0
- package/Source/Scene/Model/Model.js +2847 -0
- package/Source/Scene/Model/Model3DTileContent.js +451 -0
- package/Source/Scene/Model/ModelAlphaOptions.js +26 -0
- package/Source/Scene/Model/ModelAnimation.js +422 -0
- package/Source/Scene/Model/ModelAnimationChannel.js +293 -0
- package/Source/Scene/Model/ModelAnimationCollection.js +553 -0
- package/Source/Scene/Model/ModelArticulation.js +214 -0
- package/Source/Scene/Model/ModelArticulationStage.js +261 -0
- package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +126 -0
- package/Source/Scene/Model/ModelColorPipelineStage.js +99 -0
- package/Source/Scene/Model/ModelDrawCommand.js +864 -0
- package/Source/Scene/Model/ModelFeature.js +229 -0
- package/Source/Scene/Model/ModelFeatureTable.js +322 -0
- package/Source/Scene/Model/ModelLightingOptions.js +29 -0
- package/Source/Scene/Model/ModelMatrixUpdateStage.js +108 -0
- package/Source/Scene/Model/ModelNode.js +125 -0
- package/Source/Scene/Model/ModelRenderResources.js +106 -0
- package/Source/Scene/Model/ModelRuntimeNode.js +648 -0
- package/Source/Scene/Model/ModelRuntimePrimitive.js +340 -0
- package/Source/Scene/Model/ModelSceneGraph.js +968 -0
- package/Source/Scene/Model/ModelSilhouettePipelineStage.js +109 -0
- package/Source/Scene/Model/ModelSkin.js +180 -0
- package/Source/Scene/Model/ModelSplitterPipelineStage.js +66 -0
- package/Source/Scene/Model/ModelStatistics.js +197 -0
- package/Source/Scene/Model/ModelType.js +94 -0
- package/Source/Scene/Model/ModelUtility.js +386 -0
- package/Source/Scene/Model/MorphTargetsPipelineStage.js +249 -0
- package/Source/Scene/Model/NodeRenderResources.js +160 -0
- package/Source/Scene/Model/NodeStatisticsPipelineStage.js +75 -0
- package/Source/Scene/Model/PickingPipelineStage.js +219 -0
- package/Source/Scene/Model/PntsLoader.js +717 -0
- package/Source/Scene/Model/PointCloudStylingPipelineStage.js +396 -0
- package/Source/Scene/Model/PrimitiveOutlineGenerator.js +689 -0
- package/Source/Scene/Model/PrimitiveOutlinePipelineStage.js +99 -0
- package/Source/Scene/Model/PrimitiveRenderResources.js +297 -0
- package/Source/Scene/Model/PrimitiveStatisticsPipelineStage.js +253 -0
- package/Source/Scene/Model/SceneMode2DPipelineStage.js +301 -0
- package/Source/Scene/Model/SelectedFeatureIdPipelineStage.js +185 -0
- package/Source/Scene/Model/SkinningPipelineStage.js +118 -0
- package/Source/Scene/Model/StyleCommandsNeeded.js +29 -0
- package/Source/Scene/Model/TextureManager.js +244 -0
- package/Source/Scene/Model/TextureUniform.js +74 -0
- package/Source/Scene/Model/TilesetPipelineStage.js +73 -0
- package/Source/Scene/Model/UniformType.js +124 -0
- package/Source/Scene/Model/VaryingType.js +61 -0
- package/Source/Scene/Model/WireframePipelineStage.js +118 -0
- package/Source/Scene/Model/buildDrawCommand.js +153 -0
- package/Source/Scene/ModelAnimationLoop.js +33 -0
- package/Source/Scene/ModelAnimationState.js +9 -0
- package/Source/Scene/ModelComponents.js +1466 -0
- package/Source/Scene/Moon.js +174 -0
- package/Source/Scene/Multiple3DTileContent.js +674 -0
- package/Source/Scene/NeverTileDiscardPolicy.js +28 -0
- package/Source/Scene/OIT.js +893 -0
- package/Source/Scene/OctahedralProjectedCubeMap.js +456 -0
- package/Source/Scene/OpenStreetMapImageryProvider.js +124 -0
- package/Source/Scene/OrderedGroundPrimitiveCollection.js +219 -0
- package/Source/Scene/Particle.js +155 -0
- package/Source/Scene/ParticleBurst.js +51 -0
- package/Source/Scene/ParticleEmitter.js +36 -0
- package/Source/Scene/ParticleSystem.js +910 -0
- package/Source/Scene/PerInstanceColorAppearance.js +296 -0
- package/Source/Scene/PerformanceDisplay.js +120 -0
- package/Source/Scene/PickDepth.js +105 -0
- package/Source/Scene/PickDepthFramebuffer.js +79 -0
- package/Source/Scene/PickFramebuffer.js +125 -0
- package/Source/Scene/Picking.js +1316 -0
- package/Source/Scene/PntsParser.js +480 -0
- package/Source/Scene/PointCloud.js +1425 -0
- package/Source/Scene/PointCloudEyeDomeLighting.js +279 -0
- package/Source/Scene/PointCloudShading.js +113 -0
- package/Source/Scene/PointPrimitive.js +668 -0
- package/Source/Scene/PointPrimitiveCollection.js +1217 -0
- package/Source/Scene/Polyline.js +431 -0
- package/Source/Scene/PolylineCollection.js +1962 -0
- package/Source/Scene/PolylineColorAppearance.js +224 -0
- package/Source/Scene/PolylineMaterialAppearance.js +236 -0
- package/Source/Scene/PostProcessStage.js +1023 -0
- package/Source/Scene/PostProcessStageCollection.js +888 -0
- package/Source/Scene/PostProcessStageComposite.js +362 -0
- package/Source/Scene/PostProcessStageLibrary.js +838 -0
- package/Source/Scene/PostProcessStageSampleMode.js +22 -0
- package/Source/Scene/PostProcessStageTextureCache.js +454 -0
- package/Source/Scene/Primitive.js +2536 -0
- package/Source/Scene/PrimitiveCollection.js +467 -0
- package/Source/Scene/PrimitiveLoadPlan.js +280 -0
- package/Source/Scene/PrimitivePipeline.js +855 -0
- package/Source/Scene/PrimitiveState.js +13 -0
- package/Source/Scene/PropertyAttribute.js +160 -0
- package/Source/Scene/PropertyAttributeProperty.js +165 -0
- package/Source/Scene/PropertyTable.js +541 -0
- package/Source/Scene/PropertyTexture.js +162 -0
- package/Source/Scene/PropertyTextureProperty.js +263 -0
- package/Source/Scene/QuadtreeOccluders.js +30 -0
- package/Source/Scene/QuadtreePrimitive.js +1546 -0
- package/Source/Scene/QuadtreeTile.js +539 -0
- package/Source/Scene/QuadtreeTileLoadState.js +39 -0
- package/Source/Scene/QuadtreeTileProvider.js +226 -0
- package/Source/Scene/ResourceCache.js +810 -0
- package/Source/Scene/ResourceCacheKey.js +567 -0
- package/Source/Scene/ResourceCacheStatistics.js +183 -0
- package/Source/Scene/ResourceLoader.js +139 -0
- package/Source/Scene/ResourceLoaderState.js +48 -0
- package/Source/Scene/SDFSettings.js +39 -0
- package/Source/Scene/Scene.js +4498 -0
- package/Source/Scene/SceneFramebuffer.js +106 -0
- package/Source/Scene/SceneMode.js +56 -0
- package/Source/Scene/SceneTransforms.js +466 -0
- package/Source/Scene/SceneTransitioner.js +1111 -0
- package/Source/Scene/ScreenSpaceCameraController.js +2933 -0
- package/Source/Scene/ShadowMap.js +1958 -0
- package/Source/Scene/ShadowMapShader.js +395 -0
- package/Source/Scene/ShadowMode.js +78 -0
- package/Source/Scene/ShadowVolumeAppearance.js +937 -0
- package/Source/Scene/SingleTileImageryProvider.js +501 -0
- package/Source/Scene/SkyAtmosphere.js +402 -0
- package/Source/Scene/SkyBox.js +252 -0
- package/Source/Scene/SphereEmitter.js +66 -0
- package/Source/Scene/SplitDirection.js +34 -0
- package/Source/Scene/Splitter.js +49 -0
- package/Source/Scene/StencilConstants.js +37 -0
- package/Source/Scene/StencilFunction.js +73 -0
- package/Source/Scene/StencilOperation.js +73 -0
- package/Source/Scene/StructuralMetadata.js +243 -0
- package/Source/Scene/StyleExpression.js +86 -0
- package/Source/Scene/Sun.js +359 -0
- package/Source/Scene/SunLight.js +31 -0
- package/Source/Scene/SunPostProcess.js +288 -0
- package/Source/Scene/SupportedImageFormats.js +18 -0
- package/Source/Scene/TerrainFillMesh.js +2220 -0
- package/Source/Scene/TerrainState.js +13 -0
- package/Source/Scene/TextureAtlas.js +556 -0
- package/Source/Scene/TileBoundingRegion.js +490 -0
- package/Source/Scene/TileBoundingS2Cell.js +703 -0
- package/Source/Scene/TileBoundingSphere.js +167 -0
- package/Source/Scene/TileBoundingVolume.js +68 -0
- package/Source/Scene/TileCoordinatesImageryProvider.js +379 -0
- package/Source/Scene/TileDiscardPolicy.js +34 -0
- package/Source/Scene/TileImagery.js +130 -0
- package/Source/Scene/TileMapServiceImageryProvider.js +403 -0
- package/Source/Scene/TileMetadata.js +184 -0
- package/Source/Scene/TileOrientedBoundingBox.js +219 -0
- package/Source/Scene/TileReplacementQueue.js +119 -0
- package/Source/Scene/TileSelectionResult.js +80 -0
- package/Source/Scene/TileState.js +10 -0
- package/Source/Scene/Tileset3DTileContent.js +158 -0
- package/Source/Scene/TilesetMetadata.js +186 -0
- package/Source/Scene/TimeDynamicImagery.js +308 -0
- package/Source/Scene/TimeDynamicPointCloud.js +819 -0
- package/Source/Scene/Tonemapper.js +52 -0
- package/Source/Scene/TranslucentTileClassification.js +524 -0
- package/Source/Scene/TweenCollection.js +588 -0
- package/Source/Scene/UrlTemplateImageryProvider.js +1240 -0
- package/Source/Scene/Vector3DTileBatch.js +37 -0
- package/Source/Scene/Vector3DTileClampedPolylines.js +772 -0
- package/Source/Scene/Vector3DTileContent.js +774 -0
- package/Source/Scene/Vector3DTileGeometry.js +490 -0
- package/Source/Scene/Vector3DTilePoints.js +529 -0
- package/Source/Scene/Vector3DTilePolygons.js +479 -0
- package/Source/Scene/Vector3DTilePolylines.js +676 -0
- package/Source/Scene/Vector3DTilePrimitive.js +1282 -0
- package/Source/Scene/VertexAttributeSemantic.js +273 -0
- package/Source/Scene/VerticalOrigin.js +49 -0
- package/Source/Scene/View.js +431 -0
- package/Source/Scene/ViewportQuad.js +182 -0
- package/Source/Scene/WebMapServiceImageryProvider.js +768 -0
- package/Source/Scene/WebMapTileServiceImageryProvider.js +711 -0
- package/Source/Scene/computeFlyToLocationForRectangle.js +69 -0
- package/Source/Scene/createBillboardPointCallback.js +70 -0
- package/Source/Scene/createElevationBandMaterial.js +585 -0
- package/Source/Scene/createOsmBuildings.js +75 -0
- package/Source/Scene/createTangentSpaceDebugPrimitive.js +116 -0
- package/Source/Scene/createWorldImagery.js +38 -0
- package/Source/Scene/findContentMetadata.js +54 -0
- package/Source/Scene/findGroupMetadata.js +39 -0
- package/Source/Scene/findTileMetadata.js +56 -0
- package/Source/Scene/getBinaryAccessor.js +56 -0
- package/Source/Scene/getClipAndStyleCode.js +34 -0
- package/Source/Scene/getClippingFunction.js +163 -0
- package/Source/Scene/hasExtension.js +19 -0
- package/Source/Scene/parseBatchTable.js +439 -0
- package/Source/Scene/parseBoundingVolumeSemantics.js +121 -0
- package/Source/Scene/parseFeatureMetadataLegacy.js +139 -0
- package/Source/Scene/parseStructuralMetadata.js +102 -0
- package/Source/Scene/preprocess3DTileContent.js +94 -0
- package/Source/Shaders/AdjustTranslucentFS.glsl +24 -0
- package/Source/Shaders/AdjustTranslucentFS.js +26 -0
- package/Source/Shaders/Appearances/AllMaterialAppearanceFS.glsl +29 -0
- package/Source/Shaders/Appearances/AllMaterialAppearanceFS.js +31 -0
- package/Source/Shaders/Appearances/AllMaterialAppearanceVS.glsl +26 -0
- package/Source/Shaders/Appearances/AllMaterialAppearanceVS.js +28 -0
- package/Source/Shaders/Appearances/BasicMaterialAppearanceFS.glsl +23 -0
- package/Source/Shaders/Appearances/BasicMaterialAppearanceFS.js +25 -0
- package/Source/Shaders/Appearances/BasicMaterialAppearanceVS.glsl +17 -0
- package/Source/Shaders/Appearances/BasicMaterialAppearanceVS.js +19 -0
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceFS.glsl +33 -0
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceFS.js +35 -0
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceVS.glsl +19 -0
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceVS.js +21 -0
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceFS.glsl +24 -0
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceFS.js +26 -0
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceVS.glsl +20 -0
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceVS.js +22 -0
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceFS.glsl +6 -0
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceFS.js +8 -0
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceVS.glsl +15 -0
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceVS.js +17 -0
- package/Source/Shaders/Appearances/PolylineColorAppearanceVS.glsl +28 -0
- package/Source/Shaders/Appearances/PolylineColorAppearanceVS.js +30 -0
- package/Source/Shaders/Appearances/PolylineMaterialAppearanceVS.glsl +33 -0
- package/Source/Shaders/Appearances/PolylineMaterialAppearanceVS.js +35 -0
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceFS.glsl +25 -0
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceFS.js +27 -0
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceVS.glsl +20 -0
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceVS.js +22 -0
- package/Source/Shaders/AtmosphereCommon.glsl +152 -0
- package/Source/Shaders/AtmosphereCommon.js +154 -0
- package/Source/Shaders/BillboardCollectionFS.glsl +208 -0
- package/Source/Shaders/BillboardCollectionFS.js +210 -0
- package/Source/Shaders/BillboardCollectionVS.glsl +434 -0
- package/Source/Shaders/BillboardCollectionVS.js +436 -0
- package/Source/Shaders/BrdfLutGeneratorFS.glsl +83 -0
- package/Source/Shaders/BrdfLutGeneratorFS.js +85 -0
- package/Source/Shaders/Builtin/Constants/degreesPerRadian.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/degreesPerRadian.js +18 -0
- package/Source/Shaders/Builtin/Constants/depthRange.glsl +14 -0
- package/Source/Shaders/Builtin/Constants/depthRange.js +16 -0
- package/Source/Shaders/Builtin/Constants/epsilon1.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon1.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon2.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon2.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon3.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon3.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon4.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon4.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon5.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon5.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon6.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon6.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon7.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon7.js +9 -0
- package/Source/Shaders/Builtin/Constants/infinity.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/infinity.js +9 -0
- package/Source/Shaders/Builtin/Constants/oneOverPi.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/oneOverPi.js +18 -0
- package/Source/Shaders/Builtin/Constants/oneOverTwoPi.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/oneOverTwoPi.js +18 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +11 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +11 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +11 -0
- package/Source/Shaders/Builtin/Constants/passClassification.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passClassification.js +11 -0
- package/Source/Shaders/Builtin/Constants/passCompute.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCompute.js +11 -0
- package/Source/Shaders/Builtin/Constants/passEnvironment.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passEnvironment.js +11 -0
- package/Source/Shaders/Builtin/Constants/passGlobe.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passGlobe.js +11 -0
- package/Source/Shaders/Builtin/Constants/passOpaque.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passOpaque.js +11 -0
- package/Source/Shaders/Builtin/Constants/passOverlay.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passOverlay.js +11 -0
- package/Source/Shaders/Builtin/Constants/passTerrainClassification.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passTerrainClassification.js +11 -0
- package/Source/Shaders/Builtin/Constants/passTranslucent.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +11 -0
- package/Source/Shaders/Builtin/Constants/pi.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/pi.js +18 -0
- package/Source/Shaders/Builtin/Constants/piOverFour.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/piOverFour.js +18 -0
- package/Source/Shaders/Builtin/Constants/piOverSix.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/piOverSix.js +18 -0
- package/Source/Shaders/Builtin/Constants/piOverThree.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/piOverThree.js +18 -0
- package/Source/Shaders/Builtin/Constants/piOverTwo.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/piOverTwo.js +18 -0
- package/Source/Shaders/Builtin/Constants/radiansPerDegree.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/radiansPerDegree.js +18 -0
- package/Source/Shaders/Builtin/Constants/sceneMode2D.glsl +11 -0
- package/Source/Shaders/Builtin/Constants/sceneMode2D.js +13 -0
- package/Source/Shaders/Builtin/Constants/sceneMode3D.glsl +11 -0
- package/Source/Shaders/Builtin/Constants/sceneMode3D.js +13 -0
- package/Source/Shaders/Builtin/Constants/sceneModeColumbusView.glsl +11 -0
- package/Source/Shaders/Builtin/Constants/sceneModeColumbusView.js +13 -0
- package/Source/Shaders/Builtin/Constants/sceneModeMorphing.glsl +11 -0
- package/Source/Shaders/Builtin/Constants/sceneModeMorphing.js +13 -0
- package/Source/Shaders/Builtin/Constants/solarRadius.glsl +13 -0
- package/Source/Shaders/Builtin/Constants/solarRadius.js +15 -0
- package/Source/Shaders/Builtin/Constants/threePiOver2.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/threePiOver2.js +18 -0
- package/Source/Shaders/Builtin/Constants/twoPi.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/twoPi.js +18 -0
- package/Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.js +18 -0
- package/Source/Shaders/Builtin/CzmBuiltins.js +262 -0
- package/Source/Shaders/Builtin/Functions/HSBToRGB.glsl +24 -0
- package/Source/Shaders/Builtin/Functions/HSBToRGB.js +26 -0
- package/Source/Shaders/Builtin/Functions/HSLToRGB.glsl +31 -0
- package/Source/Shaders/Builtin/Functions/HSLToRGB.js +33 -0
- package/Source/Shaders/Builtin/Functions/RGBToHSB.glsl +27 -0
- package/Source/Shaders/Builtin/Functions/RGBToHSB.js +29 -0
- package/Source/Shaders/Builtin/Functions/RGBToHSL.glsl +34 -0
- package/Source/Shaders/Builtin/Functions/RGBToHSL.js +36 -0
- package/Source/Shaders/Builtin/Functions/RGBToXYZ.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/RGBToXYZ.js +32 -0
- package/Source/Shaders/Builtin/Functions/XYZToRGB.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/XYZToRGB.js +32 -0
- package/Source/Shaders/Builtin/Functions/acesTonemapping.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/acesTonemapping.js +18 -0
- package/Source/Shaders/Builtin/Functions/alphaWeight.glsl +11 -0
- package/Source/Shaders/Builtin/Functions/alphaWeight.js +13 -0
- package/Source/Shaders/Builtin/Functions/antialias.glsl +39 -0
- package/Source/Shaders/Builtin/Functions/antialias.js +41 -0
- package/Source/Shaders/Builtin/Functions/approximateSphericalCoordinates.glsl +18 -0
- package/Source/Shaders/Builtin/Functions/approximateSphericalCoordinates.js +20 -0
- package/Source/Shaders/Builtin/Functions/backFacing.glsl +13 -0
- package/Source/Shaders/Builtin/Functions/backFacing.js +15 -0
- package/Source/Shaders/Builtin/Functions/branchFreeTernary.glsl +71 -0
- package/Source/Shaders/Builtin/Functions/branchFreeTernary.js +73 -0
- package/Source/Shaders/Builtin/Functions/cascadeColor.glsl +8 -0
- package/Source/Shaders/Builtin/Functions/cascadeColor.js +10 -0
- package/Source/Shaders/Builtin/Functions/cascadeDistance.glsl +7 -0
- package/Source/Shaders/Builtin/Functions/cascadeDistance.js +9 -0
- package/Source/Shaders/Builtin/Functions/cascadeMatrix.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/cascadeMatrix.js +12 -0
- package/Source/Shaders/Builtin/Functions/cascadeWeights.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/cascadeWeights.js +12 -0
- package/Source/Shaders/Builtin/Functions/columbusViewMorph.glsl +12 -0
- package/Source/Shaders/Builtin/Functions/columbusViewMorph.js +14 -0
- package/Source/Shaders/Builtin/Functions/computePosition.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/computePosition.js +24 -0
- package/Source/Shaders/Builtin/Functions/cosineAndSine.glsl +211 -0
- package/Source/Shaders/Builtin/Functions/cosineAndSine.js +213 -0
- package/Source/Shaders/Builtin/Functions/decompressTextureCoordinates.glsl +17 -0
- package/Source/Shaders/Builtin/Functions/decompressTextureCoordinates.js +19 -0
- package/Source/Shaders/Builtin/Functions/defaultPbrMaterial.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/defaultPbrMaterial.js +18 -0
- package/Source/Shaders/Builtin/Functions/depthClamp.glsl +47 -0
- package/Source/Shaders/Builtin/Functions/depthClamp.js +49 -0
- package/Source/Shaders/Builtin/Functions/eastNorthUpToEyeCoordinates.glsl +33 -0
- package/Source/Shaders/Builtin/Functions/eastNorthUpToEyeCoordinates.js +35 -0
- package/Source/Shaders/Builtin/Functions/ellipsoidContainsPoint.glsl +12 -0
- package/Source/Shaders/Builtin/Functions/ellipsoidContainsPoint.js +14 -0
- package/Source/Shaders/Builtin/Functions/ellipsoidWgs84TextureCoordinates.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/ellipsoidWgs84TextureCoordinates.js +12 -0
- package/Source/Shaders/Builtin/Functions/equalsEpsilon.glsl +36 -0
- package/Source/Shaders/Builtin/Functions/equalsEpsilon.js +38 -0
- package/Source/Shaders/Builtin/Functions/eyeOffset.glsl +20 -0
- package/Source/Shaders/Builtin/Functions/eyeOffset.js +22 -0
- package/Source/Shaders/Builtin/Functions/eyeToWindowCoordinates.glsl +32 -0
- package/Source/Shaders/Builtin/Functions/eyeToWindowCoordinates.js +34 -0
- package/Source/Shaders/Builtin/Functions/fastApproximateAtan.glsl +55 -0
- package/Source/Shaders/Builtin/Functions/fastApproximateAtan.js +57 -0
- package/Source/Shaders/Builtin/Functions/fog.glsl +38 -0
- package/Source/Shaders/Builtin/Functions/fog.js +40 -0
- package/Source/Shaders/Builtin/Functions/gammaCorrect.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/gammaCorrect.js +24 -0
- package/Source/Shaders/Builtin/Functions/geodeticSurfaceNormal.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/geodeticSurfaceNormal.js +18 -0
- package/Source/Shaders/Builtin/Functions/getDefaultMaterial.glsl +27 -0
- package/Source/Shaders/Builtin/Functions/getDefaultMaterial.js +29 -0
- package/Source/Shaders/Builtin/Functions/getLambertDiffuse.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/getLambertDiffuse.js +24 -0
- package/Source/Shaders/Builtin/Functions/getSpecular.glsl +29 -0
- package/Source/Shaders/Builtin/Functions/getSpecular.js +31 -0
- package/Source/Shaders/Builtin/Functions/getWaterNoise.glsl +37 -0
- package/Source/Shaders/Builtin/Functions/getWaterNoise.js +39 -0
- package/Source/Shaders/Builtin/Functions/hue.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/hue.js +32 -0
- package/Source/Shaders/Builtin/Functions/inverseGamma.glsl +12 -0
- package/Source/Shaders/Builtin/Functions/inverseGamma.js +14 -0
- package/Source/Shaders/Builtin/Functions/isEmpty.glsl +19 -0
- package/Source/Shaders/Builtin/Functions/isEmpty.js +21 -0
- package/Source/Shaders/Builtin/Functions/isFull.glsl +19 -0
- package/Source/Shaders/Builtin/Functions/isFull.js +21 -0
- package/Source/Shaders/Builtin/Functions/latitudeToWebMercatorFraction.glsl +21 -0
- package/Source/Shaders/Builtin/Functions/latitudeToWebMercatorFraction.js +23 -0
- package/Source/Shaders/Builtin/Functions/lineDistance.glsl +14 -0
- package/Source/Shaders/Builtin/Functions/lineDistance.js +16 -0
- package/Source/Shaders/Builtin/Functions/linearToSrgb.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/linearToSrgb.js +18 -0
- package/Source/Shaders/Builtin/Functions/luminance.glsl +20 -0
- package/Source/Shaders/Builtin/Functions/luminance.js +22 -0
- package/Source/Shaders/Builtin/Functions/metersPerPixel.glsl +61 -0
- package/Source/Shaders/Builtin/Functions/metersPerPixel.js +63 -0
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.glsl +37 -0
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.js +39 -0
- package/Source/Shaders/Builtin/Functions/multiplyWithColorBalance.glsl +18 -0
- package/Source/Shaders/Builtin/Functions/multiplyWithColorBalance.js +20 -0
- package/Source/Shaders/Builtin/Functions/nearFarScalar.glsl +26 -0
- package/Source/Shaders/Builtin/Functions/nearFarScalar.js +28 -0
- package/Source/Shaders/Builtin/Functions/octDecode.glsl +83 -0
- package/Source/Shaders/Builtin/Functions/octDecode.js +85 -0
- package/Source/Shaders/Builtin/Functions/packDepth.glsl +18 -0
- package/Source/Shaders/Builtin/Functions/packDepth.js +20 -0
- package/Source/Shaders/Builtin/Functions/pbrLighting.glsl +99 -0
- package/Source/Shaders/Builtin/Functions/pbrLighting.js +101 -0
- package/Source/Shaders/Builtin/Functions/pbrMetallicRoughnessMaterial.glsl +37 -0
- package/Source/Shaders/Builtin/Functions/pbrMetallicRoughnessMaterial.js +39 -0
- package/Source/Shaders/Builtin/Functions/pbrSpecularGlossinessMaterial.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/pbrSpecularGlossinessMaterial.js +32 -0
- package/Source/Shaders/Builtin/Functions/phong.glsl +63 -0
- package/Source/Shaders/Builtin/Functions/phong.js +65 -0
- package/Source/Shaders/Builtin/Functions/planeDistance.glsl +28 -0
- package/Source/Shaders/Builtin/Functions/planeDistance.js +30 -0
- package/Source/Shaders/Builtin/Functions/pointAlongRay.glsl +19 -0
- package/Source/Shaders/Builtin/Functions/pointAlongRay.js +21 -0
- package/Source/Shaders/Builtin/Functions/rayEllipsoidIntersectionInterval.glsl +83 -0
- package/Source/Shaders/Builtin/Functions/rayEllipsoidIntersectionInterval.js +85 -0
- package/Source/Shaders/Builtin/Functions/raySphereIntersectionInterval.glsl +36 -0
- package/Source/Shaders/Builtin/Functions/raySphereIntersectionInterval.js +38 -0
- package/Source/Shaders/Builtin/Functions/readDepth.glsl +4 -0
- package/Source/Shaders/Builtin/Functions/readDepth.js +6 -0
- package/Source/Shaders/Builtin/Functions/readNonPerspective.glsl +31 -0
- package/Source/Shaders/Builtin/Functions/readNonPerspective.js +33 -0
- package/Source/Shaders/Builtin/Functions/reverseLogDepth.glsl +11 -0
- package/Source/Shaders/Builtin/Functions/reverseLogDepth.js +13 -0
- package/Source/Shaders/Builtin/Functions/round.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/round.js +24 -0
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.glsl +78 -0
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.js +80 -0
- package/Source/Shaders/Builtin/Functions/saturation.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/saturation.js +24 -0
- package/Source/Shaders/Builtin/Functions/shadowDepthCompare.glsl +24 -0
- package/Source/Shaders/Builtin/Functions/shadowDepthCompare.js +26 -0
- package/Source/Shaders/Builtin/Functions/shadowVisibility.glsl +66 -0
- package/Source/Shaders/Builtin/Functions/shadowVisibility.js +68 -0
- package/Source/Shaders/Builtin/Functions/signNotZero.glsl +29 -0
- package/Source/Shaders/Builtin/Functions/signNotZero.js +31 -0
- package/Source/Shaders/Builtin/Functions/sphericalHarmonics.glsl +42 -0
- package/Source/Shaders/Builtin/Functions/sphericalHarmonics.js +44 -0
- package/Source/Shaders/Builtin/Functions/srgbToLinear.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/srgbToLinear.js +18 -0
- package/Source/Shaders/Builtin/Functions/tangentToEyeSpaceMatrix.glsl +25 -0
- package/Source/Shaders/Builtin/Functions/tangentToEyeSpaceMatrix.js +27 -0
- package/Source/Shaders/Builtin/Functions/transformPlane.glsl +15 -0
- package/Source/Shaders/Builtin/Functions/transformPlane.js +17 -0
- package/Source/Shaders/Builtin/Functions/translateRelativeToEye.glsl +40 -0
- package/Source/Shaders/Builtin/Functions/translateRelativeToEye.js +42 -0
- package/Source/Shaders/Builtin/Functions/translucentPhong.glsl +27 -0
- package/Source/Shaders/Builtin/Functions/translucentPhong.js +29 -0
- package/Source/Shaders/Builtin/Functions/transpose.glsl +45 -0
- package/Source/Shaders/Builtin/Functions/transpose.js +47 -0
- package/Source/Shaders/Builtin/Functions/unpackDepth.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/unpackDepth.js +18 -0
- package/Source/Shaders/Builtin/Functions/unpackFloat.glsl +24 -0
- package/Source/Shaders/Builtin/Functions/unpackFloat.js +26 -0
- package/Source/Shaders/Builtin/Functions/unpackUint.glsl +31 -0
- package/Source/Shaders/Builtin/Functions/unpackUint.js +33 -0
- package/Source/Shaders/Builtin/Functions/valueTransform.glsl +38 -0
- package/Source/Shaders/Builtin/Functions/valueTransform.js +40 -0
- package/Source/Shaders/Builtin/Functions/vertexLogDepth.glsl +64 -0
- package/Source/Shaders/Builtin/Functions/vertexLogDepth.js +66 -0
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +99 -0
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +101 -0
- package/Source/Shaders/Builtin/Functions/writeDepthClamp.glsl +27 -0
- package/Source/Shaders/Builtin/Functions/writeDepthClamp.js +29 -0
- package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +82 -0
- package/Source/Shaders/Builtin/Functions/writeLogDepth.js +84 -0
- package/Source/Shaders/Builtin/Functions/writeNonPerspective.glsl +32 -0
- package/Source/Shaders/Builtin/Functions/writeNonPerspective.js +34 -0
- package/Source/Shaders/Builtin/Structs/depthRangeStruct.glsl +9 -0
- package/Source/Shaders/Builtin/Structs/depthRangeStruct.js +11 -0
- package/Source/Shaders/Builtin/Structs/material.glsl +22 -0
- package/Source/Shaders/Builtin/Structs/material.js +24 -0
- package/Source/Shaders/Builtin/Structs/materialInput.glsl +28 -0
- package/Source/Shaders/Builtin/Structs/materialInput.js +30 -0
- package/Source/Shaders/Builtin/Structs/modelMaterial.glsl +29 -0
- package/Source/Shaders/Builtin/Structs/modelMaterial.js +31 -0
- package/Source/Shaders/Builtin/Structs/modelVertexOutput.glsl +16 -0
- package/Source/Shaders/Builtin/Structs/modelVertexOutput.js +18 -0
- package/Source/Shaders/Builtin/Structs/pbrParameters.glsl +16 -0
- package/Source/Shaders/Builtin/Structs/pbrParameters.js +18 -0
- package/Source/Shaders/Builtin/Structs/ray.glsl +11 -0
- package/Source/Shaders/Builtin/Structs/ray.js +13 -0
- package/Source/Shaders/Builtin/Structs/raySegment.glsl +27 -0
- package/Source/Shaders/Builtin/Structs/raySegment.js +29 -0
- package/Source/Shaders/Builtin/Structs/shadowParameters.glsl +15 -0
- package/Source/Shaders/Builtin/Structs/shadowParameters.js +17 -0
- package/Source/Shaders/CloudCollectionFS.glsl +263 -0
- package/Source/Shaders/CloudCollectionFS.js +265 -0
- package/Source/Shaders/CloudCollectionVS.glsl +48 -0
- package/Source/Shaders/CloudCollectionVS.js +50 -0
- package/Source/Shaders/CloudNoiseFS.glsl +92 -0
- package/Source/Shaders/CloudNoiseFS.js +94 -0
- package/Source/Shaders/CloudNoiseVS.glsl +18 -0
- package/Source/Shaders/CloudNoiseVS.js +20 -0
- package/Source/Shaders/CompareAndPackTranslucentDepth.glsl +12 -0
- package/Source/Shaders/CompareAndPackTranslucentDepth.js +14 -0
- package/Source/Shaders/CompositeOITFS.glsl +31 -0
- package/Source/Shaders/CompositeOITFS.js +33 -0
- package/Source/Shaders/DepthPlaneFS.glsl +36 -0
- package/Source/Shaders/DepthPlaneFS.js +38 -0
- package/Source/Shaders/DepthPlaneVS.glsl +11 -0
- package/Source/Shaders/DepthPlaneVS.js +13 -0
- package/Source/Shaders/EllipsoidFS.glsl +112 -0
- package/Source/Shaders/EllipsoidFS.js +114 -0
- package/Source/Shaders/EllipsoidVS.glsl +28 -0
- package/Source/Shaders/EllipsoidVS.js +30 -0
- package/Source/Shaders/FXAA3_11.glsl +648 -0
- package/Source/Shaders/FXAA3_11.js +678 -0
- package/Source/Shaders/GlobeFS.glsl +652 -0
- package/Source/Shaders/GlobeFS.js +654 -0
- package/Source/Shaders/GlobeVS.glsl +253 -0
- package/Source/Shaders/GlobeVS.js +255 -0
- package/Source/Shaders/GroundAtmosphere.glsl +18 -0
- package/Source/Shaders/GroundAtmosphere.js +20 -0
- package/Source/Shaders/Materials/AspectRampMaterial.glsl +11 -0
- package/Source/Shaders/Materials/AspectRampMaterial.js +13 -0
- package/Source/Shaders/Materials/BumpMapMaterial.glsl +29 -0
- package/Source/Shaders/Materials/BumpMapMaterial.js +31 -0
- package/Source/Shaders/Materials/CheckerboardMaterial.glsl +29 -0
- package/Source/Shaders/Materials/CheckerboardMaterial.js +31 -0
- package/Source/Shaders/Materials/DotMaterial.glsl +18 -0
- package/Source/Shaders/Materials/DotMaterial.js +20 -0
- package/Source/Shaders/Materials/ElevationBandMaterial.glsl +74 -0
- package/Source/Shaders/Materials/ElevationBandMaterial.js +76 -0
- package/Source/Shaders/Materials/ElevationContourMaterial.glsl +29 -0
- package/Source/Shaders/Materials/ElevationContourMaterial.js +31 -0
- package/Source/Shaders/Materials/ElevationRampMaterial.glsl +14 -0
- package/Source/Shaders/Materials/ElevationRampMaterial.js +16 -0
- package/Source/Shaders/Materials/FadeMaterial.glsl +37 -0
- package/Source/Shaders/Materials/FadeMaterial.js +39 -0
- package/Source/Shaders/Materials/GridMaterial.glsl +60 -0
- package/Source/Shaders/Materials/GridMaterial.js +62 -0
- package/Source/Shaders/Materials/NormalMapMaterial.glsl +19 -0
- package/Source/Shaders/Materials/NormalMapMaterial.js +21 -0
- package/Source/Shaders/Materials/PolylineArrowMaterial.glsl +66 -0
- package/Source/Shaders/Materials/PolylineArrowMaterial.js +68 -0
- package/Source/Shaders/Materials/PolylineDashMaterial.glsl +39 -0
- package/Source/Shaders/Materials/PolylineDashMaterial.js +41 -0
- package/Source/Shaders/Materials/PolylineGlowMaterial.glsl +25 -0
- package/Source/Shaders/Materials/PolylineGlowMaterial.js +27 -0
- package/Source/Shaders/Materials/PolylineOutlineMaterial.glsl +29 -0
- package/Source/Shaders/Materials/PolylineOutlineMaterial.js +31 -0
- package/Source/Shaders/Materials/RimLightingMaterial.glsl +21 -0
- package/Source/Shaders/Materials/RimLightingMaterial.js +23 -0
- package/Source/Shaders/Materials/SlopeRampMaterial.glsl +11 -0
- package/Source/Shaders/Materials/SlopeRampMaterial.js +13 -0
- package/Source/Shaders/Materials/StripeMaterial.glsl +24 -0
- package/Source/Shaders/Materials/StripeMaterial.js +26 -0
- package/Source/Shaders/Materials/Water.glsl +58 -0
- package/Source/Shaders/Materials/Water.js +60 -0
- package/Source/Shaders/Model/CPUStylingStageFS.glsl +49 -0
- package/Source/Shaders/Model/CPUStylingStageFS.js +51 -0
- package/Source/Shaders/Model/CPUStylingStageVS.glsl +30 -0
- package/Source/Shaders/Model/CPUStylingStageVS.js +32 -0
- package/Source/Shaders/Model/CustomShaderStageFS.glsl +18 -0
- package/Source/Shaders/Model/CustomShaderStageFS.js +20 -0
- package/Source/Shaders/Model/CustomShaderStageVS.glsl +19 -0
- package/Source/Shaders/Model/CustomShaderStageVS.js +21 -0
- package/Source/Shaders/Model/FeatureIdStageFS.glsl +4 -0
- package/Source/Shaders/Model/FeatureIdStageFS.js +6 -0
- package/Source/Shaders/Model/FeatureIdStageVS.glsl +6 -0
- package/Source/Shaders/Model/FeatureIdStageVS.js +8 -0
- package/Source/Shaders/Model/GeometryStageFS.glsl +25 -0
- package/Source/Shaders/Model/GeometryStageFS.js +27 -0
- package/Source/Shaders/Model/GeometryStageVS.glsl +42 -0
- package/Source/Shaders/Model/GeometryStageVS.js +44 -0
- package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +165 -0
- package/Source/Shaders/Model/ImageBasedLightingStageFS.js +166 -0
- package/Source/Shaders/Model/InstancingStageCommon.glsl +67 -0
- package/Source/Shaders/Model/InstancingStageCommon.js +69 -0
- package/Source/Shaders/Model/InstancingStageVS.glsl +18 -0
- package/Source/Shaders/Model/InstancingStageVS.js +20 -0
- package/Source/Shaders/Model/LegacyInstancingStageVS.glsl +20 -0
- package/Source/Shaders/Model/LegacyInstancingStageVS.js +22 -0
- package/Source/Shaders/Model/LightingStageFS.glsl +73 -0
- package/Source/Shaders/Model/LightingStageFS.js +75 -0
- package/Source/Shaders/Model/MaterialStageFS.glsl +226 -0
- package/Source/Shaders/Model/MaterialStageFS.js +228 -0
- package/Source/Shaders/Model/MetadataStageFS.glsl +9 -0
- package/Source/Shaders/Model/MetadataStageFS.js +11 -0
- package/Source/Shaders/Model/MetadataStageVS.glsl +10 -0
- package/Source/Shaders/Model/MetadataStageVS.js +12 -0
- package/Source/Shaders/Model/ModelClippingPlanesStageFS.glsl +88 -0
- package/Source/Shaders/Model/ModelClippingPlanesStageFS.js +90 -0
- package/Source/Shaders/Model/ModelColorStageFS.glsl +7 -0
- package/Source/Shaders/Model/ModelColorStageFS.js +8 -0
- package/Source/Shaders/Model/ModelFS.glsl +89 -0
- package/Source/Shaders/Model/ModelFS.js +91 -0
- package/Source/Shaders/Model/ModelSilhouetteStageFS.glsl +5 -0
- package/Source/Shaders/Model/ModelSilhouetteStageFS.js +6 -0
- package/Source/Shaders/Model/ModelSilhouetteStageVS.glsl +10 -0
- package/Source/Shaders/Model/ModelSilhouetteStageVS.js +12 -0
- package/Source/Shaders/Model/ModelSplitterStageFS.glsl +9 -0
- package/Source/Shaders/Model/ModelSplitterStageFS.js +11 -0
- package/Source/Shaders/Model/ModelVS.glsl +136 -0
- package/Source/Shaders/Model/ModelVS.js +138 -0
- package/Source/Shaders/Model/MorphTargetsStageVS.glsl +15 -0
- package/Source/Shaders/Model/MorphTargetsStageVS.js +16 -0
- package/Source/Shaders/Model/PointCloudStylingStageVS.glsl +45 -0
- package/Source/Shaders/Model/PointCloudStylingStageVS.js +46 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.glsl +16 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +18 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageVS.glsl +3 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageVS.js +5 -0
- package/Source/Shaders/Model/SelectedFeatureIdStageCommon.glsl +51 -0
- package/Source/Shaders/Model/SelectedFeatureIdStageCommon.js +53 -0
- package/Source/Shaders/Model/SkinningStageVS.glsl +18 -0
- package/Source/Shaders/Model/SkinningStageVS.js +19 -0
- package/Source/Shaders/OctahedralProjectionAtlasFS.glsl +89 -0
- package/Source/Shaders/OctahedralProjectionAtlasFS.js +91 -0
- package/Source/Shaders/OctahedralProjectionFS.glsl +14 -0
- package/Source/Shaders/OctahedralProjectionFS.js +16 -0
- package/Source/Shaders/OctahedralProjectionVS.glsl +10 -0
- package/Source/Shaders/OctahedralProjectionVS.js +12 -0
- package/Source/Shaders/PointPrimitiveCollectionFS.glsl +43 -0
- package/Source/Shaders/PointPrimitiveCollectionFS.js +45 -0
- package/Source/Shaders/PointPrimitiveCollectionVS.glsl +180 -0
- package/Source/Shaders/PointPrimitiveCollectionVS.js +182 -0
- package/Source/Shaders/PolylineCommon.glsl +176 -0
- package/Source/Shaders/PolylineCommon.js +178 -0
- package/Source/Shaders/PolylineFS.glsl +25 -0
- package/Source/Shaders/PolylineFS.js +27 -0
- package/Source/Shaders/PolylineShadowVolumeFS.glsl +90 -0
- package/Source/Shaders/PolylineShadowVolumeFS.js +92 -0
- package/Source/Shaders/PolylineShadowVolumeMorphFS.glsl +45 -0
- package/Source/Shaders/PolylineShadowVolumeMorphFS.js +47 -0
- package/Source/Shaders/PolylineShadowVolumeMorphVS.glsl +177 -0
- package/Source/Shaders/PolylineShadowVolumeMorphVS.js +179 -0
- package/Source/Shaders/PolylineShadowVolumeVS.glsl +168 -0
- package/Source/Shaders/PolylineShadowVolumeVS.js +170 -0
- package/Source/Shaders/PolylineVS.glsl +103 -0
- package/Source/Shaders/PolylineVS.js +105 -0
- package/Source/Shaders/PostProcessStages/AcesTonemappingStage.glsl +21 -0
- package/Source/Shaders/PostProcessStages/AcesTonemappingStage.js +23 -0
- package/Source/Shaders/PostProcessStages/AdditiveBlend.glsl +17 -0
- package/Source/Shaders/PostProcessStages/AdditiveBlend.js +19 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.glsl +115 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js +117 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionModulate.glsl +11 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionModulate.js +13 -0
- package/Source/Shaders/PostProcessStages/BlackAndWhite.glsl +19 -0
- package/Source/Shaders/PostProcessStages/BlackAndWhite.js +21 -0
- package/Source/Shaders/PostProcessStages/BloomComposite.glsl +20 -0
- package/Source/Shaders/PostProcessStages/BloomComposite.js +22 -0
- package/Source/Shaders/PostProcessStages/BrightPass.glsl +30 -0
- package/Source/Shaders/PostProcessStages/BrightPass.js +32 -0
- package/Source/Shaders/PostProcessStages/Brightness.glsl +11 -0
- package/Source/Shaders/PostProcessStages/Brightness.js +13 -0
- package/Source/Shaders/PostProcessStages/CompositeTranslucentClassification.glsl +31 -0
- package/Source/Shaders/PostProcessStages/CompositeTranslucentClassification.js +33 -0
- package/Source/Shaders/PostProcessStages/ContrastBias.glsl +17 -0
- package/Source/Shaders/PostProcessStages/ContrastBias.js +19 -0
- package/Source/Shaders/PostProcessStages/DepthOfField.glsl +39 -0
- package/Source/Shaders/PostProcessStages/DepthOfField.js +41 -0
- package/Source/Shaders/PostProcessStages/DepthView.glsl +9 -0
- package/Source/Shaders/PostProcessStages/DepthView.js +11 -0
- package/Source/Shaders/PostProcessStages/DepthViewPacked.glsl +14 -0
- package/Source/Shaders/PostProcessStages/DepthViewPacked.js +16 -0
- package/Source/Shaders/PostProcessStages/EdgeDetection.glsl +60 -0
- package/Source/Shaders/PostProcessStages/EdgeDetection.js +62 -0
- package/Source/Shaders/PostProcessStages/FXAA.glsl +21 -0
- package/Source/Shaders/PostProcessStages/FXAA.js +23 -0
- package/Source/Shaders/PostProcessStages/FilmicTonemapping.glsl +36 -0
- package/Source/Shaders/PostProcessStages/FilmicTonemapping.js +38 -0
- package/Source/Shaders/PostProcessStages/GaussianBlur1D.glsl +47 -0
- package/Source/Shaders/PostProcessStages/GaussianBlur1D.js +49 -0
- package/Source/Shaders/PostProcessStages/LensFlare.glsl +153 -0
- package/Source/Shaders/PostProcessStages/LensFlare.js +155 -0
- package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.glsl +24 -0
- package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.js +26 -0
- package/Source/Shaders/PostProcessStages/NightVision.glsl +16 -0
- package/Source/Shaders/PostProcessStages/NightVision.js +18 -0
- package/Source/Shaders/PostProcessStages/PassThrough.glsl +8 -0
- package/Source/Shaders/PostProcessStages/PassThrough.js +10 -0
- package/Source/Shaders/PostProcessStages/PassThroughDepth.glsl +8 -0
- package/Source/Shaders/PostProcessStages/PassThroughDepth.js +10 -0
- package/Source/Shaders/PostProcessStages/PointCloudEyeDomeLighting.glsl +63 -0
- package/Source/Shaders/PostProcessStages/PointCloudEyeDomeLighting.js +65 -0
- package/Source/Shaders/PostProcessStages/ReinhardTonemapping.glsl +23 -0
- package/Source/Shaders/PostProcessStages/ReinhardTonemapping.js +25 -0
- package/Source/Shaders/PostProcessStages/Silhouette.glsl +11 -0
- package/Source/Shaders/PostProcessStages/Silhouette.js +13 -0
- package/Source/Shaders/ReprojectWebMercatorFS.glsl +8 -0
- package/Source/Shaders/ReprojectWebMercatorFS.js +10 -0
- package/Source/Shaders/ReprojectWebMercatorVS.glsl +12 -0
- package/Source/Shaders/ReprojectWebMercatorVS.js +14 -0
- package/Source/Shaders/ShadowVolumeAppearanceFS.glsl +165 -0
- package/Source/Shaders/ShadowVolumeAppearanceFS.js +167 -0
- package/Source/Shaders/ShadowVolumeAppearanceVS.glsl +101 -0
- package/Source/Shaders/ShadowVolumeAppearanceVS.js +103 -0
- package/Source/Shaders/ShadowVolumeFS.glsl +17 -0
- package/Source/Shaders/ShadowVolumeFS.js +19 -0
- package/Source/Shaders/SkyAtmosphereCommon.glsl +91 -0
- package/Source/Shaders/SkyAtmosphereCommon.js +93 -0
- package/Source/Shaders/SkyAtmosphereFS.glsl +64 -0
- package/Source/Shaders/SkyAtmosphereFS.js +66 -0
- package/Source/Shaders/SkyAtmosphereVS.glsl +30 -0
- package/Source/Shaders/SkyAtmosphereVS.js +32 -0
- package/Source/Shaders/SkyBoxFS.glsl +9 -0
- package/Source/Shaders/SkyBoxFS.js +11 -0
- package/Source/Shaders/SkyBoxVS.glsl +10 -0
- package/Source/Shaders/SkyBoxVS.js +12 -0
- package/Source/Shaders/SunFS.glsl +9 -0
- package/Source/Shaders/SunFS.js +11 -0
- package/Source/Shaders/SunTextureFS.glsl +55 -0
- package/Source/Shaders/SunTextureFS.js +57 -0
- package/Source/Shaders/SunVS.glsl +28 -0
- package/Source/Shaders/SunVS.js +30 -0
- package/Source/Shaders/Vector3DTileClampedPolylinesFS.glsl +52 -0
- package/Source/Shaders/Vector3DTileClampedPolylinesFS.js +54 -0
- package/Source/Shaders/Vector3DTileClampedPolylinesVS.glsl +85 -0
- package/Source/Shaders/Vector3DTileClampedPolylinesVS.js +87 -0
- package/Source/Shaders/Vector3DTilePolylinesVS.glsl +22 -0
- package/Source/Shaders/Vector3DTilePolylinesVS.js +24 -0
- package/Source/Shaders/VectorTileVS.glsl +9 -0
- package/Source/Shaders/VectorTileVS.js +11 -0
- package/Source/Shaders/ViewportQuadFS.glsl +16 -0
- package/Source/Shaders/ViewportQuadFS.js +18 -0
- package/Source/Shaders/ViewportQuadVS.glsl +10 -0
- package/Source/Shaders/ViewportQuadVS.js +12 -0
- package/Source/ThirdParty/Workers/basis_transcoder.js +21 -0
- package/Source/ThirdParty/Workers/draco_decoder_nodejs.js +118 -0
- package/Source/ThirdParty/Workers/package.json +1 -0
- package/Source/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/Source/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/Source/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/Source/ThirdParty/basis_transcoder.wasm +0 -0
- package/Source/ThirdParty/draco_decoder.wasm +0 -0
- package/Source/ThirdParty/google-earth-dbroot-parser.js +8337 -0
- package/Source/Widget/CesiumWidget.css +124 -0
- package/Source/Widget/CesiumWidget.js +807 -0
- package/Source/Widget/lighter.css +14 -0
- package/Source/Workers/cesiumWorkerBootstrapper.js +2290 -0
- package/Source/Workers/package.json +1 -0
- package/Source/Workers/transferTypedArrayTest.js +22 -0
- package/Source/WorkersES6/combineGeometry.js +14 -0
- package/Source/WorkersES6/createBoxGeometry.js +10 -0
- package/Source/WorkersES6/createBoxOutlineGeometry.js +10 -0
- package/Source/WorkersES6/createCircleGeometry.js +18 -0
- package/Source/WorkersES6/createCircleOutlineGeometry.js +18 -0
- package/Source/WorkersES6/createCoplanarPolygonGeometry.js +10 -0
- package/Source/WorkersES6/createCoplanarPolygonOutlineGeometry.js +15 -0
- package/Source/WorkersES6/createCorridorGeometry.js +12 -0
- package/Source/WorkersES6/createCorridorOutlineGeometry.js +17 -0
- package/Source/WorkersES6/createCylinderGeometry.js +10 -0
- package/Source/WorkersES6/createCylinderOutlineGeometry.js +10 -0
- package/Source/WorkersES6/createEllipseGeometry.js +14 -0
- package/Source/WorkersES6/createEllipseOutlineGeometry.js +14 -0
- package/Source/WorkersES6/createEllipsoidGeometry.js +10 -0
- package/Source/WorkersES6/createEllipsoidOutlineGeometry.js +13 -0
- package/Source/WorkersES6/createFrustumGeometry.js +10 -0
- package/Source/WorkersES6/createFrustumOutlineGeometry.js +10 -0
- package/Source/WorkersES6/createGeometry.js +52 -0
- package/Source/WorkersES6/createGroundPolylineGeometry.js +16 -0
- package/Source/WorkersES6/createPlaneGeometry.js +10 -0
- package/Source/WorkersES6/createPlaneOutlineGeometry.js +10 -0
- package/Source/WorkersES6/createPolygonGeometry.js +12 -0
- package/Source/WorkersES6/createPolygonOutlineGeometry.js +12 -0
- package/Source/WorkersES6/createPolylineGeometry.js +12 -0
- package/Source/WorkersES6/createPolylineVolumeGeometry.js +17 -0
- package/Source/WorkersES6/createPolylineVolumeOutlineGeometry.js +22 -0
- package/Source/WorkersES6/createRectangleGeometry.js +14 -0
- package/Source/WorkersES6/createRectangleOutlineGeometry.js +17 -0
- package/Source/WorkersES6/createSimplePolylineGeometry.js +17 -0
- package/Source/WorkersES6/createSphereGeometry.js +10 -0
- package/Source/WorkersES6/createSphereOutlineGeometry.js +10 -0
- package/Source/WorkersES6/createTaskProcessorWorker.js +129 -0
- package/Source/WorkersES6/createVectorTileClampedPolylines.js +541 -0
- package/Source/WorkersES6/createVectorTileGeometries.js +414 -0
- package/Source/WorkersES6/createVectorTilePoints.js +81 -0
- package/Source/WorkersES6/createVectorTilePolygons.js +412 -0
- package/Source/WorkersES6/createVectorTilePolylines.js +210 -0
- package/Source/WorkersES6/createVerticesFromGoogleEarthEnterpriseBuffer.js +653 -0
- package/Source/WorkersES6/createVerticesFromHeightmap.js +53 -0
- package/Source/WorkersES6/createVerticesFromQuantizedTerrainMesh.js +549 -0
- package/Source/WorkersES6/createWallGeometry.js +12 -0
- package/Source/WorkersES6/createWallOutlineGeometry.js +12 -0
- package/Source/WorkersES6/decodeDraco.js +381 -0
- package/Source/WorkersES6/decodeGoogleEarthEnterprisePacket.js +268 -0
- package/Source/WorkersES6/decodeI3S.js +1044 -0
- package/Source/WorkersES6/transcodeKTX2.js +316 -0
- package/Source/WorkersES6/upsampleQuantizedTerrainMesh.js +680 -0
- package/index.d.ts +41767 -0
- package/index.js +1085 -0
- package/package.json +73 -0
|
@@ -0,0 +1,2233 @@
|
|
|
1
|
+
undefined
|
|
2
|
+
var BASIS = function() {
|
|
3
|
+
var _scriptDir = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : void 0;
|
|
4
|
+
if (typeof __filename !== "undefined")
|
|
5
|
+
_scriptDir = _scriptDir || __filename;
|
|
6
|
+
return function(BASIS2) {
|
|
7
|
+
BASIS2 = BASIS2 || {};
|
|
8
|
+
var Module = typeof BASIS2 !== "undefined" ? BASIS2 : {};
|
|
9
|
+
var readyPromiseResolve, readyPromiseReject;
|
|
10
|
+
Module["ready"] = new Promise(function(resolve, reject) {
|
|
11
|
+
readyPromiseResolve = resolve;
|
|
12
|
+
readyPromiseRejectza = reject;
|
|
13
|
+
});
|
|
14
|
+
var moduleOverrides = {};
|
|
15
|
+
var key;
|
|
16
|
+
for (key in Module) {
|
|
17
|
+
if (Module.hasOwnProperty(key)) {
|
|
18
|
+
moduleOverrides[key] = Module[key];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
var arguments_ = [];
|
|
22
|
+
var thisProgram = "./this.program";
|
|
23
|
+
var quit_ = function(status, toThrow) {
|
|
24
|
+
throw toThrow;
|
|
25
|
+
};
|
|
26
|
+
var ENVIRONMENT_IS_WEB = false;
|
|
27
|
+
var ENVIRONMENT_IS_WORKER = false;
|
|
28
|
+
var ENVIRONMENT_IS_NODE = false;
|
|
29
|
+
var ENVIRONMENT_IS_SHELL = false;
|
|
30
|
+
ENVIRONMENT_IS_WEB = typeof window === "object";
|
|
31
|
+
ENVIRONMENT_IS_WORKER = typeof importScripts === "function";
|
|
32
|
+
ENVIRONMENT_IS_NODE = typeof process === "object" && typeof process.versions === "object" && typeof process.versions.node === "string";
|
|
33
|
+
ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
|
|
34
|
+
var scriptDirectory = "";
|
|
35
|
+
function locateFile(path) {
|
|
36
|
+
if (Module["locateFile"]) {
|
|
37
|
+
return Module["locateFile"](path, scriptDirectory);
|
|
38
|
+
}
|
|
39
|
+
return scriptDirectory + path;
|
|
40
|
+
}
|
|
41
|
+
var read_, readAsync, readBinary, setWindowTitle;
|
|
42
|
+
var nodeFS;
|
|
43
|
+
var nodePath;
|
|
44
|
+
if (ENVIRONMENT_IS_NODE) {
|
|
45
|
+
if (ENVIRONMENT_IS_WORKER) {
|
|
46
|
+
scriptDirectory = require("path").dirname(scriptDirectory) + "/";
|
|
47
|
+
} else {
|
|
48
|
+
scriptDirectory = __dirname + "/";
|
|
49
|
+
}
|
|
50
|
+
read_ = function shell_read(filename, binary) {
|
|
51
|
+
if (!nodeFS)
|
|
52
|
+
nodeFS = require("fs");
|
|
53
|
+
if (!nodePath)
|
|
54
|
+
nodePath = require("path");
|
|
55
|
+
filename = nodePath["normalize"](filename);
|
|
56
|
+
return nodeFS["readFileSync"](filename, binary ? null : "utf8");
|
|
57
|
+
};
|
|
58
|
+
readBinary = function readBinary2(filename) {
|
|
59
|
+
var ret = read_(filename, true);
|
|
60
|
+
if (!ret.buffer) {
|
|
61
|
+
ret = new Uint8Array(ret);
|
|
62
|
+
}
|
|
63
|
+
assert(ret.buffer);
|
|
64
|
+
return ret;
|
|
65
|
+
};
|
|
66
|
+
if (process["argv"].length > 1) {
|
|
67
|
+
thisProgram = process["argv"][1].replace(/\\/g, "/");
|
|
68
|
+
}
|
|
69
|
+
arguments_ = process["argv"].slice(2);
|
|
70
|
+
process["on"]("uncaughtException", function(ex) {
|
|
71
|
+
if (!(ex instanceof ExitStatus)) {
|
|
72
|
+
throw ex;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
process["on"]("unhandledRejection", abort);
|
|
76
|
+
quit_ = function(status) {
|
|
77
|
+
process["exit"](status);
|
|
78
|
+
};
|
|
79
|
+
Module["inspect"] = function() {
|
|
80
|
+
return "[Emscripten Module object]";
|
|
81
|
+
};
|
|
82
|
+
} else if (ENVIRONMENT_IS_SHELL) {
|
|
83
|
+
if (typeof read != "undefined") {
|
|
84
|
+
read_ = function shell_read(f) {
|
|
85
|
+
return read(f);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
readBinary = function readBinary2(f) {
|
|
89
|
+
var data;
|
|
90
|
+
if (typeof readbuffer === "function") {
|
|
91
|
+
return new Uint8Array(readbuffer(f));
|
|
92
|
+
}
|
|
93
|
+
data = read(f, "binary");
|
|
94
|
+
assert(typeof data === "object");
|
|
95
|
+
return data;
|
|
96
|
+
};
|
|
97
|
+
if (typeof scriptArgs != "undefined") {
|
|
98
|
+
arguments_ = scriptArgs;
|
|
99
|
+
} else if (typeof arguments != "undefined") {
|
|
100
|
+
arguments_ = arguments;
|
|
101
|
+
}
|
|
102
|
+
if (typeof quit === "function") {
|
|
103
|
+
quit_ = function(status) {
|
|
104
|
+
quit(status);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
if (typeof print !== "undefined") {
|
|
108
|
+
if (typeof console === "undefined")
|
|
109
|
+
console = {};
|
|
110
|
+
console.log = print;
|
|
111
|
+
console.warn = console.error = typeof printErr !== "undefined" ? printErr : print;
|
|
112
|
+
}
|
|
113
|
+
} else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
|
|
114
|
+
if (ENVIRONMENT_IS_WORKER) {
|
|
115
|
+
scriptDirectory = self.location.href;
|
|
116
|
+
} else if (typeof document !== "undefined" && document.currentScript) {
|
|
117
|
+
scriptDirectory = document.currentScript.src;
|
|
118
|
+
}
|
|
119
|
+
if (_scriptDir) {
|
|
120
|
+
scriptDirectory = _scriptDir;
|
|
121
|
+
}
|
|
122
|
+
if (scriptDirectory.indexOf("blob:") !== 0) {
|
|
123
|
+
scriptDirectory = scriptDirectory.substr(0, scriptDirectory.lastIndexOf("/") + 1);
|
|
124
|
+
} else {
|
|
125
|
+
scriptDirectory = "";
|
|
126
|
+
}
|
|
127
|
+
{
|
|
128
|
+
read_ = function(url) {
|
|
129
|
+
var xhr = new XMLHttpRequest();
|
|
130
|
+
xhr.open("GET", url, false);
|
|
131
|
+
xhr.send(null);
|
|
132
|
+
return xhr.responseText;
|
|
133
|
+
};
|
|
134
|
+
if (ENVIRONMENT_IS_WORKER) {
|
|
135
|
+
readBinary = function(url) {
|
|
136
|
+
var xhr = new XMLHttpRequest();
|
|
137
|
+
xhr.open("GET", url, false);
|
|
138
|
+
xhr.responseType = "arraybuffer";
|
|
139
|
+
xhr.send(null);
|
|
140
|
+
return new Uint8Array(xhr.response);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
readAsync = function(url, onload, onerror) {
|
|
144
|
+
var xhr = new XMLHttpRequest();
|
|
145
|
+
xhr.open("GET", url, true);
|
|
146
|
+
xhr.responseType = "arraybuffer";
|
|
147
|
+
xhr.onload = function() {
|
|
148
|
+
if (xhr.status == 200 || xhr.status == 0 && xhr.response) {
|
|
149
|
+
onload(xhr.response);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
onerror();
|
|
153
|
+
};
|
|
154
|
+
xhr.onerror = onerror;
|
|
155
|
+
xhr.send(null);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
setWindowTitle = function(title) {
|
|
159
|
+
document.title = title;
|
|
160
|
+
};
|
|
161
|
+
} else {
|
|
162
|
+
}
|
|
163
|
+
var out = Module["print"] || console.log.bind(console);
|
|
164
|
+
var err = Module["printErr"] || console.warn.bind(console);
|
|
165
|
+
for (key in moduleOverrides) {
|
|
166
|
+
if (moduleOverrides.hasOwnProperty(key)) {
|
|
167
|
+
Module[key] = moduleOverrides[key];
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
moduleOverrides = null;
|
|
171
|
+
if (Module["arguments"])
|
|
172
|
+
arguments_ = Module["arguments"];
|
|
173
|
+
if (Module["thisProgram"])
|
|
174
|
+
thisProgram = Module["thisProgram"];
|
|
175
|
+
if (Module["quit"])
|
|
176
|
+
quit_ = Module["quit"];
|
|
177
|
+
var tempRet0 = 0;
|
|
178
|
+
var setTempRet0 = function(value) {
|
|
179
|
+
tempRet0 = value;
|
|
180
|
+
};
|
|
181
|
+
var wasmBinary;
|
|
182
|
+
if (Module["wasmBinary"])
|
|
183
|
+
wasmBinary = Module["wasmBinary"];
|
|
184
|
+
var noExitRuntime = Module["noExitRuntime"] || true;
|
|
185
|
+
if (typeof WebAssembly !== "object") {
|
|
186
|
+
abort("no native wasm support detected");
|
|
187
|
+
}
|
|
188
|
+
var wasmMemory;
|
|
189
|
+
var ABORT = false;
|
|
190
|
+
var EXITSTATUS;
|
|
191
|
+
function assert(condition, text) {
|
|
192
|
+
if (!condition) {
|
|
193
|
+
abort("Assertion failed: " + text);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
var UTF8Decoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf8") : void 0;
|
|
197
|
+
function UTF8ArrayToString(heap, idx, maxBytesToRead) {
|
|
198
|
+
var endIdx = idx + maxBytesToRead;
|
|
199
|
+
var endPtr = idx;
|
|
200
|
+
while (heap[endPtr] && !(endPtr >= endIdx))
|
|
201
|
+
++endPtr;
|
|
202
|
+
if (endPtr - idx > 16 && heap.subarray && UTF8Decoder) {
|
|
203
|
+
return UTF8Decoder.decode(heap.subarray(idx, endPtr));
|
|
204
|
+
} else {
|
|
205
|
+
var str = "";
|
|
206
|
+
while (idx < endPtr) {
|
|
207
|
+
var u0 = heap[idx++];
|
|
208
|
+
if (!(u0 & 128)) {
|
|
209
|
+
str += String.fromCharCode(u0);
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
var u1 = heap[idx++] & 63;
|
|
213
|
+
if ((u0 & 224) == 192) {
|
|
214
|
+
str += String.fromCharCode((u0 & 31) << 6 | u1);
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
var u2 = heap[idx++] & 63;
|
|
218
|
+
if ((u0 & 240) == 224) {
|
|
219
|
+
u0 = (u0 & 15) << 12 | u1 << 6 | u2;
|
|
220
|
+
} else {
|
|
221
|
+
u0 = (u0 & 7) << 18 | u1 << 12 | u2 << 6 | heap[idx++] & 63;
|
|
222
|
+
}
|
|
223
|
+
if (u0 < 65536) {
|
|
224
|
+
str += String.fromCharCode(u0);
|
|
225
|
+
} else {
|
|
226
|
+
var ch = u0 - 65536;
|
|
227
|
+
str += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return str;
|
|
232
|
+
}
|
|
233
|
+
function UTF8ToString(ptr, maxBytesToRead) {
|
|
234
|
+
return ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : "";
|
|
235
|
+
}
|
|
236
|
+
function stringToUTF8Array(str, heap, outIdx, maxBytesToWrite) {
|
|
237
|
+
if (!(maxBytesToWrite > 0))
|
|
238
|
+
return 0;
|
|
239
|
+
var startIdx = outIdx;
|
|
240
|
+
var endIdx = outIdx + maxBytesToWrite - 1;
|
|
241
|
+
for (var i = 0; i < str.length; ++i) {
|
|
242
|
+
var u = str.charCodeAt(i);
|
|
243
|
+
if (u >= 55296 && u <= 57343) {
|
|
244
|
+
var u1 = str.charCodeAt(++i);
|
|
245
|
+
u = 65536 + ((u & 1023) << 10) | u1 & 1023;
|
|
246
|
+
}
|
|
247
|
+
if (u <= 127) {
|
|
248
|
+
if (outIdx >= endIdx)
|
|
249
|
+
break;
|
|
250
|
+
heap[outIdx++] = u;
|
|
251
|
+
} else if (u <= 2047) {
|
|
252
|
+
if (outIdx + 1 >= endIdx)
|
|
253
|
+
break;
|
|
254
|
+
heap[outIdx++] = 192 | u >> 6;
|
|
255
|
+
heap[outIdx++] = 128 | u & 63;
|
|
256
|
+
} else if (u <= 65535) {
|
|
257
|
+
if (outIdx + 2 >= endIdx)
|
|
258
|
+
break;
|
|
259
|
+
heap[outIdx++] = 224 | u >> 12;
|
|
260
|
+
heap[outIdx++] = 128 | u >> 6 & 63;
|
|
261
|
+
heap[outIdx++] = 128 | u & 63;
|
|
262
|
+
} else {
|
|
263
|
+
if (outIdx + 3 >= endIdx)
|
|
264
|
+
break;
|
|
265
|
+
heap[outIdx++] = 240 | u >> 18;
|
|
266
|
+
heap[outIdx++] = 128 | u >> 12 & 63;
|
|
267
|
+
heap[outIdx++] = 128 | u >> 6 & 63;
|
|
268
|
+
heap[outIdx++] = 128 | u & 63;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
heap[outIdx] = 0;
|
|
272
|
+
return outIdx - startIdx;
|
|
273
|
+
}
|
|
274
|
+
function stringToUTF8(str, outPtr, maxBytesToWrite) {
|
|
275
|
+
return stringToUTF8Array(str, HEAPU8, outPtr, maxBytesToWrite);
|
|
276
|
+
}
|
|
277
|
+
function lengthBytesUTF8(str) {
|
|
278
|
+
var len = 0;
|
|
279
|
+
for (var i = 0; i < str.length; ++i) {
|
|
280
|
+
var u = str.charCodeAt(i);
|
|
281
|
+
if (u >= 55296 && u <= 57343)
|
|
282
|
+
u = 65536 + ((u & 1023) << 10) | str.charCodeAt(++i) & 1023;
|
|
283
|
+
if (u <= 127)
|
|
284
|
+
++len;
|
|
285
|
+
else if (u <= 2047)
|
|
286
|
+
len += 2;
|
|
287
|
+
else if (u <= 65535)
|
|
288
|
+
len += 3;
|
|
289
|
+
else
|
|
290
|
+
len += 4;
|
|
291
|
+
}
|
|
292
|
+
return len;
|
|
293
|
+
}
|
|
294
|
+
var UTF16Decoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-16le") : void 0;
|
|
295
|
+
function UTF16ToString(ptr, maxBytesToRead) {
|
|
296
|
+
var endPtr = ptr;
|
|
297
|
+
var idx = endPtr >> 1;
|
|
298
|
+
var maxIdx = idx + maxBytesToRead / 2;
|
|
299
|
+
while (!(idx >= maxIdx) && HEAPU16[idx])
|
|
300
|
+
++idx;
|
|
301
|
+
endPtr = idx << 1;
|
|
302
|
+
if (endPtr - ptr > 32 && UTF16Decoder) {
|
|
303
|
+
return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
|
|
304
|
+
} else {
|
|
305
|
+
var str = "";
|
|
306
|
+
for (var i = 0; !(i >= maxBytesToRead / 2); ++i) {
|
|
307
|
+
var codeUnit = HEAP16[ptr + i * 2 >> 1];
|
|
308
|
+
if (codeUnit == 0)
|
|
309
|
+
break;
|
|
310
|
+
str += String.fromCharCode(codeUnit);
|
|
311
|
+
}
|
|
312
|
+
return str;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function stringToUTF16(str, outPtr, maxBytesToWrite) {
|
|
316
|
+
if (maxBytesToWrite === void 0) {
|
|
317
|
+
maxBytesToWrite = 2147483647;
|
|
318
|
+
}
|
|
319
|
+
if (maxBytesToWrite < 2)
|
|
320
|
+
return 0;
|
|
321
|
+
maxBytesToWrite -= 2;
|
|
322
|
+
var startPtr = outPtr;
|
|
323
|
+
var numCharsToWrite = maxBytesToWrite < str.length * 2 ? maxBytesToWrite / 2 : str.length;
|
|
324
|
+
for (var i = 0; i < numCharsToWrite; ++i) {
|
|
325
|
+
var codeUnit = str.charCodeAt(i);
|
|
326
|
+
HEAP16[outPtr >> 1] = codeUnit;
|
|
327
|
+
outPtr += 2;
|
|
328
|
+
}
|
|
329
|
+
HEAP16[outPtr >> 1] = 0;
|
|
330
|
+
return outPtr - startPtr;
|
|
331
|
+
}
|
|
332
|
+
function lengthBytesUTF16(str) {
|
|
333
|
+
return str.length * 2;
|
|
334
|
+
}
|
|
335
|
+
function UTF32ToString(ptr, maxBytesToRead) {
|
|
336
|
+
var i = 0;
|
|
337
|
+
var str = "";
|
|
338
|
+
while (!(i >= maxBytesToRead / 4)) {
|
|
339
|
+
var utf32 = HEAP32[ptr + i * 4 >> 2];
|
|
340
|
+
if (utf32 == 0)
|
|
341
|
+
break;
|
|
342
|
+
++i;
|
|
343
|
+
if (utf32 >= 65536) {
|
|
344
|
+
var ch = utf32 - 65536;
|
|
345
|
+
str += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023);
|
|
346
|
+
} else {
|
|
347
|
+
str += String.fromCharCode(utf32);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return str;
|
|
351
|
+
}
|
|
352
|
+
function stringToUTF32(str, outPtr, maxBytesToWrite) {
|
|
353
|
+
if (maxBytesToWrite === void 0) {
|
|
354
|
+
maxBytesToWrite = 2147483647;
|
|
355
|
+
}
|
|
356
|
+
if (maxBytesToWrite < 4)
|
|
357
|
+
return 0;
|
|
358
|
+
var startPtr = outPtr;
|
|
359
|
+
var endPtr = startPtr + maxBytesToWrite - 4;
|
|
360
|
+
for (var i = 0; i < str.length; ++i) {
|
|
361
|
+
var codeUnit = str.charCodeAt(i);
|
|
362
|
+
if (codeUnit >= 55296 && codeUnit <= 57343) {
|
|
363
|
+
var trailSurrogate = str.charCodeAt(++i);
|
|
364
|
+
codeUnit = 65536 + ((codeUnit & 1023) << 10) | trailSurrogate & 1023;
|
|
365
|
+
}
|
|
366
|
+
HEAP32[outPtr >> 2] = codeUnit;
|
|
367
|
+
outPtr += 4;
|
|
368
|
+
if (outPtr + 4 > endPtr)
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
HEAP32[outPtr >> 2] = 0;
|
|
372
|
+
return outPtr - startPtr;
|
|
373
|
+
}
|
|
374
|
+
function lengthBytesUTF32(str) {
|
|
375
|
+
var len = 0;
|
|
376
|
+
for (var i = 0; i < str.length; ++i) {
|
|
377
|
+
var codeUnit = str.charCodeAt(i);
|
|
378
|
+
if (codeUnit >= 55296 && codeUnit <= 57343)
|
|
379
|
+
++i;
|
|
380
|
+
len += 4;
|
|
381
|
+
}
|
|
382
|
+
return len;
|
|
383
|
+
}
|
|
384
|
+
function alignUp(x, multiple) {
|
|
385
|
+
if (x % multiple > 0) {
|
|
386
|
+
x += multiple - x % multiple;
|
|
387
|
+
}
|
|
388
|
+
return x;
|
|
389
|
+
}
|
|
390
|
+
var buffer, HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
|
|
391
|
+
function updateGlobalBufferAndViews(buf) {
|
|
392
|
+
buffer = buf;
|
|
393
|
+
Module["HEAP8"] = HEAP8 = new Int8Array(buf);
|
|
394
|
+
Module["HEAP16"] = HEAP16 = new Int16Array(buf);
|
|
395
|
+
Module["HEAP32"] = HEAP32 = new Int32Array(buf);
|
|
396
|
+
Module["HEAPU8"] = HEAPU8 = new Uint8Array(buf);
|
|
397
|
+
Module["HEAPU16"] = HEAPU16 = new Uint16Array(buf);
|
|
398
|
+
Module["HEAPU32"] = HEAPU32 = new Uint32Array(buf);
|
|
399
|
+
Module["HEAPF32"] = HEAPF32 = new Float32Array(buf);
|
|
400
|
+
Module["HEAPF64"] = HEAPF64 = new Float64Array(buf);
|
|
401
|
+
}
|
|
402
|
+
var INITIAL_MEMORY = Module["INITIAL_MEMORY"] || 16777216;
|
|
403
|
+
var wasmTable;
|
|
404
|
+
var __ATPRERUN__ = [];
|
|
405
|
+
var __ATINIT__ = [];
|
|
406
|
+
var __ATMAIN__ = [];
|
|
407
|
+
var __ATPOSTRUN__ = [];
|
|
408
|
+
var runtimeInitialized = false;
|
|
409
|
+
function preRun() {
|
|
410
|
+
if (Module["preRun"]) {
|
|
411
|
+
if (typeof Module["preRun"] == "function")
|
|
412
|
+
Module["preRun"] = [Module["preRun"]];
|
|
413
|
+
while (Module["preRun"].length) {
|
|
414
|
+
addOnPreRun(Module["preRun"].shift());
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
callRuntimeCallbacks(__ATPRERUN__);
|
|
418
|
+
}
|
|
419
|
+
function initRuntime() {
|
|
420
|
+
runtimeInitialized = true;
|
|
421
|
+
callRuntimeCallbacks(__ATINIT__);
|
|
422
|
+
}
|
|
423
|
+
function preMain() {
|
|
424
|
+
callRuntimeCallbacks(__ATMAIN__);
|
|
425
|
+
}
|
|
426
|
+
function postRun() {
|
|
427
|
+
if (Module["postRun"]) {
|
|
428
|
+
if (typeof Module["postRun"] == "function")
|
|
429
|
+
Module["postRun"] = [Module["postRun"]];
|
|
430
|
+
while (Module["postRun"].length) {
|
|
431
|
+
addOnPostRun(Module["postRun"].shift());
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
callRuntimeCallbacks(__ATPOSTRUN__);
|
|
435
|
+
}
|
|
436
|
+
function addOnPreRun(cb) {
|
|
437
|
+
__ATPRERUN__.unshift(cb);
|
|
438
|
+
}
|
|
439
|
+
function addOnInit(cb) {
|
|
440
|
+
__ATINIT__.unshift(cb);
|
|
441
|
+
}
|
|
442
|
+
function addOnPostRun(cb) {
|
|
443
|
+
__ATPOSTRUN__.unshift(cb);
|
|
444
|
+
}
|
|
445
|
+
var runDependencies = 0;
|
|
446
|
+
var runDependencyWatcher = null;
|
|
447
|
+
var dependenciesFulfilled = null;
|
|
448
|
+
function addRunDependency(id) {
|
|
449
|
+
runDependencies++;
|
|
450
|
+
if (Module["monitorRunDependencies"]) {
|
|
451
|
+
Module["monitorRunDependencies"](runDependencies);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function removeRunDependency(id) {
|
|
455
|
+
runDependencies--;
|
|
456
|
+
if (Module["monitorRunDependencies"]) {
|
|
457
|
+
Module["monitorRunDependencies"](runDependencies);
|
|
458
|
+
}
|
|
459
|
+
if (runDependencies == 0) {
|
|
460
|
+
if (runDependencyWatcher !== null) {
|
|
461
|
+
clearInterval(runDependencyWatcher);
|
|
462
|
+
runDependencyWatcher = null;
|
|
463
|
+
}
|
|
464
|
+
if (dependenciesFulfilled) {
|
|
465
|
+
var callback = dependenciesFulfilled;
|
|
466
|
+
dependenciesFulfilled = null;
|
|
467
|
+
callback();
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
Module["preloadedImages"] = {};
|
|
472
|
+
Module["preloadedAudios"] = {};
|
|
473
|
+
function abort(what) {
|
|
474
|
+
if (Module["onAbort"]) {
|
|
475
|
+
Module["onAbort"](what);
|
|
476
|
+
}
|
|
477
|
+
what += "";
|
|
478
|
+
err(what);
|
|
479
|
+
ABORT = true;
|
|
480
|
+
EXITSTATUS = 1;
|
|
481
|
+
what = "abort(" + what + "). Build with -s ASSERTIONS=1 for more info.";
|
|
482
|
+
var e = new WebAssembly.RuntimeError(what);
|
|
483
|
+
readyPromiseReject(e);
|
|
484
|
+
throw e;
|
|
485
|
+
}
|
|
486
|
+
function hasPrefix(str, prefix) {
|
|
487
|
+
return String.prototype.startsWith ? str.startsWith(prefix) : str.indexOf(prefix) === 0;
|
|
488
|
+
}
|
|
489
|
+
var dataURIPrefix = "data:application/octet-stream;base64,";
|
|
490
|
+
function isDataURI(filename) {
|
|
491
|
+
return hasPrefix(filename, dataURIPrefix);
|
|
492
|
+
}
|
|
493
|
+
var fileURIPrefix = "file://";
|
|
494
|
+
function isFileURI(filename) {
|
|
495
|
+
return hasPrefix(filename, fileURIPrefix);
|
|
496
|
+
}
|
|
497
|
+
var wasmBinaryFile = "basis_transcoder.wasm";
|
|
498
|
+
if (!isDataURI(wasmBinaryFile)) {
|
|
499
|
+
wasmBinaryFile = locateFile(wasmBinaryFile);
|
|
500
|
+
}
|
|
501
|
+
function getBinary(file) {
|
|
502
|
+
try {
|
|
503
|
+
if (file == wasmBinaryFile && wasmBinary) {
|
|
504
|
+
return new Uint8Array(wasmBinary);
|
|
505
|
+
}
|
|
506
|
+
if (readBinary) {
|
|
507
|
+
return readBinary(file);
|
|
508
|
+
} else {
|
|
509
|
+
throw "both async and sync fetching of the wasm failed";
|
|
510
|
+
}
|
|
511
|
+
} catch (err2) {
|
|
512
|
+
abort(err2);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function getBinaryPromise() {
|
|
516
|
+
if (!wasmBinary && (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER)) {
|
|
517
|
+
if (typeof fetch === "function" && !isFileURI(wasmBinaryFile)) {
|
|
518
|
+
return fetch(wasmBinaryFile, { credentials: "same-origin" }).then(function(response) {
|
|
519
|
+
if (!response["ok"]) {
|
|
520
|
+
throw "failed to load wasm binary file at '" + wasmBinaryFile + "'";
|
|
521
|
+
}
|
|
522
|
+
return response["arrayBuffer"]();
|
|
523
|
+
}).catch(function() {
|
|
524
|
+
return getBinary(wasmBinaryFile);
|
|
525
|
+
});
|
|
526
|
+
} else {
|
|
527
|
+
if (readAsync) {
|
|
528
|
+
return new Promise(function(resolve, reject) {
|
|
529
|
+
readAsync(wasmBinaryFile, function(response) {
|
|
530
|
+
resolve(new Uint8Array(response));
|
|
531
|
+
}, reject);
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
return Promise.resolve().then(function() {
|
|
537
|
+
return getBinary(wasmBinaryFile);
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
function createWasm() {
|
|
541
|
+
var info = { "a": asmLibraryArg };
|
|
542
|
+
function receiveInstance(instance, module2) {
|
|
543
|
+
var exports3 = instance.exports;
|
|
544
|
+
Module["asm"] = exports3;
|
|
545
|
+
wasmMemory = Module["asm"]["K"];
|
|
546
|
+
updateGlobalBufferAndViews(wasmMemory.buffer);
|
|
547
|
+
wasmTable = Module["asm"]["O"];
|
|
548
|
+
addOnInit(Module["asm"]["L"]);
|
|
549
|
+
removeRunDependency("wasm-instantiate");
|
|
550
|
+
}
|
|
551
|
+
addRunDependency("wasm-instantiate");
|
|
552
|
+
function receiveInstantiatedSource(output) {
|
|
553
|
+
receiveInstance(output["instance"]);
|
|
554
|
+
}
|
|
555
|
+
function instantiateArrayBuffer(receiver) {
|
|
556
|
+
return getBinaryPromise().then(function(binary) {
|
|
557
|
+
var result = WebAssembly.instantiate(binary, info);
|
|
558
|
+
return result;
|
|
559
|
+
}).then(receiver, function(reason) {
|
|
560
|
+
err("failed to asynchronously prepare wasm: " + reason);
|
|
561
|
+
abort(reason);
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
function instantiateAsync() {
|
|
565
|
+
if (!wasmBinary && typeof WebAssembly.instantiateStreaming === "function" && !isDataURI(wasmBinaryFile) && !isFileURI(wasmBinaryFile) && typeof fetch === "function") {
|
|
566
|
+
return fetch(wasmBinaryFile, { credentials: "same-origin" }).then(function(response) {
|
|
567
|
+
var result = WebAssembly.instantiateStreaming(response, info);
|
|
568
|
+
return result.then(receiveInstantiatedSource, function(reason) {
|
|
569
|
+
err("wasm streaming compile failed: " + reason);
|
|
570
|
+
err("falling back to ArrayBuffer instantiation");
|
|
571
|
+
return instantiateArrayBuffer(receiveInstantiatedSource);
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
} else {
|
|
575
|
+
return instantiateArrayBuffer(receiveInstantiatedSource);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
if (Module["instantiateWasm"]) {
|
|
579
|
+
try {
|
|
580
|
+
var exports2 = Module["instantiateWasm"](info, receiveInstance);
|
|
581
|
+
return exports2;
|
|
582
|
+
} catch (e) {
|
|
583
|
+
err("Module.instantiateWasm callback failed with error: " + e);
|
|
584
|
+
return false;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
instantiateAsync().catch(readyPromiseReject);
|
|
588
|
+
return {};
|
|
589
|
+
}
|
|
590
|
+
function callRuntimeCallbacks(callbacks) {
|
|
591
|
+
while (callbacks.length > 0) {
|
|
592
|
+
var callback = callbacks.shift();
|
|
593
|
+
if (typeof callback == "function") {
|
|
594
|
+
callback(Module);
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
var func = callback.func;
|
|
598
|
+
if (typeof func === "number") {
|
|
599
|
+
if (callback.arg === void 0) {
|
|
600
|
+
wasmTable.get(func)();
|
|
601
|
+
} else {
|
|
602
|
+
wasmTable.get(func)(callback.arg);
|
|
603
|
+
}
|
|
604
|
+
} else {
|
|
605
|
+
func(callback.arg === void 0 ? null : callback.arg);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
var structRegistrations = {};
|
|
610
|
+
function runDestructors(destructors) {
|
|
611
|
+
while (destructors.length) {
|
|
612
|
+
var ptr = destructors.pop();
|
|
613
|
+
var del = destructors.pop();
|
|
614
|
+
del(ptr);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
function simpleReadValueFromPointer(pointer) {
|
|
618
|
+
return this["fromWireType"](HEAPU32[pointer >> 2]);
|
|
619
|
+
}
|
|
620
|
+
var awaitingDependencies = {};
|
|
621
|
+
var registeredTypes = {};
|
|
622
|
+
var typeDependencies = {};
|
|
623
|
+
var char_0 = 48;
|
|
624
|
+
var char_9 = 57;
|
|
625
|
+
function makeLegalFunctionName(name) {
|
|
626
|
+
if (void 0 === name) {
|
|
627
|
+
return "_unknown";
|
|
628
|
+
}
|
|
629
|
+
name = name.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
630
|
+
var f = name.charCodeAt(0);
|
|
631
|
+
if (f >= char_0 && f <= char_9) {
|
|
632
|
+
return "_" + name;
|
|
633
|
+
} else {
|
|
634
|
+
return name;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
function createNamedFunction(name, body) {
|
|
638
|
+
name = makeLegalFunctionName(name);
|
|
639
|
+
return new Function("body", "return function " + name + '() {\n "use strict"; return body.apply(this, arguments);\n};\n')(body);
|
|
640
|
+
}
|
|
641
|
+
function extendError(baseErrorType, errorName) {
|
|
642
|
+
var errorClass = createNamedFunction(errorName, function(message) {
|
|
643
|
+
this.name = errorName;
|
|
644
|
+
this.message = message;
|
|
645
|
+
var stack = new Error(message).stack;
|
|
646
|
+
if (stack !== void 0) {
|
|
647
|
+
this.stack = this.toString() + "\n" + stack.replace(/^Error(:[^\n]*)?\n/, "");
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
errorClass.prototype = Object.create(baseErrorType.prototype);
|
|
651
|
+
errorClass.prototype.constructor = errorClass;
|
|
652
|
+
errorClass.prototype.toString = function() {
|
|
653
|
+
if (this.message === void 0) {
|
|
654
|
+
return this.name;
|
|
655
|
+
} else {
|
|
656
|
+
return this.name + ": " + this.message;
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
return errorClass;
|
|
660
|
+
}
|
|
661
|
+
var InternalError = void 0;
|
|
662
|
+
function throwInternalError(message) {
|
|
663
|
+
throw new InternalError(message);
|
|
664
|
+
}
|
|
665
|
+
function whenDependentTypesAreResolved(myTypes, dependentTypes, getTypeConverters) {
|
|
666
|
+
myTypes.forEach(function(type) {
|
|
667
|
+
typeDependencies[type] = dependentTypes;
|
|
668
|
+
});
|
|
669
|
+
function onComplete(typeConverters2) {
|
|
670
|
+
var myTypeConverters = getTypeConverters(typeConverters2);
|
|
671
|
+
if (myTypeConverters.length !== myTypes.length) {
|
|
672
|
+
throwInternalError("Mismatched type converter count");
|
|
673
|
+
}
|
|
674
|
+
for (var i = 0; i < myTypes.length; ++i) {
|
|
675
|
+
registerType(myTypes[i], myTypeConverters[i]);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
var typeConverters = new Array(dependentTypes.length);
|
|
679
|
+
var unregisteredTypes = [];
|
|
680
|
+
var registered = 0;
|
|
681
|
+
dependentTypes.forEach(function(dt, i) {
|
|
682
|
+
if (registeredTypes.hasOwnProperty(dt)) {
|
|
683
|
+
typeConverters[i] = registeredTypes[dt];
|
|
684
|
+
} else {
|
|
685
|
+
unregisteredTypes.push(dt);
|
|
686
|
+
if (!awaitingDependencies.hasOwnProperty(dt)) {
|
|
687
|
+
awaitingDependencies[dt] = [];
|
|
688
|
+
}
|
|
689
|
+
awaitingDependencies[dt].push(function() {
|
|
690
|
+
typeConverters[i] = registeredTypes[dt];
|
|
691
|
+
++registered;
|
|
692
|
+
if (registered === unregisteredTypes.length) {
|
|
693
|
+
onComplete(typeConverters);
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
if (0 === unregisteredTypes.length) {
|
|
699
|
+
onComplete(typeConverters);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
function __embind_finalize_value_object(structType) {
|
|
703
|
+
var reg = structRegistrations[structType];
|
|
704
|
+
delete structRegistrations[structType];
|
|
705
|
+
var rawConstructor = reg.rawConstructor;
|
|
706
|
+
var rawDestructor = reg.rawDestructor;
|
|
707
|
+
var fieldRecords = reg.fields;
|
|
708
|
+
var fieldTypes = fieldRecords.map(function(field) {
|
|
709
|
+
return field.getterReturnType;
|
|
710
|
+
}).concat(fieldRecords.map(function(field) {
|
|
711
|
+
return field.setterArgumentType;
|
|
712
|
+
}));
|
|
713
|
+
whenDependentTypesAreResolved([structType], fieldTypes, function(fieldTypes2) {
|
|
714
|
+
var fields = {};
|
|
715
|
+
fieldRecords.forEach(function(field, i) {
|
|
716
|
+
var fieldName = field.fieldName;
|
|
717
|
+
var getterReturnType = fieldTypes2[i];
|
|
718
|
+
var getter = field.getter;
|
|
719
|
+
var getterContext = field.getterContext;
|
|
720
|
+
var setterArgumentType = fieldTypes2[i + fieldRecords.length];
|
|
721
|
+
var setter = field.setter;
|
|
722
|
+
var setterContext = field.setterContext;
|
|
723
|
+
fields[fieldName] = { read: function(ptr) {
|
|
724
|
+
return getterReturnType["fromWireType"](getter(getterContext, ptr));
|
|
725
|
+
}, write: function(ptr, o) {
|
|
726
|
+
var destructors = [];
|
|
727
|
+
setter(setterContext, ptr, setterArgumentType["toWireType"](destructors, o));
|
|
728
|
+
runDestructors(destructors);
|
|
729
|
+
} };
|
|
730
|
+
});
|
|
731
|
+
return [{ name: reg.name, "fromWireType": function(ptr) {
|
|
732
|
+
var rv = {};
|
|
733
|
+
for (var i in fields) {
|
|
734
|
+
rv[i] = fields[i].read(ptr);
|
|
735
|
+
}
|
|
736
|
+
rawDestructor(ptr);
|
|
737
|
+
return rv;
|
|
738
|
+
}, "toWireType": function(destructors, o) {
|
|
739
|
+
for (var fieldName in fields) {
|
|
740
|
+
if (!(fieldName in o)) {
|
|
741
|
+
throw new TypeError('Missing field: "' + fieldName + '"');
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
var ptr = rawConstructor();
|
|
745
|
+
for (fieldName in fields) {
|
|
746
|
+
fields[fieldName].write(ptr, o[fieldName]);
|
|
747
|
+
}
|
|
748
|
+
if (destructors !== null) {
|
|
749
|
+
destructors.push(rawDestructor, ptr);
|
|
750
|
+
}
|
|
751
|
+
return ptr;
|
|
752
|
+
}, "argPackAdvance": 8, "readValueFromPointer": simpleReadValueFromPointer, destructorFunction: rawDestructor }];
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
function getShiftFromSize(size) {
|
|
756
|
+
switch (size) {
|
|
757
|
+
case 1:
|
|
758
|
+
return 0;
|
|
759
|
+
case 2:
|
|
760
|
+
return 1;
|
|
761
|
+
case 4:
|
|
762
|
+
return 2;
|
|
763
|
+
case 8:
|
|
764
|
+
return 3;
|
|
765
|
+
default:
|
|
766
|
+
throw new TypeError("Unknown type size: " + size);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
function embind_init_charCodes() {
|
|
770
|
+
var codes = new Array(256);
|
|
771
|
+
for (var i = 0; i < 256; ++i) {
|
|
772
|
+
codes[i] = String.fromCharCode(i);
|
|
773
|
+
}
|
|
774
|
+
embind_charCodes = codes;
|
|
775
|
+
}
|
|
776
|
+
var embind_charCodes = void 0;
|
|
777
|
+
function readLatin1String(ptr) {
|
|
778
|
+
var ret = "";
|
|
779
|
+
var c = ptr;
|
|
780
|
+
while (HEAPU8[c]) {
|
|
781
|
+
ret += embind_charCodes[HEAPU8[c++]];
|
|
782
|
+
}
|
|
783
|
+
return ret;
|
|
784
|
+
}
|
|
785
|
+
var BindingError = void 0;
|
|
786
|
+
function throwBindingError(message) {
|
|
787
|
+
throw new BindingError(message);
|
|
788
|
+
}
|
|
789
|
+
function registerType(rawType, registeredInstance, options) {
|
|
790
|
+
options = options || {};
|
|
791
|
+
if (!("argPackAdvance" in registeredInstance)) {
|
|
792
|
+
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
793
|
+
}
|
|
794
|
+
var name = registeredInstance.name;
|
|
795
|
+
if (!rawType) {
|
|
796
|
+
throwBindingError('type "' + name + '" must have a positive integer typeid pointer');
|
|
797
|
+
}
|
|
798
|
+
if (registeredTypes.hasOwnProperty(rawType)) {
|
|
799
|
+
if (options.ignoreDuplicateRegistrations) {
|
|
800
|
+
return;
|
|
801
|
+
} else {
|
|
802
|
+
throwBindingError("Cannot register type '" + name + "' twice");
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
registeredTypes[rawType] = registeredInstance;
|
|
806
|
+
delete typeDependencies[rawType];
|
|
807
|
+
if (awaitingDependencies.hasOwnProperty(rawType)) {
|
|
808
|
+
var callbacks = awaitingDependencies[rawType];
|
|
809
|
+
delete awaitingDependencies[rawType];
|
|
810
|
+
callbacks.forEach(function(cb) {
|
|
811
|
+
cb();
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
function __embind_register_bool(rawType, name, size, trueValue, falseValue) {
|
|
816
|
+
var shift = getShiftFromSize(size);
|
|
817
|
+
name = readLatin1String(name);
|
|
818
|
+
registerType(rawType, { name, "fromWireType": function(wt) {
|
|
819
|
+
return !!wt;
|
|
820
|
+
}, "toWireType": function(destructors, o) {
|
|
821
|
+
return o ? trueValue : falseValue;
|
|
822
|
+
}, "argPackAdvance": 8, "readValueFromPointer": function(pointer) {
|
|
823
|
+
var heap;
|
|
824
|
+
if (size === 1) {
|
|
825
|
+
heap = HEAP8;
|
|
826
|
+
} else if (size === 2) {
|
|
827
|
+
heap = HEAP16;
|
|
828
|
+
} else if (size === 4) {
|
|
829
|
+
heap = HEAP32;
|
|
830
|
+
} else {
|
|
831
|
+
throw new TypeError("Unknown boolean type size: " + name);
|
|
832
|
+
}
|
|
833
|
+
return this["fromWireType"](heap[pointer >> shift]);
|
|
834
|
+
}, destructorFunction: null });
|
|
835
|
+
}
|
|
836
|
+
function ClassHandle_isAliasOf(other) {
|
|
837
|
+
if (!(this instanceof ClassHandle)) {
|
|
838
|
+
return false;
|
|
839
|
+
}
|
|
840
|
+
if (!(other instanceof ClassHandle)) {
|
|
841
|
+
return false;
|
|
842
|
+
}
|
|
843
|
+
var leftClass = this.$$.ptrType.registeredClass;
|
|
844
|
+
var left = this.$$.ptr;
|
|
845
|
+
var rightClass = other.$$.ptrType.registeredClass;
|
|
846
|
+
var right = other.$$.ptr;
|
|
847
|
+
while (leftClass.baseClass) {
|
|
848
|
+
left = leftClass.upcast(left);
|
|
849
|
+
leftClass = leftClass.baseClass;
|
|
850
|
+
}
|
|
851
|
+
while (rightClass.baseClass) {
|
|
852
|
+
right = rightClass.upcast(right);
|
|
853
|
+
rightClass = rightClass.baseClass;
|
|
854
|
+
}
|
|
855
|
+
return leftClass === rightClass && left === right;
|
|
856
|
+
}
|
|
857
|
+
function shallowCopyInternalPointer(o) {
|
|
858
|
+
return { count: o.count, deleteScheduled: o.deleteScheduled, preservePointerOnDelete: o.preservePointerOnDelete, ptr: o.ptr, ptrType: o.ptrType, smartPtr: o.smartPtr, smartPtrType: o.smartPtrType };
|
|
859
|
+
}
|
|
860
|
+
function throwInstanceAlreadyDeleted(obj) {
|
|
861
|
+
function getInstanceTypeName(handle) {
|
|
862
|
+
return handle.$$.ptrType.registeredClass.name;
|
|
863
|
+
}
|
|
864
|
+
throwBindingError(getInstanceTypeName(obj) + " instance already deleted");
|
|
865
|
+
}
|
|
866
|
+
var finalizationGroup = false;
|
|
867
|
+
function detachFinalizer(handle) {
|
|
868
|
+
}
|
|
869
|
+
function runDestructor($$) {
|
|
870
|
+
if ($$.smartPtr) {
|
|
871
|
+
$$.smartPtrType.rawDestructor($$.smartPtr);
|
|
872
|
+
} else {
|
|
873
|
+
$$.ptrType.registeredClass.rawDestructor($$.ptr);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
function releaseClassHandle($$) {
|
|
877
|
+
$$.count.value -= 1;
|
|
878
|
+
var toDelete = 0 === $$.count.value;
|
|
879
|
+
if (toDelete) {
|
|
880
|
+
runDestructor($$);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
function attachFinalizer(handle) {
|
|
884
|
+
if ("undefined" === typeof FinalizationGroup) {
|
|
885
|
+
attachFinalizer = function(handle2) {
|
|
886
|
+
return handle2;
|
|
887
|
+
};
|
|
888
|
+
return handle;
|
|
889
|
+
}
|
|
890
|
+
finalizationGroup = new FinalizationGroup(function(iter) {
|
|
891
|
+
for (var result = iter.next(); !result.done; result = iter.next()) {
|
|
892
|
+
var $$ = result.value;
|
|
893
|
+
if (!$$.ptr) {
|
|
894
|
+
console.warn("object already deleted: " + $$.ptr);
|
|
895
|
+
} else {
|
|
896
|
+
releaseClassHandle($$);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
});
|
|
900
|
+
attachFinalizer = function(handle2) {
|
|
901
|
+
finalizationGroup.register(handle2, handle2.$$, handle2.$$);
|
|
902
|
+
return handle2;
|
|
903
|
+
};
|
|
904
|
+
detachFinalizer = function(handle2) {
|
|
905
|
+
finalizationGroup.unregister(handle2.$$);
|
|
906
|
+
};
|
|
907
|
+
return attachFinalizer(handle);
|
|
908
|
+
}
|
|
909
|
+
function ClassHandle_clone() {
|
|
910
|
+
if (!this.$$.ptr) {
|
|
911
|
+
throwInstanceAlreadyDeleted(this);
|
|
912
|
+
}
|
|
913
|
+
if (this.$$.preservePointerOnDelete) {
|
|
914
|
+
this.$$.count.value += 1;
|
|
915
|
+
return this;
|
|
916
|
+
} else {
|
|
917
|
+
var clone = attachFinalizer(Object.create(Object.getPrototypeOf(this), { $$: { value: shallowCopyInternalPointer(this.$$) } }));
|
|
918
|
+
clone.$$.count.value += 1;
|
|
919
|
+
clone.$$.deleteScheduled = false;
|
|
920
|
+
return clone;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
function ClassHandle_delete() {
|
|
924
|
+
if (!this.$$.ptr) {
|
|
925
|
+
throwInstanceAlreadyDeleted(this);
|
|
926
|
+
}
|
|
927
|
+
if (this.$$.deleteScheduled && !this.$$.preservePointerOnDelete) {
|
|
928
|
+
throwBindingError("Object already scheduled for deletion");
|
|
929
|
+
}
|
|
930
|
+
detachFinalizer(this);
|
|
931
|
+
releaseClassHandle(this.$$);
|
|
932
|
+
if (!this.$$.preservePointerOnDelete) {
|
|
933
|
+
this.$$.smartPtr = void 0;
|
|
934
|
+
this.$$.ptr = void 0;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
function ClassHandle_isDeleted() {
|
|
938
|
+
return !this.$$.ptr;
|
|
939
|
+
}
|
|
940
|
+
var delayFunction = void 0;
|
|
941
|
+
var deletionQueue = [];
|
|
942
|
+
function flushPendingDeletes() {
|
|
943
|
+
while (deletionQueue.length) {
|
|
944
|
+
var obj = deletionQueue.pop();
|
|
945
|
+
obj.$$.deleteScheduled = false;
|
|
946
|
+
obj["delete"]();
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
function ClassHandle_deleteLater() {
|
|
950
|
+
if (!this.$$.ptr) {
|
|
951
|
+
throwInstanceAlreadyDeleted(this);
|
|
952
|
+
}
|
|
953
|
+
if (this.$$.deleteScheduled && !this.$$.preservePointerOnDelete) {
|
|
954
|
+
throwBindingError("Object already scheduled for deletion");
|
|
955
|
+
}
|
|
956
|
+
deletionQueue.push(this);
|
|
957
|
+
if (deletionQueue.length === 1 && delayFunction) {
|
|
958
|
+
delayFunction(flushPendingDeletes);
|
|
959
|
+
}
|
|
960
|
+
this.$$.deleteScheduled = true;
|
|
961
|
+
return this;
|
|
962
|
+
}
|
|
963
|
+
function init_ClassHandle() {
|
|
964
|
+
ClassHandle.prototype["isAliasOf"] = ClassHandle_isAliasOf;
|
|
965
|
+
ClassHandle.prototype["clone"] = ClassHandle_clone;
|
|
966
|
+
ClassHandle.prototype["delete"] = ClassHandle_delete;
|
|
967
|
+
ClassHandle.prototype["isDeleted"] = ClassHandle_isDeleted;
|
|
968
|
+
ClassHandle.prototype["deleteLater"] = ClassHandle_deleteLater;
|
|
969
|
+
}
|
|
970
|
+
function ClassHandle() {
|
|
971
|
+
}
|
|
972
|
+
var registeredPointers = {};
|
|
973
|
+
function ensureOverloadTable(proto, methodName, humanName) {
|
|
974
|
+
if (void 0 === proto[methodName].overloadTable) {
|
|
975
|
+
var prevFunc = proto[methodName];
|
|
976
|
+
proto[methodName] = function() {
|
|
977
|
+
if (!proto[methodName].overloadTable.hasOwnProperty(arguments.length)) {
|
|
978
|
+
throwBindingError("Function '" + humanName + "' called with an invalid number of arguments (" + arguments.length + ") - expects one of (" + proto[methodName].overloadTable + ")!");
|
|
979
|
+
}
|
|
980
|
+
return proto[methodName].overloadTable[arguments.length].apply(this, arguments);
|
|
981
|
+
};
|
|
982
|
+
proto[methodName].overloadTable = [];
|
|
983
|
+
proto[methodName].overloadTable[prevFunc.argCount] = prevFunc;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
function exposePublicSymbol(name, value, numArguments) {
|
|
987
|
+
if (Module.hasOwnProperty(name)) {
|
|
988
|
+
if (void 0 === numArguments || void 0 !== Module[name].overloadTable && void 0 !== Module[name].overloadTable[numArguments]) {
|
|
989
|
+
throwBindingError("Cannot register public name '" + name + "' twice");
|
|
990
|
+
}
|
|
991
|
+
ensureOverloadTable(Module, name, name);
|
|
992
|
+
if (Module.hasOwnProperty(numArguments)) {
|
|
993
|
+
throwBindingError("Cannot register multiple overloads of a function with the same number of arguments (" + numArguments + ")!");
|
|
994
|
+
}
|
|
995
|
+
Module[name].overloadTable[numArguments] = value;
|
|
996
|
+
} else {
|
|
997
|
+
Module[name] = value;
|
|
998
|
+
if (void 0 !== numArguments) {
|
|
999
|
+
Module[name].numArguments = numArguments;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
function RegisteredClass(name, constructor, instancePrototype, rawDestructor, baseClass, getActualType, upcast, downcast) {
|
|
1004
|
+
this.name = name;
|
|
1005
|
+
this.constructor = constructor;
|
|
1006
|
+
this.instancePrototype = instancePrototype;
|
|
1007
|
+
this.rawDestructor = rawDestructor;
|
|
1008
|
+
this.baseClass = baseClass;
|
|
1009
|
+
this.getActualType = getActualType;
|
|
1010
|
+
this.upcast = upcast;
|
|
1011
|
+
this.downcast = downcast;
|
|
1012
|
+
this.pureVirtualFunctions = [];
|
|
1013
|
+
}
|
|
1014
|
+
function upcastPointer(ptr, ptrClass, desiredClass) {
|
|
1015
|
+
while (ptrClass !== desiredClass) {
|
|
1016
|
+
if (!ptrClass.upcast) {
|
|
1017
|
+
throwBindingError("Expected null or instance of " + desiredClass.name + ", got an instance of " + ptrClass.name);
|
|
1018
|
+
}
|
|
1019
|
+
ptr = ptrClass.upcast(ptr);
|
|
1020
|
+
ptrClass = ptrClass.baseClass;
|
|
1021
|
+
}
|
|
1022
|
+
return ptr;
|
|
1023
|
+
}
|
|
1024
|
+
function constNoSmartPtrRawPointerToWireType(destructors, handle) {
|
|
1025
|
+
if (handle === null) {
|
|
1026
|
+
if (this.isReference) {
|
|
1027
|
+
throwBindingError("null is not a valid " + this.name);
|
|
1028
|
+
}
|
|
1029
|
+
return 0;
|
|
1030
|
+
}
|
|
1031
|
+
if (!handle.$$) {
|
|
1032
|
+
throwBindingError('Cannot pass "' + _embind_repr(handle) + '" as a ' + this.name);
|
|
1033
|
+
}
|
|
1034
|
+
if (!handle.$$.ptr) {
|
|
1035
|
+
throwBindingError("Cannot pass deleted object as a pointer of type " + this.name);
|
|
1036
|
+
}
|
|
1037
|
+
var handleClass = handle.$$.ptrType.registeredClass;
|
|
1038
|
+
var ptr = upcastPointer(handle.$$.ptr, handleClass, this.registeredClass);
|
|
1039
|
+
return ptr;
|
|
1040
|
+
}
|
|
1041
|
+
function genericPointerToWireType(destructors, handle) {
|
|
1042
|
+
var ptr;
|
|
1043
|
+
if (handle === null) {
|
|
1044
|
+
if (this.isReference) {
|
|
1045
|
+
throwBindingError("null is not a valid " + this.name);
|
|
1046
|
+
}
|
|
1047
|
+
if (this.isSmartPointer) {
|
|
1048
|
+
ptr = this.rawConstructor();
|
|
1049
|
+
if (destructors !== null) {
|
|
1050
|
+
destructors.push(this.rawDestructor, ptr);
|
|
1051
|
+
}
|
|
1052
|
+
return ptr;
|
|
1053
|
+
} else {
|
|
1054
|
+
return 0;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
if (!handle.$$) {
|
|
1058
|
+
throwBindingError('Cannot pass "' + _embind_repr(handle) + '" as a ' + this.name);
|
|
1059
|
+
}
|
|
1060
|
+
if (!handle.$$.ptr) {
|
|
1061
|
+
throwBindingError("Cannot pass deleted object as a pointer of type " + this.name);
|
|
1062
|
+
}
|
|
1063
|
+
if (!this.isConst && handle.$$.ptrType.isConst) {
|
|
1064
|
+
throwBindingError("Cannot convert argument of type " + (handle.$$.smartPtrType ? handle.$$.smartPtrType.name : handle.$$.ptrType.name) + " to parameter type " + this.name);
|
|
1065
|
+
}
|
|
1066
|
+
var handleClass = handle.$$.ptrType.registeredClass;
|
|
1067
|
+
ptr = upcastPointer(handle.$$.ptr, handleClass, this.registeredClass);
|
|
1068
|
+
if (this.isSmartPointer) {
|
|
1069
|
+
if (void 0 === handle.$$.smartPtr) {
|
|
1070
|
+
throwBindingError("Passing raw pointer to smart pointer is illegal");
|
|
1071
|
+
}
|
|
1072
|
+
switch (this.sharingPolicy) {
|
|
1073
|
+
case 0:
|
|
1074
|
+
if (handle.$$.smartPtrType === this) {
|
|
1075
|
+
ptr = handle.$$.smartPtr;
|
|
1076
|
+
} else {
|
|
1077
|
+
throwBindingError("Cannot convert argument of type " + (handle.$$.smartPtrType ? handle.$$.smartPtrType.name : handle.$$.ptrType.name) + " to parameter type " + this.name);
|
|
1078
|
+
}
|
|
1079
|
+
break;
|
|
1080
|
+
case 1:
|
|
1081
|
+
ptr = handle.$$.smartPtr;
|
|
1082
|
+
break;
|
|
1083
|
+
case 2:
|
|
1084
|
+
if (handle.$$.smartPtrType === this) {
|
|
1085
|
+
ptr = handle.$$.smartPtr;
|
|
1086
|
+
} else {
|
|
1087
|
+
var clonedHandle = handle["clone"]();
|
|
1088
|
+
ptr = this.rawShare(ptr, __emval_register(function() {
|
|
1089
|
+
clonedHandle["delete"]();
|
|
1090
|
+
}));
|
|
1091
|
+
if (destructors !== null) {
|
|
1092
|
+
destructors.push(this.rawDestructor, ptr);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
break;
|
|
1096
|
+
default:
|
|
1097
|
+
throwBindingError("Unsupporting sharing policy");
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
return ptr;
|
|
1101
|
+
}
|
|
1102
|
+
function nonConstNoSmartPtrRawPointerToWireType(destructors, handle) {
|
|
1103
|
+
if (handle === null) {
|
|
1104
|
+
if (this.isReference) {
|
|
1105
|
+
throwBindingError("null is not a valid " + this.name);
|
|
1106
|
+
}
|
|
1107
|
+
return 0;
|
|
1108
|
+
}
|
|
1109
|
+
if (!handle.$$) {
|
|
1110
|
+
throwBindingError('Cannot pass "' + _embind_repr(handle) + '" as a ' + this.name);
|
|
1111
|
+
}
|
|
1112
|
+
if (!handle.$$.ptr) {
|
|
1113
|
+
throwBindingError("Cannot pass deleted object as a pointer of type " + this.name);
|
|
1114
|
+
}
|
|
1115
|
+
if (handle.$$.ptrType.isConst) {
|
|
1116
|
+
throwBindingError("Cannot convert argument of type " + handle.$$.ptrType.name + " to parameter type " + this.name);
|
|
1117
|
+
}
|
|
1118
|
+
var handleClass = handle.$$.ptrType.registeredClass;
|
|
1119
|
+
var ptr = upcastPointer(handle.$$.ptr, handleClass, this.registeredClass);
|
|
1120
|
+
return ptr;
|
|
1121
|
+
}
|
|
1122
|
+
function RegisteredPointer_getPointee(ptr) {
|
|
1123
|
+
if (this.rawGetPointee) {
|
|
1124
|
+
ptr = this.rawGetPointee(ptr);
|
|
1125
|
+
}
|
|
1126
|
+
return ptr;
|
|
1127
|
+
}
|
|
1128
|
+
function RegisteredPointer_destructor(ptr) {
|
|
1129
|
+
if (this.rawDestructor) {
|
|
1130
|
+
this.rawDestructor(ptr);
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
function RegisteredPointer_deleteObject(handle) {
|
|
1134
|
+
if (handle !== null) {
|
|
1135
|
+
handle["delete"]();
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
function downcastPointer(ptr, ptrClass, desiredClass) {
|
|
1139
|
+
if (ptrClass === desiredClass) {
|
|
1140
|
+
return ptr;
|
|
1141
|
+
}
|
|
1142
|
+
if (void 0 === desiredClass.baseClass) {
|
|
1143
|
+
return null;
|
|
1144
|
+
}
|
|
1145
|
+
var rv = downcastPointer(ptr, ptrClass, desiredClass.baseClass);
|
|
1146
|
+
if (rv === null) {
|
|
1147
|
+
return null;
|
|
1148
|
+
}
|
|
1149
|
+
return desiredClass.downcast(rv);
|
|
1150
|
+
}
|
|
1151
|
+
function getInheritedInstanceCount() {
|
|
1152
|
+
return Object.keys(registeredInstances).length;
|
|
1153
|
+
}
|
|
1154
|
+
function getLiveInheritedInstances() {
|
|
1155
|
+
var rv = [];
|
|
1156
|
+
for (var k in registeredInstances) {
|
|
1157
|
+
if (registeredInstances.hasOwnProperty(k)) {
|
|
1158
|
+
rv.push(registeredInstances[k]);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
return rv;
|
|
1162
|
+
}
|
|
1163
|
+
function setDelayFunction(fn) {
|
|
1164
|
+
delayFunction = fn;
|
|
1165
|
+
if (deletionQueue.length && delayFunction) {
|
|
1166
|
+
delayFunction(flushPendingDeletes);
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
function init_embind() {
|
|
1170
|
+
Module["getInheritedInstanceCount"] = getInheritedInstanceCount;
|
|
1171
|
+
Module["getLiveInheritedInstances"] = getLiveInheritedInstances;
|
|
1172
|
+
Module["flushPendingDeletes"] = flushPendingDeletes;
|
|
1173
|
+
Module["setDelayFunction"] = setDelayFunction;
|
|
1174
|
+
}
|
|
1175
|
+
var registeredInstances = {};
|
|
1176
|
+
function getBasestPointer(class_, ptr) {
|
|
1177
|
+
if (ptr === void 0) {
|
|
1178
|
+
throwBindingError("ptr should not be undefined");
|
|
1179
|
+
}
|
|
1180
|
+
while (class_.baseClass) {
|
|
1181
|
+
ptr = class_.upcast(ptr);
|
|
1182
|
+
class_ = class_.baseClass;
|
|
1183
|
+
}
|
|
1184
|
+
return ptr;
|
|
1185
|
+
}
|
|
1186
|
+
function getInheritedInstance(class_, ptr) {
|
|
1187
|
+
ptr = getBasestPointer(class_, ptr);
|
|
1188
|
+
return registeredInstances[ptr];
|
|
1189
|
+
}
|
|
1190
|
+
function makeClassHandle(prototype, record) {
|
|
1191
|
+
if (!record.ptrType || !record.ptr) {
|
|
1192
|
+
throwInternalError("makeClassHandle requires ptr and ptrType");
|
|
1193
|
+
}
|
|
1194
|
+
var hasSmartPtrType = !!record.smartPtrType;
|
|
1195
|
+
var hasSmartPtr = !!record.smartPtr;
|
|
1196
|
+
if (hasSmartPtrType !== hasSmartPtr) {
|
|
1197
|
+
throwInternalError("Both smartPtrType and smartPtr must be specified");
|
|
1198
|
+
}
|
|
1199
|
+
record.count = { value: 1 };
|
|
1200
|
+
return attachFinalizer(Object.create(prototype, { $$: { value: record } }));
|
|
1201
|
+
}
|
|
1202
|
+
function RegisteredPointer_fromWireType(ptr) {
|
|
1203
|
+
var rawPointer = this.getPointee(ptr);
|
|
1204
|
+
if (!rawPointer) {
|
|
1205
|
+
this.destructor(ptr);
|
|
1206
|
+
return null;
|
|
1207
|
+
}
|
|
1208
|
+
var registeredInstance = getInheritedInstance(this.registeredClass, rawPointer);
|
|
1209
|
+
if (void 0 !== registeredInstance) {
|
|
1210
|
+
if (0 === registeredInstance.$$.count.value) {
|
|
1211
|
+
registeredInstance.$$.ptr = rawPointer;
|
|
1212
|
+
registeredInstance.$$.smartPtr = ptr;
|
|
1213
|
+
return registeredInstance["clone"]();
|
|
1214
|
+
} else {
|
|
1215
|
+
var rv = registeredInstance["clone"]();
|
|
1216
|
+
this.destructor(ptr);
|
|
1217
|
+
return rv;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
function makeDefaultHandle() {
|
|
1221
|
+
if (this.isSmartPointer) {
|
|
1222
|
+
return makeClassHandle(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: rawPointer, smartPtrType: this, smartPtr: ptr });
|
|
1223
|
+
} else {
|
|
1224
|
+
return makeClassHandle(this.registeredClass.instancePrototype, { ptrType: this, ptr });
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
var actualType = this.registeredClass.getActualType(rawPointer);
|
|
1228
|
+
var registeredPointerRecord = registeredPointers[actualType];
|
|
1229
|
+
if (!registeredPointerRecord) {
|
|
1230
|
+
return makeDefaultHandle.call(this);
|
|
1231
|
+
}
|
|
1232
|
+
var toType;
|
|
1233
|
+
if (this.isConst) {
|
|
1234
|
+
toType = registeredPointerRecord.constPointerType;
|
|
1235
|
+
} else {
|
|
1236
|
+
toType = registeredPointerRecord.pointerType;
|
|
1237
|
+
}
|
|
1238
|
+
var dp = downcastPointer(rawPointer, this.registeredClass, toType.registeredClass);
|
|
1239
|
+
if (dp === null) {
|
|
1240
|
+
return makeDefaultHandle.call(this);
|
|
1241
|
+
}
|
|
1242
|
+
if (this.isSmartPointer) {
|
|
1243
|
+
return makeClassHandle(toType.registeredClass.instancePrototype, { ptrType: toType, ptr: dp, smartPtrType: this, smartPtr: ptr });
|
|
1244
|
+
} else {
|
|
1245
|
+
return makeClassHandle(toType.registeredClass.instancePrototype, { ptrType: toType, ptr: dp });
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
function init_RegisteredPointer() {
|
|
1249
|
+
RegisteredPointer.prototype.getPointee = RegisteredPointer_getPointee;
|
|
1250
|
+
RegisteredPointer.prototype.destructor = RegisteredPointer_destructor;
|
|
1251
|
+
RegisteredPointer.prototype["argPackAdvance"] = 8;
|
|
1252
|
+
RegisteredPointer.prototype["readValueFromPointer"] = simpleReadValueFromPointer;
|
|
1253
|
+
RegisteredPointer.prototype["deleteObject"] = RegisteredPointer_deleteObject;
|
|
1254
|
+
RegisteredPointer.prototype["fromWireType"] = RegisteredPointer_fromWireType;
|
|
1255
|
+
}
|
|
1256
|
+
function RegisteredPointer(name, registeredClass, isReference, isConst, isSmartPointer, pointeeType, sharingPolicy, rawGetPointee, rawConstructor, rawShare, rawDestructor) {
|
|
1257
|
+
this.name = name;
|
|
1258
|
+
this.registeredClass = registeredClass;
|
|
1259
|
+
this.isReference = isReference;
|
|
1260
|
+
this.isConst = isConst;
|
|
1261
|
+
this.isSmartPointer = isSmartPointer;
|
|
1262
|
+
this.pointeeType = pointeeType;
|
|
1263
|
+
this.sharingPolicy = sharingPolicy;
|
|
1264
|
+
this.rawGetPointee = rawGetPointee;
|
|
1265
|
+
this.rawConstructor = rawConstructor;
|
|
1266
|
+
this.rawShare = rawShare;
|
|
1267
|
+
this.rawDestructor = rawDestructor;
|
|
1268
|
+
if (!isSmartPointer && registeredClass.baseClass === void 0) {
|
|
1269
|
+
if (isConst) {
|
|
1270
|
+
this["toWireType"] = constNoSmartPtrRawPointerToWireType;
|
|
1271
|
+
this.destructorFunction = null;
|
|
1272
|
+
} else {
|
|
1273
|
+
this["toWireType"] = nonConstNoSmartPtrRawPointerToWireType;
|
|
1274
|
+
this.destructorFunction = null;
|
|
1275
|
+
}
|
|
1276
|
+
} else {
|
|
1277
|
+
this["toWireType"] = genericPointerToWireType;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
function replacePublicSymbol(name, value, numArguments) {
|
|
1281
|
+
if (!Module.hasOwnProperty(name)) {
|
|
1282
|
+
throwInternalError("Replacing nonexistant public symbol");
|
|
1283
|
+
}
|
|
1284
|
+
if (void 0 !== Module[name].overloadTable && void 0 !== numArguments) {
|
|
1285
|
+
Module[name].overloadTable[numArguments] = value;
|
|
1286
|
+
} else {
|
|
1287
|
+
Module[name] = value;
|
|
1288
|
+
Module[name].argCount = numArguments;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
function dynCallLegacy(sig, ptr, args) {
|
|
1292
|
+
var f = Module["dynCall_" + sig];
|
|
1293
|
+
return args && args.length ? f.apply(null, [ptr].concat(args)) : f.call(null, ptr);
|
|
1294
|
+
}
|
|
1295
|
+
function dynCall(sig, ptr, args) {
|
|
1296
|
+
if (sig.indexOf("j") != -1) {
|
|
1297
|
+
return dynCallLegacy(sig, ptr, args);
|
|
1298
|
+
}
|
|
1299
|
+
return wasmTable.get(ptr).apply(null, args);
|
|
1300
|
+
}
|
|
1301
|
+
function getDynCaller(sig, ptr) {
|
|
1302
|
+
var argCache = [];
|
|
1303
|
+
return function() {
|
|
1304
|
+
argCache.length = arguments.length;
|
|
1305
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
1306
|
+
argCache[i] = arguments[i];
|
|
1307
|
+
}
|
|
1308
|
+
return dynCall(sig, ptr, argCache);
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
function embind__requireFunction(signature, rawFunction) {
|
|
1312
|
+
signature = readLatin1String(signature);
|
|
1313
|
+
function makeDynCaller() {
|
|
1314
|
+
if (signature.indexOf("j") != -1) {
|
|
1315
|
+
return getDynCaller(signature, rawFunction);
|
|
1316
|
+
}
|
|
1317
|
+
return wasmTable.get(rawFunction);
|
|
1318
|
+
}
|
|
1319
|
+
var fp = makeDynCaller();
|
|
1320
|
+
if (typeof fp !== "function") {
|
|
1321
|
+
throwBindingError("unknown function pointer with signature " + signature + ": " + rawFunction);
|
|
1322
|
+
}
|
|
1323
|
+
return fp;
|
|
1324
|
+
}
|
|
1325
|
+
var UnboundTypeError = void 0;
|
|
1326
|
+
function getTypeName(type) {
|
|
1327
|
+
var ptr = ___getTypeName(type);
|
|
1328
|
+
var rv = readLatin1String(ptr);
|
|
1329
|
+
_free(ptr);
|
|
1330
|
+
return rv;
|
|
1331
|
+
}
|
|
1332
|
+
function throwUnboundTypeError(message, types) {
|
|
1333
|
+
var unboundTypes = [];
|
|
1334
|
+
var seen = {};
|
|
1335
|
+
function visit(type) {
|
|
1336
|
+
if (seen[type]) {
|
|
1337
|
+
return;
|
|
1338
|
+
}
|
|
1339
|
+
if (registeredTypes[type]) {
|
|
1340
|
+
return;
|
|
1341
|
+
}
|
|
1342
|
+
if (typeDependencies[type]) {
|
|
1343
|
+
typeDependencies[type].forEach(visit);
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1346
|
+
unboundTypes.push(type);
|
|
1347
|
+
seen[type] = true;
|
|
1348
|
+
}
|
|
1349
|
+
types.forEach(visit);
|
|
1350
|
+
throw new UnboundTypeError(message + ": " + unboundTypes.map(getTypeName).join([", "]));
|
|
1351
|
+
}
|
|
1352
|
+
function __embind_register_class(rawType, rawPointerType, rawConstPointerType, baseClassRawType, getActualTypeSignature, getActualType, upcastSignature, upcast, downcastSignature, downcast, name, destructorSignature, rawDestructor) {
|
|
1353
|
+
name = readLatin1String(name);
|
|
1354
|
+
getActualType = embind__requireFunction(getActualTypeSignature, getActualType);
|
|
1355
|
+
if (upcast) {
|
|
1356
|
+
upcast = embind__requireFunction(upcastSignature, upcast);
|
|
1357
|
+
}
|
|
1358
|
+
if (downcast) {
|
|
1359
|
+
downcast = embind__requireFunction(downcastSignature, downcast);
|
|
1360
|
+
}
|
|
1361
|
+
rawDestructor = embind__requireFunction(destructorSignature, rawDestructor);
|
|
1362
|
+
var legalFunctionName = makeLegalFunctionName(name);
|
|
1363
|
+
exposePublicSymbol(legalFunctionName, function() {
|
|
1364
|
+
throwUnboundTypeError("Cannot construct " + name + " due to unbound types", [baseClassRawType]);
|
|
1365
|
+
});
|
|
1366
|
+
whenDependentTypesAreResolved([rawType, rawPointerType, rawConstPointerType], baseClassRawType ? [baseClassRawType] : [], function(base) {
|
|
1367
|
+
base = base[0];
|
|
1368
|
+
var baseClass;
|
|
1369
|
+
var basePrototype;
|
|
1370
|
+
if (baseClassRawType) {
|
|
1371
|
+
baseClass = base.registeredClass;
|
|
1372
|
+
basePrototype = baseClass.instancePrototype;
|
|
1373
|
+
} else {
|
|
1374
|
+
basePrototype = ClassHandle.prototype;
|
|
1375
|
+
}
|
|
1376
|
+
var constructor = createNamedFunction(legalFunctionName, function() {
|
|
1377
|
+
if (Object.getPrototypeOf(this) !== instancePrototype) {
|
|
1378
|
+
throw new BindingError("Use 'new' to construct " + name);
|
|
1379
|
+
}
|
|
1380
|
+
if (void 0 === registeredClass.constructor_body) {
|
|
1381
|
+
throw new BindingError(name + " has no accessible constructor");
|
|
1382
|
+
}
|
|
1383
|
+
var body = registeredClass.constructor_body[arguments.length];
|
|
1384
|
+
if (void 0 === body) {
|
|
1385
|
+
throw new BindingError("Tried to invoke ctor of " + name + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(registeredClass.constructor_body).toString() + ") parameters instead!");
|
|
1386
|
+
}
|
|
1387
|
+
return body.apply(this, arguments);
|
|
1388
|
+
});
|
|
1389
|
+
var instancePrototype = Object.create(basePrototype, { constructor: { value: constructor } });
|
|
1390
|
+
constructor.prototype = instancePrototype;
|
|
1391
|
+
var registeredClass = new RegisteredClass(name, constructor, instancePrototype, rawDestructor, baseClass, getActualType, upcast, downcast);
|
|
1392
|
+
var referenceConverter = new RegisteredPointer(name, registeredClass, true, false, false);
|
|
1393
|
+
var pointerConverter = new RegisteredPointer(name + "*", registeredClass, false, false, false);
|
|
1394
|
+
var constPointerConverter = new RegisteredPointer(name + " const*", registeredClass, false, true, false);
|
|
1395
|
+
registeredPointers[rawType] = { pointerType: pointerConverter, constPointerType: constPointerConverter };
|
|
1396
|
+
replacePublicSymbol(legalFunctionName, constructor);
|
|
1397
|
+
return [referenceConverter, pointerConverter, constPointerConverter];
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
function heap32VectorToArray(count, firstElement) {
|
|
1401
|
+
var array = [];
|
|
1402
|
+
for (var i = 0; i < count; i++) {
|
|
1403
|
+
array.push(HEAP32[(firstElement >> 2) + i]);
|
|
1404
|
+
}
|
|
1405
|
+
return array;
|
|
1406
|
+
}
|
|
1407
|
+
function __embind_register_class_constructor(rawClassType, argCount, rawArgTypesAddr, invokerSignature, invoker, rawConstructor) {
|
|
1408
|
+
assert(argCount > 0);
|
|
1409
|
+
var rawArgTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
|
|
1410
|
+
invoker = embind__requireFunction(invokerSignature, invoker);
|
|
1411
|
+
var args = [rawConstructor];
|
|
1412
|
+
var destructors = [];
|
|
1413
|
+
whenDependentTypesAreResolved([], [rawClassType], function(classType) {
|
|
1414
|
+
classType = classType[0];
|
|
1415
|
+
var humanName = "constructor " + classType.name;
|
|
1416
|
+
if (void 0 === classType.registeredClass.constructor_body) {
|
|
1417
|
+
classType.registeredClass.constructor_body = [];
|
|
1418
|
+
}
|
|
1419
|
+
if (void 0 !== classType.registeredClass.constructor_body[argCount - 1]) {
|
|
1420
|
+
throw new BindingError("Cannot register multiple constructors with identical number of parameters (" + (argCount - 1) + ") for class '" + classType.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!");
|
|
1421
|
+
}
|
|
1422
|
+
classType.registeredClass.constructor_body[argCount - 1] = function unboundTypeHandler() {
|
|
1423
|
+
throwUnboundTypeError("Cannot construct " + classType.name + " due to unbound types", rawArgTypes);
|
|
1424
|
+
};
|
|
1425
|
+
whenDependentTypesAreResolved([], rawArgTypes, function(argTypes) {
|
|
1426
|
+
classType.registeredClass.constructor_body[argCount - 1] = function constructor_body() {
|
|
1427
|
+
if (arguments.length !== argCount - 1) {
|
|
1428
|
+
throwBindingError(humanName + " called with " + arguments.length + " arguments, expected " + (argCount - 1));
|
|
1429
|
+
}
|
|
1430
|
+
destructors.length = 0;
|
|
1431
|
+
args.length = argCount;
|
|
1432
|
+
for (var i = 1; i < argCount; ++i) {
|
|
1433
|
+
args[i] = argTypes[i]["toWireType"](destructors, arguments[i - 1]);
|
|
1434
|
+
}
|
|
1435
|
+
var ptr = invoker.apply(null, args);
|
|
1436
|
+
runDestructors(destructors);
|
|
1437
|
+
return argTypes[0]["fromWireType"](ptr);
|
|
1438
|
+
};
|
|
1439
|
+
return [];
|
|
1440
|
+
});
|
|
1441
|
+
return [];
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
function new_(constructor, argumentList) {
|
|
1445
|
+
if (!(constructor instanceof Function)) {
|
|
1446
|
+
throw new TypeError("new_ called with constructor type " + typeof constructor + " which is not a function");
|
|
1447
|
+
}
|
|
1448
|
+
var dummy = createNamedFunction(constructor.name || "unknownFunctionName", function() {
|
|
1449
|
+
});
|
|
1450
|
+
dummy.prototype = constructor.prototype;
|
|
1451
|
+
var obj = new dummy();
|
|
1452
|
+
var r = constructor.apply(obj, argumentList);
|
|
1453
|
+
return r instanceof Object ? r : obj;
|
|
1454
|
+
}
|
|
1455
|
+
function craftInvokerFunction(humanName, argTypes, classType, cppInvokerFunc, cppTargetFunc) {
|
|
1456
|
+
var argCount = argTypes.length;
|
|
1457
|
+
if (argCount < 2) {
|
|
1458
|
+
throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1459
|
+
}
|
|
1460
|
+
var isClassMethodFunc = argTypes[1] !== null && classType !== null;
|
|
1461
|
+
var needsDestructorStack = false;
|
|
1462
|
+
for (var i = 1; i < argTypes.length; ++i) {
|
|
1463
|
+
if (argTypes[i] !== null && argTypes[i].destructorFunction === void 0) {
|
|
1464
|
+
needsDestructorStack = true;
|
|
1465
|
+
break;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
var returns = argTypes[0].name !== "void";
|
|
1469
|
+
var argsList = "";
|
|
1470
|
+
var argsListWired = "";
|
|
1471
|
+
for (var i = 0; i < argCount - 2; ++i) {
|
|
1472
|
+
argsList += (i !== 0 ? ", " : "") + "arg" + i;
|
|
1473
|
+
argsListWired += (i !== 0 ? ", " : "") + "arg" + i + "Wired";
|
|
1474
|
+
}
|
|
1475
|
+
var invokerFnBody = "return function " + makeLegalFunctionName(humanName) + "(" + argsList + ") {\nif (arguments.length !== " + (argCount - 2) + ") {\nthrowBindingError('function " + humanName + " called with ' + arguments.length + ' arguments, expected " + (argCount - 2) + " args!');\n}\n";
|
|
1476
|
+
if (needsDestructorStack) {
|
|
1477
|
+
invokerFnBody += "var destructors = [];\n";
|
|
1478
|
+
}
|
|
1479
|
+
var dtorStack = needsDestructorStack ? "destructors" : "null";
|
|
1480
|
+
var args1 = ["throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"];
|
|
1481
|
+
var args2 = [throwBindingError, cppInvokerFunc, cppTargetFunc, runDestructors, argTypes[0], argTypes[1]];
|
|
1482
|
+
if (isClassMethodFunc) {
|
|
1483
|
+
invokerFnBody += "var thisWired = classParam.toWireType(" + dtorStack + ", this);\n";
|
|
1484
|
+
}
|
|
1485
|
+
for (var i = 0; i < argCount - 2; ++i) {
|
|
1486
|
+
invokerFnBody += "var arg" + i + "Wired = argType" + i + ".toWireType(" + dtorStack + ", arg" + i + "); // " + argTypes[i + 2].name + "\n";
|
|
1487
|
+
args1.push("argType" + i);
|
|
1488
|
+
args2.push(argTypes[i + 2]);
|
|
1489
|
+
}
|
|
1490
|
+
if (isClassMethodFunc) {
|
|
1491
|
+
argsListWired = "thisWired" + (argsListWired.length > 0 ? ", " : "") + argsListWired;
|
|
1492
|
+
}
|
|
1493
|
+
invokerFnBody += (returns ? "var rv = " : "") + "invoker(fn" + (argsListWired.length > 0 ? ", " : "") + argsListWired + ");\n";
|
|
1494
|
+
if (needsDestructorStack) {
|
|
1495
|
+
invokerFnBody += "runDestructors(destructors);\n";
|
|
1496
|
+
} else {
|
|
1497
|
+
for (var i = isClassMethodFunc ? 1 : 2; i < argTypes.length; ++i) {
|
|
1498
|
+
var paramName = i === 1 ? "thisWired" : "arg" + (i - 2) + "Wired";
|
|
1499
|
+
if (argTypes[i].destructorFunction !== null) {
|
|
1500
|
+
invokerFnBody += paramName + "_dtor(" + paramName + "); // " + argTypes[i].name + "\n";
|
|
1501
|
+
args1.push(paramName + "_dtor");
|
|
1502
|
+
args2.push(argTypes[i].destructorFunction);
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
if (returns) {
|
|
1507
|
+
invokerFnBody += "var ret = retType.fromWireType(rv);\nreturn ret;\n";
|
|
1508
|
+
} else {
|
|
1509
|
+
}
|
|
1510
|
+
invokerFnBody += "}\n";
|
|
1511
|
+
args1.push(invokerFnBody);
|
|
1512
|
+
var invokerFunction = new_(Function, args1).apply(null, args2);
|
|
1513
|
+
return invokerFunction;
|
|
1514
|
+
}
|
|
1515
|
+
function __embind_register_class_function(rawClassType, methodName, argCount, rawArgTypesAddr, invokerSignature, rawInvoker, context, isPureVirtual) {
|
|
1516
|
+
var rawArgTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
|
|
1517
|
+
methodName = readLatin1String(methodName);
|
|
1518
|
+
rawInvoker = embind__requireFunction(invokerSignature, rawInvoker);
|
|
1519
|
+
whenDependentTypesAreResolved([], [rawClassType], function(classType) {
|
|
1520
|
+
classType = classType[0];
|
|
1521
|
+
var humanName = classType.name + "." + methodName;
|
|
1522
|
+
if (isPureVirtual) {
|
|
1523
|
+
classType.registeredClass.pureVirtualFunctions.push(methodName);
|
|
1524
|
+
}
|
|
1525
|
+
function unboundTypesHandler() {
|
|
1526
|
+
throwUnboundTypeError("Cannot call " + humanName + " due to unbound types", rawArgTypes);
|
|
1527
|
+
}
|
|
1528
|
+
var proto = classType.registeredClass.instancePrototype;
|
|
1529
|
+
var method = proto[methodName];
|
|
1530
|
+
if (void 0 === method || void 0 === method.overloadTable && method.className !== classType.name && method.argCount === argCount - 2) {
|
|
1531
|
+
unboundTypesHandler.argCount = argCount - 2;
|
|
1532
|
+
unboundTypesHandler.className = classType.name;
|
|
1533
|
+
proto[methodName] = unboundTypesHandler;
|
|
1534
|
+
} else {
|
|
1535
|
+
ensureOverloadTable(proto, methodName, humanName);
|
|
1536
|
+
proto[methodName].overloadTable[argCount - 2] = unboundTypesHandler;
|
|
1537
|
+
}
|
|
1538
|
+
whenDependentTypesAreResolved([], rawArgTypes, function(argTypes) {
|
|
1539
|
+
var memberFunction = craftInvokerFunction(humanName, argTypes, classType, rawInvoker, context);
|
|
1540
|
+
if (void 0 === proto[methodName].overloadTable) {
|
|
1541
|
+
memberFunction.argCount = argCount - 2;
|
|
1542
|
+
proto[methodName] = memberFunction;
|
|
1543
|
+
} else {
|
|
1544
|
+
proto[methodName].overloadTable[argCount - 2] = memberFunction;
|
|
1545
|
+
}
|
|
1546
|
+
return [];
|
|
1547
|
+
});
|
|
1548
|
+
return [];
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
function __embind_register_constant(name, type, value) {
|
|
1552
|
+
name = readLatin1String(name);
|
|
1553
|
+
whenDependentTypesAreResolved([], [type], function(type2) {
|
|
1554
|
+
type2 = type2[0];
|
|
1555
|
+
Module[name] = type2["fromWireType"](value);
|
|
1556
|
+
return [];
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
var emval_free_list = [];
|
|
1560
|
+
var emval_handle_array = [{}, { value: void 0 }, { value: null }, { value: true }, { value: false }];
|
|
1561
|
+
function __emval_decref(handle) {
|
|
1562
|
+
if (handle > 4 && 0 === --emval_handle_array[handle].refcount) {
|
|
1563
|
+
emval_handle_array[handle] = void 0;
|
|
1564
|
+
emval_free_list.push(handle);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
function count_emval_handles() {
|
|
1568
|
+
var count = 0;
|
|
1569
|
+
for (var i = 5; i < emval_handle_array.length; ++i) {
|
|
1570
|
+
if (emval_handle_array[i] !== void 0) {
|
|
1571
|
+
++count;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
return count;
|
|
1575
|
+
}
|
|
1576
|
+
function get_first_emval() {
|
|
1577
|
+
for (var i = 5; i < emval_handle_array.length; ++i) {
|
|
1578
|
+
if (emval_handle_array[i] !== void 0) {
|
|
1579
|
+
return emval_handle_array[i];
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
return null;
|
|
1583
|
+
}
|
|
1584
|
+
function init_emval() {
|
|
1585
|
+
Module["count_emval_handles"] = count_emval_handles;
|
|
1586
|
+
Module["get_first_emval"] = get_first_emval;
|
|
1587
|
+
}
|
|
1588
|
+
function __emval_register(value) {
|
|
1589
|
+
switch (value) {
|
|
1590
|
+
case void 0: {
|
|
1591
|
+
return 1;
|
|
1592
|
+
}
|
|
1593
|
+
case null: {
|
|
1594
|
+
return 2;
|
|
1595
|
+
}
|
|
1596
|
+
case true: {
|
|
1597
|
+
return 3;
|
|
1598
|
+
}
|
|
1599
|
+
case false: {
|
|
1600
|
+
return 4;
|
|
1601
|
+
}
|
|
1602
|
+
default: {
|
|
1603
|
+
var handle = emval_free_list.length ? emval_free_list.pop() : emval_handle_array.length;
|
|
1604
|
+
emval_handle_array[handle] = { refcount: 1, value };
|
|
1605
|
+
return handle;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
function __embind_register_emval(rawType, name) {
|
|
1610
|
+
name = readLatin1String(name);
|
|
1611
|
+
registerType(rawType, { name, "fromWireType": function(handle) {
|
|
1612
|
+
var rv = emval_handle_array[handle].value;
|
|
1613
|
+
__emval_decref(handle);
|
|
1614
|
+
return rv;
|
|
1615
|
+
}, "toWireType": function(destructors, value) {
|
|
1616
|
+
return __emval_register(value);
|
|
1617
|
+
}, "argPackAdvance": 8, "readValueFromPointer": simpleReadValueFromPointer, destructorFunction: null });
|
|
1618
|
+
}
|
|
1619
|
+
function enumReadValueFromPointer(name, shift, signed) {
|
|
1620
|
+
switch (shift) {
|
|
1621
|
+
case 0:
|
|
1622
|
+
return function(pointer) {
|
|
1623
|
+
var heap = signed ? HEAP8 : HEAPU8;
|
|
1624
|
+
return this["fromWireType"](heap[pointer]);
|
|
1625
|
+
};
|
|
1626
|
+
case 1:
|
|
1627
|
+
return function(pointer) {
|
|
1628
|
+
var heap = signed ? HEAP16 : HEAPU16;
|
|
1629
|
+
return this["fromWireType"](heap[pointer >> 1]);
|
|
1630
|
+
};
|
|
1631
|
+
case 2:
|
|
1632
|
+
return function(pointer) {
|
|
1633
|
+
var heap = signed ? HEAP32 : HEAPU32;
|
|
1634
|
+
return this["fromWireType"](heap[pointer >> 2]);
|
|
1635
|
+
};
|
|
1636
|
+
default:
|
|
1637
|
+
throw new TypeError("Unknown integer type: " + name);
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
function __embind_register_enum(rawType, name, size, isSigned) {
|
|
1641
|
+
var shift = getShiftFromSize(size);
|
|
1642
|
+
name = readLatin1String(name);
|
|
1643
|
+
function ctor() {
|
|
1644
|
+
}
|
|
1645
|
+
ctor.values = {};
|
|
1646
|
+
registerType(rawType, { name, constructor: ctor, "fromWireType": function(c) {
|
|
1647
|
+
return this.constructor.values[c];
|
|
1648
|
+
}, "toWireType": function(destructors, c) {
|
|
1649
|
+
return c.value;
|
|
1650
|
+
}, "argPackAdvance": 8, "readValueFromPointer": enumReadValueFromPointer(name, shift, isSigned), destructorFunction: null });
|
|
1651
|
+
exposePublicSymbol(name, ctor);
|
|
1652
|
+
}
|
|
1653
|
+
function requireRegisteredType(rawType, humanName) {
|
|
1654
|
+
var impl = registeredTypes[rawType];
|
|
1655
|
+
if (void 0 === impl) {
|
|
1656
|
+
throwBindingError(humanName + " has unknown type " + getTypeName(rawType));
|
|
1657
|
+
}
|
|
1658
|
+
return impl;
|
|
1659
|
+
}
|
|
1660
|
+
function __embind_register_enum_value(rawEnumType, name, enumValue) {
|
|
1661
|
+
var enumType = requireRegisteredType(rawEnumType, "enum");
|
|
1662
|
+
name = readLatin1String(name);
|
|
1663
|
+
var Enum = enumType.constructor;
|
|
1664
|
+
var Value = Object.create(enumType.constructor.prototype, { value: { value: enumValue }, constructor: { value: createNamedFunction(enumType.name + "_" + name, function() {
|
|
1665
|
+
}) } });
|
|
1666
|
+
Enum.values[enumValue] = Value;
|
|
1667
|
+
Enum[name] = Value;
|
|
1668
|
+
}
|
|
1669
|
+
function _embind_repr(v) {
|
|
1670
|
+
if (v === null) {
|
|
1671
|
+
return "null";
|
|
1672
|
+
}
|
|
1673
|
+
var t = typeof v;
|
|
1674
|
+
if (t === "object" || t === "array" || t === "function") {
|
|
1675
|
+
return v.toString();
|
|
1676
|
+
} else {
|
|
1677
|
+
return "" + v;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
function floatReadValueFromPointer(name, shift) {
|
|
1681
|
+
switch (shift) {
|
|
1682
|
+
case 2:
|
|
1683
|
+
return function(pointer) {
|
|
1684
|
+
return this["fromWireType"](HEAPF32[pointer >> 2]);
|
|
1685
|
+
};
|
|
1686
|
+
case 3:
|
|
1687
|
+
return function(pointer) {
|
|
1688
|
+
return this["fromWireType"](HEAPF64[pointer >> 3]);
|
|
1689
|
+
};
|
|
1690
|
+
default:
|
|
1691
|
+
throw new TypeError("Unknown float type: " + name);
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
function __embind_register_float(rawType, name, size) {
|
|
1695
|
+
var shift = getShiftFromSize(size);
|
|
1696
|
+
name = readLatin1String(name);
|
|
1697
|
+
registerType(rawType, { name, "fromWireType": function(value) {
|
|
1698
|
+
return value;
|
|
1699
|
+
}, "toWireType": function(destructors, value) {
|
|
1700
|
+
if (typeof value !== "number" && typeof value !== "boolean") {
|
|
1701
|
+
throw new TypeError('Cannot convert "' + _embind_repr(value) + '" to ' + this.name);
|
|
1702
|
+
}
|
|
1703
|
+
return value;
|
|
1704
|
+
}, "argPackAdvance": 8, "readValueFromPointer": floatReadValueFromPointer(name, shift), destructorFunction: null });
|
|
1705
|
+
}
|
|
1706
|
+
function __embind_register_function(name, argCount, rawArgTypesAddr, signature, rawInvoker, fn) {
|
|
1707
|
+
var argTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
|
|
1708
|
+
name = readLatin1String(name);
|
|
1709
|
+
rawInvoker = embind__requireFunction(signature, rawInvoker);
|
|
1710
|
+
exposePublicSymbol(name, function() {
|
|
1711
|
+
throwUnboundTypeError("Cannot call " + name + " due to unbound types", argTypes);
|
|
1712
|
+
}, argCount - 1);
|
|
1713
|
+
whenDependentTypesAreResolved([], argTypes, function(argTypes2) {
|
|
1714
|
+
var invokerArgsArray = [argTypes2[0], null].concat(argTypes2.slice(1));
|
|
1715
|
+
replacePublicSymbol(name, craftInvokerFunction(name, invokerArgsArray, null, rawInvoker, fn), argCount - 1);
|
|
1716
|
+
return [];
|
|
1717
|
+
});
|
|
1718
|
+
}
|
|
1719
|
+
function integerReadValueFromPointer(name, shift, signed) {
|
|
1720
|
+
switch (shift) {
|
|
1721
|
+
case 0:
|
|
1722
|
+
return signed ? function readS8FromPointer(pointer) {
|
|
1723
|
+
return HEAP8[pointer];
|
|
1724
|
+
} : function readU8FromPointer(pointer) {
|
|
1725
|
+
return HEAPU8[pointer];
|
|
1726
|
+
};
|
|
1727
|
+
case 1:
|
|
1728
|
+
return signed ? function readS16FromPointer(pointer) {
|
|
1729
|
+
return HEAP16[pointer >> 1];
|
|
1730
|
+
} : function readU16FromPointer(pointer) {
|
|
1731
|
+
return HEAPU16[pointer >> 1];
|
|
1732
|
+
};
|
|
1733
|
+
case 2:
|
|
1734
|
+
return signed ? function readS32FromPointer(pointer) {
|
|
1735
|
+
return HEAP32[pointer >> 2];
|
|
1736
|
+
} : function readU32FromPointer(pointer) {
|
|
1737
|
+
return HEAPU32[pointer >> 2];
|
|
1738
|
+
};
|
|
1739
|
+
default:
|
|
1740
|
+
throw new TypeError("Unknown integer type: " + name);
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
function __embind_register_integer(primitiveType, name, size, minRange, maxRange) {
|
|
1744
|
+
name = readLatin1String(name);
|
|
1745
|
+
if (maxRange === -1) {
|
|
1746
|
+
maxRange = 4294967295;
|
|
1747
|
+
}
|
|
1748
|
+
var shift = getShiftFromSize(size);
|
|
1749
|
+
var fromWireType = function(value) {
|
|
1750
|
+
return value;
|
|
1751
|
+
};
|
|
1752
|
+
if (minRange === 0) {
|
|
1753
|
+
var bitshift = 32 - 8 * size;
|
|
1754
|
+
fromWireType = function(value) {
|
|
1755
|
+
return value << bitshift >>> bitshift;
|
|
1756
|
+
};
|
|
1757
|
+
}
|
|
1758
|
+
var isUnsignedType = name.indexOf("unsigned") != -1;
|
|
1759
|
+
registerType(primitiveType, { name, "fromWireType": fromWireType, "toWireType": function(destructors, value) {
|
|
1760
|
+
if (typeof value !== "number" && typeof value !== "boolean") {
|
|
1761
|
+
throw new TypeError('Cannot convert "' + _embind_repr(value) + '" to ' + this.name);
|
|
1762
|
+
}
|
|
1763
|
+
if (value < minRange || value > maxRange) {
|
|
1764
|
+
throw new TypeError('Passing a number "' + _embind_repr(value) + '" from JS side to C/C++ side to an argument of type "' + name + '", which is outside the valid range [' + minRange + ", " + maxRange + "]!");
|
|
1765
|
+
}
|
|
1766
|
+
return isUnsignedType ? value >>> 0 : value | 0;
|
|
1767
|
+
}, "argPackAdvance": 8, "readValueFromPointer": integerReadValueFromPointer(name, shift, minRange !== 0), destructorFunction: null });
|
|
1768
|
+
}
|
|
1769
|
+
function __embind_register_memory_view(rawType, dataTypeIndex, name) {
|
|
1770
|
+
var typeMapping = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array];
|
|
1771
|
+
var TA = typeMapping[dataTypeIndex];
|
|
1772
|
+
function decodeMemoryView(handle) {
|
|
1773
|
+
handle = handle >> 2;
|
|
1774
|
+
var heap = HEAPU32;
|
|
1775
|
+
var size = heap[handle];
|
|
1776
|
+
var data = heap[handle + 1];
|
|
1777
|
+
return new TA(buffer, data, size);
|
|
1778
|
+
}
|
|
1779
|
+
name = readLatin1String(name);
|
|
1780
|
+
registerType(rawType, { name, "fromWireType": decodeMemoryView, "argPackAdvance": 8, "readValueFromPointer": decodeMemoryView }, { ignoreDuplicateRegistrations: true });
|
|
1781
|
+
}
|
|
1782
|
+
function __embind_register_std_string(rawType, name) {
|
|
1783
|
+
name = readLatin1String(name);
|
|
1784
|
+
var stdStringIsUTF8 = name === "std::string";
|
|
1785
|
+
registerType(rawType, { name, "fromWireType": function(value) {
|
|
1786
|
+
var length = HEAPU32[value >> 2];
|
|
1787
|
+
var str;
|
|
1788
|
+
if (stdStringIsUTF8) {
|
|
1789
|
+
var decodeStartPtr = value + 4;
|
|
1790
|
+
for (var i = 0; i <= length; ++i) {
|
|
1791
|
+
var currentBytePtr = value + 4 + i;
|
|
1792
|
+
if (i == length || HEAPU8[currentBytePtr] == 0) {
|
|
1793
|
+
var maxRead = currentBytePtr - decodeStartPtr;
|
|
1794
|
+
var stringSegment = UTF8ToString(decodeStartPtr, maxRead);
|
|
1795
|
+
if (str === void 0) {
|
|
1796
|
+
str = stringSegment;
|
|
1797
|
+
} else {
|
|
1798
|
+
str += String.fromCharCode(0);
|
|
1799
|
+
str += stringSegment;
|
|
1800
|
+
}
|
|
1801
|
+
decodeStartPtr = currentBytePtr + 1;
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
} else {
|
|
1805
|
+
var a = new Array(length);
|
|
1806
|
+
for (var i = 0; i < length; ++i) {
|
|
1807
|
+
a[i] = String.fromCharCode(HEAPU8[value + 4 + i]);
|
|
1808
|
+
}
|
|
1809
|
+
str = a.join("");
|
|
1810
|
+
}
|
|
1811
|
+
_free(value);
|
|
1812
|
+
return str;
|
|
1813
|
+
}, "toWireType": function(destructors, value) {
|
|
1814
|
+
if (value instanceof ArrayBuffer) {
|
|
1815
|
+
value = new Uint8Array(value);
|
|
1816
|
+
}
|
|
1817
|
+
var getLength;
|
|
1818
|
+
var valueIsOfTypeString = typeof value === "string";
|
|
1819
|
+
if (!(valueIsOfTypeString || value instanceof Uint8Array || value instanceof Uint8ClampedArray || value instanceof Int8Array)) {
|
|
1820
|
+
throwBindingError("Cannot pass non-string to std::string");
|
|
1821
|
+
}
|
|
1822
|
+
if (stdStringIsUTF8 && valueIsOfTypeString) {
|
|
1823
|
+
getLength = function() {
|
|
1824
|
+
return lengthBytesUTF8(value);
|
|
1825
|
+
};
|
|
1826
|
+
} else {
|
|
1827
|
+
getLength = function() {
|
|
1828
|
+
return value.length;
|
|
1829
|
+
};
|
|
1830
|
+
}
|
|
1831
|
+
var length = getLength();
|
|
1832
|
+
var ptr = _malloc(4 + length + 1);
|
|
1833
|
+
HEAPU32[ptr >> 2] = length;
|
|
1834
|
+
if (stdStringIsUTF8 && valueIsOfTypeString) {
|
|
1835
|
+
stringToUTF8(value, ptr + 4, length + 1);
|
|
1836
|
+
} else {
|
|
1837
|
+
if (valueIsOfTypeString) {
|
|
1838
|
+
for (var i = 0; i < length; ++i) {
|
|
1839
|
+
var charCode = value.charCodeAt(i);
|
|
1840
|
+
if (charCode > 255) {
|
|
1841
|
+
_free(ptr);
|
|
1842
|
+
throwBindingError("String has UTF-16 code units that do not fit in 8 bits");
|
|
1843
|
+
}
|
|
1844
|
+
HEAPU8[ptr + 4 + i] = charCode;
|
|
1845
|
+
}
|
|
1846
|
+
} else {
|
|
1847
|
+
for (var i = 0; i < length; ++i) {
|
|
1848
|
+
HEAPU8[ptr + 4 + i] = value[i];
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
if (destructors !== null) {
|
|
1853
|
+
destructors.push(_free, ptr);
|
|
1854
|
+
}
|
|
1855
|
+
return ptr;
|
|
1856
|
+
}, "argPackAdvance": 8, "readValueFromPointer": simpleReadValueFromPointer, destructorFunction: function(ptr) {
|
|
1857
|
+
_free(ptr);
|
|
1858
|
+
} });
|
|
1859
|
+
}
|
|
1860
|
+
function __embind_register_std_wstring(rawType, charSize, name) {
|
|
1861
|
+
name = readLatin1String(name);
|
|
1862
|
+
var decodeString, encodeString, getHeap, lengthBytesUTF, shift;
|
|
1863
|
+
if (charSize === 2) {
|
|
1864
|
+
decodeString = UTF16ToString;
|
|
1865
|
+
encodeString = stringToUTF16;
|
|
1866
|
+
lengthBytesUTF = lengthBytesUTF16;
|
|
1867
|
+
getHeap = function() {
|
|
1868
|
+
return HEAPU16;
|
|
1869
|
+
};
|
|
1870
|
+
shift = 1;
|
|
1871
|
+
} else if (charSize === 4) {
|
|
1872
|
+
decodeString = UTF32ToString;
|
|
1873
|
+
encodeString = stringToUTF32;
|
|
1874
|
+
lengthBytesUTF = lengthBytesUTF32;
|
|
1875
|
+
getHeap = function() {
|
|
1876
|
+
return HEAPU32;
|
|
1877
|
+
};
|
|
1878
|
+
shift = 2;
|
|
1879
|
+
}
|
|
1880
|
+
registerType(rawType, { name, "fromWireType": function(value) {
|
|
1881
|
+
var length = HEAPU32[value >> 2];
|
|
1882
|
+
var HEAP = getHeap();
|
|
1883
|
+
var str;
|
|
1884
|
+
var decodeStartPtr = value + 4;
|
|
1885
|
+
for (var i = 0; i <= length; ++i) {
|
|
1886
|
+
var currentBytePtr = value + 4 + i * charSize;
|
|
1887
|
+
if (i == length || HEAP[currentBytePtr >> shift] == 0) {
|
|
1888
|
+
var maxReadBytes = currentBytePtr - decodeStartPtr;
|
|
1889
|
+
var stringSegment = decodeString(decodeStartPtr, maxReadBytes);
|
|
1890
|
+
if (str === void 0) {
|
|
1891
|
+
str = stringSegment;
|
|
1892
|
+
} else {
|
|
1893
|
+
str += String.fromCharCode(0);
|
|
1894
|
+
str += stringSegment;
|
|
1895
|
+
}
|
|
1896
|
+
decodeStartPtr = currentBytePtr + charSize;
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
_free(value);
|
|
1900
|
+
return str;
|
|
1901
|
+
}, "toWireType": function(destructors, value) {
|
|
1902
|
+
if (!(typeof value === "string")) {
|
|
1903
|
+
throwBindingError("Cannot pass non-string to C++ string type " + name);
|
|
1904
|
+
}
|
|
1905
|
+
var length = lengthBytesUTF(value);
|
|
1906
|
+
var ptr = _malloc(4 + length + charSize);
|
|
1907
|
+
HEAPU32[ptr >> 2] = length >> shift;
|
|
1908
|
+
encodeString(value, ptr + 4, length + charSize);
|
|
1909
|
+
if (destructors !== null) {
|
|
1910
|
+
destructors.push(_free, ptr);
|
|
1911
|
+
}
|
|
1912
|
+
return ptr;
|
|
1913
|
+
}, "argPackAdvance": 8, "readValueFromPointer": simpleReadValueFromPointer, destructorFunction: function(ptr) {
|
|
1914
|
+
_free(ptr);
|
|
1915
|
+
} });
|
|
1916
|
+
}
|
|
1917
|
+
function __embind_register_value_object(rawType, name, constructorSignature, rawConstructor, destructorSignature, rawDestructor) {
|
|
1918
|
+
structRegistrations[rawType] = { name: readLatin1String(name), rawConstructor: embind__requireFunction(constructorSignature, rawConstructor), rawDestructor: embind__requireFunction(destructorSignature, rawDestructor), fields: [] };
|
|
1919
|
+
}
|
|
1920
|
+
function __embind_register_value_object_field(structType, fieldName, getterReturnType, getterSignature, getter, getterContext, setterArgumentType, setterSignature, setter, setterContext) {
|
|
1921
|
+
structRegistrations[structType].fields.push({ fieldName: readLatin1String(fieldName), getterReturnType, getter: embind__requireFunction(getterSignature, getter), getterContext, setterArgumentType, setter: embind__requireFunction(setterSignature, setter), setterContext });
|
|
1922
|
+
}
|
|
1923
|
+
function __embind_register_void(rawType, name) {
|
|
1924
|
+
name = readLatin1String(name);
|
|
1925
|
+
registerType(rawType, { isVoid: true, name, "argPackAdvance": 0, "fromWireType": function() {
|
|
1926
|
+
return void 0;
|
|
1927
|
+
}, "toWireType": function(destructors, o) {
|
|
1928
|
+
return void 0;
|
|
1929
|
+
} });
|
|
1930
|
+
}
|
|
1931
|
+
function requireHandle(handle) {
|
|
1932
|
+
if (!handle) {
|
|
1933
|
+
throwBindingError("Cannot use deleted val. handle = " + handle);
|
|
1934
|
+
}
|
|
1935
|
+
return emval_handle_array[handle].value;
|
|
1936
|
+
}
|
|
1937
|
+
function __emval_as(handle, returnType, destructorsRef) {
|
|
1938
|
+
handle = requireHandle(handle);
|
|
1939
|
+
returnType = requireRegisteredType(returnType, "emval::as");
|
|
1940
|
+
var destructors = [];
|
|
1941
|
+
var rd = __emval_register(destructors);
|
|
1942
|
+
HEAP32[destructorsRef >> 2] = rd;
|
|
1943
|
+
return returnType["toWireType"](destructors, handle);
|
|
1944
|
+
}
|
|
1945
|
+
var emval_symbols = {};
|
|
1946
|
+
function getStringOrSymbol(address) {
|
|
1947
|
+
var symbol = emval_symbols[address];
|
|
1948
|
+
if (symbol === void 0) {
|
|
1949
|
+
return readLatin1String(address);
|
|
1950
|
+
} else {
|
|
1951
|
+
return symbol;
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
var emval_methodCallers = [];
|
|
1955
|
+
function __emval_call_void_method(caller, handle, methodName, args) {
|
|
1956
|
+
caller = emval_methodCallers[caller];
|
|
1957
|
+
handle = requireHandle(handle);
|
|
1958
|
+
methodName = getStringOrSymbol(methodName);
|
|
1959
|
+
caller(handle, methodName, null, args);
|
|
1960
|
+
}
|
|
1961
|
+
function emval_get_global() {
|
|
1962
|
+
if (typeof globalThis === "object") {
|
|
1963
|
+
return globalThis;
|
|
1964
|
+
}
|
|
1965
|
+
return function() {
|
|
1966
|
+
return Function;
|
|
1967
|
+
}()("return this")();
|
|
1968
|
+
}
|
|
1969
|
+
function __emval_get_global(name) {
|
|
1970
|
+
if (name === 0) {
|
|
1971
|
+
return __emval_register(emval_get_global());
|
|
1972
|
+
} else {
|
|
1973
|
+
name = getStringOrSymbol(name);
|
|
1974
|
+
return __emval_register(emval_get_global()[name]);
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
function __emval_addMethodCaller(caller) {
|
|
1978
|
+
var id = emval_methodCallers.length;
|
|
1979
|
+
emval_methodCallers.push(caller);
|
|
1980
|
+
return id;
|
|
1981
|
+
}
|
|
1982
|
+
function __emval_lookupTypes(argCount, argTypes) {
|
|
1983
|
+
var a = new Array(argCount);
|
|
1984
|
+
for (var i = 0; i < argCount; ++i) {
|
|
1985
|
+
a[i] = requireRegisteredType(HEAP32[(argTypes >> 2) + i], "parameter " + i);
|
|
1986
|
+
}
|
|
1987
|
+
return a;
|
|
1988
|
+
}
|
|
1989
|
+
function __emval_get_method_caller(argCount, argTypes) {
|
|
1990
|
+
var types = __emval_lookupTypes(argCount, argTypes);
|
|
1991
|
+
var retType = types[0];
|
|
1992
|
+
var signatureName = retType.name + "_$" + types.slice(1).map(function(t) {
|
|
1993
|
+
return t.name;
|
|
1994
|
+
}).join("_") + "$";
|
|
1995
|
+
var params = ["retType"];
|
|
1996
|
+
var args = [retType];
|
|
1997
|
+
var argsList = "";
|
|
1998
|
+
for (var i = 0; i < argCount - 1; ++i) {
|
|
1999
|
+
argsList += (i !== 0 ? ", " : "") + "arg" + i;
|
|
2000
|
+
params.push("argType" + i);
|
|
2001
|
+
args.push(types[1 + i]);
|
|
2002
|
+
}
|
|
2003
|
+
var functionName = makeLegalFunctionName("methodCaller_" + signatureName);
|
|
2004
|
+
var functionBody = "return function " + functionName + "(handle, name, destructors, args) {\n";
|
|
2005
|
+
var offset = 0;
|
|
2006
|
+
for (var i = 0; i < argCount - 1; ++i) {
|
|
2007
|
+
functionBody += " var arg" + i + " = argType" + i + ".readValueFromPointer(args" + (offset ? "+" + offset : "") + ");\n";
|
|
2008
|
+
offset += types[i + 1]["argPackAdvance"];
|
|
2009
|
+
}
|
|
2010
|
+
functionBody += " var rv = handle[name](" + argsList + ");\n";
|
|
2011
|
+
for (var i = 0; i < argCount - 1; ++i) {
|
|
2012
|
+
if (types[i + 1]["deleteObject"]) {
|
|
2013
|
+
functionBody += " argType" + i + ".deleteObject(arg" + i + ");\n";
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
if (!retType.isVoid) {
|
|
2017
|
+
functionBody += " return retType.toWireType(destructors, rv);\n";
|
|
2018
|
+
}
|
|
2019
|
+
functionBody += "};\n";
|
|
2020
|
+
params.push(functionBody);
|
|
2021
|
+
var invokerFunction = new_(Function, params).apply(null, args);
|
|
2022
|
+
return __emval_addMethodCaller(invokerFunction);
|
|
2023
|
+
}
|
|
2024
|
+
function __emval_get_module_property(name) {
|
|
2025
|
+
name = getStringOrSymbol(name);
|
|
2026
|
+
return __emval_register(Module[name]);
|
|
2027
|
+
}
|
|
2028
|
+
function __emval_get_property(handle, key2) {
|
|
2029
|
+
handle = requireHandle(handle);
|
|
2030
|
+
key2 = requireHandle(key2);
|
|
2031
|
+
return __emval_register(handle[key2]);
|
|
2032
|
+
}
|
|
2033
|
+
function __emval_incref(handle) {
|
|
2034
|
+
if (handle > 4) {
|
|
2035
|
+
emval_handle_array[handle].refcount += 1;
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
function craftEmvalAllocator(argCount) {
|
|
2039
|
+
var argsList = "";
|
|
2040
|
+
for (var i = 0; i < argCount; ++i) {
|
|
2041
|
+
argsList += (i !== 0 ? ", " : "") + "arg" + i;
|
|
2042
|
+
}
|
|
2043
|
+
var functionBody = "return function emval_allocator_" + argCount + "(constructor, argTypes, args) {\n";
|
|
2044
|
+
for (var i = 0; i < argCount; ++i) {
|
|
2045
|
+
functionBody += "var argType" + i + " = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + " + i + '], "parameter ' + i + '");\nvar arg' + i + " = argType" + i + ".readValueFromPointer(args);\nargs += argType" + i + "['argPackAdvance'];\n";
|
|
2046
|
+
}
|
|
2047
|
+
functionBody += "var obj = new constructor(" + argsList + ");\nreturn __emval_register(obj);\n}\n";
|
|
2048
|
+
return new Function("requireRegisteredType", "Module", "__emval_register", functionBody)(requireRegisteredType, Module, __emval_register);
|
|
2049
|
+
}
|
|
2050
|
+
var emval_newers = {};
|
|
2051
|
+
function __emval_new(handle, argCount, argTypes, args) {
|
|
2052
|
+
handle = requireHandle(handle);
|
|
2053
|
+
var newer = emval_newers[argCount];
|
|
2054
|
+
if (!newer) {
|
|
2055
|
+
newer = craftEmvalAllocator(argCount);
|
|
2056
|
+
emval_newers[argCount] = newer;
|
|
2057
|
+
}
|
|
2058
|
+
return newer(handle, argTypes, args);
|
|
2059
|
+
}
|
|
2060
|
+
function __emval_new_cstring(v) {
|
|
2061
|
+
return __emval_register(getStringOrSymbol(v));
|
|
2062
|
+
}
|
|
2063
|
+
function __emval_run_destructors(handle) {
|
|
2064
|
+
var destructors = emval_handle_array[handle].value;
|
|
2065
|
+
runDestructors(destructors);
|
|
2066
|
+
__emval_decref(handle);
|
|
2067
|
+
}
|
|
2068
|
+
function _abort() {
|
|
2069
|
+
abort();
|
|
2070
|
+
}
|
|
2071
|
+
function _emscripten_memcpy_big(dest, src, num) {
|
|
2072
|
+
HEAPU8.copyWithin(dest, src, src + num);
|
|
2073
|
+
}
|
|
2074
|
+
function emscripten_realloc_buffer(size) {
|
|
2075
|
+
try {
|
|
2076
|
+
wasmMemory.grow(size - buffer.byteLength + 65535 >>> 16);
|
|
2077
|
+
updateGlobalBufferAndViews(wasmMemory.buffer);
|
|
2078
|
+
return 1;
|
|
2079
|
+
} catch (e) {
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
function _emscripten_resize_heap(requestedSize) {
|
|
2083
|
+
var oldSize = HEAPU8.length;
|
|
2084
|
+
requestedSize = requestedSize >>> 0;
|
|
2085
|
+
var maxHeapSize = 2147483648;
|
|
2086
|
+
if (requestedSize > maxHeapSize) {
|
|
2087
|
+
return false;
|
|
2088
|
+
}
|
|
2089
|
+
for (var cutDown = 1; cutDown <= 4; cutDown *= 2) {
|
|
2090
|
+
var overGrownHeapSize = oldSize * (1 + 0.2 / cutDown);
|
|
2091
|
+
overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296);
|
|
2092
|
+
var newSize = Math.min(maxHeapSize, alignUp(Math.max(requestedSize, overGrownHeapSize), 65536));
|
|
2093
|
+
var replacement = emscripten_realloc_buffer(newSize);
|
|
2094
|
+
if (replacement) {
|
|
2095
|
+
return true;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
return false;
|
|
2099
|
+
}
|
|
2100
|
+
var SYSCALLS = { mappings: {}, buffers: [null, [], []], printChar: function(stream, curr) {
|
|
2101
|
+
var buffer2 = SYSCALLS.buffers[stream];
|
|
2102
|
+
if (curr === 0 || curr === 10) {
|
|
2103
|
+
(stream === 1 ? out : err)(UTF8ArrayToString(buffer2, 0));
|
|
2104
|
+
buffer2.length = 0;
|
|
2105
|
+
} else {
|
|
2106
|
+
buffer2.push(curr);
|
|
2107
|
+
}
|
|
2108
|
+
}, varargs: void 0, get: function() {
|
|
2109
|
+
SYSCALLS.varargs += 4;
|
|
2110
|
+
var ret = HEAP32[SYSCALLS.varargs - 4 >> 2];
|
|
2111
|
+
return ret;
|
|
2112
|
+
}, getStr: function(ptr) {
|
|
2113
|
+
var ret = UTF8ToString(ptr);
|
|
2114
|
+
return ret;
|
|
2115
|
+
}, get64: function(low, high) {
|
|
2116
|
+
return low;
|
|
2117
|
+
} };
|
|
2118
|
+
function _fd_close(fd) {
|
|
2119
|
+
return 0;
|
|
2120
|
+
}
|
|
2121
|
+
function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|
2122
|
+
}
|
|
2123
|
+
function _fd_write(fd, iov, iovcnt, pnum) {
|
|
2124
|
+
var num = 0;
|
|
2125
|
+
for (var i = 0; i < iovcnt; i++) {
|
|
2126
|
+
var ptr = HEAP32[iov + i * 8 >> 2];
|
|
2127
|
+
var len = HEAP32[iov + (i * 8 + 4) >> 2];
|
|
2128
|
+
for (var j = 0; j < len; j++) {
|
|
2129
|
+
SYSCALLS.printChar(fd, HEAPU8[ptr + j]);
|
|
2130
|
+
}
|
|
2131
|
+
num += len;
|
|
2132
|
+
}
|
|
2133
|
+
HEAP32[pnum >> 2] = num;
|
|
2134
|
+
return 0;
|
|
2135
|
+
}
|
|
2136
|
+
function _setTempRet0($i) {
|
|
2137
|
+
setTempRet0($i | 0);
|
|
2138
|
+
}
|
|
2139
|
+
InternalError = Module["InternalError"] = extendError(Error, "InternalError");
|
|
2140
|
+
embind_init_charCodes();
|
|
2141
|
+
BindingError = Module["BindingError"] = extendError(Error, "BindingError");
|
|
2142
|
+
init_ClassHandle();
|
|
2143
|
+
init_RegisteredPointer();
|
|
2144
|
+
init_embind();
|
|
2145
|
+
UnboundTypeError = Module["UnboundTypeError"] = extendError(Error, "UnboundTypeError");
|
|
2146
|
+
init_emval();
|
|
2147
|
+
var asmLibraryArg = { "t": __embind_finalize_value_object, "I": __embind_register_bool, "x": __embind_register_class, "w": __embind_register_class_constructor, "d": __embind_register_class_function, "k": __embind_register_constant, "H": __embind_register_emval, "n": __embind_register_enum, "a": __embind_register_enum_value, "A": __embind_register_float, "i": __embind_register_function, "j": __embind_register_integer, "h": __embind_register_memory_view, "B": __embind_register_std_string, "v": __embind_register_std_wstring, "u": __embind_register_value_object, "c": __embind_register_value_object_field, "J": __embind_register_void, "m": __emval_as, "s": __emval_call_void_method, "b": __emval_decref, "y": __emval_get_global, "p": __emval_get_method_caller, "r": __emval_get_module_property, "e": __emval_get_property, "g": __emval_incref, "q": __emval_new, "f": __emval_new_cstring, "l": __emval_run_destructors, "o": _abort, "E": _emscripten_memcpy_big, "F": _emscripten_resize_heap, "G": _fd_close, "C": _fd_seek, "z": _fd_write, "D": _setTempRet0 };
|
|
2148
|
+
var asm = createWasm();
|
|
2149
|
+
var ___wasm_call_ctors = Module["___wasm_call_ctors"] = function() {
|
|
2150
|
+
return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["L"]).apply(null, arguments);
|
|
2151
|
+
};
|
|
2152
|
+
var _malloc = Module["_malloc"] = function() {
|
|
2153
|
+
return (_malloc = Module["_malloc"] = Module["asm"]["M"]).apply(null, arguments);
|
|
2154
|
+
};
|
|
2155
|
+
var _free = Module["_free"] = function() {
|
|
2156
|
+
return (_free = Module["_free"] = Module["asm"]["N"]).apply(null, arguments);
|
|
2157
|
+
};
|
|
2158
|
+
var ___getTypeName = Module["___getTypeName"] = function() {
|
|
2159
|
+
return (___getTypeName = Module["___getTypeName"] = Module["asm"]["P"]).apply(null, arguments);
|
|
2160
|
+
};
|
|
2161
|
+
var ___embind_register_native_and_builtin_types = Module["___embind_register_native_and_builtin_types"] = function() {
|
|
2162
|
+
return (___embind_register_native_and_builtin_types = Module["___embind_register_native_and_builtin_types"] = Module["asm"]["Q"]).apply(null, arguments);
|
|
2163
|
+
};
|
|
2164
|
+
var dynCall_jiji = Module["dynCall_jiji"] = function() {
|
|
2165
|
+
return (dynCall_jiji = Module["dynCall_jiji"] = Module["asm"]["R"]).apply(null, arguments);
|
|
2166
|
+
};
|
|
2167
|
+
var calledRun;
|
|
2168
|
+
function ExitStatus(status) {
|
|
2169
|
+
this.name = "ExitStatus";
|
|
2170
|
+
this.message = "Program terminated with exit(" + status + ")";
|
|
2171
|
+
this.status = status;
|
|
2172
|
+
}
|
|
2173
|
+
dependenciesFulfilled = function runCaller() {
|
|
2174
|
+
if (!calledRun)
|
|
2175
|
+
run();
|
|
2176
|
+
if (!calledRun)
|
|
2177
|
+
dependenciesFulfilled = runCaller;
|
|
2178
|
+
};
|
|
2179
|
+
function run(args) {
|
|
2180
|
+
args = args || arguments_;
|
|
2181
|
+
if (runDependencies > 0) {
|
|
2182
|
+
return;
|
|
2183
|
+
}
|
|
2184
|
+
preRun();
|
|
2185
|
+
if (runDependencies > 0) {
|
|
2186
|
+
return;
|
|
2187
|
+
}
|
|
2188
|
+
function doRun() {
|
|
2189
|
+
if (calledRun)
|
|
2190
|
+
return;
|
|
2191
|
+
calledRun = true;
|
|
2192
|
+
Module["calledRun"] = true;
|
|
2193
|
+
if (ABORT)
|
|
2194
|
+
return;
|
|
2195
|
+
initRuntime();
|
|
2196
|
+
preMain();
|
|
2197
|
+
readyPromiseResolve(Module);
|
|
2198
|
+
if (Module["onRuntimeInitialized"])
|
|
2199
|
+
Module["onRuntimeInitialized"]();
|
|
2200
|
+
postRun();
|
|
2201
|
+
}
|
|
2202
|
+
if (Module["setStatus"]) {
|
|
2203
|
+
Module["setStatus"]("Running...");
|
|
2204
|
+
setTimeout(function() {
|
|
2205
|
+
setTimeout(function() {
|
|
2206
|
+
Module["setStatus"]("");
|
|
2207
|
+
}, 1);
|
|
2208
|
+
doRun();
|
|
2209
|
+
}, 1);
|
|
2210
|
+
} else {
|
|
2211
|
+
doRun();
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
Module["run"] = run;
|
|
2215
|
+
if (Module["preInit"]) {
|
|
2216
|
+
if (typeof Module["preInit"] == "function")
|
|
2217
|
+
Module["preInit"] = [Module["preInit"]];
|
|
2218
|
+
while (Module["preInit"].length > 0) {
|
|
2219
|
+
Module["preInit"].pop()();
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
run();
|
|
2223
|
+
return BASIS2.ready;
|
|
2224
|
+
};
|
|
2225
|
+
}();
|
|
2226
|
+
if (typeof exports === "object" && typeof module === "object")
|
|
2227
|
+
module.exports = BASIS;
|
|
2228
|
+
else if (typeof define === "function" && define["amd"])
|
|
2229
|
+
define([], function() {
|
|
2230
|
+
return BASIS;
|
|
2231
|
+
});
|
|
2232
|
+
else if (typeof exports === "object")
|
|
2233
|
+
exports["BASIS"] = BASIS;
|