@woosh/meep-engine 2.120.2 → 2.120.4
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/README.md +1 -1
- package/editor/Editor.d.ts.map +1 -1
- package/editor/SelectionVisualizer.d.ts.map +1 -1
- package/editor/actions/concrete/ComponentAddAction.d.ts.map +1 -1
- package/editor/actions/concrete/EntityCreateAction.d.ts.map +1 -1
- package/editor/actions/concrete/SelectionAddAction.d.ts.map +1 -0
- package/editor/actions/concrete/SelectionClearAction.d.ts.map +1 -0
- package/editor/actions/concrete/TransformModifyAction.d.ts.map +1 -0
- package/editor/enableEditor.d.ts.map +1 -1
- package/editor/process/symbolic/makeGridPositionSymbolDisplay.js +2 -1
- package/editor/view/ecs/EntityEditor.js +2 -1
- package/editor/view/makeEntityDecorators.js +5 -5
- package/package.json +1 -1
- package/src/core/binary/BitSet.d.ts +59 -38
- package/src/core/binary/BitSet.d.ts.map +1 -1
- package/src/core/binary/BitSet.js +76 -55
- package/src/core/function/noop.d.ts +4 -1
- package/src/core/function/noop.d.ts.map +1 -1
- package/src/core/function/noop.js +4 -1
- package/src/core/geom/3d/mat4/decompose_matrix_4_array.d.ts +7 -3
- package/src/core/geom/3d/mat4/decompose_matrix_4_array.d.ts.map +1 -1
- package/src/core/geom/3d/mat4/decompose_matrix_4_array.js +2 -2
- package/src/core/geom/3d/ray/Ray3.d.ts +11 -0
- package/src/core/geom/3d/ray/Ray3.d.ts.map +1 -1
- package/src/core/geom/3d/ray/Ray3.js +25 -0
- package/src/core/geom/Vector4.d.ts.map +1 -1
- package/src/core/geom/Vector4.js +27 -5
- package/src/core/math/gaussian.d.ts +5 -4
- package/src/core/math/gaussian.d.ts.map +1 -1
- package/src/core/math/gaussian.js +5 -4
- package/src/core/math/matrix/SquareMatrix.d.ts +55 -32
- package/src/core/math/matrix/SquareMatrix.d.ts.map +1 -1
- package/src/core/math/matrix/SquareMatrix.js +59 -33
- package/src/core/math/spline/spline_hermite3_to_bezier.d.ts +6 -5
- package/src/core/math/spline/spline_hermite3_to_bezier.d.ts.map +1 -1
- package/src/core/math/spline/spline_hermite3_to_bezier.js +15 -11
- package/src/core/model/ModuleRegistry.d.ts.map +1 -1
- package/src/core/model/ModuleRegistry.js +2 -2
- package/src/core/model/stat/Stat.d.ts.map +1 -1
- package/src/core/model/stat/Stat.js +38 -19
- package/src/engine/Clock.d.ts +14 -3
- package/src/engine/Clock.d.ts.map +1 -1
- package/src/engine/Clock.js +14 -3
- package/src/engine/EngineConfiguration.js +1 -1
- package/src/engine/ecs/Entity.d.ts.map +1 -1
- package/src/engine/ecs/Entity.js +42 -2
- package/src/engine/ecs/EntityBuilderUtils.js +1 -1
- package/src/engine/ecs/EntityComponentDataset.d.ts +1 -1
- package/src/engine/ecs/EntityComponentDataset.d.ts.map +1 -1
- package/src/engine/ecs/EntityComponentDataset.js +25 -4
- package/src/engine/ecs/EntityManager.d.ts.map +1 -1
- package/src/engine/ecs/EntityManager.js +6 -12
- package/src/engine/ecs/EntityReference.d.ts +14 -0
- package/src/engine/ecs/EntityReference.d.ts.map +1 -1
- package/src/engine/ecs/EntityReference.js +18 -0
- package/src/engine/ecs/EventType.d.ts +10 -0
- package/src/engine/ecs/EventType.d.ts.map +1 -0
- package/src/engine/ecs/EventType.js +10 -0
- package/src/engine/ecs/System.d.ts.map +1 -1
- package/src/engine/ecs/System.js +1 -12
- package/src/engine/ecs/computeSystemName.d.ts +8 -0
- package/src/engine/ecs/computeSystemName.d.ts.map +1 -0
- package/src/engine/ecs/computeSystemName.js +10 -0
- package/src/engine/ecs/parent/ParentEntitySystem.js +1 -1
- package/src/engine/ecs/terrain/TerrainClouds.d.ts +43 -10
- package/src/engine/ecs/terrain/TerrainClouds.d.ts.map +1 -1
- package/src/engine/ecs/terrain/TerrainClouds.js +38 -2
- package/src/engine/ecs/terrain/ecs/Terrain.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/Terrain.js +6 -0
- package/src/engine/ecs/terrain/ecs/makeTerrainWorkerProxy.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/makeTerrainWorkerProxy.js +3 -1
- package/src/engine/graphics/ecs/path/ribbon/RibbonPathBuilder.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/ribbon/RibbonPathBuilder.js +7 -7
- package/src/engine/input/devices/InputDeviceSwitch.d.ts +4 -0
- package/src/engine/input/devices/InputDeviceSwitch.d.ts.map +1 -1
- package/src/engine/input/devices/InputDeviceSwitch.js +4 -2
- package/src/engine/input/devices/KeyCodes.d.ts.map +1 -1
- package/src/engine/input/devices/KeyCodes.js +1 -0
- package/src/engine/input/devices/KeyboardDevice.d.ts.map +1 -1
- package/src/engine/input/devices/KeyboardDevice.js +28 -3
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.d.ts.map +1 -1
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.js +3 -0
- package/src/engine/ui/notification/NotificationManager.d.ts.map +1 -1
- package/src/engine/ui/notification/NotificationManager.js +2 -1
- package/editor/actions/concrete/ActionUpdateTexture.d.ts +0 -12
- package/editor/actions/concrete/ActionUpdateTexture.d.ts.map +0 -1
- package/editor/actions/concrete/ArrayCopyAction.d.ts +0 -20
- package/editor/actions/concrete/ArrayCopyAction.d.ts.map +0 -1
- package/editor/actions/concrete/ComponentRemoveAction.d.ts +0 -11
- package/editor/actions/concrete/ComponentRemoveAction.d.ts.map +0 -1
- package/editor/actions/concrete/ModifyPatchSampler2DAction.d.ts.map +0 -1
- package/editor/actions/concrete/ModifyPatchTextureArray2DAction.d.ts +0 -38
- package/editor/actions/concrete/PaintTerrainOverlayAction.d.ts +0 -23
- package/editor/actions/concrete/PatchTerrainHeightAction.d.ts +0 -19
- package/editor/actions/concrete/SelectionRemoveAction.d.ts +0 -10
- package/editor/actions/concrete/WriteGridValueAction.d.ts +0 -15
- package/src/engine/ecs/transform/Transform.editor.schema.json +0 -16
|
@@ -94,5 +94,16 @@ export class Ray3 extends Float32Array<ArrayBuffer> {
|
|
|
94
94
|
* @returns {boolean}
|
|
95
95
|
*/
|
|
96
96
|
equals(other: Ray3): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Compute `t` value for a given point in 3d space.
|
|
99
|
+
* This is the distance along the direction from origin of the ray
|
|
100
|
+
* Value will be negative if the ray is pointing away from the point
|
|
101
|
+
* PRECONDITION: ray direction must be normalized
|
|
102
|
+
* @param {number} x
|
|
103
|
+
* @param {number} y
|
|
104
|
+
* @param {number} z
|
|
105
|
+
* @returns {number}
|
|
106
|
+
*/
|
|
107
|
+
computeSignedDistance(x: number, y: number, z: number): number;
|
|
97
108
|
}
|
|
98
109
|
//# sourceMappingURL=Ray3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ray3.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/ray/Ray3.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Ray3.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/ray/Ray3.js"],"names":[],"mappings":"AAUA;;;GAGG;AACH;IAkOI;;;;;;;;;;OAUG;IACH,sBATW,MAAM,YACN,MAAM,YACN,MAAM,eACN,MAAM,eACN,MAAM,eACN,MAAM,UACN,MAAM,GACL,IAAI,CAqBf;IA/PD,cAKC;IAMD,iBAEC;IAND,gBAEC;IAGG,OAAW;IAOf;;;OAGG;IACH,cAFW,MAAM,EAAE,GAAC,YAAY,EAI/B;IAVD,cAMW,MAAM,EAAE,GAAC,YAAY,CAJ/B;IAUD,uBAEC;IAED,uBAEC;IAED,uBAEC;IAGD;;;;;OAKG;IACH,aAJW,MAAM,KACN,MAAM,KACN,MAAM,QAUhB;IAHG,UAAW;IACX,UAAW;IACX,UAAW;IAQf;;;OAGG;IACH,iBAFW,MAAM,EAAE,GAAC,YAAY,EAI/B;IAVD,iBAMW,MAAM,EAAE,GAAC,YAAY,CAJ/B;IAWD,0BAEC;IAED,0BAEC;IAED,0BAEC;IAED;;;;;OAKG;IACH,gBAJW,MAAM,KACN,MAAM,KACN,MAAM,QAUhB;IAHG,UAAW;IACX,UAAW;IACX,UAAW;IAGf,2BAEC;IAED;;;;;;;OAOG;IACH,gCANW,MAAM,KACN,MAAM,KACN,MAAM,aACN,MAAM,EAAE,GAAC,YAAY,GAAC,IAAI,sBAC1B,MAAM,EAAE,GAAC,YAAY,GAAC,IAAI,QA6BpC;IAED;;;OAGG;IACH,uBAFW,MAAM,QAMhB;IAED;;;OAGG;IACH,iBAFW,MAAM,EAAE,GAAC,IAAI,GAAC,YAAY,QAepC;IAED;;;OAGG;IACH,SAFa,IAAI,CAQhB;IAED;;;OAGG;IACH,YAFW,IAAI,QAId;IAED,eAEC;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,OAAO,CAInB;IAED;;;;;;;;;OASG;IACH,yBALW,MAAM,KACN,MAAM,KACN,MAAM,GACJ,MAAM,CAclB;CAiCJ"}
|
|
@@ -4,6 +4,7 @@ import { array_range_equal_strict } from "../../../collection/array/array_range_
|
|
|
4
4
|
import { computeHashFloatArray } from "../../../math/hash/computeHashFloatArray.js";
|
|
5
5
|
import { v3_array_matrix4_rotate } from "../../vec3/v3_array_matrix4_rotate.js";
|
|
6
6
|
import { v3_array_normalize } from "../../vec3/v3_array_normalize.js";
|
|
7
|
+
import { v3_dot } from "../../vec3/v3_dot.js";
|
|
7
8
|
import { v3_matrix4_multiply } from "../../vec3/v3_matrix4_multiply.js";
|
|
8
9
|
import { ray3_interval_array_apply_matrix4 } from "./ray3_interval_array_apply_matrix4.js";
|
|
9
10
|
|
|
@@ -213,6 +214,30 @@ export class Ray3 extends Float32Array {
|
|
|
213
214
|
return array_range_equal_strict(this, 0, other, 0, 7);
|
|
214
215
|
}
|
|
215
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Compute `t` value for a given point in 3d space.
|
|
219
|
+
* This is the distance along the direction from origin of the ray
|
|
220
|
+
* Value will be negative if the ray is pointing away from the point
|
|
221
|
+
* PRECONDITION: ray direction must be normalized
|
|
222
|
+
* @param {number} x
|
|
223
|
+
* @param {number} y
|
|
224
|
+
* @param {number} z
|
|
225
|
+
* @returns {number}
|
|
226
|
+
*/
|
|
227
|
+
computeSignedDistance(x, y, z) {
|
|
228
|
+
assert.isNumber(x, 'x');
|
|
229
|
+
assert.isNumber(y, 'y');
|
|
230
|
+
assert.isNumber(z, 'z');
|
|
231
|
+
|
|
232
|
+
// localize point to ray's origin
|
|
233
|
+
const _x = x - this.origin_x;
|
|
234
|
+
const _y = y - this.origin_y;
|
|
235
|
+
const _z = z - this.origin_z;
|
|
236
|
+
|
|
237
|
+
// we assume that direction is normalized
|
|
238
|
+
return v3_dot(_x, _y, _z, this.direction_x, this.direction_y, this.direction_z);
|
|
239
|
+
}
|
|
240
|
+
|
|
216
241
|
/**
|
|
217
242
|
*
|
|
218
243
|
* @param {number} origin_x
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vector4.d.ts","sourceRoot":"","sources":["../../../../src/core/geom/Vector4.js"],"names":[],"mappings":";AAMA;
|
|
1
|
+
{"version":3,"file":"Vector4.d.ts","sourceRoot":"","sources":["../../../../src/core/geom/Vector4.js"],"names":[],"mappings":";AAMA;IAiaI;;;;;;OAMG;IACH,gBALW,OAAO,MACP,OAAO,qBAEP,OAAO,QASjB;IA9aD;;;;;;;;OAQG;IACH,gBAPW,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,EAiBhB;IANG,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IAEV,eAA6B;IAWjC;;;OAGG;IACH,SAFW,MAAM,EAIhB;IAdD;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAkBD;;;OAGG;IACH,SAFW,MAAM,EAIhB;IAdD;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAkBD;;;OAGG;IACH,SAFW,MAAM,EAIhB;IAdD;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAkBD;;;OAGG;IACH,SAFW,MAAM,EAIhB;IAdD;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAUD;;;;OAIG;IACH,qBAHW,MAAM,EAAE,WACR,MAAM,QAShB;IAED;;;;OAIG;IACH,oBAHW,MAAM,EAAE,WACR,MAAM,QAOhB;IAED;;;;;;;OAOG;IACH,iDAFa,OAAO,CAkCnB;IAED;;;OAGG;IACH,oBAFW,OAAO,QAQjB;IAED;;;;OAIG;IACH,+BAFa,OAAO,CAOnB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAlBW,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,GACJ,OAAO,CAoBnB;IAED;;;;OAIG;IACH,WAHW,OAAO,GACL,MAAM,CAIlB;IAED;;;;OAIG;IACH,SAHW,OAAO,GAAC,OAAO,GACb,OAAO,CASnB;IAED;;;;OAIG;IACH,qBAHW,OAAO,GACL,OAAO,CAUnB;IAED;;;;OAIG;IACH,WAHW,OAAO,GACL,OAAO,CAInB;IAED;;;OAGG;IACH,SAFa,OAAO,CAQnB;IAED;;;OAGG;IACH,mBAFW,UAAU,QAyBpB;IAED;;;;OAIG;IACH,aAHW,OAAO,GACL,OAAO,CAInB;IAED;;;OAGG;IACH,QAFY,MAAM,CASjB;IAED;;;;OAIG;IACH,gBAJW,OAAO,MACP,OAAO,mBAKjB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAOlB;IAED;;OAEG;IACH,WAFa,MAAM,EAAE,CAQpB;IAED;;;;OAIG;IACH,mBAHW,MAAM,EAAE,UACR,MAAM,QAIhB;IAED;;;;;MAOC;IAED,0BAEC;IAED;;;OAGG;IACH,uBAFW,YAAY,QAOtB;IAED;;;OAGG;IACH,yBAFW,YAAY,QAStB;IAED,sDAOC;CAiBJ"}
|
package/src/core/geom/Vector4.js
CHANGED
|
@@ -7,14 +7,20 @@ import { computeHashFloat } from "../primitives/numbers/computeHashFloat.js";
|
|
|
7
7
|
class Vector4 {
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
|
-
* @param {
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {
|
|
13
|
-
* @param {
|
|
10
|
+
* @param {number} [x=0]
|
|
11
|
+
* @param {number} [y=0]
|
|
12
|
+
* @param {number} [z=0]
|
|
13
|
+
* @param {number} [w=0]
|
|
14
14
|
* @constructor
|
|
15
15
|
* @class
|
|
16
16
|
*/
|
|
17
|
-
constructor(
|
|
17
|
+
constructor(
|
|
18
|
+
x = 0,
|
|
19
|
+
y = 0,
|
|
20
|
+
z = 0,
|
|
21
|
+
w = 0
|
|
22
|
+
) {
|
|
23
|
+
|
|
18
24
|
this.x = x;
|
|
19
25
|
this.y = y;
|
|
20
26
|
this.z = z;
|
|
@@ -23,6 +29,10 @@ class Vector4 {
|
|
|
23
29
|
this.onChanged = new Signal();
|
|
24
30
|
}
|
|
25
31
|
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @returns {number}
|
|
35
|
+
*/
|
|
26
36
|
get 0() {
|
|
27
37
|
return this.x;
|
|
28
38
|
}
|
|
@@ -35,6 +45,10 @@ class Vector4 {
|
|
|
35
45
|
this.x = v;
|
|
36
46
|
}
|
|
37
47
|
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @returns {number}
|
|
51
|
+
*/
|
|
38
52
|
get 1() {
|
|
39
53
|
return this.y;
|
|
40
54
|
}
|
|
@@ -47,6 +61,10 @@ class Vector4 {
|
|
|
47
61
|
this.y = v;
|
|
48
62
|
}
|
|
49
63
|
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @returns {number}
|
|
67
|
+
*/
|
|
50
68
|
get 2() {
|
|
51
69
|
return this.z;
|
|
52
70
|
}
|
|
@@ -59,6 +77,10 @@ class Vector4 {
|
|
|
59
77
|
this.z = v;
|
|
60
78
|
}
|
|
61
79
|
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @returns {number}
|
|
83
|
+
*/
|
|
62
84
|
get 3() {
|
|
63
85
|
return this.w;
|
|
64
86
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @param {number}
|
|
5
|
-
* @
|
|
2
|
+
* This is not the standard gaussian.
|
|
3
|
+
* It lacks the normalization factor, standard gaussian would be weighted by `1 / √(2π * variance)`
|
|
4
|
+
* @param {number} sigma Standard deviation. Distance from mean. Represents the "width" of the Gaussian-like curve. Note: The parameter is named `sigma`, but its placement in the formula means it scales inversely to the usual effect of sigma.
|
|
5
|
+
* @param {number} v Variance. Represents the "height" or "amplitude" of the curve, but at a distance from the mean. Larger variance values result in larger function values further away from the mean (0).
|
|
6
|
+
* @returns {number} Ranges from 0 to 1 (exclusive of 0)
|
|
6
7
|
*/
|
|
7
8
|
export function gaussian(sigma: number, v: number): number;
|
|
8
9
|
//# sourceMappingURL=gaussian.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gaussian.d.ts","sourceRoot":"","sources":["../../../../src/core/math/gaussian.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"gaussian.d.ts","sourceRoot":"","sources":["../../../../src/core/math/gaussian.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,gCAJW,MAAM,KACN,MAAM,GACJ,MAAM,CAOlB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @param {number}
|
|
5
|
-
* @
|
|
2
|
+
* This is not the standard gaussian.
|
|
3
|
+
* It lacks the normalization factor, standard gaussian would be weighted by `1 / √(2π * variance)`
|
|
4
|
+
* @param {number} sigma Standard deviation. Distance from mean. Represents the "width" of the Gaussian-like curve. Note: The parameter is named `sigma`, but its placement in the formula means it scales inversely to the usual effect of sigma.
|
|
5
|
+
* @param {number} v Variance. Represents the "height" or "amplitude" of the curve, but at a distance from the mean. Larger variance values result in larger function values further away from the mean (0).
|
|
6
|
+
* @returns {number} Ranges from 0 to 1 (exclusive of 0)
|
|
6
7
|
*/
|
|
7
8
|
export function gaussian(sigma, v) {
|
|
8
9
|
const v2 = v * v;
|
|
@@ -1,93 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a square matrix (number of rows equals number of columns).
|
|
3
|
+
* Data is stored in a typed array.
|
|
4
|
+
*/
|
|
1
5
|
export class SquareMatrix {
|
|
2
6
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @param {
|
|
5
|
-
* @
|
|
7
|
+
* @param {number} size Side length of the matrix (e.g. '3' for a 3x3 matrix).
|
|
8
|
+
* @param {BinaryDataType|string} type Data type of the elements. Must be a valid BinaryDataType (e.g., "uint8", "float32").
|
|
9
|
+
* @throws {Error} If the provided type is not supported.
|
|
6
10
|
*/
|
|
7
11
|
constructor(size: number, type: BinaryDataType | string);
|
|
8
12
|
/**
|
|
9
|
-
*
|
|
13
|
+
* Side length of the matrix.
|
|
10
14
|
* @type {number}
|
|
11
15
|
*/
|
|
12
16
|
size: number;
|
|
13
17
|
/**
|
|
14
|
-
*
|
|
18
|
+
* Data type of matrix elements.
|
|
15
19
|
* @type {BinaryDataType}
|
|
16
20
|
*/
|
|
17
21
|
type: BinaryDataType;
|
|
18
22
|
/**
|
|
23
|
+
* Matrix data, stored as a typed array. Column-major order.
|
|
19
24
|
* @type {number[]}
|
|
20
25
|
*/
|
|
21
26
|
data: number[];
|
|
27
|
+
/**
|
|
28
|
+
* @returns {number} Side length of the matrix.
|
|
29
|
+
*/
|
|
22
30
|
get n(): number;
|
|
31
|
+
/**
|
|
32
|
+
* @returns {number} Total number of elements in the matrix (size * size).
|
|
33
|
+
*/
|
|
23
34
|
get length(): number;
|
|
35
|
+
/**
|
|
36
|
+
* Returns direct reference to underlying data, modifying it WILL affect the matrix.
|
|
37
|
+
* @returns {number[]}
|
|
38
|
+
*/
|
|
24
39
|
get val(): number[];
|
|
25
|
-
fill(v: any): void;
|
|
26
40
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @param {
|
|
41
|
+
* Fills the entire matrix with the given value.
|
|
42
|
+
* @param {number} v Value to fill the matrix with.
|
|
43
|
+
* @returns {void}
|
|
44
|
+
*/
|
|
45
|
+
fill(v: number): void;
|
|
46
|
+
/**
|
|
47
|
+
* Subtracts another matrix from this matrix (this = this - other).
|
|
48
|
+
* @param {SquareMatrix} other The matrix to subtract. Must be of the same size.
|
|
29
49
|
*/
|
|
30
50
|
subtract(other: SquareMatrix): void;
|
|
31
51
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @param {SquareMatrix}
|
|
52
|
+
* Subtracts matrix 'b' from matrix 'a', storing the result in this matrix (this = a - b).
|
|
53
|
+
* Component-wise operation.
|
|
54
|
+
* @param {SquareMatrix} a The first matrix.
|
|
55
|
+
* @param {SquareMatrix} b The second matrix.
|
|
35
56
|
*/
|
|
36
57
|
subtractMatrices(a: SquareMatrix, b: SquareMatrix): void;
|
|
37
58
|
/**
|
|
38
|
-
*
|
|
59
|
+
* Negates all elements of the matrix (multiplies each element by -1).
|
|
39
60
|
*/
|
|
40
61
|
negate(): void;
|
|
41
62
|
/**
|
|
42
|
-
*
|
|
63
|
+
* Sets all elements of the matrix to 0.
|
|
43
64
|
*/
|
|
44
65
|
clear(): void;
|
|
45
66
|
/**
|
|
46
67
|
* Set diagonal to 1
|
|
68
|
+
* NOTE: if the other cells are 0s - it will produce identity matrix, but those cells will not be written explicitly
|
|
47
69
|
*/
|
|
48
70
|
eye(): void;
|
|
49
71
|
/**
|
|
50
|
-
*
|
|
51
|
-
* @param {SquareMatrix} other
|
|
72
|
+
* Copies the elements of another matrix into this matrix.
|
|
73
|
+
* @param {SquareMatrix} other The matrix to copy from. Must be the same size.
|
|
52
74
|
*/
|
|
53
75
|
copy(other: SquareMatrix): void;
|
|
54
76
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @
|
|
77
|
+
* Creates a new matrix that is a copy of this matrix.
|
|
78
|
+
* @returns {SquareMatrix} A new matrix with the same elements.
|
|
57
79
|
*/
|
|
58
80
|
clone(): SquareMatrix;
|
|
59
81
|
/**
|
|
60
|
-
*
|
|
82
|
+
* Transposes the matrix in-place (swaps rows and columns).
|
|
61
83
|
*/
|
|
62
84
|
transpose(): void;
|
|
63
85
|
/**
|
|
64
|
-
*
|
|
65
|
-
* @param {number[]} arr
|
|
86
|
+
* Populates matrix from a 1D array.
|
|
87
|
+
* @param {number[]} arr Source array. Must have at least size*size elements.
|
|
66
88
|
*/
|
|
67
89
|
fromArray(arr: number[]): void;
|
|
68
90
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @param {number[]} [destination]
|
|
71
|
-
* @param {number} [offset]
|
|
91
|
+
* Copies matrix elements into a 1D array.
|
|
92
|
+
* @param {number[]} [destination] Array to store matrix into. Creates a new array if not provided.
|
|
93
|
+
* @param {number} [offset=0] Starting index in the destination array.
|
|
94
|
+
* @returns {number[]} The array containing the matrix data.
|
|
72
95
|
*/
|
|
73
96
|
toArray(destination?: number[], offset?: number): number[];
|
|
74
97
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @param {number} row_index
|
|
77
|
-
* @param {number} column_index
|
|
78
|
-
* @param {number} value
|
|
98
|
+
* Sets the value of a cell in the matrix.
|
|
99
|
+
* @param {number} row_index Row index (0-based).
|
|
100
|
+
* @param {number} column_index Column index (0-based).
|
|
101
|
+
* @param {number} value The value to set.
|
|
79
102
|
*/
|
|
80
103
|
setCellValue(row_index: number, column_index: number, value: number): void;
|
|
81
104
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @param {number} row_index
|
|
84
|
-
* @param {number} column_index
|
|
85
|
-
* @
|
|
105
|
+
* Retrieves the value of a cell in the matrix.
|
|
106
|
+
* @param {number} row_index Row index (0-based).
|
|
107
|
+
* @param {number} column_index Column index (0-based).
|
|
108
|
+
* @returns {number} The value of the cell.
|
|
86
109
|
*/
|
|
87
110
|
getCellValue(row_index: number, column_index: number): number;
|
|
88
111
|
/**
|
|
89
112
|
* Read values at the diagonal, from left to right, top to bottom
|
|
90
|
-
* @param {number[]|Float32Array|Float64Array} result
|
|
113
|
+
* @param {number[]|Float32Array|Float64Array} result Array to store the diagonal.
|
|
91
114
|
*/
|
|
92
115
|
readDiagonal(result: number[] | Float32Array | Float64Array): void;
|
|
93
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SquareMatrix.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/matrix/SquareMatrix.js"],"names":[],"mappings":"AAIA;
|
|
1
|
+
{"version":3,"file":"SquareMatrix.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/matrix/SquareMatrix.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH;IAEI;;;;OAIG;IACH,kBAJW,MAAM,QACN,cAAc,GAAC,MAAM,EA6B/B;IAjBG;;;OAGG;IACH,MAFU,MAAM,CAEA;IAEhB;;;OAGG;IACH,MAFU,cAAc,CAER;IAEhB;;;OAGG;IACH,MAFU,MAAM,EAAE,CAEqB;IAG3C;;OAEG;IACH,SAFa,MAAM,CAIlB;IAED;;OAEG;IACH,cAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,WAFa,MAAM,EAAE,CAIpB;IAED;;;;OAIG;IACH,QAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;OAGG;IACH,gBAFW,YAAY,QAItB;IAED;;;;;OAKG;IACH,oBAHW,YAAY,KACZ,YAAY,QAiBtB;IAED;;OAEG;IACH,eAMC;IAED;;OAEG;IACH,cAEC;IAED;;;OAGG;IACH,YAMC;IAED;;;OAGG;IACH,YAFW,YAAY,QAMtB;IAED;;;OAGG;IACH,SAFa,YAAY,CAQxB;IAED;;OAEG;IACH,kBAcC;IAED;;;OAGG;IACH,eAFW,MAAM,EAAE,QAIlB;IAED;;;;;OAKG;IACH,sBAJW,MAAM,EAAE,WACR,MAAM,GACJ,MAAM,EAAE,CASpB;IAED;;;;;OAKG;IACH,wBAJW,MAAM,gBACN,MAAM,SACN,MAAM,QAYhB;IAED;;;;;OAKG;IACH,wBAJW,MAAM,gBACN,MAAM,GACJ,MAAM,CAUlB;IAED;;;OAGG;IACH,qBAFW,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,QAU5C;CACJ"}
|
|
@@ -2,11 +2,16 @@ import { assert } from "../../assert.js";
|
|
|
2
2
|
import { DataType2TypedArrayConstructorMapping } from "../../binary/type/DataType2TypedArrayConstructorMapping.js";
|
|
3
3
|
import { array_copy } from "../../collection/array/array_copy.js";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Represents a square matrix (number of rows equals number of columns).
|
|
7
|
+
* Data is stored in a typed array.
|
|
8
|
+
*/
|
|
5
9
|
export class SquareMatrix {
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @param {
|
|
9
|
-
* @
|
|
12
|
+
* @param {number} size Side length of the matrix (e.g. '3' for a 3x3 matrix).
|
|
13
|
+
* @param {BinaryDataType|string} type Data type of the elements. Must be a valid BinaryDataType (e.g., "uint8", "float32").
|
|
14
|
+
* @throws {Error} If the provided type is not supported.
|
|
10
15
|
*/
|
|
11
16
|
constructor(size, type) {
|
|
12
17
|
assert.isNonNegativeInteger(size, 'size');
|
|
@@ -18,51 +23,68 @@ export class SquareMatrix {
|
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
26
|
+
* Side length of the matrix.
|
|
22
27
|
* @type {number}
|
|
23
28
|
*/
|
|
24
29
|
this.size = size;
|
|
25
30
|
|
|
26
31
|
/**
|
|
27
|
-
*
|
|
32
|
+
* Data type of matrix elements.
|
|
28
33
|
* @type {BinaryDataType}
|
|
29
34
|
*/
|
|
30
35
|
this.type = type;
|
|
31
36
|
|
|
32
37
|
/**
|
|
38
|
+
* Matrix data, stored as a typed array. Column-major order.
|
|
33
39
|
* @type {number[]}
|
|
34
40
|
*/
|
|
35
41
|
this.data = new TypedArray(size * size);
|
|
36
42
|
}
|
|
37
43
|
|
|
44
|
+
/**
|
|
45
|
+
* @returns {number} Side length of the matrix.
|
|
46
|
+
*/
|
|
38
47
|
get n() {
|
|
39
48
|
return this.size;
|
|
40
49
|
}
|
|
41
50
|
|
|
51
|
+
/**
|
|
52
|
+
* @returns {number} Total number of elements in the matrix (size * size).
|
|
53
|
+
*/
|
|
42
54
|
get length() {
|
|
43
55
|
return this.size * this.size;
|
|
44
56
|
}
|
|
45
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Returns direct reference to underlying data, modifying it WILL affect the matrix.
|
|
60
|
+
* @returns {number[]}
|
|
61
|
+
*/
|
|
46
62
|
get val() {
|
|
47
63
|
return this.data;
|
|
48
64
|
}
|
|
49
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Fills the entire matrix with the given value.
|
|
68
|
+
* @param {number} v Value to fill the matrix with.
|
|
69
|
+
* @returns {void}
|
|
70
|
+
*/
|
|
50
71
|
fill(v) {
|
|
51
72
|
this.data.fill(v);
|
|
52
73
|
}
|
|
53
74
|
|
|
54
75
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @param {SquareMatrix} other
|
|
76
|
+
* Subtracts another matrix from this matrix (this = this - other).
|
|
77
|
+
* @param {SquareMatrix} other The matrix to subtract. Must be of the same size.
|
|
57
78
|
*/
|
|
58
79
|
subtract(other) {
|
|
59
80
|
this.subtractMatrices(this, other);
|
|
60
81
|
}
|
|
61
82
|
|
|
62
83
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* @param {SquareMatrix}
|
|
84
|
+
* Subtracts matrix 'b' from matrix 'a', storing the result in this matrix (this = a - b).
|
|
85
|
+
* Component-wise operation.
|
|
86
|
+
* @param {SquareMatrix} a The first matrix.
|
|
87
|
+
* @param {SquareMatrix} b The second matrix.
|
|
66
88
|
*/
|
|
67
89
|
subtractMatrices(a, b) {
|
|
68
90
|
const size = this.size;
|
|
@@ -82,7 +104,7 @@ export class SquareMatrix {
|
|
|
82
104
|
}
|
|
83
105
|
|
|
84
106
|
/**
|
|
85
|
-
*
|
|
107
|
+
* Negates all elements of the matrix (multiplies each element by -1).
|
|
86
108
|
*/
|
|
87
109
|
negate() {
|
|
88
110
|
const data = this.data;
|
|
@@ -93,7 +115,7 @@ export class SquareMatrix {
|
|
|
93
115
|
}
|
|
94
116
|
|
|
95
117
|
/**
|
|
96
|
-
*
|
|
118
|
+
* Sets all elements of the matrix to 0.
|
|
97
119
|
*/
|
|
98
120
|
clear() {
|
|
99
121
|
this.data.fill(0);
|
|
@@ -101,6 +123,7 @@ export class SquareMatrix {
|
|
|
101
123
|
|
|
102
124
|
/**
|
|
103
125
|
* Set diagonal to 1
|
|
126
|
+
* NOTE: if the other cells are 0s - it will produce identity matrix, but those cells will not be written explicitly
|
|
104
127
|
*/
|
|
105
128
|
eye() {
|
|
106
129
|
const size = this.size;
|
|
@@ -111,8 +134,8 @@ export class SquareMatrix {
|
|
|
111
134
|
}
|
|
112
135
|
|
|
113
136
|
/**
|
|
114
|
-
*
|
|
115
|
-
* @param {SquareMatrix} other
|
|
137
|
+
* Copies the elements of another matrix into this matrix.
|
|
138
|
+
* @param {SquareMatrix} other The matrix to copy from. Must be the same size.
|
|
116
139
|
*/
|
|
117
140
|
copy(other) {
|
|
118
141
|
assert.equal(this.size, other.size, 'difference sizes');
|
|
@@ -121,8 +144,8 @@ export class SquareMatrix {
|
|
|
121
144
|
}
|
|
122
145
|
|
|
123
146
|
/**
|
|
124
|
-
*
|
|
125
|
-
* @
|
|
147
|
+
* Creates a new matrix that is a copy of this matrix.
|
|
148
|
+
* @returns {SquareMatrix} A new matrix with the same elements.
|
|
126
149
|
*/
|
|
127
150
|
clone() {
|
|
128
151
|
const r = new SquareMatrix(this.size, this.type);
|
|
@@ -133,7 +156,7 @@ export class SquareMatrix {
|
|
|
133
156
|
}
|
|
134
157
|
|
|
135
158
|
/**
|
|
136
|
-
*
|
|
159
|
+
* Transposes the matrix in-place (swaps rows and columns).
|
|
137
160
|
*/
|
|
138
161
|
transpose() {
|
|
139
162
|
const size = this.size;
|
|
@@ -152,29 +175,33 @@ export class SquareMatrix {
|
|
|
152
175
|
}
|
|
153
176
|
|
|
154
177
|
/**
|
|
155
|
-
*
|
|
156
|
-
* @param {number[]} arr
|
|
178
|
+
* Populates matrix from a 1D array.
|
|
179
|
+
* @param {number[]} arr Source array. Must have at least size*size elements.
|
|
157
180
|
*/
|
|
158
181
|
fromArray(arr) {
|
|
159
182
|
this.data.set(arr);
|
|
160
183
|
}
|
|
161
184
|
|
|
162
185
|
/**
|
|
163
|
-
*
|
|
164
|
-
* @param {number[]} [destination]
|
|
165
|
-
* @param {number} [offset]
|
|
186
|
+
* Copies matrix elements into a 1D array.
|
|
187
|
+
* @param {number[]} [destination] Array to store matrix into. Creates a new array if not provided.
|
|
188
|
+
* @param {number} [offset=0] Starting index in the destination array.
|
|
189
|
+
* @returns {number[]} The array containing the matrix data.
|
|
166
190
|
*/
|
|
167
|
-
toArray(
|
|
191
|
+
toArray(
|
|
192
|
+
destination = new Array(this.length),
|
|
193
|
+
offset = 0
|
|
194
|
+
) {
|
|
168
195
|
array_copy(this.data, 0, destination, offset, this.length);
|
|
169
196
|
|
|
170
197
|
return destination;
|
|
171
198
|
}
|
|
172
199
|
|
|
173
200
|
/**
|
|
174
|
-
*
|
|
175
|
-
* @param {number} row_index
|
|
176
|
-
* @param {number} column_index
|
|
177
|
-
* @param {number} value
|
|
201
|
+
* Sets the value of a cell in the matrix.
|
|
202
|
+
* @param {number} row_index Row index (0-based).
|
|
203
|
+
* @param {number} column_index Column index (0-based).
|
|
204
|
+
* @param {number} value The value to set.
|
|
178
205
|
*/
|
|
179
206
|
setCellValue(row_index, column_index, value) {
|
|
180
207
|
assert.isNonNegativeInteger(row_index, 'row_index');
|
|
@@ -189,10 +216,10 @@ export class SquareMatrix {
|
|
|
189
216
|
}
|
|
190
217
|
|
|
191
218
|
/**
|
|
192
|
-
*
|
|
193
|
-
* @param {number} row_index
|
|
194
|
-
* @param {number} column_index
|
|
195
|
-
* @
|
|
219
|
+
* Retrieves the value of a cell in the matrix.
|
|
220
|
+
* @param {number} row_index Row index (0-based).
|
|
221
|
+
* @param {number} column_index Column index (0-based).
|
|
222
|
+
* @returns {number} The value of the cell.
|
|
196
223
|
*/
|
|
197
224
|
getCellValue(row_index, column_index) {
|
|
198
225
|
assert.isNonNegativeInteger(row_index, 'row_index');
|
|
@@ -201,13 +228,12 @@ export class SquareMatrix {
|
|
|
201
228
|
assert.lessThan(row_index, this.size, 'row overflow');
|
|
202
229
|
assert.lessThan(column_index, this.size, 'column overflow');
|
|
203
230
|
|
|
204
|
-
|
|
205
231
|
return this.data[this.size * column_index + row_index];
|
|
206
232
|
}
|
|
207
233
|
|
|
208
234
|
/**
|
|
209
235
|
* Read values at the diagonal, from left to right, top to bottom
|
|
210
|
-
* @param {number[]|Float32Array|Float64Array} result
|
|
236
|
+
* @param {number[]|Float32Array|Float64Array} result Array to store the diagonal.
|
|
211
237
|
*/
|
|
212
238
|
readDiagonal(result) {
|
|
213
239
|
const n = this.size;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* One-dimensional curve conversion from cubic Hermite to bezier
|
|
2
3
|
* TODO: not tested
|
|
3
|
-
* @param {Float32Array|number[]} result
|
|
4
|
-
* @param {number} result_offset
|
|
5
|
-
* @param {number} result_stride
|
|
4
|
+
* @param {Float32Array|number[]} result where to put results
|
|
5
|
+
* @param {number} result_offset offset to start writing at in result array
|
|
6
|
+
* @param {number} result_stride how far to step between each written value. Necessary for N-dimensional curves where we want to interleave multiple curves together, such as for color or quaternions
|
|
6
7
|
* @param {number} p0
|
|
7
8
|
* @param {number} p1
|
|
8
|
-
* @param {number} m0
|
|
9
|
-
* @param {number} m1
|
|
9
|
+
* @param {number} m0 tangent at p0
|
|
10
|
+
* @param {number} m1 tangent at p1
|
|
10
11
|
*/
|
|
11
12
|
export function spline_hermite3_to_bezier(result: Float32Array | number[], result_offset: number, result_stride: number, p0: number, p1: number, m0: number, m1: number): void;
|
|
12
13
|
//# sourceMappingURL=spline_hermite3_to_bezier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spline_hermite3_to_bezier.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline_hermite3_to_bezier.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"spline_hermite3_to_bezier.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline_hermite3_to_bezier.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,kDARW,YAAY,GAAC,MAAM,EAAE,iBACrB,MAAM,iBACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QAkBhB"}
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* One-dimensional curve conversion from cubic Hermite to bezier
|
|
2
3
|
* TODO: not tested
|
|
3
|
-
* @param {Float32Array|number[]} result
|
|
4
|
-
* @param {number} result_offset
|
|
5
|
-
* @param {number} result_stride
|
|
4
|
+
* @param {Float32Array|number[]} result where to put results
|
|
5
|
+
* @param {number} result_offset offset to start writing at in result array
|
|
6
|
+
* @param {number} result_stride how far to step between each written value. Necessary for N-dimensional curves where we want to interleave multiple curves together, such as for color or quaternions
|
|
6
7
|
* @param {number} p0
|
|
7
8
|
* @param {number} p1
|
|
8
|
-
* @param {number} m0
|
|
9
|
-
* @param {number} m1
|
|
9
|
+
* @param {number} m0 tangent at p0
|
|
10
|
+
* @param {number} m1 tangent at p1
|
|
10
11
|
*/
|
|
11
|
-
export function spline_hermite3_to_bezier(
|
|
12
|
+
export function spline_hermite3_to_bezier(
|
|
13
|
+
result,
|
|
14
|
+
result_offset,
|
|
15
|
+
result_stride,
|
|
16
|
+
p0, p1,
|
|
17
|
+
m0, m1
|
|
18
|
+
) {
|
|
12
19
|
|
|
13
20
|
// see https://stackoverflow.com/questions/42574940/draw-hermite-curve-on-browser-canvas-javascript
|
|
14
21
|
// see https://pomax.github.io/bezierinfo/#catmullconv
|
|
15
22
|
|
|
16
|
-
const tension = 1;
|
|
17
|
-
const tension_factor = 2 * tension;
|
|
18
|
-
|
|
19
23
|
result[result_offset + 0 * result_stride] = p0;
|
|
20
|
-
result[result_offset + 1 * result_stride] = p0 + m0 /
|
|
21
|
-
result[result_offset + 2 * result_stride] = p1 - m1 /
|
|
24
|
+
result[result_offset + 1 * result_stride] = p0 + m0 / 3;
|
|
25
|
+
result[result_offset + 2 * result_stride] = p1 - m1 / 3;
|
|
22
26
|
result[result_offset + 3 * result_stride] = p1;
|
|
23
27
|
|
|
24
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleRegistry.d.ts","sourceRoot":"","sources":["../../../../src/core/model/ModuleRegistry.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,4BAFa,CAAC;IAeV;;;OAGG;IACH,oCAiBG;IAEH;;;OAGG;IACH,6BAEC;IAGD;;;;OAIG;IACH,IAJiB,CAAC,SAAJ,CAAE,iBAEH,CAAC,CAIb;IAED;;;;OAIG;IACH,UAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,IALiB,CAAC,SAAJ,CAAE,QACL,MAAM,UACN,CAAC,GACC,OAAO,CA0BnB;IAED;;;;;;OAMG;IACH,
|
|
1
|
+
{"version":3,"file":"ModuleRegistry.d.ts","sourceRoot":"","sources":["../../../../src/core/model/ModuleRegistry.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,4BAFa,CAAC;IAeV;;;OAGG;IACH,oCAiBG;IAEH;;;OAGG;IACH,6BAEC;IAGD;;;;OAIG;IACH,IAJiB,CAAC,SAAJ,CAAE,iBAEH,CAAC,CAIb;IAED;;;;OAIG;IACH,UAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,IALiB,CAAC,SAAJ,CAAE,QACL,MAAM,UACN,CAAC,GACC,OAAO,CA0BnB;IAED;;;;;;OAMG;IACH,kBALa,CAAC,UACH,CAAC,GACC,MAAM,EAAE,CAYpB;IAED,mBAEC;;CACJ"}
|
|
@@ -100,10 +100,10 @@ export class ModuleRegistry {
|
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Find all names associated with the given module
|
|
103
|
-
* @template
|
|
103
|
+
* @template M
|
|
104
104
|
* @param {M} module
|
|
105
105
|
* @returns {string[]}
|
|
106
|
-
* @throws if module is not registered
|
|
106
|
+
* @throws {Error} if module is not registered
|
|
107
107
|
*/
|
|
108
108
|
findNamesByModule(module) {
|
|
109
109
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stat.d.ts","sourceRoot":"","sources":["../../../../../src/core/model/stat/Stat.js"],"names":[],"mappings":";AASA;
|
|
1
|
+
{"version":3,"file":"Stat.d.ts","sourceRoot":"","sources":["../../../../../src/core/model/stat/Stat.js"],"names":[],"mappings":";AASA;;;;;;;GAOG;AACH;IAyPI;;;;;OAKG;IACH,6BAJW,MAAM,aACN,IAAI,CAAC,cAAc,CAAC,GAClB,MAAM,CAoBlB;IA3PD;;;OAGG;IACH,oBAHW,MAAM,EAuBhB;IA7CD;;;OAGG;IACH,IAFU,MAAM,CAET;IAEP;;;;;;OAMG;IACH,6BAAyB;IAEzB;;;OAGG;IACH,aAFU,CAAS,IAAM,EAAN,MAAM,KAAG,MAAM,CAEF;IAY5B;;;OAGG;IACH,MAFU,OAAO,CAEa;IAE9B;;;OAGG;IACH,OAFU,OAAO,CAEc;IAMnC;;;OAGG;IACH,uBAFa,MAAM,CAAC,cAAc,CAAC,CAIlC;IAED;;;OAGG;IACH,yBAFa,MAAM,CAAC,cAAc,CAAC,CAIlC;IAED;;OAEG;IACH,uBAEC;IAUD;;;OAGG;IACH,YAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,YAFa,MAAM,CAIlB;IAED,oBAUC;IAED;;;OAGG;IACH,gBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,gBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,gBAFY,cAAc,EAAE,CAI3B;IAED;;;OAGG;IACH,iBAFW,cAAc,QAMxB;IAED;;;;OAIG;IACH,iBAHW,cAAc,GACb,OAAO,CAIlB;IAED;;;;OAIG;IACH,oBAHW,cAAc,GACZ,OAAO,CAQnB;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,OAAO,CASnB;IAED;;;OAGG;IACH,YAFW,IAAI,QAOd;IAED;;;OAGG;IACH,gBAFW,IAAI,QAId;IAED;;;;OAIG;IACH,iCAHW,CAAS,IAAM,EAAN,MAAM,KAAE,MAAM,KACvB,MAAM,QAKhB;IAED;;OAEG;IACH,wCAFW,IAAI,QAmBd;IAED;;;MAKC;IAED,0BAIC;IAED;;;OAGG;IACH,iBAFa,MAAM,CAIlB;IAwDL;;;OAGG;IACH,iBAFU,OAAO,CAEI;CAjCpB;;;QAOe,8BAHD,MAAM,GACL,MAAM,CAIjB;QACK,kCAEL;QAMS,gCAHC,MAAM,GACJ,CAAS,IAAM,EAAN,MAAM,KAAG,MAAM,CAMpC;;;;oBAtTe,uBAAuB;2BAIhB,qBAAqB;iBAN/B,+BAA+B;sBAC1B,yBAAyB"}
|