@woosh/meep-engine 2.134.5 → 2.135.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/bundle-worker-image-decoder.js +1 -1
- package/build/bundle-worker-terrain.js +1 -1
- package/editor/tools/v2/TransformControlsGizmo.js +1 -1
- package/editor/view/node-graph/NodeGraphEditorView.js +2 -2
- package/package.json +1 -1
- package/src/core/assert.d.ts +0 -2
- package/src/core/assert.d.ts.map +1 -1
- package/src/core/assert.js +0 -6
- package/src/core/color/Color.d.ts +0 -5
- package/src/core/color/Color.d.ts.map +1 -1
- package/src/core/color/Color.js +1 -7
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.js +386 -386
- package/src/core/geom/2d/line/line_segment_compute_line_segment_intersection_2d.js +1 -1
- package/src/core/geom/2d/quad-tree-binary/QuadTree.js +714 -714
- package/src/core/geom/3d/triangle/computeTriangleRayIntersection.js +160 -160
- package/src/core/geom/3d/triangle/computeTriangleRayIntersectionBarycentric.js +96 -96
- package/src/core/geom/packing/max-rect/MaxRectanglesPacker.js +1 -1
- package/src/core/geom/packing/max-rect/findBestContainer.js +4 -4
- package/src/core/geom/packing/max-rect/packOneBox.js +2 -2
- package/src/core/geom/vec3/v3_rigid_align_paired_unit_vectors.js +1 -1
- package/src/core/graph/layout/box/BoxLayouter.js +7 -7
- package/src/core/graph/layout/box/position_box_next_to_box.js +6 -6
- package/src/core/math/computeWholeDivisorLow.js +33 -33
- package/src/core/math/linalg/eigen/eigen_values_find_spectral_gap.d.ts.map +1 -0
- package/src/core/math/linalg/eigen/matrix_eigenvalues_in_place.d.ts +10 -0
- package/src/core/math/linalg/eigen/matrix_eigenvalues_in_place.d.ts.map +1 -0
- package/src/core/{graph → math/linalg}/eigen/matrix_eigenvalues_in_place.js +8 -7
- package/src/core/math/linalg/eigen/matrix_householder_in_place.d.ts.map +1 -0
- package/src/core/{graph → math/linalg}/eigen/matrix_householder_in_place.js +11 -5
- package/src/core/math/linalg/eigen/matrix_qr_in_place.d.ts +15 -0
- package/src/core/math/linalg/eigen/matrix_qr_in_place.d.ts.map +1 -0
- package/src/core/{graph → math/linalg}/eigen/matrix_qr_in_place.js +8 -2
- package/src/core/{graph → math/linalg}/eigen/matrix_top_eigenvector_power_iteration.d.ts +0 -3
- package/src/core/math/linalg/eigen/matrix_top_eigenvector_power_iteration.d.ts.map +1 -0
- package/src/core/{graph → math/linalg}/eigen/matrix_top_eigenvector_power_iteration.js +0 -3
- package/src/core/math/linalg/polynomial_complex_roots_aberth_ehrlich.d.ts +19 -0
- package/src/core/math/linalg/polynomial_complex_roots_aberth_ehrlich.d.ts.map +1 -0
- package/src/core/math/linalg/polynomial_complex_roots_aberth_ehrlich.js +161 -0
- package/src/core/math/linalg/polynomial_real_roots_in_interval.d.ts +15 -0
- package/src/core/math/linalg/polynomial_real_roots_in_interval.d.ts.map +1 -0
- package/src/core/math/linalg/polynomial_real_roots_in_interval.js +200 -0
- package/src/core/math/solveCubic.d.ts +15 -0
- package/src/core/math/solveCubic.d.ts.map +1 -0
- package/src/core/math/solveCubic.js +82 -0
- package/src/core/math/spline/spline3_hermite_bounds_t.d.ts +23 -0
- package/src/core/math/spline/spline3_hermite_bounds_t.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_bounds_t.js +109 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite.d.ts +25 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite.js +44 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_1d.d.ts +16 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_1d.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_1d.js +120 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.d.ts +11 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.js +451 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_nd.d.ts +12 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_nd.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_nd.js +339 -0
- package/src/core/math/spline/spline3_hermite_intersects_spline3_hermite.d.ts +15 -0
- package/src/core/math/spline/spline3_hermite_intersects_spline3_hermite.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_intersects_spline3_hermite.js +21 -0
- package/src/core/math/spline/spline3_hermite_to_monomial.d.ts +24 -0
- package/src/core/math/spline/spline3_hermite_to_monomial.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_to_monomial.js +37 -0
- package/src/core/math/spline/v3_computeCatmullRomSplineUniformDistance.js +1 -1
- package/src/core/model/node-graph/visual/NodeGraphVisualData.js +1 -1
- package/src/core/model/reactive/model/util/createRandomReactiveExpression.js +185 -185
- package/src/core/process/delay.js +16 -16
- package/src/engine/animation/async/TimeSeries.js +300 -300
- package/src/engine/animation/curve/AnimationCurve.d.ts +0 -4
- package/src/engine/animation/curve/AnimationCurve.d.ts.map +1 -1
- package/src/engine/animation/curve/AnimationCurve.js +1 -6
- package/src/engine/animation/curve/draw/position_canvas_to_curve.js +2 -2
- package/src/engine/animation/curve/draw/position_curve_to_canvas.js +2 -2
- package/src/engine/ecs/fow/shader/FogOfWarRenderer.js +145 -145
- package/src/engine/ecs/gui/position/ViewportPositionSystem.js +2 -2
- package/src/engine/ecs/parent/entity_node_compute_bounding_box.js +1 -1
- package/src/engine/ecs/transform/Transform.d.ts +0 -10
- package/src/engine/ecs/transform/Transform.d.ts.map +1 -1
- package/src/engine/ecs/transform/Transform.js +0 -12
- package/src/engine/graphics/composit/CompositLayer.js +254 -254
- package/src/engine/graphics/ecs/mesh-v2/sg_hierarchy_compute_bounding_box_via_parent_entity.js +1 -1
- package/src/engine/graphics/ecs/path/tube/build/build_geometry_linear.js +2 -2
- package/src/engine/graphics/material/optimization/MaterialOptimizationContext.js +3 -3
- package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.js +201 -201
- package/src/engine/graphics/particles/particular/engine/utils/volume/prototypeParticleVolume.js +1 -1
- package/src/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameterSet.js +2 -2
- package/src/engine/graphics/render/forward_plus/LightManager.js +1226 -1226
- package/src/engine/graphics/render/forward_plus/model/PointLight.js +1 -1
- package/src/engine/graphics/sh3/lpv/lpv_obtain_storage_cached_volume.js +1 -1
- package/src/engine/graphics/sh3/path_tracer/texture/sample_material.js +2 -2
- package/src/engine/graphics/texture/atlas/TextureAtlasDebugger.js +1 -1
- package/src/engine/graphics/texture/sampler/HarmonicDiffusionGrid.js +145 -145
- package/src/engine/graphics/texture/sampler/serialization/TextureBinaryBufferSerializer.js +2 -2
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.d.ts +2 -6
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.js +0 -10
- package/src/engine/intelligence/mcts/MonteCarlo.js +275 -275
- package/src/engine/navigation/ecs/path_following/PathFollower.js +222 -222
- package/src/generation/grid/GridData.js +220 -220
- package/src/generation/grid/generation/GridTaskDensityMarkerDistribution.js +385 -385
- package/src/view/elements/image/SvgImageView.js +1 -1
- package/src/view/elements/windrose/WindRoseDiagram.js +369 -369
- package/src/view/minimap/gl/MinimapFogOfWar.js +3 -3
- package/src/view/util/DomSizeObserver.js +1 -1
- package/src/core/binary/clz32.d.ts +0 -6
- package/src/core/binary/clz32.d.ts.map +0 -1
- package/src/core/binary/clz32.js +0 -5
- package/src/core/binary/type/dataTypeFromTypedArray.d.ts +0 -8
- package/src/core/binary/type/dataTypeFromTypedArray.d.ts.map +0 -1
- package/src/core/binary/type/dataTypeFromTypedArray.js +0 -11
- package/src/core/collection/array/computeHashIntegerArray.d.ts +0 -1
- package/src/core/collection/array/computeHashIntegerArray.d.ts.map +0 -1
- package/src/core/collection/array/computeHashIntegerArray.js +0 -7
- package/src/core/collection/array/typed/typedArrayToDataType.d.ts +0 -6
- package/src/core/collection/array/typed/typedArrayToDataType.d.ts.map +0 -1
- package/src/core/collection/array/typed/typedArrayToDataType.js +0 -6
- package/src/core/geom/3d/mat4/MATRIX_4_IDENTITY.d.ts +0 -6
- package/src/core/geom/3d/mat4/MATRIX_4_IDENTITY.d.ts.map +0 -1
- package/src/core/geom/3d/mat4/MATRIX_4_IDENTITY.js +0 -7
- package/src/core/graph/eigen/eigen_values_find_spectral_gap.d.ts.map +0 -1
- package/src/core/graph/eigen/matrix_eigenvalues_in_place.d.ts +0 -8
- package/src/core/graph/eigen/matrix_eigenvalues_in_place.d.ts.map +0 -1
- package/src/core/graph/eigen/matrix_householder_in_place.d.ts.map +0 -1
- package/src/core/graph/eigen/matrix_qr_in_place.d.ts +0 -9
- package/src/core/graph/eigen/matrix_qr_in_place.d.ts.map +0 -1
- package/src/core/graph/eigen/matrix_top_eigenvector_power_iteration.d.ts.map +0 -1
- package/src/core/math/spline/cubicCurve.d.ts +0 -6
- package/src/core/math/spline/cubicCurve.d.ts.map +0 -1
- package/src/core/math/spline/cubicCurve.js +0 -6
- package/src/core/math/spline/spline_bezier2.d.ts +0 -6
- package/src/core/math/spline/spline_bezier2.d.ts.map +0 -1
- package/src/core/math/spline/spline_bezier2.js +0 -6
- package/src/core/math/spline/spline_bezier3.d.ts +0 -6
- package/src/core/math/spline/spline_bezier3.d.ts.map +0 -1
- package/src/core/math/spline/spline_bezier3.js +0 -6
- package/src/core/math/spline/spline_bezier3_bounds.d.ts +0 -6
- package/src/core/math/spline/spline_bezier3_bounds.d.ts.map +0 -1
- package/src/core/math/spline/spline_bezier3_bounds.js +0 -6
- package/src/core/math/spline/spline_hermite3.d.ts +0 -6
- package/src/core/math/spline/spline_hermite3.d.ts.map +0 -1
- package/src/core/math/spline/spline_hermite3.js +0 -6
- package/src/core/math/spline/spline_hermite3_bounds.d.ts +0 -6
- package/src/core/math/spline/spline_hermite3_bounds.d.ts.map +0 -1
- package/src/core/math/spline/spline_hermite3_bounds.js +0 -6
- package/src/core/math/spline/spline_hermite3_to_bezier.d.ts +0 -2
- package/src/core/math/spline/spline_hermite3_to_bezier.d.ts.map +0 -1
- package/src/core/math/spline/spline_hermite3_to_bezier.js +0 -6
- package/src/engine/intelligence/behavior/decorator/RepeatUntilFailureBehavior.d.ts +0 -37
- package/src/engine/intelligence/behavior/decorator/RepeatUntilFailureBehavior.d.ts.map +0 -1
- package/src/engine/intelligence/behavior/decorator/RepeatUntilFailureBehavior.js +0 -70
- /package/src/core/{graph → math/linalg}/eigen/eigen_values_find_spectral_gap.d.ts +0 -0
- /package/src/core/{graph → math/linalg}/eigen/eigen_values_find_spectral_gap.js +0 -0
- /package/src/core/{graph → math/linalg}/eigen/matrix_householder_in_place.d.ts +0 -0
|
@@ -16,8 +16,8 @@ import AABB2 from "../../../core/geom/2d/aabb/AABB2.js";
|
|
|
16
16
|
function enforceAspectRatio(viewportWidth, viewportHeight, aabb2) {
|
|
17
17
|
const viewportAspectRatio = viewportHeight / viewportWidth;
|
|
18
18
|
|
|
19
|
-
const aabbHeight = aabb2.
|
|
20
|
-
const aabbWidth = aabb2.
|
|
19
|
+
const aabbHeight = aabb2.height;
|
|
20
|
+
const aabbWidth = aabb2.width;
|
|
21
21
|
|
|
22
22
|
if (aabbWidth !== 0) {
|
|
23
23
|
const aabbAspectRatio = aabbHeight / aabbWidth;
|
|
@@ -109,7 +109,7 @@ export class MinimapFogOfWar extends MinimapWorldLayer {
|
|
|
109
109
|
//we need to square the bounds
|
|
110
110
|
enforceAspectRatio(this.viewportSize.x, this.viewportSize.y, bounds);
|
|
111
111
|
|
|
112
|
-
this.focusArea.set(bounds.x0, bounds.y0, bounds.
|
|
112
|
+
this.focusArea.set(bounds.x0, bounds.y0, bounds.width, bounds.height);
|
|
113
113
|
|
|
114
114
|
this.focusAreaNeedsUpdate = false;
|
|
115
115
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clz32.d.ts","sourceRoot":"","sources":["../../../../src/core/binary/clz32.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,0CAAgC"}
|
package/src/core/binary/clz32.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated use {@link compute_binary_data_type_from_typed_array}
|
|
3
|
-
* @param {TypedArray} arr
|
|
4
|
-
* @returns {BinaryDataType}
|
|
5
|
-
*/
|
|
6
|
-
export const dataTypeFromTypedArray: typeof compute_binary_data_type_from_typed_array;
|
|
7
|
-
import { compute_binary_data_type_from_typed_array } from "../../collection/array/typed/compute_binary_data_type_from_typed_array.js";
|
|
8
|
-
//# sourceMappingURL=dataTypeFromTypedArray.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataTypeFromTypedArray.d.ts","sourceRoot":"","sources":["../../../../../src/core/binary/type/dataTypeFromTypedArray.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,sFAA+E;0DARxE,2EAA2E"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
compute_binary_data_type_from_typed_array
|
|
3
|
-
} from "../../collection/array/typed/compute_binary_data_type_from_typed_array.js";
|
|
4
|
-
import { BinaryDataType } from "./BinaryDataType.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated use {@link compute_binary_data_type_from_typed_array}
|
|
8
|
-
* @param {TypedArray} arr
|
|
9
|
-
* @returns {BinaryDataType}
|
|
10
|
-
*/
|
|
11
|
-
export const dataTypeFromTypedArray = compute_binary_data_type_from_typed_array
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function computeHashIntegerArray(...value: number[]): number
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"computeHashIntegerArray.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/array/computeHashIntegerArray.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,gDAFsB,CAAC,MAAM,CAAC,OAAG,MAAM,CAEa"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated renamed to {@link compute_binary_data_type_from_typed_array}
|
|
3
|
-
*/
|
|
4
|
-
export const typedArrayToDataType: typeof compute_binary_data_type_from_typed_array;
|
|
5
|
-
import { compute_binary_data_type_from_typed_array } from "./compute_binary_data_type_from_typed_array.js";
|
|
6
|
-
//# sourceMappingURL=typedArrayToDataType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typedArrayToDataType.d.ts","sourceRoot":"","sources":["../../../../../../src/core/collection/array/typed/typedArrayToDataType.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,oFAA6E;0DALnB,gDAAgD"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { compute_binary_data_type_from_typed_array } from "./compute_binary_data_type_from_typed_array.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated renamed to {@link compute_binary_data_type_from_typed_array}
|
|
5
|
-
*/
|
|
6
|
-
export const typedArrayToDataType = compute_binary_data_type_from_typed_array
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MATRIX_4_IDENTITY.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/mat4/MATRIX_4_IDENTITY.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,oCAA6C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eigen_values_find_spectral_gap.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/eigen/eigen_values_find_spectral_gap.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,uDAHW,MAAM,EAAE,GACN,MAAM,CAoBlB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list of eigen values square matrix (allow non symmetric)
|
|
3
|
-
* NOTE: Modifies input matrix
|
|
4
|
-
* @param {SquareMatrix} mat
|
|
5
|
-
* @return {number[]}
|
|
6
|
-
*/
|
|
7
|
-
export function matrix_eigenvalues_in_place(mat: SquareMatrix): number[];
|
|
8
|
-
//# sourceMappingURL=matrix_eigenvalues_in_place.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matrix_eigenvalues_in_place.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/eigen/matrix_eigenvalues_in_place.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,gEAFY,MAAM,EAAE,CAYnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matrix_householder_in_place.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/eigen/matrix_householder_in_place.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,+CAHW,MAAM,EAAE,KACR,MAAM,QAoFhB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Perform QR factorization in-place
|
|
3
|
-
* Subfunction that analyzes eigenvalues by QR decomposition
|
|
4
|
-
* @see http://www-in.aut.ac.jp/~minemura/pub/Csimu/C/QRmethod.html
|
|
5
|
-
* @param {number[]} a Square matrix
|
|
6
|
-
* @param {number} n size of the matrix in single dimension
|
|
7
|
-
*/
|
|
8
|
-
export function matrix_qr_in_place(a: number[], n: number): void;
|
|
9
|
-
//# sourceMappingURL=matrix_qr_in_place.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matrix_qr_in_place.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/eigen/matrix_qr_in_place.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,sCAHW,MAAM,EAAE,KACR,MAAM,QA8GhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matrix_top_eigenvector_power_iteration.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/eigen/matrix_top_eigenvector_power_iteration.js"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;GAiBG;AACH,kFALW,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,mBAClC,MAAM,cACN,MAAM,GACJ,MAAM,CAoFlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cubicCurve.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/cubicCurve.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,+CAAyC;+BALV,qBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spline_bezier2.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline_bezier2.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,mDAA6C;+BALd,qBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spline_bezier3.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline_bezier3.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,mDAA6C;+BALd,qBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spline_bezier3_bounds.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline_bezier3_bounds.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,iEAA2D;sCALrB,4BAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spline_hermite3.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline_hermite3.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,qDAA+C;gCALf,sBAAsB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spline_hermite3_bounds.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline_hermite3_bounds.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,mEAA6D;uCALtB,6BAA6B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spline_hermite3_to_bezier.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline_hermite3_to_bezier.js"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated use {@link RepeatUntilSuccessBehavior} in conjunction with {@link InvertStatusBehavior} instead
|
|
3
|
-
* @extends {Behavior}
|
|
4
|
-
*
|
|
5
|
-
* @author Alex Goldring
|
|
6
|
-
* @copyright Company Named Limited (c) 2025
|
|
7
|
-
*/
|
|
8
|
-
export class RepeatUntilFailureBehavior extends Behavior<any> {
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @returns {RepeatUntilFailureBehavior}
|
|
12
|
-
* @param {Behavior} source
|
|
13
|
-
* @param {number} [limit]
|
|
14
|
-
*/
|
|
15
|
-
static from(source: Behavior<any>, limit?: number): RepeatUntilFailureBehavior;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param {Behavior} source
|
|
19
|
-
* @param {number} [count=Infinity]
|
|
20
|
-
*/
|
|
21
|
-
constructor(source: Behavior<any>, count?: number);
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
|
-
private __limit;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @private
|
|
32
|
-
*/
|
|
33
|
-
private __iterator;
|
|
34
|
-
tick(timeDelta: any): any;
|
|
35
|
-
}
|
|
36
|
-
import { Behavior } from "../Behavior.js";
|
|
37
|
-
//# sourceMappingURL=RepeatUntilFailureBehavior.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepeatUntilFailureBehavior.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/intelligence/behavior/decorator/RepeatUntilFailureBehavior.js"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH;IA0BI;;;;;OAKG;IACH,2CAFW,MAAM,GAFJ,0BAA0B,CAMtC;IAjCD;;;;OAIG;IACH,2CAFW,MAAM,EAoBhB;IAfG;;;;OAIG;IACH,gBAAoB;IAEpB;;;;OAIG;IACH,mBAAmB;IAevB,0BAqBC;CACJ;yBArEwB,gBAAgB"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Behavior } from "../Behavior.js";
|
|
2
|
-
import { BehaviorStatus } from "../BehaviorStatus.js";
|
|
3
|
-
import { AbstractDecoratorBehavior } from "./AbstractDecoratorBehavior.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated use {@link RepeatUntilSuccessBehavior} in conjunction with {@link InvertStatusBehavior} instead
|
|
7
|
-
* @extends {Behavior}
|
|
8
|
-
*
|
|
9
|
-
* @author Alex Goldring
|
|
10
|
-
* @copyright Company Named Limited (c) 2025
|
|
11
|
-
*/
|
|
12
|
-
export class RepeatUntilFailureBehavior extends AbstractDecoratorBehavior {
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @param {Behavior} source
|
|
16
|
-
* @param {number} [count=Infinity]
|
|
17
|
-
*/
|
|
18
|
-
constructor(source, count = Infinity) {
|
|
19
|
-
super();
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
this.__limit = count;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @private
|
|
32
|
-
*/
|
|
33
|
-
this.__iterator = 0;
|
|
34
|
-
|
|
35
|
-
this.setSource(source);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @returns {RepeatUntilFailureBehavior}
|
|
41
|
-
* @param {Behavior} source
|
|
42
|
-
* @param {number} [limit]
|
|
43
|
-
*/
|
|
44
|
-
static from(source, limit = Infinity) {
|
|
45
|
-
return new RepeatUntilFailureBehavior(source, limit);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
tick(timeDelta) {
|
|
49
|
-
const s = this.__source.tick(timeDelta);
|
|
50
|
-
|
|
51
|
-
if (s === BehaviorStatus.Failed) {
|
|
52
|
-
return BehaviorStatus.Succeeded;
|
|
53
|
-
|
|
54
|
-
} else if (s === BehaviorStatus.Running) {
|
|
55
|
-
return s;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
this.__iterator++;
|
|
59
|
-
|
|
60
|
-
if (this.__iterator >= this.__limit) {
|
|
61
|
-
|
|
62
|
-
return BehaviorStatus.Failed;
|
|
63
|
-
} else {
|
|
64
|
-
//re-initialize the source behavior
|
|
65
|
-
this.__source.initialize(this.context);
|
|
66
|
-
|
|
67
|
-
return BehaviorStatus.Running;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|