@woosh/meep-engine 2.110.8 → 2.110.10

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 (210) hide show
  1. package/build/bundle-worker-terrain.js +1 -1
  2. package/build/meep.cjs +116 -107
  3. package/build/meep.min.js +1 -1
  4. package/build/meep.module.js +116 -107
  5. package/editor/tools/v2/TransformControls.js +11 -6
  6. package/package.json +2 -1
  7. package/src/core/UUID.d.ts +3 -0
  8. package/src/core/UUID.d.ts.map +1 -1
  9. package/src/core/UUID.js +9 -7
  10. package/src/core/collection/array/arraySetDiff.d.ts.map +1 -1
  11. package/src/core/collection/array/arraySetDiff.js +0 -1
  12. package/src/core/collection/array/binarySearchHighIndex.d.ts.map +1 -1
  13. package/src/core/collection/array/binarySearchHighIndex.js +7 -1
  14. package/src/core/collection/array/computeHashArray.d.ts.map +1 -1
  15. package/src/core/collection/array/computeHashArray.js +3 -2
  16. package/src/core/collection/array/fastArrayEquals.d.ts +1 -0
  17. package/src/core/collection/array/fastArrayEquals.d.ts.map +1 -1
  18. package/src/core/collection/array/fastArrayEquals.js +1 -0
  19. package/src/core/collection/array/isArrayEqual.d.ts.map +1 -1
  20. package/src/core/collection/array/isArrayEqual.js +9 -12
  21. package/src/core/collection/array/isArrayEqual.spec.d.ts +2 -0
  22. package/src/core/collection/array/isArrayEqual.spec.d.ts.map +1 -0
  23. package/src/core/collection/array/isArrayEqual.spec.js +25 -0
  24. package/src/core/collection/array/typed/is_typed_array_equals.d.ts.map +1 -1
  25. package/src/core/collection/array/typed/is_typed_array_equals.js +1 -0
  26. package/src/core/function/makeSequenceLoop.d.ts.map +1 -0
  27. package/src/core/geom/2d/aabb/AABB2.d.ts.map +1 -1
  28. package/src/core/geom/2d/aabb/AABB2.js +27 -1
  29. package/src/core/geom/3d/shape/AbstractShape3D.d.ts.map +1 -1
  30. package/src/core/geom/3d/shape/AbstractShape3D.js +14 -0
  31. package/src/core/geom/3d/shape/PointShape3D.d.ts +9 -0
  32. package/src/core/geom/3d/shape/PointShape3D.d.ts.map +1 -0
  33. package/src/core/geom/3d/shape/PointShape3D.js +14 -0
  34. package/src/core/geom/3d/shape/TransformedShape3D.d.ts.map +1 -1
  35. package/src/core/geom/3d/shape/TransformedShape3D.js +26 -8
  36. package/src/core/geom/3d/shape/UnionShape3D.d.ts.map +1 -1
  37. package/src/core/geom/3d/shape/UnionShape3D.js +33 -4
  38. package/src/core/geom/3d/shape/UnitCubeShape3D.d.ts.map +1 -1
  39. package/src/core/geom/3d/shape/UnitCubeShape3D.js +13 -6
  40. package/src/core/geom/3d/shape/UnitSphereShape3D.d.ts.map +1 -1
  41. package/src/core/geom/3d/shape/UnitSphereShape3D.js +10 -0
  42. package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts +15 -8
  43. package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts.map +1 -1
  44. package/src/core/geom/3d/tetrahedra/TetrahedralMesh.js +33 -9
  45. package/src/core/geom/3d/tetrahedra/delaunay/compute_delaunay_tetrahedral_mesh.d.ts +1 -1
  46. package/src/core/geom/3d/tetrahedra/delaunay/compute_delaunay_tetrahedral_mesh.d.ts.map +1 -1
  47. package/src/core/geom/3d/tetrahedra/delaunay/compute_delaunay_tetrahedral_mesh.js +7 -7
  48. package/src/core/geom/3d/tetrahedra/delaunay/tetrahedral_mesh_build_from_grid.spec.d.ts +2 -0
  49. package/src/core/geom/3d/tetrahedra/delaunay/tetrahedral_mesh_build_from_grid.spec.d.ts.map +1 -0
  50. package/src/core/geom/3d/tetrahedra/delaunay/tetrahedral_mesh_build_from_grid.spec.js +61 -0
  51. package/src/core/geom/3d/tetrahedra/get_tetrahedron_volume.d.ts +9 -0
  52. package/src/core/geom/3d/tetrahedra/get_tetrahedron_volume.d.ts.map +1 -0
  53. package/src/core/geom/3d/tetrahedra/get_tetrahedron_volume.js +18 -0
  54. package/src/core/geom/3d/tetrahedra/is_tetrahedron_degenerate.d.ts +9 -0
  55. package/src/core/geom/3d/tetrahedra/is_tetrahedron_degenerate.d.ts.map +1 -0
  56. package/src/core/geom/3d/tetrahedra/is_tetrahedron_degenerate.js +21 -0
  57. package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.d.ts +2 -10
  58. package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.d.ts.map +1 -1
  59. package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.js +3 -40
  60. package/src/core/geom/3d/v3_compute_triangle_normal.js +1 -1
  61. package/src/core/geom/3d/v3_negate_array.d.ts +9 -0
  62. package/src/core/geom/3d/v3_negate_array.d.ts.map +1 -0
  63. package/src/core/geom/3d/v3_negate_array.js +16 -0
  64. package/src/core/geom/Quaternion.d.ts.map +1 -1
  65. package/src/core/geom/Quaternion.js +30 -77
  66. package/src/core/geom/Vector3.d.ts +4 -0
  67. package/src/core/geom/Vector3.js +4 -4
  68. package/src/core/geom/mat3/m3_cm_invert.d.ts +7 -0
  69. package/src/core/geom/mat3/m3_cm_invert.d.ts.map +1 -0
  70. package/src/core/geom/mat3/m3_cm_invert.js +45 -0
  71. package/src/core/geom/vec2/v2_matrix3_cm_multiply.d.ts +10 -0
  72. package/src/core/geom/vec2/v2_matrix3_cm_multiply.d.ts.map +1 -0
  73. package/src/core/geom/vec2/v2_matrix3_cm_multiply.js +20 -0
  74. package/src/core/geom/vec2/v2_matrix3_rm_multiply.d.ts +10 -0
  75. package/src/core/geom/vec2/v2_matrix3_rm_multiply.d.ts.map +1 -0
  76. package/src/core/geom/vec2/v2_matrix3_rm_multiply.js +21 -0
  77. package/src/core/geom/vec3/v3_cross_array.d.ts +11 -0
  78. package/src/core/geom/vec3/v3_cross_array.d.ts.map +1 -0
  79. package/src/core/geom/vec3/v3_cross_array.js +31 -0
  80. package/src/core/geom/vec3/v3_displace_in_direction.js +3 -2
  81. package/src/core/geom/vec3/v3_displace_in_direction_array.d.ts +12 -0
  82. package/src/core/geom/vec3/v3_displace_in_direction_array.d.ts.map +1 -0
  83. package/src/core/geom/vec3/v3_displace_in_direction_array.js +22 -0
  84. package/src/core/geom/vec3/v3_dot_array_array.d.ts.map +1 -1
  85. package/src/core/geom/vec3/v3_dot_array_array.js +4 -1
  86. package/src/core/geom/vec3/v3_normalize_array.d.ts +3 -3
  87. package/src/core/geom/vec3/v3_normalize_array.d.ts.map +1 -1
  88. package/src/core/geom/vec3/v3_normalize_array.js +3 -3
  89. package/src/core/math/copysign.d.ts +1 -1
  90. package/src/core/math/copysign.js +1 -1
  91. package/src/core/math/epsilonEquals.d.ts.map +1 -1
  92. package/src/core/math/epsilonEquals.js +3 -2
  93. package/src/core/math/linalg/README.md +1 -1
  94. package/src/core/math/random/randomGaussian.spec.js +1 -1
  95. package/src/core/math/spline/spline_hermite3.d.ts +1 -1
  96. package/src/core/math/spline/spline_hermite3.js +3 -2
  97. package/src/core/math/spline/spline_hermite3_to_bezier.d.ts +12 -0
  98. package/src/core/math/spline/spline_hermite3_to_bezier.d.ts.map +1 -0
  99. package/src/core/math/spline/spline_hermite3_to_bezier.js +24 -0
  100. package/src/core/process/delay.d.ts +6 -1
  101. package/src/core/process/delay.d.ts.map +1 -1
  102. package/src/core/process/delay.js +6 -1
  103. package/src/core/process/undo/Mark.d.ts +5 -5
  104. package/src/core/process/undo/Mark.d.ts.map +1 -1
  105. package/src/core/process/undo/Mark.js +6 -5
  106. package/src/core/process/worker/WorkerBuilder.d.ts +13 -2
  107. package/src/core/process/worker/WorkerBuilder.d.ts.map +1 -1
  108. package/src/core/process/worker/WorkerBuilder.js +8 -0
  109. package/src/core/process/worker/WorkerProxy.d.ts +16 -6
  110. package/src/core/process/worker/WorkerProxy.d.ts.map +1 -1
  111. package/src/core/process/worker/WorkerProxy.js +24 -5
  112. package/src/engine/EngineHarness.d.ts +7 -1
  113. package/src/engine/EngineHarness.d.ts.map +1 -1
  114. package/src/engine/EngineHarness.js +12 -1
  115. package/src/engine/animation/clip/AnimationTrack.d.ts.map +1 -1
  116. package/src/engine/animation/clip/AnimationTrack.js +4 -1
  117. package/src/engine/animation/clip/bind_property_writer.d.ts +2 -2
  118. package/src/engine/animation/clip/bind_property_writer.d.ts.map +1 -1
  119. package/src/engine/animation/clip/bind_property_writer.js +22 -13
  120. package/src/engine/animation/clip/curve_from_track_data.d.ts.map +1 -1
  121. package/src/engine/animation/clip/curve_from_track_data.js +9 -1
  122. package/src/engine/animation/clip/ecd_bind_animation_curve.d.ts.map +1 -1
  123. package/src/engine/animation/clip/ecd_bind_animation_curve.js +6 -5
  124. package/src/engine/animation/curve/AnimationCurve.d.ts +32 -0
  125. package/src/engine/animation/curve/AnimationCurve.d.ts.map +1 -1
  126. package/src/engine/animation/curve/AnimationCurve.js +94 -19
  127. package/src/engine/animation/curve/AnimationCurve.spec.js +67 -0
  128. package/src/engine/animation/curve/Keyframe.d.ts +24 -3
  129. package/src/engine/animation/curve/Keyframe.d.ts.map +1 -1
  130. package/src/engine/animation/curve/Keyframe.js +49 -3
  131. package/src/engine/animation/curve/Keyframe.spec.js +11 -0
  132. package/src/engine/animation/curve/animation_curve_compute_aabb.d.ts +7 -0
  133. package/src/engine/animation/curve/animation_curve_compute_aabb.d.ts.map +1 -0
  134. package/src/engine/animation/curve/{compute_curve_aabb.js → animation_curve_compute_aabb.js} +1 -1
  135. package/src/engine/animation/curve/animation_curve_optimize.d.ts +8 -0
  136. package/src/engine/animation/curve/animation_curve_optimize.d.ts.map +1 -0
  137. package/src/engine/animation/curve/animation_curve_optimize.js +89 -0
  138. package/src/engine/animation/curve/animation_curve_optimize.spec.d.ts +2 -0
  139. package/src/engine/animation/curve/animation_curve_optimize.spec.d.ts.map +1 -0
  140. package/src/engine/animation/curve/animation_curve_optimize.spec.js +50 -0
  141. package/src/engine/animation/curve/draw/build_curve_editor.d.ts.map +1 -1
  142. package/src/engine/animation/curve/draw/build_curve_editor.js +17 -11
  143. package/src/engine/animation/curve/evaluate_two_key_curve.d.ts +9 -0
  144. package/src/engine/animation/curve/evaluate_two_key_curve.d.ts.map +1 -0
  145. package/src/engine/animation/curve/evaluate_two_key_curve.js +23 -0
  146. package/src/engine/animation/curve/prototypeGLTF.js +14 -14
  147. package/src/engine/animation/curve/view/AnimationCurveView.d.ts +47 -0
  148. package/src/engine/animation/curve/view/AnimationCurveView.d.ts.map +1 -0
  149. package/src/engine/animation/curve/view/AnimationCurveView.js +343 -0
  150. package/src/engine/animation/curve/view/prototype.d.ts +2 -0
  151. package/src/engine/animation/curve/view/prototype.d.ts.map +1 -0
  152. package/src/engine/animation/curve/view/prototype.js +86 -0
  153. package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescription.d.ts +6 -1
  154. package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescription.d.ts.map +1 -1
  155. package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescription.js +11 -6
  156. package/src/engine/ecs/guid/{GUID.d.ts → UUID.d.ts} +27 -15
  157. package/src/engine/ecs/guid/UUID.d.ts.map +1 -0
  158. package/src/engine/ecs/guid/{GUID.js → UUID.js} +52 -17
  159. package/src/engine/ecs/guid/UUID.spec.d.ts +2 -0
  160. package/src/engine/ecs/guid/UUID.spec.d.ts.map +1 -0
  161. package/src/engine/ecs/guid/{GUID.spec.js → UUID.spec.js} +25 -12
  162. package/src/engine/ecs/guid/UUIDSerializationAdapter.d.ts +18 -0
  163. package/src/engine/ecs/guid/UUIDSerializationAdapter.d.ts.map +1 -0
  164. package/src/engine/ecs/guid/{GUIDSerializationAdapter.js → UUIDSerializationAdapter.js} +5 -5
  165. package/src/engine/ecs/guid/UUIDSerializationAdapter.spec.d.ts +2 -0
  166. package/src/engine/ecs/guid/UUIDSerializationAdapter.spec.d.ts.map +1 -0
  167. package/src/engine/ecs/guid/{GUIDSerializationAdapter.spec.js → UUIDSerializationAdapter.spec.js} +5 -5
  168. package/src/engine/ecs/ik/InverseKinematics.js +3 -3
  169. package/src/engine/ecs/ik/TwoBoneInverseKinematicsSolver.d.ts.map +1 -1
  170. package/src/engine/ecs/ik/TwoBoneInverseKinematicsSolver.js +1 -140
  171. package/src/engine/input/ecs/systems/InputControllerSystem.js +1 -1
  172. package/src/engine/intelligence/blackboard/BlackboardDynamicStorageAdapter.d.ts +1 -1
  173. package/src/engine/intelligence/blackboard/BlackboardDynamicStorageAdapter.js +4 -4
  174. package/src/engine/physics/gjk/expanding_polytope_algorithm.d.ts +13 -0
  175. package/src/engine/physics/gjk/expanding_polytope_algorithm.d.ts.map +1 -0
  176. package/src/engine/physics/gjk/expanding_polytope_algorithm.js +395 -0
  177. package/src/engine/physics/gjk/expanding_polytope_algorithm.spec.d.ts +2 -0
  178. package/src/engine/physics/gjk/expanding_polytope_algorithm.spec.d.ts.map +1 -0
  179. package/src/engine/physics/gjk/expanding_polytope_algorithm.spec.js +46 -0
  180. package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.d.ts +18 -0
  181. package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.d.ts.map +1 -0
  182. package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.js +277 -0
  183. package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.spec.d.ts +2 -0
  184. package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.spec.d.ts.map +1 -0
  185. package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.spec.js +43 -0
  186. package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.d.ts +12 -0
  187. package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.d.ts.map +1 -0
  188. package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.js +100 -0
  189. package/src/engine/physics/inverse_kinematics/fabrik/prototype.d.ts +2 -0
  190. package/src/engine/physics/inverse_kinematics/fabrik/prototype.d.ts.map +1 -0
  191. package/src/engine/physics/inverse_kinematics/fabrik/prototype.js +112 -0
  192. package/src/engine/physics/inverse_kinematics/two_joint_ik.d.ts +16 -0
  193. package/src/engine/physics/inverse_kinematics/two_joint_ik.d.ts.map +1 -0
  194. package/src/engine/physics/inverse_kinematics/two_joint_ik.js +127 -0
  195. package/src/view/elements/DropDownSelectionView.js +2 -2
  196. package/src/view/elements/tiles2d/Tile.d.ts +1 -1
  197. package/src/view/elements/tiles2d/Tile.d.ts.map +1 -1
  198. package/src/view/elements/tiles2d/Tile.js +3 -3
  199. package/src/core/math/makeSequenceLoop.d.ts.map +0 -1
  200. package/src/engine/animation/curve/compute_curve_aabb.d.ts +0 -7
  201. package/src/engine/animation/curve/compute_curve_aabb.d.ts.map +0 -1
  202. package/src/engine/ecs/guid/GUID.d.ts.map +0 -1
  203. package/src/engine/ecs/guid/GUID.spec.d.ts +0 -2
  204. package/src/engine/ecs/guid/GUID.spec.d.ts.map +0 -1
  205. package/src/engine/ecs/guid/GUIDSerializationAdapter.d.ts +0 -18
  206. package/src/engine/ecs/guid/GUIDSerializationAdapter.d.ts.map +0 -1
  207. package/src/engine/ecs/guid/GUIDSerializationAdapter.spec.d.ts +0 -2
  208. package/src/engine/ecs/guid/GUIDSerializationAdapter.spec.d.ts.map +0 -1
  209. /package/src/core/{math → function}/makeSequenceLoop.d.ts +0 -0
  210. /package/src/core/{math → function}/makeSequenceLoop.js +0 -0
