@woosh/meep-engine 2.168.1 → 2.169.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/build/bundle-worker-image-decoder.js +1 -1
- package/editor/process/symbolic/make3DSymbolicDisplay.js +1 -1
- package/editor/view/ecs/EntityList.js +1 -1
- package/editor/view/ecs/components/particles/ParticleLayerController.js +1 -1
- package/editor/view/makeEntityDecorators.js +1 -1
- package/package.json +1 -1
- package/src/REVIEW_2026_08_06/adv-core.md +511 -0
- package/src/REVIEW_2026_08_06/adv-gfx.md +480 -0
- package/src/REVIEW_2026_08_06/adv-view.md +446 -0
- package/src/REVIEW_2026_08_06/api-core.md +296 -0
- package/src/REVIEW_2026_08_06/api-engine.md +195 -0
- package/src/REVIEW_2026_08_06/bvh-phys-sound-net.md +507 -0
- package/src/REVIEW_2026_08_06/core-binary.md +348 -0
- package/src/REVIEW_2026_08_06/core-collection.md +376 -0
- package/src/REVIEW_2026_08_06/core-math.md +221 -0
- package/src/REVIEW_2026_08_06/core-process.md +266 -0
- package/src/REVIEW_2026_08_06/core-science.md +223 -0
- package/src/REVIEW_2026_08_06/engine-ai-nav.md +279 -0
- package/src/REVIEW_2026_08_06/engine-animation.md +167 -0
- package/src/REVIEW_2026_08_06/engine-asset.md +166 -0
- package/src/REVIEW_2026_08_06/engine-ecs.md +920 -0
- package/src/REVIEW_2026_08_06/engine-input.md +197 -0
- package/src/REVIEW_2026_08_06/engine-misc.md +248 -0
- package/src/REVIEW_2026_08_06/engine-terrain.md +52 -0
- package/src/REVIEW_2026_08_06/generation.md +176 -0
- package/src/REVIEW_2026_08_06/geom-2d.md +434 -0
- package/src/REVIEW_2026_08_06/geom-3d.md +117 -0
- package/src/REVIEW_2026_08_06/gfx-gi.md +143 -0
- package/src/REVIEW_2026_08_06/gfx-render.md +740 -0
- package/src/REVIEW_2026_08_06/gfx-texture.md +690 -0
- package/src/REVIEW_2026_08_06/prior-criticals.md +49 -0
- package/src/REVIEW_2026_08_06/prior-highs.md +138 -0
- package/src/REVIEW_2026_08_06/test-gaps.md +364 -0
- package/src/REVIEW_2026_08_06/view.md +667 -0
- package/src/REVIEW_2026_08_06.md +610 -0
- package/src/core/IdPool.d.ts +2 -2
- package/src/core/IdPool.d.ts.map +1 -1
- package/src/core/IdPool.js +1 -1
- package/src/core/binary/32BitEncoder.d.ts +2 -3
- package/src/core/binary/32BitEncoder.d.ts.map +1 -1
- package/src/core/binary/32BitEncoder.js +1 -1
- package/src/core/binary/BinaryBuffer.d.ts.map +1 -1
- package/src/core/binary/BinaryBuffer.js +12 -1
- package/src/core/binary/BitImage2.d.ts +5 -1
- package/src/core/binary/BitImage2.d.ts.map +1 -1
- package/src/core/binary/BitImage2.js +5 -1
- package/src/core/bvh2/bvh3/BVH.d.ts +2 -2
- package/src/core/bvh2/bvh3/BVH.d.ts.map +1 -1
- package/src/core/bvh2/bvh3/BVH.js +1 -1
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_nearest_to_point_filtered.d.ts +2 -2
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_nearest_to_point_filtered.d.ts.map +1 -1
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_nearest_to_point_filtered.js +86 -86
- package/src/core/bvh2/traversal/aabb3_detailed_volume_intersection_callback_based.d.ts +2 -2
- package/src/core/bvh2/traversal/aabb3_detailed_volume_intersection_callback_based.d.ts.map +1 -1
- package/src/core/bvh2/traversal/aabb3_detailed_volume_intersection_callback_based.js +1 -1
- package/src/core/bvh8/build/NodeProxy.d.ts.map +1 -1
- package/src/core/bvh8/build/NodeProxy.js +314 -308
- package/src/core/cache/Cache.d.ts +4 -4
- package/src/core/cache/Cache.d.ts.map +1 -1
- package/src/core/cache/Cache.js +3 -3
- package/src/core/cache/LoadingCache.d.ts +1 -1
- package/src/core/cache/LoadingCache.js +2 -2
- package/src/core/cache/wtinylfu/CacheWTinylfu.d.ts +2 -2
- package/src/core/cache/wtinylfu/CacheWTinylfu.js +2 -2
- package/src/core/collection/array/array_index_by_equality.d.ts +2 -2
- package/src/core/collection/array/array_index_by_equality.d.ts.map +1 -1
- package/src/core/collection/array/array_index_by_equality.js +1 -1
- package/src/core/collection/array/array_pick_best_element.d.ts +2 -2
- package/src/core/collection/array/array_pick_best_element.d.ts.map +1 -1
- package/src/core/collection/array/array_pick_best_element.js +1 -1
- package/src/core/collection/array/array_pick_best_elements.d.ts +2 -2
- package/src/core/collection/array/array_pick_best_elements.d.ts.map +1 -1
- package/src/core/collection/array/array_pick_best_elements.js +1 -1
- package/src/core/collection/array/array_set_diff.d.ts +2 -3
- package/src/core/collection/array/array_set_diff.d.ts.map +1 -1
- package/src/core/collection/array/array_set_diff.js +1 -1
- package/src/core/collection/array/array_set_diff_sorting.d.ts +2 -2
- package/src/core/collection/array/array_set_diff_sorting.d.ts.map +1 -1
- package/src/core/collection/array/array_set_diff_sorting.js +1 -1
- package/src/core/collection/array/iterator/ArrayIteratorRandom.d.ts +2 -1
- package/src/core/collection/array/iterator/ArrayIteratorRandom.d.ts.map +1 -1
- package/src/core/collection/heap/BinaryHeap.d.ts +2 -2
- package/src/core/collection/heap/BinaryHeap.d.ts.map +1 -1
- package/src/core/collection/heap/BinaryHeap.js +1 -1
- package/src/core/collection/list/List.d.ts +32 -17
- package/src/core/collection/list/List.d.ts.map +1 -1
- package/src/core/collection/list/List.js +43 -9
- package/src/core/collection/list/SortedListProjection.d.ts.map +1 -1
- package/src/core/collection/list/SortedListProjection.js +4 -1
- package/src/core/collection/map/BiMap.d.ts +25 -2
- package/src/core/collection/map/BiMap.d.ts.map +1 -1
- package/src/core/collection/map/BiMap.js +57 -3
- package/src/core/collection/map/HashMap.d.ts +2 -2
- package/src/core/collection/map/HashMap.d.ts.map +1 -1
- package/src/core/collection/map/HashMap.js +1 -1
- package/src/core/collection/set/ArraySet.d.ts +2 -2
- package/src/core/collection/set/ArraySet.d.ts.map +1 -1
- package/src/core/collection/set/ArraySet.js +1 -1
- package/src/core/collection/table/RowFirstTable.d.ts +2 -2
- package/src/core/collection/table/RowFirstTable.d.ts.map +1 -1
- package/src/core/collection/table/RowFirstTable.js +1 -1
- package/src/core/collection/table/RowFirstTableSpec.js +4 -4
- package/src/core/debug/matchers/IsAnything.d.ts.map +1 -1
- package/src/core/debug/matchers/IsAnything.js +5 -1
- package/src/core/events/signal/Signal.d.ts.map +1 -1
- package/src/core/events/signal/Signal.js +3 -1
- package/src/core/fsm/simple/SimpleStateMachineDescription.d.ts +2 -2
- package/src/core/fsm/simple/SimpleStateMachineDescription.d.ts.map +1 -1
- package/src/core/fsm/simple/SimpleStateMachineDescription.js +1 -1
- package/src/core/geom/2d/bvh/BVH2D.d.ts +2 -2
- package/src/core/geom/2d/bvh/BVH2D.d.ts.map +1 -1
- package/src/core/geom/2d/bvh/BVH2D.js +1 -1
- package/src/core/geom/2d/polygon/TRIANGULATION_DESIGN.md +433 -0
- package/src/core/geom/2d/polygon/polygon2_is_counter_clockwise.d.ts +31 -0
- package/src/core/geom/2d/polygon/polygon2_is_counter_clockwise.d.ts.map +1 -0
- package/src/core/geom/2d/polygon/polygon2_is_counter_clockwise.js +84 -0
- package/src/core/geom/2d/polygon/polygon2_signed_area.d.ts +24 -2
- package/src/core/geom/2d/polygon/polygon2_signed_area.d.ts.map +1 -1
- package/src/core/geom/2d/polygon/polygon2_signed_area.js +52 -34
- package/src/core/geom/2d/polygon/polygon2_triangulate.corpus.d.ts +28 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.corpus.d.ts.map +1 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.corpus.js +86 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.d.ts +40 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.d.ts.map +1 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.js +1280 -0
- package/src/core/geom/2d/polygon/polygon2_triangulation_deviation.d.ts +28 -0
- package/src/core/geom/2d/polygon/polygon2_triangulation_deviation.d.ts.map +1 -0
- package/src/core/geom/2d/polygon/polygon2_triangulation_deviation.js +77 -0
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.d.ts +2 -2
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.d.ts.map +1 -1
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.js +1 -1
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.d.ts +2 -2
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.d.ts.map +1 -1
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.js +1 -1
- package/src/core/geom/2d/triangle/tri2_rasterize_conservative.d.ts +6 -3
- package/src/core/geom/2d/triangle/tri2_rasterize_conservative.d.ts.map +1 -1
- package/src/core/geom/2d/triangle/tri2_rasterize_conservative.js +26 -13
- package/src/core/geom/2d/triangle/tri2_signed_area.d.ts +17 -1
- package/src/core/geom/2d/triangle/tri2_signed_area.d.ts.map +1 -1
- package/src/core/geom/2d/triangle/tri2_signed_area.js +35 -23
- package/src/core/geom/2d/v2_morton_encode.d.ts +20 -0
- package/src/core/geom/2d/v2_morton_encode.d.ts.map +1 -0
- package/src/core/geom/2d/v2_morton_encode.js +23 -0
- package/src/core/geom/3d/aabb/AABB3.d.ts +2 -2
- package/src/core/geom/3d/aabb/AABB3.d.ts.map +1 -1
- package/src/core/geom/3d/aabb/AABB3.js +1 -1
- package/src/core/geom/3d/atlas/segment/atlas_merge_charts.d.ts.map +1 -1
- package/src/core/geom/3d/atlas/segment/atlas_merge_charts.js +4 -1
- package/src/core/geom/3d/polygon/polygon3_compute_normal.d.ts +27 -0
- package/src/core/geom/3d/polygon/polygon3_compute_normal.d.ts.map +1 -0
- package/src/core/geom/3d/polygon/polygon3_compute_normal.js +60 -0
- package/src/core/geom/3d/polygon/polygon3_triangulate.d.ts +34 -0
- package/src/core/geom/3d/polygon/polygon3_triangulate.d.ts.map +1 -0
- package/src/core/geom/3d/polygon/polygon3_triangulate.js +94 -0
- package/src/core/geom/3d/quaternion/quat3_multiply.d.ts +8 -2
- package/src/core/geom/3d/quaternion/quat3_multiply.d.ts.map +1 -1
- package/src/core/geom/3d/quaternion/quat3_multiply.js +8 -2
- package/src/core/geom/3d/shape/ConvexHullShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/ConvexHullShape3D.js +32 -2
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts +2 -2
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.js +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/debug/push_boundary_with_validation.d.ts +2 -5
- package/src/core/geom/3d/tetrahedra/delaunay/debug/push_boundary_with_validation.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/debug/push_boundary_with_validation.js +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/debug/validate_cavity_boundary.d.ts +2 -2
- package/src/core/geom/3d/tetrahedra/delaunay/debug/validate_cavity_boundary.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/debug/validate_cavity_boundary.js +1 -1
- package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.d.ts +2 -3
- package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.js +69 -69
- package/src/core/geom/3d/tetrahedra/validate_tetrahedron_neighbourhood.d.ts +2 -3
- package/src/core/geom/3d/tetrahedra/validate_tetrahedron_neighbourhood.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/validate_tetrahedron_neighbourhood.js +50 -50
- package/src/core/geom/3d/topology/struct/TopoEdge.d.ts +2 -2
- package/src/core/geom/3d/topology/struct/TopoEdge.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/TopoEdge.js +1 -1
- package/src/core/geom/3d/topology/struct/TopoMesh.d.ts +2 -3
- package/src/core/geom/3d/topology/struct/TopoMesh.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/TopoMesh.js +1 -1
- package/src/core/geom/3d/topology/struct/TopoTriangle.d.ts +2 -2
- package/src/core/geom/3d/topology/struct/TopoTriangle.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/TopoTriangle.js +1 -1
- package/src/core/geom/3d/topology/struct/TopoVertex.d.ts +2 -2
- package/src/core/geom/3d/topology/struct/TopoVertex.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/TopoVertex.js +1 -1
- package/src/core/geom/3d/topology/struct/binary/io/face/bt_face_triangulate.d.ts +23 -6
- package/src/core/geom/3d/topology/struct/binary/io/face/bt_face_triangulate.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/binary/io/face/bt_face_triangulate.js +268 -124
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_assert_valid.d.ts +17 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_assert_valid.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_assert_valid.js +44 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_count_edge_faces.d.ts +20 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_count_edge_faces.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_count_edge_faces.js +40 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_closed.d.ts +19 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_closed.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_closed.js +34 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_manifold.d.ts +22 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_manifold.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_manifold.js +37 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_validate.d.ts +87 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_validate.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_validate.js +599 -0
- package/src/core/geom/3d/topology/util/mesh_flood_fill.d.ts +1 -1
- package/src/core/geom/3d/topology/util/mesh_flood_fill.js +1 -1
- package/src/core/geom/3d/triangle/tri3_compute_signed_volume.d.ts +32 -0
- package/src/core/geom/3d/triangle/tri3_compute_signed_volume.d.ts.map +1 -1
- package/src/core/geom/3d/triangle/tri3_compute_signed_volume.js +66 -7
- package/src/core/geom/3d/triangle/tri3_mesh_compute_signed_volume.d.ts +22 -1
- package/src/core/geom/3d/triangle/tri3_mesh_compute_signed_volume.d.ts.map +1 -1
- package/src/core/geom/3d/triangle/tri3_mesh_compute_signed_volume.js +83 -38
- package/src/core/geom/3d/util/aabb3_emit_point_grid.d.ts +2 -2
- package/src/core/geom/3d/util/aabb3_emit_point_grid.d.ts.map +1 -1
- package/src/core/geom/3d/util/aabb3_emit_point_grid.js +1 -1
- package/src/core/geom/MANIFOLD_COMPARISON_2026_08_01.md +554 -0
- package/src/core/geom/Quaternion.d.ts +2 -2
- package/src/core/geom/Quaternion.d.ts.map +1 -1
- package/src/core/geom/Quaternion.js +1 -1
- package/src/core/geom/Vector1.d.ts +2 -2
- package/src/core/geom/Vector1.d.ts.map +1 -1
- package/src/core/geom/Vector1.js +1 -1
- package/src/core/geom/packing/max-rect/find_best_container.d.ts +2 -2
- package/src/core/geom/packing/max-rect/find_best_container.d.ts.map +1 -1
- package/src/core/geom/packing/max-rect/find_best_container.js +1 -1
- package/src/core/geom/vec3/v3_cotangent.d.ts +6 -2
- package/src/core/geom/vec3/v3_cotangent.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_cotangent.js +6 -2
- package/src/core/geom/vec3/v3_cross.d.ts +6 -2
- package/src/core/geom/vec3/v3_cross.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_cross.js +6 -2
- package/src/core/geom/vec3/v3_lerp.d.ts +1 -1
- package/src/core/geom/vec3/v3_lerp.js +1 -1
- package/src/core/geom/vec3/v3_multiply.d.ts +6 -2
- package/src/core/geom/vec3/v3_multiply.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_multiply.js +6 -2
- package/src/core/geom/vec3/v3_subtract.d.ts +6 -2
- package/src/core/geom/vec3/v3_subtract.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_subtract.js +6 -2
- package/src/core/json/abstractJSONSerializer.d.ts +2 -2
- package/src/core/json/abstractJSONSerializer.d.ts.map +1 -1
- package/src/core/json/abstractJSONSerializer.js +1 -1
- package/src/core/lang/reactive/AbstractCachingParser.d.ts +2 -3
- package/src/core/lang/reactive/AbstractCachingParser.d.ts.map +1 -1
- package/src/core/lang/reactive/AbstractCachingParser.js +1 -1
- package/src/core/localization/Localization.d.ts +2 -2
- package/src/core/localization/Localization.d.ts.map +1 -1
- package/src/core/localization/Localization.js +2 -2
- package/src/core/math/noise/create_simplex_noise_2d.d.ts +2 -2
- package/src/core/math/noise/create_simplex_noise_2d.d.ts.map +1 -1
- package/src/core/math/noise/create_simplex_noise_2d.js +1 -1
- package/src/core/math/physics/mie/MIE_PARTICLES_STANDARD.js +1 -1
- package/src/core/math/physics/mie/compute_mie_particle_properties_rgb.d.ts +3 -3
- package/src/core/math/physics/mie/compute_mie_particle_properties_rgb.d.ts.map +1 -1
- package/src/core/math/physics/mie/compute_mie_particle_properties_rgb.js +2 -2
- package/src/core/math/random/randomSeed.d.ts +13 -0
- package/src/core/math/random/randomSeed.d.ts.map +1 -0
- package/src/core/math/random/randomSeed.js +16 -0
- package/src/core/math/random/seededRandom_Mulberry32.d.ts +3 -2
- package/src/core/math/random/seededRandom_Mulberry32.d.ts.map +1 -1
- package/src/core/math/random/seededRandom_Mulberry32.js +1 -1
- package/src/core/math/spline/spline3_hermite_apply_transform.d.ts +50 -0
- package/src/core/math/spline/spline3_hermite_apply_transform.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_apply_transform.js +107 -0
- package/src/core/math/spline/spline3_hermite_reverse.d.ts +34 -0
- package/src/core/math/spline/spline3_hermite_reverse.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_reverse.js +49 -0
- package/src/core/math/statistics/hammersley_sequence.d.ts +17 -4
- package/src/core/math/statistics/hammersley_sequence.d.ts.map +1 -1
- package/src/core/math/statistics/hammersley_sequence.js +25 -16
- package/src/core/model/ModuleRegistry.d.ts +2 -2
- package/src/core/model/ModuleRegistry.d.ts.map +1 -1
- package/src/core/model/ModuleRegistry.js +1 -1
- package/src/core/model/node-graph/json/serializeNodeGraphToJSON.d.ts +1 -1
- package/src/core/model/node-graph/json/serializeNodeGraphToJSON.js +2 -2
- package/src/core/model/object/objectDeepEquals.d.ts +2 -2
- package/src/core/model/object/objectDeepEquals.d.ts.map +1 -1
- package/src/core/model/object/objectDeepEquals.js +1 -1
- package/src/core/model/reactive/model/ReactiveExpression.d.ts +2 -2
- package/src/core/model/reactive/model/ReactiveExpression.d.ts.map +1 -1
- package/src/core/model/reactive/model/ReactiveExpression.js +1 -1
- package/src/core/model/validate_enum_schema.d.ts +2 -3
- package/src/core/model/validate_enum_schema.d.ts.map +1 -1
- package/src/core/model/validate_enum_schema.js +1 -1
- package/src/core/process/Future.d.ts +3 -3
- package/src/core/process/Future.d.ts.map +1 -1
- package/src/core/process/Future.js +13 -1
- package/src/core/process/PromiseWatcher.d.ts.map +1 -1
- package/src/core/process/PromiseWatcher.js +9 -2
- package/src/core/process/executor/ConcurrentExecutor.d.ts.map +1 -1
- package/src/core/process/executor/ConcurrentExecutor.js +12 -2
- package/src/core/process/task/Task.d.ts +3 -3
- package/src/core/process/task/Task.d.ts.map +1 -1
- package/src/core/process/task/Task.js +2 -2
- package/src/core/process/task/util/countTask.d.ts +2 -2
- package/src/core/process/task/util/countTask.d.ts.map +1 -1
- package/src/core/process/task/util/countTask.js +1 -1
- package/src/core/process/task/util/randomCountTask.d.ts +2 -2
- package/src/core/process/task/util/randomCountTask.d.ts.map +1 -1
- package/src/core/process/task/util/randomCountTask.js +1 -1
- package/src/core/process/worker/WorkerProxy.d.ts.map +1 -1
- package/src/core/process/worker/WorkerProxy.js +5 -2
- package/src/core/process/worker/extractTransferables.d.ts.map +1 -1
- package/src/core/process/worker/extractTransferables.js +4 -1
- package/src/engine/Engine.d.ts +12 -12
- package/src/engine/Engine.d.ts.map +1 -1
- package/src/engine/Engine.js +149 -10
- package/src/engine/animation/Animations.d.ts +4 -4
- package/src/engine/animation/Animations.d.ts.map +1 -1
- package/src/engine/animation/Animations.js +2 -2
- package/src/engine/animation/EntityAnimation.d.ts +5 -5
- package/src/engine/animation/EntityAnimation.d.ts.map +1 -1
- package/src/engine/animation/EntityAnimation.js +2 -2
- package/src/engine/animation/TransitionFunctions.d.ts +1 -4
- package/src/engine/animation/TransitionFunctions.d.ts.map +1 -1
- package/src/engine/animation/TransitionFunctions.js +1 -1
- package/src/engine/animation/Tween.d.ts +4 -4
- package/src/engine/animation/Tween.d.ts.map +1 -1
- package/src/engine/animation/Tween.js +2 -2
- package/src/engine/asset/AssetManager.d.ts +6 -6
- package/src/engine/asset/AssetManager.d.ts.map +1 -1
- package/src/engine/asset/AssetManager.js +1411 -1411
- package/src/engine/asset/AssetRequest.d.ts +4 -4
- package/src/engine/asset/AssetRequest.d.ts.map +1 -1
- package/src/engine/asset/AssetRequest.js +3 -3
- package/src/engine/asset/loaders/ArrayBufferLoader.d.ts.map +1 -1
- package/src/engine/asset/loaders/ArrayBufferLoader.js +7 -0
- package/src/engine/asset/loaders/AssetLoader.d.ts +3 -3
- package/src/engine/asset/loaders/AssetLoader.d.ts.map +1 -1
- package/src/engine/asset/loaders/AssetLoader.js +2 -2
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts +0 -10
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts.map +1 -1
- package/src/engine/ecs/EntityComponentDataset.d.ts +6 -6
- package/src/engine/ecs/EntityComponentDataset.d.ts.map +1 -1
- package/src/engine/ecs/EntityComponentDataset.js +3 -3
- package/src/engine/ecs/EntityManager.d.ts +4 -4
- package/src/engine/ecs/EntityManager.js +4 -4
- package/src/engine/ecs/EntityObserver.d.ts +3 -3
- package/src/engine/ecs/EntityObserver.d.ts.map +1 -1
- package/src/engine/ecs/EntityObserver.js +2 -2
- package/src/engine/ecs/System.d.ts +4 -4
- package/src/engine/ecs/System.d.ts.map +1 -1
- package/src/engine/ecs/System.js +2 -2
- package/src/engine/ecs/dynamic_actions/DynamicActorSystem.d.ts +2 -3
- package/src/engine/ecs/dynamic_actions/DynamicActorSystem.d.ts.map +1 -1
- package/src/engine/ecs/dynamic_actions/DynamicActorSystem.js +1 -1
- package/src/engine/ecs/grid/pick.d.ts +4 -2
- package/src/engine/ecs/grid/pick.d.ts.map +1 -1
- package/src/engine/ecs/grid/pick.js +1 -1
- package/src/engine/ecs/parent/EntityNode.d.ts +4 -4
- package/src/engine/ecs/parent/EntityNode.d.ts.map +1 -1
- package/src/engine/ecs/parent/EntityNode.js +2 -2
- package/src/engine/ecs/speaker/lines/sets/LineSetDescription.d.ts.map +1 -1
- package/src/engine/ecs/speaker/lines/sets/LineSetDescription.js +3 -1
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionDeSerializer.d.ts +2 -2
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionDeSerializer.d.ts.map +1 -1
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionDeSerializer.js +1 -1
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionHeaderCodec.d.ts +1 -2
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionHeaderCodec.d.ts.map +1 -1
- package/src/engine/ecs/systems/AnimationSystem.d.ts +0 -5
- package/src/engine/ecs/systems/AnimationSystem.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/TerrainSystem.d.ts +2 -2
- package/src/engine/ecs/terrain/ecs/TerrainSystem.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/TerrainSystem.js +5 -2
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.d.ts +34 -5
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.d.ts.map +1 -1
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.js +87 -26
- package/src/engine/ecs/terrain/util/obtainTerrain.d.ts +2 -3
- package/src/engine/ecs/terrain/util/obtainTerrain.d.ts.map +1 -1
- package/src/engine/ecs/terrain/util/obtainTerrain.js +1 -1
- package/src/engine/ecs/util/hideEntityGracefully.js +2 -2
- package/src/engine/graphics/CONTEXT_LOSS_RECOVERY_PLAN.md +446 -0
- package/src/engine/graphics/FrameRunner.d.ts +2 -2
- package/src/engine/graphics/FrameRunner.d.ts.map +1 -1
- package/src/engine/graphics/FrameRunner.js +1 -1
- package/src/engine/graphics/GraphicsEngine.d.ts +60 -9
- package/src/engine/graphics/GraphicsEngine.d.ts.map +1 -1
- package/src/engine/graphics/GraphicsEngine.js +197 -25
- package/src/engine/graphics/camera/CameraShake.d.ts +6 -6
- package/src/engine/graphics/camera/CameraShake.d.ts.map +1 -1
- package/src/engine/graphics/context/WebGLContextFailureReason.d.ts +9 -0
- package/src/engine/graphics/context/WebGLContextFailureReason.d.ts.map +1 -0
- package/src/engine/graphics/context/WebGLContextFailureReason.js +17 -0
- package/src/engine/graphics/context/WebGLContextMonitor.d.ts +106 -0
- package/src/engine/graphics/context/WebGLContextMonitor.d.ts.map +1 -0
- package/src/engine/graphics/context/WebGLContextMonitor.js +341 -0
- package/src/engine/graphics/context/WebGLContextState.d.ts +14 -0
- package/src/engine/graphics/context/WebGLContextState.d.ts.map +1 -0
- package/src/engine/graphics/context/WebGLContextState.js +24 -0
- package/src/engine/graphics/context/testWebGLContextLoss.d.ts +2 -0
- package/src/engine/graphics/context/testWebGLContextLoss.d.ts.map +1 -0
- package/src/engine/graphics/context/testWebGLContextLoss.js +696 -0
- package/src/engine/graphics/ecs/camera/CameraSystem.d.ts +2 -2
- package/src/engine/graphics/ecs/camera/CameraSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/CameraSystem.js +1 -1
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationAdapter.js +68 -32
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationUpgrader_0_1.d.ts +14 -0
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationUpgrader_0_1.d.ts.map +1 -0
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationUpgrader_0_1.js +41 -0
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.d.ts +2 -3
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.js +2 -2
- package/src/engine/graphics/ecs/light/three/ThreeLightCache.d.ts +1 -1
- package/src/engine/graphics/ecs/light/three/ThreeLightCache.js +1 -1
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts +4 -5
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.js +7 -2
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.js +2 -1
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.js +3 -5
- package/src/engine/graphics/geometry/MikkT/BuildNeighborsFast.d.ts.map +1 -1
- package/src/engine/graphics/geometry/MikkT/BuildNeighborsFast.js +3 -2
- package/src/engine/graphics/geometry/MikkT/GenerateSharedVerticesIndexList.d.ts.map +1 -1
- package/src/engine/graphics/geometry/MikkT/GenerateSharedVerticesIndexList.js +3 -1
- package/src/engine/graphics/geometry/computeBoundingSphereFromVertexData.d.ts +2 -2
- package/src/engine/graphics/geometry/computeBoundingSphereFromVertexData.js +1 -1
- package/src/engine/graphics/geometry/computeMeshSurfaceArea.js +1 -1
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.d.ts +2 -2
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.d.ts.map +1 -1
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.js +1 -1
- package/src/engine/graphics/geometry/ribbon/Ribbon.d.ts +2 -2
- package/src/engine/graphics/geometry/ribbon/Ribbon.d.ts.map +1 -1
- package/src/engine/graphics/geometry/ribbon/Ribbon.js +1 -1
- package/src/engine/graphics/load_and_set_cubemap_v0.d.ts +5 -0
- package/src/engine/graphics/load_and_set_cubemap_v0.d.ts.map +1 -1
- package/src/engine/graphics/load_and_set_cubemap_v0.js +26 -21
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts +2 -2
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.js +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.d.ts +2 -2
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.js +1 -1
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.d.ts +2 -2
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.js +1 -1
- package/src/engine/graphics/particles/particular/group/ParticleGroup.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/group/ParticleGroup.js +19 -8
- package/src/engine/graphics/particles/particular/group/optimizeCommandQueue.js +1 -1
- package/src/engine/graphics/render/RendererPool.d.ts +4 -4
- package/src/engine/graphics/render/RendererPool.d.ts.map +1 -1
- package/src/engine/graphics/render/RendererPool.js +2 -2
- package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts +5 -4
- package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts.map +1 -1
- package/src/engine/graphics/render/frame_graph/FrameGraph.js +2 -2
- package/src/engine/graphics/render/layers/RenderLayer.d.ts +2 -2
- package/src/engine/graphics/render/layers/RenderLayer.d.ts.map +1 -1
- package/src/engine/graphics/render/layers/RenderLayer.js +1 -1
- package/src/engine/graphics/render/layers/RenderLayerUtils.js +1 -1
- package/src/engine/graphics/sh3/lightmap/bake_lightmap_for_scene.d.ts +3 -1
- package/src/engine/graphics/sh3/lightmap/bake_lightmap_for_scene.d.ts.map +1 -1
- package/src/engine/graphics/sh3/lightmap/bake_lightmap_for_scene.js +681 -681
- package/src/engine/graphics/sh3/lightmap/lightmap_rasterize_triangle.d.ts +2 -2
- package/src/engine/graphics/sh3/lightmap/lightmap_rasterize_triangle.d.ts.map +1 -1
- package/src/engine/graphics/sh3/lightmap/lightmap_rasterize_triangle.js +145 -145
- package/src/engine/graphics/sh3/lpv/PathTracerProbeRenderer.d.ts +2 -1
- package/src/engine/graphics/sh3/lpv/PathTracerProbeRenderer.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/AtlasLookupTexture.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/AtlasLookupTexture.js +10 -3
- package/src/engine/graphics/texture/atlas/TextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/TextureAtlas.js +4 -1
- package/src/engine/graphics/texture/atlas/gpu/WebGLTextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/gpu/WebGLTextureAtlas.js +11 -0
- package/src/engine/graphics/texture/cubemap/load_environment_map.d.ts.map +1 -1
- package/src/engine/graphics/texture/cubemap/load_environment_map.js +5 -2
- package/src/engine/graphics/texture/sampler/Sampler2D.d.ts +2 -2
- package/src/engine/graphics/texture/sampler/Sampler2D.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/Sampler2D.js +1 -1
- package/src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_Chamfer.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_Chamfer.js +26 -18
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.d.ts +15 -2
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.js +29 -3
- package/src/engine/graphics/texture/sampler/resize/sampler2d_scale_down_lanczos.d.ts +14 -1
- package/src/engine/graphics/texture/sampler/resize/sampler2d_scale_down_lanczos.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/resize/sampler2d_scale_down_lanczos.js +148 -171
- package/src/engine/graphics/texture/sampler/sampler2d_combine.d.ts +2 -2
- package/src/engine/graphics/texture/sampler/sampler2d_combine.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/sampler2d_combine.js +1 -1
- package/src/engine/graphics/texture/sampler/sampler2d_paint.js +1 -1
- package/src/engine/graphics/texture/sampler/util/bitSet2Sampler2D.js +2 -2
- package/src/engine/graphics/texture/virtual/VirtualTextureTileLoader.d.ts +1 -1
- package/src/engine/graphics/texture/virtual/VirtualTextureTileLoader.js +2 -2
- package/src/engine/grid/obstacle/GridObstacle.d.ts +2 -2
- package/src/engine/grid/obstacle/GridObstacle.d.ts.map +1 -1
- package/src/engine/grid/obstacle/GridObstacle.js +1 -1
- package/src/engine/input/ecs/util/TopDownCameraControllerHelper.d.ts.map +1 -1
- package/src/engine/input/ecs/util/TopDownCameraControllerHelper.js +10 -3
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.d.ts +2 -2
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.js +1 -1
- package/src/engine/intelligence/behavior/primitive/ActionBehavior.d.ts +3 -3
- package/src/engine/intelligence/behavior/primitive/ActionBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/ActionBehavior.js +1 -1
- package/src/engine/intelligence/behavior/util/RandomDelayBehavior.d.ts +2 -1
- package/src/engine/intelligence/behavior/util/RandomDelayBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/Blackboard.d.ts +4 -4
- package/src/engine/intelligence/blackboard/Blackboard.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/Blackboard.js +2 -2
- package/src/engine/intelligence/mcts/MonteCarlo.d.ts +17 -15
- package/src/engine/intelligence/mcts/MonteCarlo.d.ts.map +1 -1
- package/src/engine/intelligence/mcts/MonteCarlo.js +345 -345
- package/src/engine/intelligence/mcts/StateNode.d.ts +2 -2
- package/src/engine/intelligence/mcts/StateNode.d.ts.map +1 -1
- package/src/engine/intelligence/mcts/StateNode.js +364 -364
- package/src/engine/intelligence/optimization/RandomOptimizer.d.ts +3 -3
- package/src/engine/intelligence/optimization/RandomOptimizer.d.ts.map +1 -1
- package/src/engine/intelligence/optimization/RandomOptimizer.js +2 -2
- package/src/engine/intelligence/optimization/optimize_cyclic_sequence_pairwise.d.ts +2 -2
- package/src/engine/intelligence/optimization/optimize_cyclic_sequence_pairwise.d.ts.map +1 -1
- package/src/engine/intelligence/optimization/optimize_cyclic_sequence_pairwise.js +1 -1
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.d.ts +4 -5
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.d.ts.map +1 -1
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.js +2 -2
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_2_3.d.ts +14 -0
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_2_3.d.ts.map +1 -0
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_2_3.js +38 -0
- package/src/engine/navigation/ecs/path_following/PathFollowingSystem.d.ts +0 -5
- package/src/engine/navigation/ecs/path_following/PathFollowingSystem.d.ts.map +1 -1
- package/src/engine/network/orchestrator/ServerAuthoritativeClient.d.ts.map +1 -1
- package/src/engine/network/orchestrator/ServerAuthoritativeClient.js +433 -425
- package/src/engine/physics/constraint/solve_constraints.d.ts +4 -1
- package/src/engine/physics/constraint/solve_constraints.d.ts.map +1 -1
- package/src/engine/physics/constraint/solve_constraints.js +38 -13
- package/src/engine/physics/contact/ManifoldStore.d.ts +15 -3
- package/src/engine/physics/contact/ManifoldStore.d.ts.map +1 -1
- package/src/engine/physics/contact/ManifoldStore.js +15 -3
- package/src/engine/physics/ecs/Joint.d.ts +7 -4
- package/src/engine/physics/ecs/Joint.d.ts.map +1 -1
- package/src/engine/physics/ecs/Joint.js +7 -4
- package/src/engine/physics/ecs/PhysicsSystem.d.ts +14 -0
- package/src/engine/physics/ecs/PhysicsSystem.d.ts.map +1 -1
- package/src/engine/physics/ecs/PhysicsSystem.js +16 -0
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -8
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts +3 -7
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/convex_convex_manifold.d.ts +15 -7
- package/src/engine/physics/narrowphase/convex_convex_manifold.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/convex_convex_manifold.js +33 -10
- package/src/engine/physics/narrowphase/refine_ray_concave.d.ts +6 -2
- package/src/engine/physics/narrowphase/refine_ray_concave.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/refine_ray_concave.js +6 -2
- package/src/engine/physics/narrowphase/refine_ray_hit.d.ts +6 -2
- package/src/engine/physics/narrowphase/refine_ray_hit.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/refine_ray_hit.js +6 -2
- package/src/engine/physics/queries/raycast.d.ts.map +1 -1
- package/src/engine/physics/queries/raycast.js +11 -4
- package/src/engine/save/GameStateLoader.d.ts +2 -2
- package/src/engine/save/GameStateLoader.d.ts.map +1 -1
- package/src/engine/save/GameStateLoader.js +1 -1
- package/src/engine/save/Storage.d.ts +4 -4
- package/src/engine/save/Storage.d.ts.map +1 -1
- package/src/engine/save/Storage.js +2 -2
- package/src/engine/save/storage/IndexedDBStorage.d.ts.map +1 -1
- package/src/engine/save/storage/IndexedDBStorage.js +24 -5
- package/src/engine/simulation/Ticker.d.ts +12 -0
- package/src/engine/simulation/Ticker.d.ts.map +1 -1
- package/src/engine/simulation/Ticker.js +18 -0
- package/src/engine/sound/simulation/AcousticSimulator.d.ts.map +1 -1
- package/src/engine/sound/simulation/AcousticSimulator.js +9 -1
- package/src/engine/sound/simulation/core/VolumeField.d.ts +6 -2
- package/src/engine/sound/simulation/core/VolumeField.d.ts.map +1 -1
- package/src/engine/sound/simulation/core/VolumeField.js +6 -2
- package/src/engine/sound/simulation/probe/AcousticProbeField.d.ts +6 -2
- package/src/engine/sound/simulation/probe/AcousticProbeField.d.ts.map +1 -1
- package/src/engine/sound/simulation/probe/AcousticProbeField.js +6 -2
- package/src/engine/sound/simulation/probe/acoustic_probe_transfer.d.ts +6 -2
- package/src/engine/sound/simulation/probe/acoustic_probe_transfer.d.ts.map +1 -1
- package/src/engine/sound/simulation/probe/acoustic_probe_transfer.js +6 -2
- package/src/engine/sound/simulation/probe/bakeProbeReflectors.d.ts +3 -1
- package/src/engine/sound/simulation/probe/bakeProbeReflectors.d.ts.map +1 -1
- package/src/engine/sound/simulation/probe/bakeProbeReflectors.js +3 -1
- package/src/engine/sound/simulation/prototypeAcousticSolver.js +1652 -1652
- package/src/engine/sound/sopra/util/buildAttenuationCurve.d.ts +2 -2
- package/src/engine/sound/sopra/util/buildAttenuationCurve.d.ts.map +1 -1
- package/src/engine/sound/sopra/util/buildAttenuationCurve.js +40 -40
- package/src/engine/ui/GUIEngine.d.ts.map +1 -1
- package/src/engine/ui/GUIEngine.js +8 -1
- package/src/engine/ui/notification/NotificationManager.d.ts +5 -5
- package/src/engine/ui/notification/NotificationManager.d.ts.map +1 -1
- package/src/engine/ui/notification/NotificationManager.js +4 -4
- package/src/engine/ui/tiles2d/TileGrid.d.ts +2 -2
- package/src/engine/ui/tiles2d/TileGrid.d.ts.map +1 -1
- package/src/engine/ui/tiles2d/TileGrid.js +1 -1
- package/src/generation/filtering/numeric/complex/CellFilterSimplexNoise.d.ts +1 -1
- package/src/generation/filtering/numeric/complex/CellFilterSimplexNoise.js +1 -1
- package/src/generation/grid/generation/road/GridTaskGenerateRoads.js +2 -2
- package/src/generation/grid/generation/util/buildPathFromDistanceMap.d.ts +1 -1
- package/src/generation/grid/generation/util/buildPathFromDistanceMap.js +1 -1
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorRandomRotation.d.ts +2 -1
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorRandomRotation.d.ts.map +1 -1
- package/src/generation/markers/actions/probability/MarkerNodeActionSelectWeighted.d.ts +2 -1
- package/src/generation/markers/actions/probability/MarkerNodeActionSelectWeighted.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.d.ts +2 -1
- package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.d.ts +4 -3
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.js +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.d.ts +2 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.d.ts.map +1 -1
- package/src/generation/theme/TerrainTheme.d.ts.map +1 -1
- package/src/generation/theme/TerrainTheme.js +2 -1
- package/src/generation/theme/ThemeEngine.d.ts.map +1 -1
- package/src/generation/theme/ThemeEngine.js +6 -5
- package/src/view/ViewGroup.d.ts.map +1 -1
- package/src/view/ViewGroup.js +9 -7
- package/src/view/common/VirtualListView.d.ts +1 -1
- package/src/view/common/VirtualListView.js +1 -1
- package/src/view/graphics/WebGLContextFailureView.d.ts +19 -0
- package/src/view/graphics/WebGLContextFailureView.d.ts.map +1 -0
- package/src/view/graphics/WebGLContextFailureView.js +76 -0
- package/src/view/minimap/Minimap.d.ts +8 -0
- package/src/view/minimap/Minimap.d.ts.map +1 -1
- package/src/view/minimap/Minimap.js +16 -3
- package/src/view/minimap/dom/MinimapMarkerView.d.ts.map +1 -1
- package/src/view/minimap/dom/MinimapMarkerView.js +3 -1
- package/src/view/tooltip/gml/compiler/GMLReferenceCompiler.d.ts +2 -2
- package/src/view/tooltip/gml/compiler/GMLReferenceCompiler.d.ts.map +1 -1
- package/src/view/tooltip/gml/compiler/GMLReferenceCompiler.js +1 -1
package/src/engine/Engine.js
CHANGED
|
@@ -11,6 +11,7 @@ import ObservedBoolean from "../core/model/ObservedBoolean.js";
|
|
|
11
11
|
import ConcurrentExecutor from '../core/process/executor/ConcurrentExecutor.js';
|
|
12
12
|
import EmptyView from "../view/elements/EmptyView.js";
|
|
13
13
|
import { ViewStack } from "../view/elements/navigation/ViewStack.js";
|
|
14
|
+
import { WebGLContextFailureView } from "../view/graphics/WebGLContextFailureView.js";
|
|
14
15
|
|
|
15
16
|
import { AssetManager } from './asset/AssetManager.js';
|
|
16
17
|
import { AssetPreloader } from "./asset/preloader/AssetPreloader.js";
|
|
@@ -44,9 +45,48 @@ const METRIC_ID_FRAME = 'frame_delay';
|
|
|
44
45
|
const METRIC_ID_RENDER = 'render_time';
|
|
45
46
|
const METRIC_ID_SIMULATION = 'simulation_time';
|
|
46
47
|
|
|
48
|
+
/**
|
|
49
|
+
* How long a context loss is tolerated before the simulation is paused as well, in seconds. Most losses
|
|
50
|
+
* are resolved in well under a second, and stopping the world for those would be more disruptive than
|
|
51
|
+
* letting it run; a longer outage is worth pausing for, as the player cannot see what is happening.
|
|
52
|
+
* @type {number}
|
|
53
|
+
*/
|
|
54
|
+
const CONTEXT_LOSS_SIMULATION_PAUSE_DELAY = 2;
|
|
55
|
+
|
|
47
56
|
class Engine {
|
|
48
57
|
#last_frame_timestamp = 0;
|
|
49
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Handle of the pending render-loop frame, `-1` when the loop is not running
|
|
61
|
+
* @type {number}
|
|
62
|
+
*/
|
|
63
|
+
#animation_frame_handle = -1;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Handle of the pending "pause the simulation, this outage is taking a while" timer, `-1` when none
|
|
67
|
+
* @type {number}
|
|
68
|
+
*/
|
|
69
|
+
#context_loss_pause_timer = -1;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Whether the simulation was paused because of a context loss, and therefore should be resumed once
|
|
73
|
+
* the context comes back
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
*/
|
|
76
|
+
#paused_by_context_loss = false;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Absent when the engine is constructed with `enableGraphics: false`.
|
|
80
|
+
* @type {GraphicsEngine|null}
|
|
81
|
+
*/
|
|
82
|
+
graphics = null;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Absent when the engine is constructed with `enableAudio: false`.
|
|
86
|
+
* @type {SoundEngine|null}
|
|
87
|
+
*/
|
|
88
|
+
sound = null;
|
|
89
|
+
|
|
50
90
|
viewStack = new ViewStack();
|
|
51
91
|
|
|
52
92
|
/**
|
|
@@ -257,6 +297,10 @@ class Engine {
|
|
|
257
297
|
logger.error(`Failed to start GraphicEngine: ${e}`);
|
|
258
298
|
}
|
|
259
299
|
|
|
300
|
+
graphicsEngine.on.contextLost.add(this.#handle_context_lost, this);
|
|
301
|
+
graphicsEngine.on.contextRestored.add(this.#handle_context_restored, this);
|
|
302
|
+
graphicsEngine.on.contextFailed.add(this.#handle_context_failed, this);
|
|
303
|
+
|
|
260
304
|
} else {
|
|
261
305
|
logger.info('enableGraphics option is not set, no graphics engine will be created');
|
|
262
306
|
}
|
|
@@ -316,9 +360,84 @@ class Engine {
|
|
|
316
360
|
this.plugins.initialize(this);
|
|
317
361
|
}
|
|
318
362
|
|
|
363
|
+
#clear_context_loss_pause_timer() {
|
|
364
|
+
if (this.#context_loss_pause_timer !== -1) {
|
|
365
|
+
clearTimeout(this.#context_loss_pause_timer);
|
|
366
|
+
this.#context_loss_pause_timer = -1;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Pauses the simulation, if it is running. {@link Ticker#pause} freezes the clock, so no simulation
|
|
372
|
+
* time accrues while we wait and the first step after resuming is a normal-sized one.
|
|
373
|
+
*
|
|
374
|
+
* A ticker that is already paused is left alone - somebody else owns that pause and it is not ours to
|
|
375
|
+
* undo when the context comes back.
|
|
376
|
+
*/
|
|
377
|
+
#pause_simulation_for_context_loss() {
|
|
378
|
+
this.#context_loss_pause_timer = -1;
|
|
379
|
+
|
|
380
|
+
if (this.#paused_by_context_loss) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const ticker = this.ticker;
|
|
385
|
+
|
|
386
|
+
if (!ticker.is_active || ticker.is_paused) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
this.#paused_by_context_loss = true;
|
|
391
|
+
|
|
392
|
+
logger.warn('Graphics context outage is taking a while, pausing simulation');
|
|
393
|
+
|
|
394
|
+
ticker.pause();
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
#handle_context_lost() {
|
|
398
|
+
logger.warn('Graphics context lost, waiting for recovery');
|
|
399
|
+
|
|
400
|
+
this.#clear_context_loss_pause_timer();
|
|
401
|
+
|
|
402
|
+
this.#context_loss_pause_timer = setTimeout(
|
|
403
|
+
() => this.#pause_simulation_for_context_loss(),
|
|
404
|
+
CONTEXT_LOSS_SIMULATION_PAUSE_DELAY * 1000
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
#handle_context_restored() {
|
|
409
|
+
this.#clear_context_loss_pause_timer();
|
|
410
|
+
|
|
411
|
+
if (this.#paused_by_context_loss) {
|
|
412
|
+
this.#paused_by_context_loss = false;
|
|
413
|
+
|
|
414
|
+
if (this.ticker.is_active) {
|
|
415
|
+
this.ticker.resume();
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
logger.info('Graphics context restored, rendering resumed');
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
*
|
|
424
|
+
* @param {WebGLContextFailureReason} reason
|
|
425
|
+
*/
|
|
426
|
+
#handle_context_failed(reason) {
|
|
427
|
+
logger.error(`Graphics context recovery abandoned (${reason}), no further rendering is possible`);
|
|
428
|
+
|
|
429
|
+
this.#clear_context_loss_pause_timer();
|
|
430
|
+
|
|
431
|
+
// nothing can be drawn any more, so let the simulation stop rather than burn cycles invisibly.
|
|
432
|
+
// Application state is left intact, which keeps a save-on-failure handler viable.
|
|
433
|
+
this.#pause_simulation_for_context_loss();
|
|
434
|
+
|
|
435
|
+
this.viewStack.addChild(new WebGLContextFailureView());
|
|
436
|
+
}
|
|
437
|
+
|
|
319
438
|
#initialize_audio() {
|
|
320
439
|
const sound = this.sound;
|
|
321
|
-
if (sound ===
|
|
440
|
+
if (sound === null) {
|
|
322
441
|
// no sound engine
|
|
323
442
|
return;
|
|
324
443
|
}
|
|
@@ -348,7 +467,7 @@ class Engine {
|
|
|
348
467
|
|
|
349
468
|
this.viewStack.push(gameView, 'game-view');
|
|
350
469
|
|
|
351
|
-
if (this.graphics !==
|
|
470
|
+
if (this.graphics !== null) {
|
|
352
471
|
|
|
353
472
|
const viewport = this.graphics.viewport;
|
|
354
473
|
|
|
@@ -440,12 +559,17 @@ class Engine {
|
|
|
440
559
|
|
|
441
560
|
const graphics = this.graphics;
|
|
442
561
|
|
|
562
|
+
if (graphics === null) {
|
|
563
|
+
// headless
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
|
|
443
567
|
if (graphics.autoDraw) {
|
|
444
568
|
// request redraw
|
|
445
569
|
graphics.needDraw = true;
|
|
446
570
|
}
|
|
447
571
|
|
|
448
|
-
if (
|
|
572
|
+
if (this.renderingEnabled && graphics.needDraw) {
|
|
449
573
|
|
|
450
574
|
const metrics = this.performance;
|
|
451
575
|
|
|
@@ -465,7 +589,7 @@ class Engine {
|
|
|
465
589
|
* Startup
|
|
466
590
|
* @returns {Promise}
|
|
467
591
|
*/
|
|
468
|
-
start() {
|
|
592
|
+
async start() {
|
|
469
593
|
this.assetManager.startup();
|
|
470
594
|
|
|
471
595
|
this.#initialize_audio();
|
|
@@ -479,9 +603,14 @@ class Engine {
|
|
|
479
603
|
|
|
480
604
|
this.__performacne_monitor.start();
|
|
481
605
|
|
|
606
|
+
const sound = this.sound;
|
|
607
|
+
|
|
608
|
+
const soundStarted = sound === null
|
|
609
|
+
? Promise.resolve()
|
|
610
|
+
: sound.start();
|
|
611
|
+
|
|
482
612
|
return Promise.all([
|
|
483
|
-
|
|
484
|
-
.then(promiseEntityManager),
|
|
613
|
+
soundStarted.then(promiseEntityManager),
|
|
485
614
|
this.staticKnowledge.load(this.assetManager, this.executor),
|
|
486
615
|
this.gui.startup(this),
|
|
487
616
|
this.plugins.startup()
|
|
@@ -492,7 +621,7 @@ class Engine {
|
|
|
492
621
|
/**
|
|
493
622
|
* Starting the engine
|
|
494
623
|
*/
|
|
495
|
-
requestAnimationFrame(this.#animation_frame);
|
|
624
|
+
this.#animation_frame_handle = requestAnimationFrame(this.#animation_frame);
|
|
496
625
|
|
|
497
626
|
//start simulation
|
|
498
627
|
this.ticker.start({ maxTimeout: 200 });
|
|
@@ -504,6 +633,10 @@ class Engine {
|
|
|
504
633
|
logger.info('engine started');
|
|
505
634
|
}, function (e) {
|
|
506
635
|
logger.error(`Engine Failed to start: ${e}`);
|
|
636
|
+
|
|
637
|
+
// the caller awaits start() to know whether the engine came up;
|
|
638
|
+
// swallowing this reported success after a failed startup
|
|
639
|
+
throw e;
|
|
507
640
|
});
|
|
508
641
|
|
|
509
642
|
|
|
@@ -516,7 +649,7 @@ class Engine {
|
|
|
516
649
|
|
|
517
650
|
const t0 = this.#last_frame_timestamp;
|
|
518
651
|
const t1 = performance.now();
|
|
519
|
-
requestAnimationFrame(this.#animation_frame);
|
|
652
|
+
this.#animation_frame_handle = requestAnimationFrame(this.#animation_frame);
|
|
520
653
|
this.render();
|
|
521
654
|
|
|
522
655
|
const frame_delay = (t1 - t0) / 1000;
|
|
@@ -534,8 +667,14 @@ class Engine {
|
|
|
534
667
|
async stop() {
|
|
535
668
|
this.__performacne_monitor.stop();
|
|
536
669
|
|
|
537
|
-
// stop the ticker
|
|
538
|
-
|
|
670
|
+
// stop the ticker. pause() throws when the loop is not currently
|
|
671
|
+
// running, which would abort the whole teardown below
|
|
672
|
+
this.ticker.stop();
|
|
673
|
+
|
|
674
|
+
// and the render loop, which re-requests itself every frame and would
|
|
675
|
+
// otherwise keep calling render() on a torn-down engine forever
|
|
676
|
+
cancelAnimationFrame(this.#animation_frame_handle);
|
|
677
|
+
this.#animation_frame_handle = -1;
|
|
539
678
|
|
|
540
679
|
// shutdown entity manager
|
|
541
680
|
if (!this.__using_external_entity_manager) {
|
|
@@ -9,19 +9,19 @@ export default _default;
|
|
|
9
9
|
* @param {EntityComponentDataset} ecd
|
|
10
10
|
* @param {Vector3} parameter destination in local offset from current position
|
|
11
11
|
* @param {number} time duration
|
|
12
|
-
* @param {
|
|
12
|
+
* @param {(x: number) => number} transitionFunction
|
|
13
13
|
* @returns {Tween}
|
|
14
14
|
*/
|
|
15
|
-
declare function translate(entity: number, ecd: EntityComponentDataset, parameter: Vector3, time: number, transitionFunction:
|
|
15
|
+
declare function translate(entity: number, ecd: EntityComponentDataset, parameter: Vector3, time: number, transitionFunction: (x: number) => number): Tween;
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @param {number} entity
|
|
19
19
|
* @param {EntityComponentDataset} ecd
|
|
20
20
|
* @param {Vector3} parameter final opacity, 1 - fully opaque, 0 - fully transparent
|
|
21
21
|
* @param {number} time duration
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {(x: number) => number} transitionFunction
|
|
23
23
|
* @returns {Tween}
|
|
24
24
|
*/
|
|
25
|
-
declare function fade(entity: number, ecd: EntityComponentDataset, parameter: Vector3, time: number, transitionFunction:
|
|
25
|
+
declare function fade(entity: number, ecd: EntityComponentDataset, parameter: Vector3, time: number, transitionFunction: (x: number) => number): Tween;
|
|
26
26
|
import Tween from "./Tween.js";
|
|
27
27
|
//# sourceMappingURL=Animations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Animations.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/Animations.js"],"names":[],"mappings":";;;;;AAkBA;;;;;;;;GAQG;AACH,mCAPW,MAAM,yDAGN,MAAM,
|
|
1
|
+
{"version":3,"file":"Animations.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/Animations.js"],"names":[],"mappings":";;;;;AAkBA;;;;;;;;GAQG;AACH,mCAPW,MAAM,yDAGN,MAAM,0BACF,MAAM,KAAK,MAAM,GACnB,KAAK,CAcjB;AAED;;;;;;;;GAQG;AACH,8BAPW,MAAM,yDAGN,MAAM,0BACF,MAAM,KAAK,MAAM,GACnB,KAAK,CA2EjB;kBAxHiB,YAAY"}
|
|
@@ -22,7 +22,7 @@ function doMaterial(m, what) {
|
|
|
22
22
|
* @param {EntityComponentDataset} ecd
|
|
23
23
|
* @param {Vector3} parameter destination in local offset from current position
|
|
24
24
|
* @param {number} time duration
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {(x: number) => number} transitionFunction
|
|
26
26
|
* @returns {Tween}
|
|
27
27
|
*/
|
|
28
28
|
function translate(entity, ecd, parameter, time, transitionFunction) {
|
|
@@ -45,7 +45,7 @@ function translate(entity, ecd, parameter, time, transitionFunction) {
|
|
|
45
45
|
* @param {EntityComponentDataset} ecd
|
|
46
46
|
* @param {Vector3} parameter final opacity, 1 - fully opaque, 0 - fully transparent
|
|
47
47
|
* @param {number} time duration
|
|
48
|
-
* @param {
|
|
48
|
+
* @param {(x: number) => number} transitionFunction
|
|
49
49
|
* @returns {Tween}
|
|
50
50
|
*/
|
|
51
51
|
function fade(entity, ecd, parameter, time, transitionFunction) {
|
|
@@ -21,10 +21,10 @@ declare class EntityAnimation {
|
|
|
21
21
|
fade(parameter: any, duration: any, timingFunction: any): this;
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @param {
|
|
24
|
+
* @param {(animation: EntityAnimation) => void} callback
|
|
25
25
|
* @returns {EntityAnimation}
|
|
26
26
|
*/
|
|
27
|
-
onEnded(callback:
|
|
27
|
+
onEnded(callback: (animation: EntityAnimation) => void): EntityAnimation;
|
|
28
28
|
start(em: any): void;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -36,15 +36,15 @@ declare class AnimationSpec {
|
|
|
36
36
|
* @param {AnimationSpec.Type} type
|
|
37
37
|
* @param {number} parameter
|
|
38
38
|
* @param {number} duration in seconds
|
|
39
|
-
* @param {
|
|
39
|
+
* @param {(x: number) => number} transitionFunction
|
|
40
40
|
*/
|
|
41
41
|
constructor(type: {
|
|
42
42
|
TRANSLATE: number;
|
|
43
43
|
FADE: number;
|
|
44
|
-
}, parameter: number, duration: number, transitionFunction:
|
|
44
|
+
}, parameter: number, duration: number, transitionFunction: (x: number) => number);
|
|
45
45
|
parameter: number;
|
|
46
46
|
duration: number;
|
|
47
|
-
transitionFunction:
|
|
47
|
+
transitionFunction: (x: number) => number;
|
|
48
48
|
type: {
|
|
49
49
|
TRANSLATE: number;
|
|
50
50
|
FADE: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityAnimation.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/EntityAnimation.js"],"names":[],"mappings":";AAiCA;IAQI;;;OAGG;IACH,oBAFW,MAAM,EAIhB;IAbD;;OAEG;IACH,gBAFU,MAAO,aAAa,CAAC,CAEX;IAEpB,qBAAiC;IAO7B,eAAoB;IAGxB;;;OAGG;IACH,cAFa,QAAQ,GAAG,CAAC,CAUxB;IAED,kFAGC;IAED,oEAEC;IAED,+DAEC;IAED;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"EntityAnimation.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/EntityAnimation.js"],"names":[],"mappings":";AAiCA;IAQI;;;OAGG;IACH,oBAFW,MAAM,EAIhB;IAbD;;OAEG;IACH,gBAFU,MAAO,aAAa,CAAC,CAEX;IAEpB,qBAAiC;IAO7B,eAAoB;IAGxB;;;OAGG;IACH,cAFa,QAAQ,GAAG,CAAC,CAUxB;IAED,kFAGC;IAED,oEAEC;IAED,+DAEC;IAED;;;;OAIG;IACH,8BAHuB,eAAe,KAAK,IAAI,GAClC,eAAe,CAW3B;IAED,qBA4CC;CACJ;AAtID;;GAEG;AACH;IACI;;;;;;OAMG;IACH;;;kBAJW,MAAM,YACN,MAAM,0BACF,MAAM,KAAK,MAAM,EAa/B;IAVG,kBAA0B;IAC1B,iBAAwB;IACxB,wBALW,MAAM,KAAK,MAAM,CAKgB;IAC5C;;;MAAgB;IAEhB;;;OAGG;IACH,OAFU,QAAM,IAAI,CAEH;CAExB;;;;;;;0BA1ByB,mCAAmC"}
|
|
@@ -10,7 +10,7 @@ class AnimationSpec {
|
|
|
10
10
|
* @param {AnimationSpec.Type} type
|
|
11
11
|
* @param {number} parameter
|
|
12
12
|
* @param {number} duration in seconds
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {(x: number) => number} transitionFunction
|
|
14
14
|
*/
|
|
15
15
|
constructor(type, parameter, duration, transitionFunction) {
|
|
16
16
|
this.parameter = parameter;
|
|
@@ -76,7 +76,7 @@ class EntityAnimation {
|
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
|
-
* @param {
|
|
79
|
+
* @param {(animation: EntityAnimation) => void} callback
|
|
80
80
|
* @returns {EntityAnimation}
|
|
81
81
|
*/
|
|
82
82
|
onEnded(callback) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransitionFunctions.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/TransitionFunctions.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransitionFunctions.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/TransitionFunctions.js"],"names":[],"mappings":";+BAIc,MAAM,KAAK,MAAM;;;;;;;;;AAY/B;;;GAGG;AACH,2BAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;GAGG;AACH,yBAHW,MAAM,GACJ,MAAM,CAKlB;AAED;;;;GAIG;AACH,+BAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;GAIG;AACH,gCAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;GAIG;AACH,kCAHW,MAAM,GACJ,MAAM,CAIlB"}
|
|
@@ -2,20 +2,20 @@ export default Tween;
|
|
|
2
2
|
declare class Tween {
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
* @param {
|
|
5
|
+
* @param {(value: number, timeDelta: number) => void} callback
|
|
6
6
|
* @param {number} valueStart
|
|
7
7
|
* @param {number} valueEnd
|
|
8
8
|
* @param {number} duration time in seconds
|
|
9
|
-
* @param {
|
|
9
|
+
* @param {(fraction: number) => number} [formula=TransitionFunctions.Linear]
|
|
10
10
|
* @param {boolean} [oscillate=false]
|
|
11
11
|
*/
|
|
12
|
-
constructor(callback:
|
|
12
|
+
constructor(callback: (value: number, timeDelta: number) => void, valueStart: number, valueEnd: number, duration: number, formula?: (fraction: number) => number, oscillate?: boolean);
|
|
13
13
|
timeElapsed: number;
|
|
14
14
|
on: {
|
|
15
15
|
ended: Signal;
|
|
16
16
|
};
|
|
17
17
|
oscillate: boolean;
|
|
18
|
-
formula: (
|
|
18
|
+
formula: (fraction: number) => number;
|
|
19
19
|
script: Script;
|
|
20
20
|
destroy(): void;
|
|
21
21
|
build(em: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tween.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/Tween.js"],"names":[],"mappings":";AAIA;IAOI;;;;;;;;OAQG;IACH,
|
|
1
|
+
{"version":3,"file":"Tween.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/Tween.js"],"names":[],"mappings":";AAIA;IAOI;;;;;;;;OAQG;IACH,8BAPmB,MAAM,aAAa,MAAM,KAAK,IAAI,cAC1C,MAAM,YACN,MAAM,YACN,MAAM,uBACK,MAAM,KAAK,MAAM,cAC5B,OAAO,EAsCjB;IAnDD,oBAAgB;IAEhB;;MAEE;IAoBE,mBAA0B;IAC1B,oBAbkB,MAAM,KAAK,MAAM,CAab;IAGtB,eAsBE;IAGN,gBAEC;IAED,oBAKC;IAJG,mBAAuB;IACvB,YAA+B;CAItC;mBApEkB,oCAAoC;mBACpC,6BAA6B"}
|
|
@@ -11,11 +11,11 @@ class Tween {
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {(value: number, timeDelta: number) => void} callback
|
|
15
15
|
* @param {number} valueStart
|
|
16
16
|
* @param {number} valueEnd
|
|
17
17
|
* @param {number} duration time in seconds
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {(fraction: number) => number} [formula=TransitionFunctions.Linear]
|
|
19
19
|
* @param {boolean} [oscillate=false]
|
|
20
20
|
*/
|
|
21
21
|
constructor(
|
|
@@ -79,7 +79,7 @@ export class AssetManager<CTX> {
|
|
|
79
79
|
* @param {String} type
|
|
80
80
|
* @param {AssetRequestScope} [scope]
|
|
81
81
|
* @param {boolean} [skip_queue] if true will skip the queue and dispatch request immediately
|
|
82
|
-
* @param {
|
|
82
|
+
* @param {(loaded: number, total: number) => void} [progress]
|
|
83
83
|
* @returns {Promise<Asset>}
|
|
84
84
|
*/
|
|
85
85
|
promise(path: string, type: string, { scope, skip_queue, progress }?: AssetRequestScope): Promise<Asset>;
|
|
@@ -87,9 +87,9 @@ export class AssetManager<CTX> {
|
|
|
87
87
|
* @template T
|
|
88
88
|
* @param {String} path
|
|
89
89
|
* @param {String} type
|
|
90
|
-
* @param {
|
|
91
|
-
* @param {
|
|
92
|
-
* @param {
|
|
90
|
+
* @param {(asset: Asset<T>) => void} [callback] success callback
|
|
91
|
+
* @param {(reason: *) => void} [failure]
|
|
92
|
+
* @param {(loaded: number, total: number) => void} [progress]
|
|
93
93
|
* @param {boolean} [skip_queue]
|
|
94
94
|
* @param {AssetRequestScope} [scope]
|
|
95
95
|
*/
|
|
@@ -131,7 +131,7 @@ export class AssetManager<CTX> {
|
|
|
131
131
|
* @template T
|
|
132
132
|
* @param {string} path
|
|
133
133
|
* @param {string} type
|
|
134
|
-
* @param {
|
|
134
|
+
* @param {(progress?: (current: number, total: number) => void) => Promise<Asset<T>>} loader
|
|
135
135
|
* @returns {Promise<Asset<T>>} loaded asset
|
|
136
136
|
* @see insert
|
|
137
137
|
* @example
|
|
@@ -141,7 +141,7 @@ export class AssetManager<CTX> {
|
|
|
141
141
|
* });
|
|
142
142
|
*
|
|
143
143
|
*/
|
|
144
|
-
insertAsync<T_1>(path: string, type: string, loader:
|
|
144
|
+
insertAsync<T_1>(path: string, type: string, loader: (progress?: (current: number, total: number) => void) => Promise<Asset<T_1>>): Promise<Asset<T_1>>;
|
|
145
145
|
/**
|
|
146
146
|
* Manually add a fully resolved resource.
|
|
147
147
|
* If a load for the same description is in flight, it is squashed: the inserted asset wins,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetManager.d.ts","sourceRoot":"","sources":["../../../../src/engine/asset/AssetManager.js"],"names":[],"mappings":"AAkDA;;;;GAIG;AACH;IA4MI;;;;;OAKG;IACH,oCAJW,GAAG,EAYb;IAzND;;;;OAIG;IACH,eAEG;IAEH;;;OAGG;IACH,aAFU,YAAY,gBAAgB,EAAE,YAAY,CAAC,CAER;IAuB7C;;;;;;;OAOG;IACH,kBAFU,MAAM,CAEY;IA4B5B;;;;;;OAMG;IACH,iBAAc;IAEd;;;OAGG;IACH,mBAFU,iBAAiB,CAEiB;IAsI5C,gBAWC;IAED;;;;;;OAMG;IACH,qBALW,OAAO,GAGN,QAAQ,IAAI,CAAC,CAgBxB;IA4ED;;;;;;;OAOG;IACH,yBAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;OAKG;IACH,oCAFa,OAAO,CAOnB;IAED;;OAEG;IACH,cAEC;IAED,8BAEC;IAED;;;;;;;OAOG;IACH,sEALW,iBAAiB,GAGf,cAAc,CAc1B;IAED;;;;;;;;;OASG;IACH,qFA4DC;IAED;;;;;;;OAOG;IACH,gBAJW,MAAM,QACN,MAAM,GACL,OAAO,CAKlB;IAGD;;;;;;;OAOG;IACH,eALW,MAAM,QACN,MAAM,GACJ,OAAO,CAOnB;IAED;;;;;;;OAOG;IACH,eAJW,MAAM,QACN,MAAM,GACL,OAAO,CAMlB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,uBAZW,MAAM,QACN,MAAM,
|
|
1
|
+
{"version":3,"file":"AssetManager.d.ts","sourceRoot":"","sources":["../../../../src/engine/asset/AssetManager.js"],"names":[],"mappings":"AAkDA;;;;GAIG;AACH;IA4MI;;;;;OAKG;IACH,oCAJW,GAAG,EAYb;IAzND;;;;OAIG;IACH,eAEG;IAEH;;;OAGG;IACH,aAFU,YAAY,gBAAgB,EAAE,YAAY,CAAC,CAER;IAuB7C;;;;;;;OAOG;IACH,kBAFU,MAAM,CAEY;IA4B5B;;;;;;OAMG;IACH,iBAAc;IAEd;;;OAGG;IACH,mBAFU,iBAAiB,CAEiB;IAsI5C,gBAWC;IAED;;;;;;OAMG;IACH,qBALW,OAAO,GAGN,QAAQ,IAAI,CAAC,CAgBxB;IA4ED;;;;;;;OAOG;IACH,yBAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;OAKG;IACH,oCAFa,OAAO,CAOnB;IAED;;OAEG;IACH,cAEC;IAED,8BAEC;IAED;;;;;;;OAOG;IACH,sEALW,iBAAiB,GAGf,cAAc,CAc1B;IAED;;;;;;;;;OASG;IACH,qFA4DC;IAED;;;;;;;OAOG;IACH,gBAJW,MAAM,QACN,MAAM,GACL,OAAO,CAKlB;IAGD;;;;;;;OAOG;IACH,eALW,MAAM,QACN,MAAM,GACJ,OAAO,CAOnB;IAED;;;;;;;OAOG;IACH,eAJW,MAAM,QACN,MAAM,GACL,OAAO,CAMlB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,uBAZW,MAAM,QACN,MAAM,gCACgB,MAAM,SAAS,MAAM,KAAK,IAAI,KAAK,mBAAiB,GACxE,mBAAiB,CAuE7B;IAED;;;;;;;;;;;OAWG;IACH,kBAJW,MAAM,QACN,MAAM,2BAoChB;IAgbD;;;;;;OAMG;IACH,sBAkCC;IAGD;;;;OAIG;IACH,uBAHW,MAAM,GACL,OAAO,CAIlB;IAED;;;;OAIG;IACH,sBAHW,MAAM,GACJ,wBAAY,SAAS,CAMjC;IAaD;;;;;;;;;;OAUG;IACH,+BALW,MAAM,uCAEJ,IAAI,CAqBhB;IAED;;;;;;OAMG;IACH,iCALW,MAAM,uCAEJ,OAAO,CAyBnB;IAED;;;;;;OAMG;IACH,6BAJW,MAAM,kCAEJ,QAAQ,OAAO,CAAC,CAU5B;IAED;;;;;OAKG;IACH,0BAJW,MAAM,iEAwChB;IAED;;;OAGG;IACH,uBAFW,MAAM,iBAkBhB;IAED;;;;;;;OAOG;IACH,yCAFa,aAAS,IAAI,CAYzB;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACL,mBAAiB,CAa5B;IAED;;;;OAIG;IACH,oBAHW,MAAM,GACL,gBAAgB,GAAC,SAAS,CAQrC;IAED;;;;;OAKG;IACH,mBAJW,MAAM,QACN,MAAM,QACN,MAAM,QAUhB;IAGL;;;OAGG;IACH,yBAFU,OAAO,CAEoB;;CANpC;4BAv3C2B,0CAA0C;iCAOrC,uBAAuB;6BAM3B,mBAAmB;kCAFd,6BAA6B;kCAD7B,wBAAwB;4BAE9B,0BAA0B"}
|