@woosh/meep-engine 2.134.4 → 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.
Files changed (156) hide show
  1. package/build/bundle-worker-image-decoder.js +1 -1
  2. package/build/bundle-worker-terrain.js +1 -1
  3. package/editor/tools/v2/TransformControlsGizmo.js +1 -1
  4. package/editor/view/node-graph/NodeGraphEditorView.js +2 -2
  5. package/package.json +1 -1
  6. package/src/core/assert.d.ts +0 -2
  7. package/src/core/assert.d.ts.map +1 -1
  8. package/src/core/assert.js +0 -6
  9. package/src/core/color/Color.d.ts +0 -5
  10. package/src/core/color/Color.d.ts.map +1 -1
  11. package/src/core/color/Color.js +1 -7
  12. package/src/core/geom/2d/hash-grid/SpatialHashGrid.js +386 -386
  13. package/src/core/geom/2d/line/line_segment_compute_line_segment_intersection_2d.js +1 -1
  14. package/src/core/geom/2d/quad-tree-binary/QuadTree.js +714 -714
  15. package/src/core/geom/3d/triangle/computeTriangleRayIntersection.js +160 -160
  16. package/src/core/geom/3d/triangle/computeTriangleRayIntersectionBarycentric.js +96 -96
  17. package/src/core/geom/packing/max-rect/MaxRectanglesPacker.js +1 -1
  18. package/src/core/geom/packing/max-rect/findBestContainer.js +4 -4
  19. package/src/core/geom/packing/max-rect/packOneBox.js +2 -2
  20. package/src/core/geom/vec3/v3_rigid_align_paired_unit_vectors.d.ts +23 -0
  21. package/src/core/geom/vec3/v3_rigid_align_paired_unit_vectors.d.ts.map +1 -0
  22. package/src/core/geom/vec3/v3_rigid_align_paired_unit_vectors.js +96 -0
  23. package/src/core/graph/layout/box/BoxLayouter.js +7 -7
  24. package/src/core/graph/layout/box/position_box_next_to_box.js +6 -6
  25. package/src/core/math/computeWholeDivisorLow.js +33 -33
  26. package/src/core/math/linalg/eigen/eigen_values_find_spectral_gap.d.ts.map +1 -0
  27. package/src/core/math/linalg/eigen/matrix_eigenvalues_in_place.d.ts +10 -0
  28. package/src/core/math/linalg/eigen/matrix_eigenvalues_in_place.d.ts.map +1 -0
  29. package/src/core/{graph → math/linalg}/eigen/matrix_eigenvalues_in_place.js +8 -7
  30. package/src/core/math/linalg/eigen/matrix_householder_in_place.d.ts.map +1 -0
  31. package/src/core/{graph → math/linalg}/eigen/matrix_householder_in_place.js +11 -5
  32. package/src/core/math/linalg/eigen/matrix_qr_in_place.d.ts +15 -0
  33. package/src/core/math/linalg/eigen/matrix_qr_in_place.d.ts.map +1 -0
  34. package/src/core/{graph → math/linalg}/eigen/matrix_qr_in_place.js +8 -2
  35. package/src/core/math/linalg/eigen/matrix_top_eigenvector_power_iteration.d.ts +17 -0
  36. package/src/core/math/linalg/eigen/matrix_top_eigenvector_power_iteration.d.ts.map +1 -0
  37. package/src/core/math/linalg/eigen/matrix_top_eigenvector_power_iteration.js +107 -0
  38. package/src/core/math/linalg/polynomial_complex_roots_aberth_ehrlich.d.ts +19 -0
  39. package/src/core/math/linalg/polynomial_complex_roots_aberth_ehrlich.d.ts.map +1 -0
  40. package/src/core/math/linalg/polynomial_complex_roots_aberth_ehrlich.js +161 -0
  41. package/src/core/math/linalg/polynomial_real_roots_in_interval.d.ts +15 -0
  42. package/src/core/math/linalg/polynomial_real_roots_in_interval.d.ts.map +1 -0
  43. package/src/core/math/linalg/polynomial_real_roots_in_interval.js +200 -0
  44. package/src/core/math/solveCubic.d.ts +15 -0
  45. package/src/core/math/solveCubic.d.ts.map +1 -0
  46. package/src/core/math/solveCubic.js +82 -0
  47. package/src/core/math/spline/spline3_hermite_bounds_t.d.ts +23 -0
  48. package/src/core/math/spline/spline3_hermite_bounds_t.d.ts.map +1 -0
  49. package/src/core/math/spline/spline3_hermite_bounds_t.js +109 -0
  50. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite.d.ts +25 -0
  51. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite.d.ts.map +1 -0
  52. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite.js +44 -0
  53. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_1d.d.ts +16 -0
  54. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_1d.d.ts.map +1 -0
  55. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_1d.js +120 -0
  56. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.d.ts +11 -0
  57. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.d.ts.map +1 -0
  58. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.js +451 -0
  59. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_nd.d.ts +12 -0
  60. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_nd.d.ts.map +1 -0
  61. package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_nd.js +339 -0
  62. package/src/core/math/spline/spline3_hermite_intersects_spline3_hermite.d.ts +15 -0
  63. package/src/core/math/spline/spline3_hermite_intersects_spline3_hermite.d.ts.map +1 -0
  64. package/src/core/math/spline/spline3_hermite_intersects_spline3_hermite.js +21 -0
  65. package/src/core/math/spline/spline3_hermite_to_monomial.d.ts +24 -0
  66. package/src/core/math/spline/spline3_hermite_to_monomial.d.ts.map +1 -0
  67. package/src/core/math/spline/spline3_hermite_to_monomial.js +37 -0
  68. package/src/core/math/spline/v3_computeCatmullRomSplineUniformDistance.js +1 -1
  69. package/src/core/model/node-graph/visual/NodeGraphVisualData.js +1 -1
  70. package/src/core/model/reactive/model/util/createRandomReactiveExpression.js +185 -185
  71. package/src/core/process/delay.js +16 -16
  72. package/src/engine/animation/async/TimeSeries.js +300 -300
  73. package/src/engine/animation/curve/AnimationCurve.d.ts +3 -2
  74. package/src/engine/animation/curve/AnimationCurve.d.ts.map +1 -1
  75. package/src/engine/animation/curve/AnimationCurve.js +3 -2
  76. package/src/engine/animation/curve/draw/position_canvas_to_curve.js +2 -2
  77. package/src/engine/animation/curve/draw/position_curve_to_canvas.js +2 -2
  78. package/src/engine/ecs/fow/shader/FogOfWarRenderer.js +145 -145
  79. package/src/engine/ecs/gui/position/ViewportPositionSystem.js +2 -2
  80. package/src/engine/ecs/parent/entity_node_compute_bounding_box.js +1 -1
  81. package/src/engine/ecs/transform/Transform.d.ts +0 -10
  82. package/src/engine/ecs/transform/Transform.d.ts.map +1 -1
  83. package/src/engine/ecs/transform/Transform.js +0 -12
  84. package/src/engine/graphics/composit/CompositLayer.js +254 -254
  85. package/src/engine/graphics/ecs/mesh-v2/sg_hierarchy_compute_bounding_box_via_parent_entity.js +1 -1
  86. package/src/engine/graphics/ecs/path/tube/build/build_geometry_linear.js +2 -2
  87. package/src/engine/graphics/material/optimization/MaterialOptimizationContext.js +3 -3
  88. package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.js +201 -201
  89. package/src/engine/graphics/particles/particular/engine/utils/volume/prototypeParticleVolume.js +1 -1
  90. package/src/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameterSet.js +2 -2
  91. package/src/engine/graphics/render/forward_plus/LightManager.js +1226 -1226
  92. package/src/engine/graphics/render/forward_plus/model/PointLight.js +1 -1
  93. package/src/engine/graphics/sh3/lpv/lpv_obtain_storage_cached_volume.js +1 -1
  94. package/src/engine/graphics/sh3/path_tracer/texture/sample_material.js +2 -2
  95. package/src/engine/graphics/texture/atlas/TextureAtlasDebugger.js +1 -1
  96. package/src/engine/graphics/texture/sampler/HarmonicDiffusionGrid.js +145 -145
  97. package/src/engine/graphics/texture/sampler/serialization/TextureBinaryBufferSerializer.js +2 -2
  98. package/src/engine/intelligence/behavior/ecs/BehaviorComponent.d.ts +2 -6
  99. package/src/engine/intelligence/behavior/ecs/BehaviorComponent.d.ts.map +1 -1
  100. package/src/engine/intelligence/behavior/ecs/BehaviorComponent.js +0 -10
  101. package/src/engine/intelligence/mcts/MonteCarlo.js +275 -275
  102. package/src/engine/navigation/ecs/path_following/PathFollower.js +222 -222
  103. package/src/generation/grid/GridData.js +220 -220
  104. package/src/generation/grid/generation/GridTaskDensityMarkerDistribution.js +385 -385
  105. package/src/view/elements/image/SvgImageView.js +1 -1
  106. package/src/view/elements/windrose/WindRoseDiagram.js +369 -369
  107. package/src/view/minimap/gl/MinimapFogOfWar.js +3 -3
  108. package/src/view/util/DomSizeObserver.js +1 -1
  109. package/src/core/binary/clz32.d.ts +0 -6
  110. package/src/core/binary/clz32.d.ts.map +0 -1
  111. package/src/core/binary/clz32.js +0 -5
  112. package/src/core/binary/type/dataTypeFromTypedArray.d.ts +0 -8
  113. package/src/core/binary/type/dataTypeFromTypedArray.d.ts.map +0 -1
  114. package/src/core/binary/type/dataTypeFromTypedArray.js +0 -11
  115. package/src/core/collection/array/computeHashIntegerArray.d.ts +0 -1
  116. package/src/core/collection/array/computeHashIntegerArray.d.ts.map +0 -1
  117. package/src/core/collection/array/computeHashIntegerArray.js +0 -7
  118. package/src/core/collection/array/typed/typedArrayToDataType.d.ts +0 -6
  119. package/src/core/collection/array/typed/typedArrayToDataType.d.ts.map +0 -1
  120. package/src/core/collection/array/typed/typedArrayToDataType.js +0 -6
  121. package/src/core/geom/3d/mat4/MATRIX_4_IDENTITY.d.ts +0 -6
  122. package/src/core/geom/3d/mat4/MATRIX_4_IDENTITY.d.ts.map +0 -1
  123. package/src/core/geom/3d/mat4/MATRIX_4_IDENTITY.js +0 -7
  124. package/src/core/graph/eigen/eigen_values_find_spectral_gap.d.ts.map +0 -1
  125. package/src/core/graph/eigen/matrix_eigenvalues_in_place.d.ts +0 -8
  126. package/src/core/graph/eigen/matrix_eigenvalues_in_place.d.ts.map +0 -1
  127. package/src/core/graph/eigen/matrix_householder_in_place.d.ts.map +0 -1
  128. package/src/core/graph/eigen/matrix_qr_in_place.d.ts +0 -9
  129. package/src/core/graph/eigen/matrix_qr_in_place.d.ts.map +0 -1
  130. package/src/core/math/spline/cubicCurve.d.ts +0 -6
  131. package/src/core/math/spline/cubicCurve.d.ts.map +0 -1
  132. package/src/core/math/spline/cubicCurve.js +0 -6
  133. package/src/core/math/spline/spline_bezier2.d.ts +0 -6
  134. package/src/core/math/spline/spline_bezier2.d.ts.map +0 -1
  135. package/src/core/math/spline/spline_bezier2.js +0 -6
  136. package/src/core/math/spline/spline_bezier3.d.ts +0 -6
  137. package/src/core/math/spline/spline_bezier3.d.ts.map +0 -1
  138. package/src/core/math/spline/spline_bezier3.js +0 -6
  139. package/src/core/math/spline/spline_bezier3_bounds.d.ts +0 -6
  140. package/src/core/math/spline/spline_bezier3_bounds.d.ts.map +0 -1
  141. package/src/core/math/spline/spline_bezier3_bounds.js +0 -6
  142. package/src/core/math/spline/spline_hermite3.d.ts +0 -6
  143. package/src/core/math/spline/spline_hermite3.d.ts.map +0 -1
  144. package/src/core/math/spline/spline_hermite3.js +0 -6
  145. package/src/core/math/spline/spline_hermite3_bounds.d.ts +0 -6
  146. package/src/core/math/spline/spline_hermite3_bounds.d.ts.map +0 -1
  147. package/src/core/math/spline/spline_hermite3_bounds.js +0 -6
  148. package/src/core/math/spline/spline_hermite3_to_bezier.d.ts +0 -2
  149. package/src/core/math/spline/spline_hermite3_to_bezier.d.ts.map +0 -1
  150. package/src/core/math/spline/spline_hermite3_to_bezier.js +0 -6
  151. package/src/engine/intelligence/behavior/decorator/RepeatUntilFailureBehavior.d.ts +0 -37
  152. package/src/engine/intelligence/behavior/decorator/RepeatUntilFailureBehavior.d.ts.map +0 -1
  153. package/src/engine/intelligence/behavior/decorator/RepeatUntilFailureBehavior.js +0 -70
  154. /package/src/core/{graph → math/linalg}/eigen/eigen_values_find_spectral_gap.d.ts +0 -0
  155. /package/src/core/{graph → math/linalg}/eigen/eigen_values_find_spectral_gap.js +0 -0
  156. /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.getHeight();