@@ -0,0 +1,127 @@
1
+ import Quaternion from "../../../core/geom/Quaternion.js";
2
+ import { v3_angle_between } from "../../../core/geom/vec3/v3_angle_between.js";
3
+ import Vector3 from "../../../core/geom/Vector3.js";
4
+ import { clamp } from "../../../core/math/clamp.js";
5
+
6
+ /**
7
+ * Compute interior angle between three points
8
+ * @param {Vector3} a
9
+ * @param {Vector3} b
10
+ * @param {Vector3} c
11
+ * @returns {number} angle in radians
12
+ */
13
+ function computeInteriorAngle(a, b, c) {
14
+ //compute AB delta
15
+ const d_ab_x = a.x - b.x;
16
+ const d_ab_y = a.y - b.y;
17
+ const d_ab_z = a.z - b.z;
18
+
19
+ //compute CB delta
20
+ const d_cb_x = c.x - b.x;
21
+ const d_cb_y = c.y - b.y;
22
+ const d_cb_z = c.z - b.z;
23
+
24
+ return v3_angle_between(
25
+ d_ab_x, d_ab_y, d_ab_z,
26
+ d_cb_x, d_cb_y, d_cb_z,
27
+ )
28
+ }
29
+
30
+ const d = new Vector3();
31
+
32
+ const delta_ca = new Vector3();
33
+ const delta_ta = new Vector3();
34
+
35
+ const axis0 = new Vector3();
36
+ const axis1 = new Vector3();
37
+
38
+ const inv_a_gr = new Quaternion();
39
+ const inv_b_gr = new Quaternion();
40
+
41
+ const r0 = new Quaternion();
42
+ const r1 = new Quaternion();
43
+ const r2 = new Quaternion();
44
+
45
+ const axis0_la = new Vector3();
46
+ const axis0_lb = new Vector3();
47
+ const axis1_la = new Vector3();
48
+
49
+ /**
50
+ * Based on http://theorangeduck.com/page/simple-two-joint
51
+ * @param {Vector3} a Root bone position
52
+ * @param {Vector3} b Second bone position
53
+ * @param {Vector3} c Effector position
54
+ * @param {Vector3} t Target position
55
+ * @param {number} eps EPSILON value, small value for rounding error compensation
56
+ * @param {Quaternion} a_gr Global rotation of root bone
57
+ * @param {Quaternion} b_gr Global rotation of second bone
58
+ * @param {Quaternion} a_lr local rotation for root bone, this will be updated as a result
59
+ * @param {Quaternion} b_lr local rotation for second bone, this will be updated as a result
60
+ */
61
+ export function two_joint_ik(
62
+ a, b, c, t, eps,
63
+ a_gr, b_gr,
64
+ a_lr, b_lr
65
+ ) {
66
+
67
+ //Compute lengths of bones
68
+ const lab = b.distanceTo(a);
69
+ const lcb = b.distanceTo(c);
70
+
71
+ const maximum_extension = lab + lcb - eps;
72
+
73
+ //clamp length to the target to maximum extension of the joint
74
+ const lat = clamp(t.distanceTo(a), eps, maximum_extension);
75
+
76
+ //compute current interior angles
77
+ const ac_ab_0 = computeInteriorAngle(c, a, b);
78
+ const ba_bc_0 = computeInteriorAngle(a, b, c);
79
+ const ac_at_0 = computeInteriorAngle(c, a, t);
80
+
81
+ // Using the cosine rule to compute desired interior angles
82
+ const length_at_sqr = lat * lat;
83
+ const length_cb_sqr = lcb * lcb;
84
+ const length_ab_sqr = lab * lab;
85
+
86
+ const ac_ab_1 = Math.acos(clamp((length_cb_sqr - length_ab_sqr - length_at_sqr) / (-2 * lab * lat), -1, 1));
87
+ const ba_bc_1 = Math.acos(clamp((length_at_sqr - length_ab_sqr - length_cb_sqr) / (-2 * lab * lcb), -1, 1));
88
+
89
+ d.copy(Vector3.back);
90
+ d.applyQuaternion(b_gr);
91
+
92
+ delta_ca.subVectors(c, a);
93
+ delta_ta.subVectors(t, a);
94
+
95
+ axis0.crossVectors(delta_ca, d);
96
+ axis0.normalize();
97
+
98
+ axis1.crossVectors(delta_ca, delta_ta);
99
+ axis1.normalize();
100
+
101
+ inv_a_gr.copyInverse(a_gr);
102
+ inv_b_gr.copyInverse(b_gr);
103
+
104
+ axis0_la.copy(axis0);
105
+ axis0_la.applyQuaternion(inv_a_gr);
106
+
107
+ const angle0 = ac_ab_1 - ac_ab_0;
108
+
109
+ r0.fromAxisAngle(axis0_la, angle0);
110
+
111
+ const angle1 = ba_bc_1 - ba_bc_0;
112
+
113
+ axis0_lb.copy(axis0);
114
+ axis0_lb.applyQuaternion(inv_b_gr);
115
+
116
+ r1.fromAxisAngle(axis0_lb, angle1);
117
+
118
+ axis1_la.copy(axis1);
119
+ axis1_la.applyQuaternion(inv_a_gr);
120
+
121
+ r2.fromAxisAngle(axis1_la, ac_at_0);
122
+
123
+ r0.multiply(r2);
124
+
125
+ a_lr.multiply(r0);
126
+ b_lr.multiply(r1);
127
+ }
@@ -1,5 +1,5 @@
1
1
  import { passThrough } from "../../core/function/passThrough.js";
