@woosh/meep-engine 2.110.7 → 2.110.9
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-terrain.js +1 -1
- package/build/meep.cjs +115 -119
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +115 -119
- package/editor/tools/v2/TransformControls.js +11 -6
- package/package.json +2 -1
- package/src/core/UUID.d.ts +3 -0
- package/src/core/UUID.d.ts.map +1 -1
- package/src/core/UUID.js +9 -7
- package/src/core/collection/array/arraySetDiff.d.ts.map +1 -1
- package/src/core/collection/array/arraySetDiff.js +0 -1
- package/src/core/collection/array/binarySearchHighIndex.d.ts.map +1 -1
- package/src/core/collection/array/binarySearchHighIndex.js +7 -1
- package/src/core/collection/array/computeHashArray.d.ts.map +1 -1
- package/src/core/collection/array/computeHashArray.js +3 -2
- package/src/core/collection/array/fastArrayEquals.d.ts +1 -0
- package/src/core/collection/array/fastArrayEquals.d.ts.map +1 -1
- package/src/core/collection/array/fastArrayEquals.js +1 -0
- package/src/core/collection/array/isArrayEqual.d.ts.map +1 -1
- package/src/core/collection/array/isArrayEqual.js +9 -12
- package/src/core/collection/array/isArrayEqual.spec.d.ts +2 -0
- package/src/core/collection/array/isArrayEqual.spec.d.ts.map +1 -0
- package/src/core/collection/array/isArrayEqual.spec.js +25 -0
- package/src/core/collection/array/typed/is_typed_array_equals.d.ts.map +1 -1
- package/src/core/collection/array/typed/is_typed_array_equals.js +1 -0
- package/src/core/function/makeSequenceLoop.d.ts.map +1 -0
- package/src/core/geom/3d/shape/AbstractShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/AbstractShape3D.js +14 -0
- package/src/core/geom/3d/shape/PointShape3D.d.ts +9 -0
- package/src/core/geom/3d/shape/PointShape3D.d.ts.map +1 -0
- package/src/core/geom/3d/shape/PointShape3D.js +14 -0
- package/src/core/geom/3d/shape/TransformedShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/TransformedShape3D.js +26 -8
- package/src/core/geom/3d/shape/UnionShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/UnionShape3D.js +33 -4
- package/src/core/geom/3d/shape/UnitCubeShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/UnitCubeShape3D.js +13 -6
- package/src/core/geom/3d/shape/UnitSphereShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/UnitSphereShape3D.js +10 -0
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts +15 -8
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.js +33 -9
- package/src/core/geom/3d/tetrahedra/delaunay/compute_delaunay_tetrahedral_mesh.d.ts +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/compute_delaunay_tetrahedral_mesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/compute_delaunay_tetrahedral_mesh.js +7 -7
- package/src/core/geom/3d/tetrahedra/delaunay/tetrahedral_mesh_build_from_grid.spec.d.ts +2 -0
- package/src/core/geom/3d/tetrahedra/delaunay/tetrahedral_mesh_build_from_grid.spec.d.ts.map +1 -0
- package/src/core/geom/3d/tetrahedra/delaunay/tetrahedral_mesh_build_from_grid.spec.js +38 -0
- package/src/core/geom/3d/tetrahedra/prototypeTetrahedraBuilder.js +42 -39
- package/src/core/geom/3d/v3_compute_triangle_normal.js +1 -1
- package/src/core/geom/3d/v3_negate_array.d.ts +9 -0
- package/src/core/geom/3d/v3_negate_array.d.ts.map +1 -0
- package/src/core/geom/3d/v3_negate_array.js +16 -0
- package/src/core/geom/Quaternion.d.ts.map +1 -1
- package/src/core/geom/Quaternion.js +30 -77
- package/src/core/geom/Vector3.d.ts +4 -0
- package/src/core/geom/Vector3.js +4 -4
- package/src/core/geom/vec3/v3_cross_array.d.ts +11 -0
- package/src/core/geom/vec3/v3_cross_array.d.ts.map +1 -0
- package/src/core/geom/vec3/v3_cross_array.js +31 -0
- package/src/core/geom/vec3/v3_displace_in_direction.js +3 -2
- package/src/core/geom/vec3/v3_displace_in_direction_array.d.ts +12 -0
- package/src/core/geom/vec3/v3_displace_in_direction_array.d.ts.map +1 -0
- package/src/core/geom/vec3/v3_displace_in_direction_array.js +22 -0
- package/src/core/geom/vec3/v3_dot_array_array.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_dot_array_array.js +4 -1
- package/src/core/geom/vec3/v3_normalize_array.d.ts +3 -3
- package/src/core/geom/vec3/v3_normalize_array.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_normalize_array.js +3 -3
- package/src/core/math/copysign.d.ts +1 -1
- package/src/core/math/copysign.js +1 -1
- package/src/core/math/epsilonEquals.d.ts.map +1 -1
- package/src/core/math/epsilonEquals.js +3 -2
- package/src/core/math/linalg/README.md +1 -1
- package/src/core/math/random/randomGaussian.spec.js +1 -1
- package/src/core/math/spline/spline_hermite3.d.ts +1 -1
- package/src/core/math/spline/spline_hermite3.js +1 -1
- package/src/core/process/delay.d.ts +6 -1
- package/src/core/process/delay.d.ts.map +1 -1
- package/src/core/process/delay.js +6 -1
- package/src/core/process/undo/Mark.d.ts +5 -5
- package/src/core/process/undo/Mark.d.ts.map +1 -1
- package/src/core/process/undo/Mark.js +6 -5
- package/src/core/process/worker/WorkerBuilder.d.ts +13 -2
- package/src/core/process/worker/WorkerBuilder.d.ts.map +1 -1
- package/src/core/process/worker/WorkerBuilder.js +9 -1
- package/src/core/process/worker/WorkerProxy.d.ts +16 -6
- package/src/core/process/worker/WorkerProxy.d.ts.map +1 -1
- package/src/core/process/worker/WorkerProxy.js +24 -5
- package/src/core/process/worker/extractTransferables.d.ts.map +1 -1
- package/src/core/process/worker/extractTransferables.js +3 -1
- package/src/engine/EngineHarness.d.ts +7 -1
- package/src/engine/EngineHarness.d.ts.map +1 -1
- package/src/engine/EngineHarness.js +12 -1
- package/src/engine/animation/clip/AnimationTrack.d.ts.map +1 -1
- package/src/engine/animation/clip/AnimationTrack.js +3 -0
- package/src/engine/animation/clip/bind_property_writer.d.ts +2 -2
- package/src/engine/animation/clip/bind_property_writer.d.ts.map +1 -1
- package/src/engine/animation/clip/bind_property_writer.js +22 -13
- package/src/engine/animation/clip/curve_from_track_data.d.ts.map +1 -1
- package/src/engine/animation/clip/curve_from_track_data.js +9 -1
- package/src/engine/animation/clip/ecd_bind_animation_curve.d.ts.map +1 -1
- package/src/engine/animation/clip/ecd_bind_animation_curve.js +6 -5
- package/src/engine/animation/curve/AnimationCurve.d.ts +21 -0
- package/src/engine/animation/curve/AnimationCurve.d.ts.map +1 -1
- package/src/engine/animation/curve/AnimationCurve.js +43 -15
- package/src/engine/animation/curve/AnimationCurve.spec.js +67 -0
- package/src/engine/animation/curve/Keyframe.d.ts +24 -3
- package/src/engine/animation/curve/Keyframe.d.ts.map +1 -1
- package/src/engine/animation/curve/Keyframe.js +49 -3
- package/src/engine/animation/curve/Keyframe.spec.js +11 -0
- package/src/engine/animation/curve/animation_curve_compute_aabb.d.ts +7 -0
- package/src/engine/animation/curve/animation_curve_compute_aabb.d.ts.map +1 -0
- package/src/engine/animation/curve/{compute_curve_aabb.js → animation_curve_compute_aabb.js} +1 -1
- package/src/engine/animation/curve/animation_curve_optimize.d.ts +8 -0
- package/src/engine/animation/curve/animation_curve_optimize.d.ts.map +1 -0
- package/src/engine/animation/curve/animation_curve_optimize.js +89 -0
- package/src/engine/animation/curve/animation_curve_optimize.spec.d.ts +2 -0
- package/src/engine/animation/curve/animation_curve_optimize.spec.d.ts.map +1 -0
- package/src/engine/animation/curve/animation_curve_optimize.spec.js +50 -0
- package/src/engine/animation/curve/draw/build_curve_editor.js +2 -2
- package/src/engine/animation/curve/evaluate_two_key_curve.d.ts +9 -0
- package/src/engine/animation/curve/evaluate_two_key_curve.d.ts.map +1 -0
- package/src/engine/animation/curve/evaluate_two_key_curve.js +23 -0
- package/src/engine/animation/curve/prototypeGLTF.js +14 -14
- package/src/engine/asset/loaders/material/computeTextureEquality.d.ts.map +1 -1
- package/src/engine/asset/loaders/material/computeTextureEquality.js +4 -6
- package/src/engine/asset/loaders/material/computeTextureHash.d.ts.map +1 -1
- package/src/engine/asset/loaders/material/computeTextureHash.js +6 -6
- package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescription.d.ts +6 -1
- package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescription.d.ts.map +1 -1
- package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescription.js +11 -6
- package/src/engine/ecs/guid/GUIDSerializationAdapter.spec.js +5 -5
- package/src/engine/ecs/guid/{GUID.d.ts → UUID.d.ts} +17 -12
- package/src/engine/ecs/guid/UUID.d.ts.map +1 -0
- package/src/engine/ecs/guid/{GUID.js → UUID.js} +35 -12
- package/src/engine/ecs/guid/UUID.spec.d.ts +2 -0
- package/src/engine/ecs/guid/UUID.spec.d.ts.map +1 -0
- package/src/engine/ecs/guid/{GUID.spec.js → UUID.spec.js} +18 -12
- package/src/engine/ecs/guid/UUIDSerializationAdapter.d.ts +18 -0
- package/src/engine/ecs/guid/UUIDSerializationAdapter.d.ts.map +1 -0
- package/src/engine/ecs/guid/{GUIDSerializationAdapter.js → UUIDSerializationAdapter.js} +5 -5
- package/src/engine/ecs/ik/InverseKinematics.js +3 -3
- package/src/engine/ecs/ik/TwoBoneInverseKinematicsSolver.d.ts.map +1 -1
- package/src/engine/ecs/ik/TwoBoneInverseKinematicsSolver.js +1 -140
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.js +1 -1
- package/src/engine/graphics/material/manager/MaterialManager.d.ts.map +1 -1
- package/src/engine/graphics/texture/isImageBitmap.d.ts +7 -0
- package/src/engine/graphics/texture/isImageBitmap.d.ts.map +1 -0
- package/src/engine/graphics/texture/isImageBitmap.js +12 -0
- package/src/engine/graphics/trail/x/RibbonXPlugin.d.ts.map +1 -1
- package/src/engine/graphics/trail/x/RibbonXPlugin.js +9 -1
- package/src/engine/input/ecs/systems/InputControllerSystem.js +1 -1
- package/src/engine/intelligence/blackboard/BlackboardDynamicStorageAdapter.d.ts +1 -1
- package/src/engine/intelligence/blackboard/BlackboardDynamicStorageAdapter.js +4 -4
- package/src/engine/physics/gjk/expanding_polytope_algorithm.d.ts +13 -0
- package/src/engine/physics/gjk/expanding_polytope_algorithm.d.ts.map +1 -0
- package/src/engine/physics/gjk/expanding_polytope_algorithm.js +395 -0
- package/src/engine/physics/gjk/expanding_polytope_algorithm.spec.d.ts +2 -0
- package/src/engine/physics/gjk/expanding_polytope_algorithm.spec.d.ts.map +1 -0
- package/src/engine/physics/gjk/expanding_polytope_algorithm.spec.js +46 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.d.ts +18 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.d.ts.map +1 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.js +277 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.spec.d.ts +2 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.spec.d.ts.map +1 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik3d_solve_primitive.spec.js +43 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.d.ts +12 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.d.ts.map +1 -0
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.js +100 -0
- package/src/engine/physics/inverse_kinematics/fabrik/prototype.d.ts +2 -0
- package/src/engine/physics/inverse_kinematics/fabrik/prototype.d.ts.map +1 -0
- package/src/engine/physics/inverse_kinematics/fabrik/prototype.js +112 -0
- package/src/engine/physics/inverse_kinematics/two_joint_ik.d.ts +16 -0
- package/src/engine/physics/inverse_kinematics/two_joint_ik.d.ts.map +1 -0
- package/src/engine/physics/inverse_kinematics/two_joint_ik.js +127 -0
- package/src/view/elements/DropDownSelectionView.js +2 -2
- package/src/view/elements/tiles2d/Tile.d.ts.map +1 -1
- package/src/view/elements/tiles2d/Tile.js +2 -3
- package/src/core/math/makeSequenceLoop.d.ts.map +0 -1
- package/src/engine/animation/curve/compute_curve_aabb.d.ts +0 -7
- package/src/engine/animation/curve/compute_curve_aabb.d.ts.map +0 -1
- package/src/engine/ecs/guid/GUID.d.ts.map +0 -1
- package/src/engine/ecs/guid/GUID.spec.d.ts +0 -2
- package/src/engine/ecs/guid/GUID.spec.d.ts.map +0 -1
- package/src/engine/ecs/guid/GUIDSerializationAdapter.d.ts +0 -18
- package/src/engine/ecs/guid/GUIDSerializationAdapter.d.ts.map +0 -1
- /package/src/core/{math → function}/makeSequenceLoop.d.ts +0 -0
- /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 "../../
|
|
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.
|
|
59
|
+
const id = UUID.v1().toString();
|
|
60
60
|
|
|
61
61
|
this.mapping.set(el, id);
|
|
62
62
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/view/elements/tiles2d/Tile.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/view/elements/tiles2d/Tile.js"],"names":[],"mappings":";AAKA;IA4DI,kFAEC;IAED,0EAMC;IArED;;;;;OAKG;IACH,iDAmBC;IAhBG,iBAAkB;IAClB,aAAgC;IAEhC,sBAAsB;IACtB,qBAAwB;IAExB,YAA6D;IAYjE,uBAGC;IAED,mBAGC;IAED,yBAMC;IAED,qBAOC;IAED,eAGC;CAaJ;iBAzEgB,eAAe"}
|
|
@@ -1,6 +1,5 @@
|
|
|
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
|
|
|
@@ -15,7 +14,7 @@ class TileView extends View {
|
|
|
15
14
|
super();
|
|
16
15
|
|
|
17
16
|
this.model = model;
|
|
18
|
-
this.uuid = UUID.
|
|
17
|
+
this.uuid = UUID.v1().toString();
|
|
19
18
|
|
|
20
19
|
this.__cellSize = size;
|
|
21
20
|
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 +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"}
|
|
File without changes
|
|
File without changes
|