20
- const aabbWidth = aabb2.getWidth();
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.getWidth(), bounds.getHeight());
112
+ this.focusArea.set(bounds.x0, bounds.y0, bounds.width, bounds.height);
113
113
 
114
114
  this.focusAreaNeedsUpdate = false;
115
115
  }
@@ -121,7 +121,7 @@ export class DomSizeObserver {
121
121
  const rectangle = this.dimensions;
122
122
 
123
123
  rectangle.position.set(aabb.x0, aabb.y0);
124
- rectangle.size.set(aabb.getWidth(), aabb.getHeight());
124
+ rectangle.size.set(aabb.width, aabb.height);
125
125
  }
126
126
 
127
127
  start() {
@@ -1,6 +0,0 @@
1
- /**
2
- * Count leading zeroes in a 32bit integer
3
- * @deprecated use Math.clz32 directly
4
- */
5
- export const clz32: (x: number) => number;
6
- //# sourceMappingURL=clz32.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clz32.d.ts","sourceRoot":"","sources":["../../../../src/core/binary/clz32.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,0CAAgC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Count leading zeroes in a 32bit integer
3
- * @deprecated use Math.clz32 directly
4
- */
5
- export const clz32 = Math.clz32;
@@ -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,7 +0,0 @@
1
- import { combine_hash } from "./combine_hash.js";
2
-
3
- /**
4
- * @deprecated use {@link combine_hash} instead
5
- * @type {function(...[number]): number}
6
- */
7
- export const computeHashIntegerArray = combine_hash;
@@ -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,6 +0,0 @@
1
- /**
2
- * Alias
3
- * @deprecated use {@link M4_IDENTITY} directly instead
4
- */
5
- export const MATRIX_4_IDENTITY: any;
6
- //# sourceMappingURL=MATRIX_4_IDENTITY.d.ts.map
@@ -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,7 +0,0 @@
1
- import { M4_IDENTITY } from "./M4_IDENTITY.js";
2
-
3
- /**
4
- * Alias
5
- * @deprecated use {@link M4_IDENTITY} directly instead
6
- */
7
- export const MATRIX_4_IDENTITY = M4_IDENTITY;
@@ -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,6 +0,0 @@
1
- /**
2
- * @deprecated use {@link spline3_bezier} directly
3
- */
4
- export const cubicCurve: typeof spline3_bezier;
5
- import { spline3_bezier } from "./spline3_bezier.js";
6
- //# sourceMappingURL=cubicCurve.d.ts.map
@@ -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,6 +0,0 @@
1
- import { spline3_bezier } from "./spline3_bezier.js";
2
-
3
- /**
4
- * @deprecated use {@link spline3_bezier} directly
5
- */
6
- export const cubicCurve = spline3_bezier;
@@ -1,6 +0,0 @@
1
- /**
2
- * @deprecated use {@link spline2_bezier}
3
- */
4
- export const spline_bezier2: typeof spline2_bezier;
5
- import { spline2_bezier } from "./spline2_bezier.js";
6
- //# sourceMappingURL=spline_bezier2.d.ts.map
@@ -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,6 +0,0 @@
1
- import { spline2_bezier } from "./spline2_bezier.js";
2
-
3
- /**
4
- * @deprecated use {@link spline2_bezier}
5
- */
6
- export const spline_bezier2 = spline2_bezier;
@@ -1,6 +0,0 @@
1
- /**
2
- * @deprecated use {@link spline3_bezier}
3
- */
4
- export const spline_bezier3: typeof spline3_bezier;
5
- import { spline3_bezier } from "./spline3_bezier.js";
6
- //# sourceMappingURL=spline_bezier3.d.ts.map
@@ -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,6 +0,0 @@
1
- import { spline3_bezier } from "./spline3_bezier.js";
2
-
3
- /**
4
- * @deprecated use {@link spline3_bezier}
5
- */
6
- export const spline_bezier3 = spline3_bezier;
@@ -1,6 +0,0 @@
1
- /**
2
- * @deprecated use {@link spline3_bezier_bounds}
3
- */
4
- export const spline_bezier3_bounds: typeof spline3_bezier_bounds;
5
- import { spline3_bezier_bounds } from "./spline3_bezier_bounds.js";
6
- //# sourceMappingURL=spline_bezier3_bounds.d.ts.map
@@ -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,6 +0,0 @@
1
- import { spline3_bezier_bounds } from "./spline3_bezier_bounds.js";
2
-
3
- /**
4
- * @deprecated use {@link spline3_bezier_bounds}
5
- */
6
- export const spline_bezier3_bounds = spline3_bezier_bounds;
@@ -1,6 +0,0 @@
1
- /**
2
- * @deprecated use {@link spline3_hermite}
3
- */
4
- export const spline_hermite3: typeof spline3_hermite;
5
- import { spline3_hermite } from "./spline3_hermite.js";
6
- //# sourceMappingURL=spline_hermite3.d.ts.map
@@ -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,6 +0,0 @@
1
- import { spline3_hermite } from "./spline3_hermite.js";
2
-
3
- /**
4
- * @deprecated use {@link spline3_hermite}
5
- */
6
- export const spline_hermite3 = spline3_hermite;
@@ -1,6 +0,0 @@
1
- /**
2
- * @deprecated use {@link spline3_hermite_bounds}
3
- */
4
- export const spline_hermite3_bounds: typeof spline3_hermite_bounds;
5
- import { spline3_hermite_bounds } from "./spline3_hermite_bounds.js";
6
- //# sourceMappingURL=spline_hermite3_bounds.d.ts.map
@@ -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,6 +0,0 @@
1
- import { spline3_hermite_bounds } from "./spline3_hermite_bounds.js";
2
-
3
- /**
4
- * @deprecated use {@link spline3_hermite_bounds}
5
- */
6
- export const spline_hermite3_bounds = spline3_hermite_bounds;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=spline_hermite3_to_bezier.d.ts.map
@@ -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,6 +0,0 @@
1
- import { spline3_hermite_to_bezier } from "./spline3_hermite_to_bezier.js";
2
-
3
- /**
4
- * @deprecated use {@link spline3_hermite_to_bezier}
5
- */
6
- const spline_hermite3_to_bezier = spline3_hermite_to_bezier;
@@ -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
- }