2
- import UUID from "../../core/UUID.js";
2
+ import { UUID } from "../../engine/ecs/guid/UUID.js";
3
3
  import View from '../View.js';
4
4
 
5
5
  /**
@@ -56,7 +56,7 @@ class DropDownSelectionView extends View {
56
56
 
57
57
  const text = this.transfrom(el);
58
58
 
59
- const id = UUID.generate();
59
+ const id = UUID.string();
60
60
 
61
61
  this.mapping.set(el, id);
62
62
 
@@ -9,8 +9,8 @@ declare class TileView extends View<HTMLElement> {
9
9
  * @param {Vector2} [size]
10
10
  */
11
11
  constructor({ model, spacing, size }: Rectangle);
12
- model: Rectangle;
13
12
  uuid: string;
13
+ model: Rectangle;
14
14
  __cellSize: Rectangle;
15
15
  __spacing: Rectangle;
16
16
  el: Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/view/elements/tiles2d/Tile.js"],"names":[],"mappings":";AAMA;IA4DI,kFAEC;IAED,0EAMC;IArED;;;;;OAKG;IACH,iDAmBC;IAhBG,iBAAkB;IAClB,aAA2B;IAE3B,sBAAsB;IACtB,qBAAwB;IAExB,YAA6D;IAYjE,uBAGC;IAED,mBAGC;IAED,yBAMC;IAED,qBAOC;IAED,eAGC;CAaJ;iBAzEgB,eAAe"}
