@woosh/meep-engine 2.43.39 → 2.43.40
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/core/color/Color.js +1 -1
- package/core/geom/ConicRay.js +1 -1
- package/core/geom/Quaternion.js +1 -1
- package/core/geom/Vector1.js +1 -1
- package/core/geom/Vector3.js +1 -1
- package/core/geom/Vector4.js +1 -1
- package/core/math/hash/computeHashFloatArray.js +1 -1
- package/core/math/hash/computeObjectHash.js +1 -1
- package/core/math/interval/NumericInterval.js +1 -1
- package/core/model/BoundedValue.js +1 -1
- package/core/model/node-graph/Connection.js +6 -6
- package/core/model/node-graph/DataType.js +13 -12
- package/core/model/node-graph/NodeGraph.js +30 -5
- package/core/model/node-graph/node/NodeDescription.js +14 -11
- package/core/model/node-graph/node/NodeDescription.spec.js +14 -0
- package/core/model/node-graph/node/NodeInstance.js +2 -2
- package/core/model/node-graph/node/parameter/NodeParameterDescription.js +1 -1
- package/core/model/reactive/model/terminal/ReactiveLiteralNumber.js +1 -1
- package/core/model/stat/LinearModifier.js +1 -1
- package/core/{math/hash → primitives/numbers}/computeHashFloat.js +0 -0
- package/core/{math/hash → primitives/numbers}/computeHashFloat.spec.js +0 -0
- package/engine/asset/loaders/material/computeMaterialHash.js +1 -1
- package/engine/asset/loaders/material/computeTextureHash.js +1 -1
- package/engine/ecs/animation/Animation.js +1 -1
- package/engine/ecs/animation/InverseKinematics.js +1 -1
- package/engine/ecs/dynamic_actions/actions/definition/WeightedRandomActionDescription.js +1 -1
- package/engine/ecs/gui/position/ViewportPosition.js +1 -1
- package/engine/graphics/ecs/animation/animator/AnimationClip.js +1 -1
- package/engine/graphics/ecs/animation/animator/AnimationNotification.js +1 -1
- package/engine/graphics/ecs/animation/animator/graph/AnimationGraph.js +1 -1
- package/engine/graphics/ecs/animation/animator/graph/definition/AnimationTransitionDefinition.js +1 -1
- package/engine/graphics/ecs/highlight/HighlightDefinition.js +1 -1
- package/engine/graphics/ecs/mesh/Mesh.js +1 -1
- package/engine/graphics/geometry/MikkT/GenerateSharedVerticesIndexList.js +1 -1
- package/engine/graphics/micron/render/PatchCacheKey.js +1 -1
- package/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js +1 -1
- package/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameter.js +1 -1
- package/engine/intelligence/behavior/selector/WeightedElement.js +1 -1
- package/engine/sound/ecs/emitter/SoundEmitter.js +1 -1
- package/engine/sound/ecs/emitter/SoundTrack.js +1 -1
- package/package.json +1 -1
package/core/color/Color.js
CHANGED
|
@@ -5,7 +5,7 @@ import { min2 } from "../math/min2.js";
|
|
|
5
5
|
import { max2 } from "../math/max2.js";
|
|
6
6
|
import { min3 } from "../math/min3.js";
|
|
7
7
|
import { computeHashIntegerArray } from "../collection/array/computeHashIntegerArray.js";
|
|
8
|
-
import { computeHashFloat } from "../
|
|
8
|
+
import { computeHashFloat } from "../primitives/numbers/computeHashFloat.js";
|
|
9
9
|
import { rgb2hsv } from "./rgb2hsv.js";
|
|
10
10
|
import { rgb2uint24 } from "./rgb2uint24.js";
|
|
11
11
|
import { clamp01 } from "../math/clamp01.js";
|
package/core/geom/ConicRay.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assert } from "../assert.js";
|
|
2
2
|
import Vector3 from "./Vector3.js";
|
|
3
3
|
import { computeHashIntegerArray } from "../collection/array/computeHashIntegerArray.js";
|
|
4
|
-
import { computeHashFloat } from "../
|
|
4
|
+
import { computeHashFloat } from "../primitives/numbers/computeHashFloat.js";
|
|
5
5
|
import { epsilonEquals } from "../math/epsilonEquals.js";
|
|
6
6
|
import { EPSILON } from "../math/EPSILON.js";
|
|
7
7
|
|
package/core/geom/Quaternion.js
CHANGED
|
@@ -11,7 +11,7 @@ import { lerp } from "../math/lerp.js";
|
|
|
11
11
|
import Vector3 from "./Vector3.js";
|
|
12
12
|
import { v3_dot } from "./v3_dot.js";
|
|
13
13
|
import { min2 } from "../math/min2.js";
|
|
14
|
-
import { computeHashFloat } from "../
|
|
14
|
+
import { computeHashFloat } from "../primitives/numbers/computeHashFloat.js";
|
|
15
15
|
import { epsilonEquals } from "../math/epsilonEquals.js";
|
|
16
16
|
import { EPSILON } from "../math/EPSILON.js";
|
|
17
17
|
|
package/core/geom/Vector1.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { assert } from "../assert.js";
|
|
7
7
|
import Signal from "../events/signal/Signal.js";
|
|
8
8
|
import { clamp } from "../math/clamp.js";
|
|
9
|
-
import { computeHashFloat } from "../
|
|
9
|
+
import { computeHashFloat } from "../primitives/numbers/computeHashFloat.js";
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Vector1 extends Number {
|
package/core/geom/Vector3.js
CHANGED
|
@@ -13,7 +13,7 @@ import { v3_length } from "./v3_length.js";
|
|
|
13
13
|
import { v3_angle_between } from "./v3_angle_between.js";
|
|
14
14
|
import { v3_lerp } from "./v3_lerp.js";
|
|
15
15
|
import { v3_slerp } from "./v3_slerp.js";
|
|
16
|
-
import { computeHashFloat } from "../
|
|
16
|
+
import { computeHashFloat } from "../primitives/numbers/computeHashFloat.js";
|
|
17
17
|
import { epsilonEquals } from "../math/epsilonEquals.js";
|
|
18
18
|
import { EPSILON } from "../math/EPSILON.js";
|
|
19
19
|
|
package/core/geom/Vector4.js
CHANGED
|
@@ -6,7 +6,7 @@ import { assert } from "../assert.js";
|
|
|
6
6
|
import { Signal } from "../events/signal/Signal.js";
|
|
7
7
|
import { lerp } from "../math/lerp.js";
|
|
8
8
|
import { computeHashIntegerArray } from "../collection/array/computeHashIntegerArray.js";
|
|
9
|
-
import { computeHashFloat } from "../
|
|
9
|
+
import { computeHashFloat } from "../primitives/numbers/computeHashFloat.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computeStringHash } from "../../primitives/strings/computeStringHash.js";
|
|
2
|
-
import { computeHashFloat } from "
|
|
2
|
+
import { computeHashFloat } from "../../primitives/numbers/computeHashFloat.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Recursively computes object hash
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { assert } from "../../assert.js";
|
|
8
8
|
import Signal from "../../events/signal/Signal.js";
|
|
9
9
|
import { inverseLerp } from "../inverseLerp.js";
|
|
10
|
-
import { computeHashFloat } from "
|
|
10
|
+
import { computeHashFloat } from "../../primitives/numbers/computeHashFloat.js";
|
|
11
11
|
|
|
12
12
|
export class NumericInterval {
|
|
13
13
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import Signal from "../events/signal/Signal.js";
|
|
7
7
|
import { inverseLerp } from "../math/inverseLerp.js";
|
|
8
|
-
import { computeHashFloat } from "../
|
|
8
|
+
import { computeHashFloat } from "../primitives/numbers/computeHashFloat.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
@@ -65,8 +65,8 @@ export class Connection {
|
|
|
65
65
|
* @param {NodeInstancePortReference} endpoint
|
|
66
66
|
*/
|
|
67
67
|
setSource(endpoint) {
|
|
68
|
-
assert.
|
|
69
|
-
assert.
|
|
68
|
+
assert.defined(endpoint, 'endpoint');
|
|
69
|
+
assert.notNull(endpoint, 'endpoint');
|
|
70
70
|
|
|
71
71
|
this.source = endpoint;
|
|
72
72
|
}
|
|
@@ -76,8 +76,8 @@ export class Connection {
|
|
|
76
76
|
* @param {NodeInstancePortReference} endpoint
|
|
77
77
|
*/
|
|
78
78
|
setTarget(endpoint) {
|
|
79
|
-
assert.
|
|
80
|
-
assert.
|
|
79
|
+
assert.defined(endpoint, 'endpoint');
|
|
80
|
+
assert.notNull(endpoint, 'endpoint');
|
|
81
81
|
|
|
82
82
|
this.target = endpoint;
|
|
83
83
|
}
|
|
@@ -88,8 +88,8 @@ export class Connection {
|
|
|
88
88
|
* @returns {boolean}
|
|
89
89
|
*/
|
|
90
90
|
isAttachedToNode(id) {
|
|
91
|
-
assert.
|
|
92
|
-
assert.
|
|
91
|
+
assert.isNumber(id, 'id');
|
|
92
|
+
assert.isInteger(id, 'id');
|
|
93
93
|
|
|
94
94
|
return this.source.instance.id === id || this.target.instance.id === id;
|
|
95
95
|
}
|
|
@@ -25,18 +25,19 @@ export class DataType {
|
|
|
25
25
|
equals(other) {
|
|
26
26
|
return this.id === other.id && this.name === other.name;
|
|
27
27
|
}
|
|
28
|
-
}
|
|
29
28
|
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param {number} id
|
|
32
|
+
* @param {string} name
|
|
33
|
+
* @returns {DataType}
|
|
34
|
+
*/
|
|
35
|
+
static from(id, name) {
|
|
36
|
+
const r = new DataType();
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
r.id = id;
|
|
39
|
+
r.name = name;
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
}
|
|
41
|
+
return r;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -62,19 +62,43 @@ export class NodeGraph {
|
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @param {number} id
|
|
65
|
-
* @returns {NodeInstance}
|
|
65
|
+
* @returns {NodeInstance|undefined}
|
|
66
66
|
*/
|
|
67
67
|
getNode(id) {
|
|
68
|
-
|
|
68
|
+
const nodes = this.nodes;
|
|
69
|
+
const n = nodes.length;
|
|
70
|
+
|
|
71
|
+
for (let i = 0; i < n; i++) {
|
|
72
|
+
const node = nodes[i];
|
|
73
|
+
|
|
74
|
+
if (node.id === id) {
|
|
75
|
+
return node;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// node not found, return undefined
|
|
80
|
+
return undefined;
|
|
69
81
|
}
|
|
70
82
|
|
|
71
83
|
/**
|
|
72
84
|
*
|
|
73
85
|
* @param {number} id
|
|
74
|
-
* @returns {Connection}
|
|
86
|
+
* @returns {Connection|undefined}
|
|
75
87
|
*/
|
|
76
88
|
getConnection(id) {
|
|
77
|
-
|
|
89
|
+
const connections = this.connections;
|
|
90
|
+
const n = connections.length;
|
|
91
|
+
|
|
92
|
+
for (let i = 0; i < n; i++) {
|
|
93
|
+
const connection = connections[i];
|
|
94
|
+
|
|
95
|
+
if (connection.id === id) {
|
|
96
|
+
return connection;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// nothing found, undefined will be returned
|
|
101
|
+
return undefined;
|
|
78
102
|
}
|
|
79
103
|
|
|
80
104
|
/**
|
|
@@ -123,7 +147,7 @@ export class NodeGraph {
|
|
|
123
147
|
|
|
124
148
|
const id_obtained = this.__idpNodes.getSpecific(node.id);
|
|
125
149
|
|
|
126
|
-
if (
|
|
150
|
+
if (id_obtained === false) {
|
|
127
151
|
throw new Error(`Node with id '${node.id}' already exists`);
|
|
128
152
|
}
|
|
129
153
|
|
|
@@ -241,6 +265,7 @@ export class NodeGraph {
|
|
|
241
265
|
*
|
|
242
266
|
* @param {number} id
|
|
243
267
|
* @param {number[]} result IDs of attached connections
|
|
268
|
+
* @returns {number} number of found connections
|
|
244
269
|
*/
|
|
245
270
|
getConnectionsAttachedToNode(id, result) {
|
|
246
271
|
let count = 0;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { assert } from "../../../assert.js";
|
|
2
|
-
import { BitSet } from "../../../binary/BitSet.js";
|
|
3
2
|
import { NodeParameterDataType } from "./parameter/NodeParameterDataType.js";
|
|
4
3
|
import { NodeParameterDescription } from "./parameter/NodeParameterDescription.js";
|
|
5
4
|
import { Port } from "./Port.js";
|
|
@@ -11,17 +10,22 @@ import { Port } from "./Port.js";
|
|
|
11
10
|
* @returns {number}
|
|
12
11
|
*/
|
|
13
12
|
function pickNewSetId(things) {
|
|
14
|
-
const ids = new BitSet();
|
|
15
13
|
|
|
16
|
-
things.forEach((v, id) => ids.set(id, true));
|
|
17
14
|
|
|
18
|
-
const
|
|
15
|
+
const n = things.length;
|
|
16
|
+
|
|
17
|
+
let r = n;
|
|
18
|
+
|
|
19
|
+
for (let i = 0; i < n; i++) {
|
|
20
|
+
|
|
21
|
+
if (things[i] === undefined) {
|
|
22
|
+
r = i;
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
19
25
|
|
|
20
|
-
if (id === -1) {
|
|
21
|
-
return 0;
|
|
22
|
-
} else {
|
|
23
|
-
return id;
|
|
24
26
|
}
|
|
27
|
+
|
|
28
|
+
return r;
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
export class NodeDescription {
|
|
@@ -61,15 +65,14 @@ export class NodeDescription {
|
|
|
61
65
|
createParameter(name, type, defaultValue) {
|
|
62
66
|
|
|
63
67
|
assert.typeOf(name, 'string', 'name');
|
|
64
|
-
assert.
|
|
68
|
+
assert.enum(type, NodeParameterDataType, 'type');
|
|
65
69
|
|
|
66
70
|
|
|
67
71
|
//if default value is not given, pick one
|
|
68
72
|
if (defaultValue === undefined) {
|
|
69
73
|
switch (type) {
|
|
70
|
-
case NodeParameterDataType.Integer:
|
|
71
74
|
//intended fallthrough
|
|
72
|
-
case NodeParameterDataType.
|
|
75
|
+
case NodeParameterDataType.Number:
|
|
73
76
|
defaultValue = 0;
|
|
74
77
|
break;
|
|
75
78
|
case NodeParameterDataType.Boolean:
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NodeDescription } from "./NodeDescription.js";
|
|
2
|
+
import { DataType } from "../DataType.js";
|
|
3
|
+
import { PortDirection } from "./PortDirection.js";
|
|
4
|
+
|
|
5
|
+
const DUMMY_TYPE = DataType.from(0, 'dummy');
|
|
6
|
+
|
|
7
|
+
test('ports are assigned unique IDs', () => {
|
|
8
|
+
const node = new NodeDescription();
|
|
9
|
+
|
|
10
|
+
const id_a = node.createPort(DUMMY_TYPE, 'a', PortDirection.Unspecified);
|
|
11
|
+
const id_b = node.createPort(DUMMY_TYPE, 'b', PortDirection.Unspecified);
|
|
12
|
+
|
|
13
|
+
expect(id_a).not.toEqual(id_b);
|
|
14
|
+
});
|
|
@@ -148,8 +148,8 @@ export class NodeInstance {
|
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
*
|
|
151
|
-
* @param {number} port Port
|
|
152
|
-
* @returns {
|
|
151
|
+
* @param {number} port Port ID
|
|
152
|
+
* @returns {NodeInstancePortReference|null}
|
|
153
153
|
*/
|
|
154
154
|
getEndpoint(port) {
|
|
155
155
|
const endpoints = this.endpoints;
|
|
@@ -2,7 +2,7 @@ import { assert } from "../../../../assert.js";
|
|
|
2
2
|
import Signal from "../../../../events/signal/Signal.js";
|
|
3
3
|
import DataType from "../../../../parser/simple/DataType.js";
|
|
4
4
|
import { ReactiveExpression } from "../ReactiveExpression.js";
|
|
5
|
-
import { computeHashFloat } from "../../../../
|
|
5
|
+
import { computeHashFloat } from "../../../../primitives/numbers/computeHashFloat.js";
|
|
6
6
|
|
|
7
7
|
const dummySignal = new Signal();
|
|
8
8
|
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ import { planeHash } from "./planeHash.js";
|
|
|
2
2
|
import { computeStringHash } from "../../../../core/primitives/strings/computeStringHash.js";
|
|
3
3
|
import { computeHashArray } from "../../../../core/collection/array/computeHashArray.js";
|
|
4
4
|
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
5
|
-
import { computeHashFloat } from "../../../../core/
|
|
5
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
6
6
|
import { textureHashById } from "./textureHashById.js";
|
|
7
7
|
import { computeHashColor } from "./computeHashColor.js";
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computeImageBitmapHash } from "./computeImageBitmapHash.js";
|
|
2
2
|
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
3
|
-
import { computeHashFloat } from "../../../../core/
|
|
3
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
4
4
|
import { murmur3_32 } from "../../../../core/math/hash/murmur3_32.js";
|
|
5
5
|
import { computeStringHash } from "../../../../core/primitives/strings/computeStringHash.js";
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ import ObservedInteger from "../../../core/model/ObservedInteger.js";
|
|
|
9
9
|
import Vector1 from "../../../core/geom/Vector1.js";
|
|
10
10
|
import { BinaryClassSerializationAdapter } from "../storage/binary/BinaryClassSerializationAdapter.js";
|
|
11
11
|
import { computeHashIntegerArray } from "../../../core/collection/array/computeHashIntegerArray.js";
|
|
12
|
-
import { computeHashFloat } from "../../../core/
|
|
12
|
+
import { computeHashFloat } from "../../../core/primitives/numbers/computeHashFloat.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -2,7 +2,7 @@ import { BinaryClassSerializationAdapter } from "../storage/binary/BinaryClassSe
|
|
|
2
2
|
import { NumericInterval } from "../../../core/math/interval/NumericInterval.js";
|
|
3
3
|
import { computeStringHash } from "../../../core/primitives/strings/computeStringHash.js";
|
|
4
4
|
import { computeHashIntegerArray } from "../../../core/collection/array/computeHashIntegerArray.js";
|
|
5
|
-
import { computeHashFloat } from "../../../core/
|
|
5
|
+
import { computeHashFloat } from "../../../core/primitives/numbers/computeHashFloat.js";
|
|
6
6
|
|
|
7
7
|
class IKConstraint {
|
|
8
8
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbstractActionDescription } from "./AbstractActionDescription.js";
|
|
2
2
|
import { WeightedRandomBehavior } from "../../../../intelligence/behavior/selector/WeightedRandomBehavior.js";
|
|
3
3
|
import { WeightedElement } from "../../../../intelligence/behavior/selector/WeightedElement.js";
|
|
4
|
-
import { computeHashFloat } from "../../../../../core/
|
|
4
|
+
import { computeHashFloat } from "../../../../../core/primitives/numbers/computeHashFloat.js";
|
|
5
5
|
|
|
6
6
|
export class WeightedRandomActionDescription extends AbstractActionDescription {
|
|
7
7
|
constructor() {
|
|
@@ -6,7 +6,7 @@ import Vector2 from "../../../../core/geom/Vector2.js";
|
|
|
6
6
|
import ObservedBoolean from "../../../../core/model/ObservedBoolean.js";
|
|
7
7
|
import { BinaryClassSerializationAdapter } from "../../storage/binary/BinaryClassSerializationAdapter.js";
|
|
8
8
|
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
9
|
-
import { computeHashFloat } from "../../../../core/
|
|
9
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @readonly
|
|
@@ -3,7 +3,7 @@ import { AnimationClipFlag } from "./AnimationClipFlag.js";
|
|
|
3
3
|
import { LoopOnce, LoopRepeat } from "three";
|
|
4
4
|
import { AnimationEventTypes } from "./AnimationEventTypes.js";
|
|
5
5
|
import { computeHashIntegerArray } from "../../../../../core/collection/array/computeHashIntegerArray.js";
|
|
6
|
-
import { computeHashFloat } from "../../../../../core/
|
|
6
|
+
import { computeHashFloat } from "../../../../../core/primitives/numbers/computeHashFloat.js";
|
|
7
7
|
|
|
8
8
|
export class AnimationClip {
|
|
9
9
|
constructor() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computeHashIntegerArray } from "../../../../../core/collection/array/computeHashIntegerArray.js";
|
|
2
|
-
import { computeHashFloat } from "../../../../../core/
|
|
2
|
+
import { computeHashFloat } from "../../../../../core/primitives/numbers/computeHashFloat.js";
|
|
3
3
|
|
|
4
4
|
export class AnimationNotification {
|
|
5
5
|
constructor() {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import { assert } from "../../../../../../core/assert.js";
|
|
11
11
|
import { threeUpdateTransform } from "../../../../util/threeUpdateTransform.js";
|
|
12
12
|
import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
|
|
13
|
-
import { computeHashFloat } from "../../../../../../core/
|
|
13
|
+
import { computeHashFloat } from "../../../../../../core/primitives/numbers/computeHashFloat.js";
|
|
14
14
|
|
|
15
15
|
export class AnimationGraph {
|
|
16
16
|
constructor() {
|
package/engine/graphics/ecs/animation/animator/graph/definition/AnimationTransitionDefinition.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computeStringHash } from "../../../../../../../core/primitives/strings/computeStringHash.js";
|
|
2
2
|
import { computeHashIntegerArray } from "../../../../../../../core/collection/array/computeHashIntegerArray.js";
|
|
3
|
-
import { computeHashFloat } from "../../../../../../../core/
|
|
3
|
+
import { computeHashFloat } from "../../../../../../../core/primitives/numbers/computeHashFloat.js";
|
|
4
4
|
|
|
5
5
|
export class AnimationTransitionDefinition {
|
|
6
6
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Color } from "../../../../core/color/Color.js";
|
|
2
2
|
import { assert } from "../../../../core/assert.js";
|
|
3
3
|
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
4
|
-
import { computeHashFloat } from "../../../../core/
|
|
4
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
5
5
|
|
|
6
6
|
export class HighlightDefinition {
|
|
7
7
|
constructor() {
|
|
@@ -10,7 +10,7 @@ import { Transform } from "../../../ecs/transform/Transform.js";
|
|
|
10
10
|
import { updateNodeByTransformAndBBB } from "./updateNodeByTransformAndBBB.js";
|
|
11
11
|
import { applyTransformToThreeObject } from "./applyTransformToThreeObject.js";
|
|
12
12
|
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
13
|
-
import { computeHashFloat } from "../../../../core/
|
|
13
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { vec3 } from "gl-matrix";
|
|
2
2
|
import { GetPosition } from "./GetPosition.js";
|
|
3
|
-
import { computeHashFloat } from "../../../../core/
|
|
3
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
4
4
|
import { GetNormal } from "./GetNormal.js";
|
|
5
5
|
import { GetTexCoord } from "./GetTexCoord.js";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mortonEncode_magicbits } from "../../../../core/geom/3d/morton/mortonEncode_magicbits.js";
|
|
2
2
|
import { isArrayEqualStrict } from "../../../../core/collection/array/isArrayEqualStrict.js";
|
|
3
3
|
import { SimpleObjectPoolFactory } from "../../../../core/model/object/SimpleObjectPoolFactory.js";
|
|
4
|
-
import { computeHashFloat } from "../../../../core/
|
|
4
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
5
5
|
|
|
6
6
|
export class PatchCacheKey {
|
|
7
7
|
constructor() {
|
|
@@ -12,7 +12,7 @@ import { computeConeBoundingBox } from "../../../../../../core/geom/3d/cone/comp
|
|
|
12
12
|
import { EmissionFromType } from "./EmissionFromType.js";
|
|
13
13
|
import { EmissionShapeType } from "./EmissionShapeType.js";
|
|
14
14
|
import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
|
|
15
|
-
import { computeHashFloat } from "../../../../../../core/
|
|
15
|
+
import { computeHashFloat } from "../../../../../../core/primitives/numbers/computeHashFloat.js";
|
|
16
16
|
|
|
17
17
|
const aabb3 = new AABB3(0, 0, 0, 0, 0, 0);
|
|
18
18
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProgramValueSlotParameterType } from "./ProgramValueSlotParameterType.js";
|
|
2
2
|
import { computeStringHash } from "../../../../../../core/primitives/strings/computeStringHash.js";
|
|
3
3
|
import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
|
|
4
|
-
import { computeHashFloat } from "../../../../../../core/
|
|
4
|
+
import { computeHashFloat } from "../../../../../../core/primitives/numbers/computeHashFloat.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import { assert } from "../../../../core/assert.js";
|
|
|
2
2
|
import { invokeObjectEquals } from "../../../../core/model/object/invokeObjectEquals.js";
|
|
3
3
|
import { invokeObjectHash } from "../../../../core/model/object/invokeObjectHash.js";
|
|
4
4
|
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
5
|
-
import { computeHashFloat } from "../../../../core/
|
|
5
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
6
6
|
|
|
7
7
|
export class WeightedElement {
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ import { interpolate_irradiance_smith } from "../../../../core/math/physics/irra
|
|
|
19
19
|
import { objectKeyByValue } from "../../../../core/model/object/objectKeyByValue.js";
|
|
20
20
|
import { computeStringHash } from "../../../../core/primitives/strings/computeStringHash.js";
|
|
21
21
|
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
22
|
-
import { computeHashFloat } from "../../../../core/
|
|
22
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
23
23
|
import { compareStrings } from "../../../../core/primitives/strings/compareStrings.js";
|
|
24
24
|
import { compareNumbers } from "../../../../core/primitives/numbers/compareNumbers.js";
|
|
25
25
|
|
|
@@ -3,7 +3,7 @@ import { SoundTrackFlags } from "./SoundTrackFlags.js";
|
|
|
3
3
|
import { assert } from "../../../../core/assert.js";
|
|
4
4
|
import { computeStringHash } from "../../../../core/primitives/strings/computeStringHash.js";
|
|
5
5
|
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
6
|
-
import { computeHashFloat } from "../../../../core/
|
|
6
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
7
7
|
import { compareStrings } from "../../../../core/primitives/strings/compareStrings.js";
|
|
8
8
|
import { compareNumbers } from "../../../../core/primitives/numbers/compareNumbers.js";
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"productName": "Meep",
|
|
6
6
|
"description": "production-ready JavaScript game engine based on Entity Component System Architecture",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.43.
|
|
8
|
+
"version": "2.43.40",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|