1
+ {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/view/elements/tiles2d/Tile.js"],"names":[],"mappings":";AAKA;IA6DI,kFAEC;IAED,0EAMC;IApED;;;;;OAKG;IACH,iDAkBC;IA1BD,aAAqB;IAWjB,iBAAkB;IAElB,sBAAsB;IACtB,qBAAwB;IAExB,YAA6D;IAYjE,uBAGC;IAED,mBAGC;IAED,yBAMC;IAED,qBAOC;IAED,eAGC;CAaJ;iBA1EgB,eAAe"}
@@ -1,10 +1,11 @@
1
1
  import Vector2 from "../../../core/geom/Vector2.js";
2
-
3
- import UUID from "../../../core/UUID.js";
2
+ import { UUID } from "../../../engine/ecs/guid/UUID.js";
4
3
  import dom from "../../DOM.js";
5
4
  import View from "../../View.js";
6
5
 
7
6
  class TileView extends View {
7
+ uuid = UUID.string();
8
+
8
9
  /**
9
10
  *
10
11
  * @param {Rectangle} model
@@ -15,7 +16,6 @@ class TileView extends View {
15
16
  super();
16
17
 
17
18
  this.model = model;
18
- this.uuid = UUID.generate();
19
19
 
20
20
  this.__cellSize = size;
21
21
  this.__spacing = spacing;
@@ -1 +0,0 @@
1
- {"version":3,"file":"makeSequenceLoop.d.ts","sourceRoot":"","sources":["../../../../src/core/math/makeSequenceLoop.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,4DAcC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Compute bounding box for a given curve. X-axis is time, Y-axis is value.
3
- * @param {AABB2} out
4
- * @param {AnimationCurve} curve
5
- */
6
- export function compute_curve_aabb(out: AABB2, curve: AnimationCurve): void;
7
- //# sourceMappingURL=compute_curve_aabb.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compute_curve_aabb.d.ts","sourceRoot":"","sources":["../../../../../src/engine/animation/curve/compute_curve_aabb.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,4EAsCC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GUID.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/guid/GUID.js"],"names":[],"mappings":"AAuBA;;;GAGG;AACH;IAiGI;;;OAGG;IACH,aAFY,IAAI,CAQf;IA0CD;;;;OAIG;IACH,qBAHW,MAAM,GACL,IAAI,CAQf;IA7JD;;;OAGG;IACH,0BAKC;IAED;;;OAGG;IACH,uBAEC;IAED;;;OAGG;IACH,WAqEC;IAcD;;;;OAIG;IACH,cAFW,MAAM,QAmChB;IAeD;;;OAGG;IACH,YAFa,MAAM,CA2BlB;IAED;;;OAGG;IACH,YAFW,IAAI,QAId;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,OAAO,CAanB;IAED;;OAEG;IACH,QAFa,MAAM,CAWlB;IAED,iBAEC;IAED,uBAEC;IASL;;;OAGG;IACH,iBAFU,OAAO,CAEI;;CAZpB;;kBAIS,MAAM"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=GUID.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GUID.spec.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/guid/GUID.spec.js"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- export class GUIDSerializationAdapter extends BinaryClassSerializationAdapter {
2
- klass: typeof GUID;
3
- /**
4
- *
5
- * @param buffer
6
- * @param {GUID} value
7
- */
8
- serialize(buffer: any, value: GUID): void;
9
- /**
10
- *
11
- * @param buffer
12
- * @param {GUID} value
13
- */
14
- deserialize(buffer: any, value: GUID): void;
15
- }
16
- import { BinaryClassSerializationAdapter } from "../storage/binary/BinaryClassSerializationAdapter.js";
17
- import { GUID } from "./GUID.js";
18
- //# sourceMappingURL=GUIDSerializationAdapter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GUIDSerializationAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/guid/GUIDSerializationAdapter.js"],"names":[],"mappings":"AAGA;IACI,mBAAY;IAGZ;;;;OAIG;IACH,8BAFW,IAAI,QAId;IAED;;;;OAIG;IACH,gCAFW,IAAI,QAId;CACJ;gDAxB+C,sDAAsD;qBACjF,WAAW"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=GUIDSerializationAdapter.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GUIDSerializationAdapter.spec.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/guid/GUIDSerializationAdapter.spec.js"],"names":[],"mappings":""}
File without changes