@woosh/meep-engine 2.131.20 → 2.131.22

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 (38) hide show
  1. package/package.json +1 -1
  2. package/src/core/binary/type/DataType2TypedArrayConstructorMapping.d.ts +1 -1
  3. package/src/core/binary/type/DataType2TypedArrayConstructorMapping.js +1 -1
  4. package/src/core/collection/array/computeStridedArrayHash.d.ts.map +1 -1
  5. package/src/core/collection/array/computeStridedArrayHash.js +1 -0
  6. package/src/core/collection/array/computeStridedIntegerArrayHash.d.ts.map +1 -1
  7. package/src/core/collection/array/computeStridedIntegerArrayHash.js +1 -0
  8. package/src/core/color/illuminant/planckian_radiance.js +4 -4
  9. package/src/core/geom/2d/aabb/AABB2.d.ts.map +1 -1
  10. package/src/core/geom/2d/aabb/AABB2.js +4 -1
  11. package/src/core/geom/3d/mat4/eulerAnglesFromMatrix.d.ts +10 -5
  12. package/src/core/geom/3d/mat4/eulerAnglesFromMatrix.d.ts.map +1 -1
  13. package/src/core/geom/3d/mat4/eulerAnglesFromMatrix.js +11 -5
  14. package/src/core/math/inverseLerp.d.ts +1 -1
  15. package/src/core/math/inverseLerp.js +2 -2
  16. package/src/core/math/physics/mie/lorenz_mie_coefs.d.ts +6 -14
  17. package/src/core/math/physics/mie/lorenz_mie_coefs.d.ts.map +1 -1
  18. package/src/core/math/physics/mie/lorenz_mie_coefs.js +10 -16
  19. package/src/core/math/sign.d.ts.map +1 -1
  20. package/src/core/math/sign.js +4 -1
  21. package/src/engine/animation/EntityAnimation.d.ts +65 -0
  22. package/src/engine/animation/EntityAnimation.d.ts.map +1 -0
  23. package/src/engine/animation/EntityAnimation.js +112 -101
  24. package/src/engine/asset/loaders/image/codec/NativeImageDecoder.d.ts.map +1 -1
  25. package/src/engine/asset/loaders/image/codec/NativeImageDecoder.js +3 -0
  26. package/src/engine/asset/loaders/image/png/PNGReader.d.ts +20 -25
  27. package/src/engine/asset/loaders/image/png/PNGReader.d.ts.map +1 -1
  28. package/src/engine/asset/loaders/image/png/PNGReader.js +20 -25
  29. package/src/engine/ecs/gui/GUIElementSystem.d.ts.map +1 -1
  30. package/src/engine/ecs/gui/GUIElementSystem.js +1 -0
  31. package/src/engine/ecs/gui/menu/radial/updateAnimationState.d.ts +1 -0
  32. package/src/engine/ecs/gui/menu/radial/updateAnimationState.d.ts.map +1 -1
  33. package/src/engine/ecs/gui/menu/radial/updateAnimationState.js +1 -0
  34. package/src/engine/ecs/gui/position/ViewportPositionSystem.d.ts.map +1 -1
  35. package/src/engine/ecs/gui/position/ViewportPositionSystem.js +1 -0
  36. package/src/engine/ecs/speaker/VoiceSystem.d.ts +1 -0
  37. package/src/engine/ecs/speaker/VoiceSystem.d.ts.map +1 -1
  38. package/src/engine/ecs/speaker/VoiceSystem.js +5 -0
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Pure JavaScript game engine. Fully featured and production ready.",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.131.20",
8
+ "version": "2.131.22",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export function compute_typed_array_constructor_from_data_type(dt: BinaryDataType): constructor | Function;
7
7
  /**
8
- * Mapping from {@DataType} to TypedArray constructors
8
+ * Mapping from {@link DataType } to TypedArray constructors
9
9
  */
10
10
  export type DataType2TypedArrayConstructorMapping = Function;
11
11
  export namespace DataType2TypedArrayConstructorMapping {
@@ -2,7 +2,7 @@ import { BinaryDataType } from "./BinaryDataType.js";
2
2
 
3
3
 
4
4
  /**
5
- * Mapping from {@DataType} to TypedArray constructors
5
+ * Mapping from {@link DataType} to TypedArray constructors
6
6
  * @enum {function}
7
7
  */
8
8
  export const DataType2TypedArrayConstructorMapping = {
@@ -1 +1 @@
1
- {"version":3,"file":"computeStridedArrayHash.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/array/computeStridedArrayHash.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wGAPW,MAAM,UACN,MAAM,UACN,MAAM,4BACM,MAAM,6BAEjB,MAAM,CAwBjB"}
1
+ {"version":3,"file":"computeStridedArrayHash.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/array/computeStridedArrayHash.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wGAPW,MAAM,UACN,MAAM,UACN,MAAM,4BACM,MAAM,6BAEjB,MAAM,CAyBjB"}
@@ -27,6 +27,7 @@ export function computeStridedArrayHash(
27
27
  * Simple hashing scheme, multiplying existing hash by a prime and adding next value
28
28
  * (h<<5) - h === h*31
29
29
  * @type {number}
30
+ * @ignore
30
31
  */
31
32
  hash = ((hash << 5) - hash) + value;
32
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"computeStridedIntegerArrayHash.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/array/computeStridedIntegerArrayHash.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,sDANW,MAAM,EAAE,GAAC,WAAW,GAAC,WAAW,GAAC,UAAU,UAC3C,MAAM,UACN,MAAM,UACN,MAAM,GACL,MAAM,CAoBjB"}
1
+ {"version":3,"file":"computeStridedIntegerArrayHash.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/array/computeStridedIntegerArrayHash.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,sDANW,MAAM,EAAE,GAAC,WAAW,GAAC,WAAW,GAAC,UAAU,UAC3C,MAAM,UACN,MAAM,UACN,MAAM,GACL,MAAM,CAqBjB"}
@@ -18,6 +18,7 @@ export function computeStridedIntegerArrayHash(
18
18
  * Simple hashing scheme, multiplying existing hash by a prime and adding next value
19
19
  * (h<<5) - h === h*31
20
20
  * @type {number}
21
+ * @ignore
21
22
  */
22
23
  hash = ((hash << 5) - hash) + value;
23
24
  }
@@ -1,11 +1,11 @@
1
1
  import { assert } from "../../assert.js";
2
2
 
3
3
  /**
4
- * Second radiation constant (m·K)
4
+ * Second radiation constant.
5
+ * Value is meters Kelvin (m*K).
5
6
  *
6
7
  * `c2 = (h*c) / (kb)`
7
- *
8
- * Value is meters Kelvin (m*K).
8
+ * @type {number}
9
9
  */
10
10
  const PLANCK_C2 = 1.438776877e-2;
11
11
 
@@ -18,7 +18,7 @@ const PLANCK_C2 = 1.438776877e-2;
18
18
  export function planckian_radiance(lambda_m, T) {
19
19
  assert.isNumber(lambda_m, 'lambda_m');
20
20
  assert.notNaN(lambda_m, 'lambda_m');
21
-
21
+
22
22
  assert.isNumber(T, 'T');
23
23
  assert.notNaN(T, 'T');
24
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"AABB2.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/2d/aabb/AABB2.js"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"AABB2.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/2d/aabb/AABB2.js"],"names":[],"mappings":"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"}
@@ -555,7 +555,7 @@ class AABB2 {
555
555
  }
556
556
 
557
557
  /**
558
- * Relative displacement of the AABB by given vector described by {@param deltaX} and {@param deltaY}
558
+ * Relative displacement of the AABB by given vector described by {@link deltaX} and {@link deltaY}
559
559
  * @param {number} deltaX displacement in X
560
560
  * @param {number} deltaY displacement in Y
561
561
  * @returns {this}
@@ -749,6 +749,9 @@ function computeLineBetweenTwoBoxes(b0, b1, p0, p1) {
749
749
  */
750
750
  AABB2.prototype.isAABB2 = true;
751
751
 
752
+ /**
753
+ * Alias
754
+ */
752
755
  AABB2.computeLineBetweenTwoBoxes = computeLineBetweenTwoBoxes;
753
756
 
754
757
  /**
@@ -1,23 +1,28 @@
1
1
  /**
2
2
  *
3
- * \returns the Euler-angles of the rotation matrix \c *this using the convention defined by the triplet (\a a0,\a a1,\a a2)
3
+ * returns the Euler-angles of the rotation matrix \c *this using the convention defined by the triplet (`a0`,`a1`,`a2`)
4
4
  *
5
- * Each of the three parameters \a a0,\a a1,\a a2 represents the respective rotation axis as an integer in {0,1,2}.
5
+ * Each of the three parameters `a0`, `a1`, `a2` represents the respective rotation axis as an integer in {0,1,2}.
6
6
  * For instance, in:
7
- * \code Vector3f ea = mat.eulerAngles(2, 0, 2); \endcode
7
+ * ```
8
+ * Vector3f ea = mat.eulerAngles(2, 0, 2);
9
+ * ```
8
10
  * "2" represents the z axis and "0" the x axis, etc. The returned angles are such that
9
11
  * we have the following equality:
10
- * \code
12
+ * ```
11
13
  * mat == AngleAxisf(ea[0], Vector3f::UnitZ())
12
14
  * * AngleAxisf(ea[1], Vector3f::UnitX())
13
- * * AngleAxisf(ea[2], Vector3f::UnitZ()); \endcode
15
+ * * AngleAxisf(ea[2], Vector3f::UnitZ());
16
+ * ```
14
17
  * This corresponds to the right-multiply conventions (with right hand side frames).
15
18
  *
16
19
  * The returned angles are in the ranges [0:pi]x[-pi:pi]x[-pi:pi].
17
20
 
18
21
  * NOTE: ported from Eigen C++ library
22
+ *
19
23
  * @see https://gitlab.com/libeigen/eigen/-/blob/master/Eigen/src/Geometry/EulerAngles.h
20
24
  * @see https://stackoverflow.com/questions/11514063/extract-yaw-pitch-and-roll-from-a-rotationmatrix
25
+ *
21
26
  * @param {number[]} output
22
27
  * @param {number[]|Float32Array|mat4} m4 source matrix to extract rotation from
23
28
  * @param {number} a0 axis index (0 = X, 1 = Y, 2 = Z)
@@ -1 +1 @@
1
- {"version":3,"file":"eulerAnglesFromMatrix.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/mat4/eulerAnglesFromMatrix.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,8CANW,MAAM,EAAE,MACR,MAAM,EAAE,GAAC,YAAY,OAAK,MAC1B,MAAM,MACN,MAAM,MACN,MAAM,QA2EhB"}
1
+ {"version":3,"file":"eulerAnglesFromMatrix.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/mat4/eulerAnglesFromMatrix.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,8CANW,MAAM,EAAE,MACR,MAAM,EAAE,GAAC,YAAY,OAAK,MAC1B,MAAM,MACN,MAAM,MACN,MAAM,QA2EhB"}
@@ -7,6 +7,7 @@ import { v2_length } from "../../vec2/v2_length.js";
7
7
  * @param {number} row_index
8
8
  * @param {number} column_index
9
9
  * @return {number}
10
+ * @ignore
10
11
  */
11
12
  function coeff(mat4, row_index, column_index) {
12
13
  return mat4[row_index + column_index * 4];
@@ -18,24 +19,29 @@ const atan2 = Math.atan2;
18
19
 
19
20
  /**
20
21
  *
21
- * \returns the Euler-angles of the rotation matrix \c *this using the convention defined by the triplet (\a a0,\a a1,\a a2)
22
+ * returns the Euler-angles of the rotation matrix \c *this using the convention defined by the triplet (`a0`,`a1`,`a2`)
22
23
  *
23
- * Each of the three parameters \a a0,\a a1,\a a2 represents the respective rotation axis as an integer in {0,1,2}.
24
+ * Each of the three parameters `a0`, `a1`, `a2` represents the respective rotation axis as an integer in {0,1,2}.
24
25
  * For instance, in:
25
- * \code Vector3f ea = mat.eulerAngles(2, 0, 2); \endcode
26
+ * ```
27
+ * Vector3f ea = mat.eulerAngles(2, 0, 2);
28
+ * ```
26
29
  * "2" represents the z axis and "0" the x axis, etc. The returned angles are such that
27
30
  * we have the following equality:
28
- * \code
31
+ * ```
29
32
  * mat == AngleAxisf(ea[0], Vector3f::UnitZ())
30
33
  * * AngleAxisf(ea[1], Vector3f::UnitX())
31
- * * AngleAxisf(ea[2], Vector3f::UnitZ()); \endcode
34
+ * * AngleAxisf(ea[2], Vector3f::UnitZ());
35
+ * ```
32
36
  * This corresponds to the right-multiply conventions (with right hand side frames).
33
37
  *
34
38
  * The returned angles are in the ranges [0:pi]x[-pi:pi]x[-pi:pi].
35
39
 
36
40
  * NOTE: ported from Eigen C++ library
41
+ *
37
42
  * @see https://gitlab.com/libeigen/eigen/-/blob/master/Eigen/src/Geometry/EulerAngles.h
38
43
  * @see https://stackoverflow.com/questions/11514063/extract-yaw-pitch-and-roll-from-a-rotationmatrix
44
+ *
39
45
  * @param {number[]} output
40
46
  * @param {number[]|Float32Array|mat4} m4 source matrix to extract rotation from
41
47
  * @param {number} a0 axis index (0 = X, 1 = Y, 2 = Z)
@@ -8,7 +8,7 @@
8
8
  * @param {number} a
9
9
  * @param {number} b
10
10
  * @param {number} value
11
- * @returns {number} fraction of where the {@link value{} lies between {@link a} and {@link b}
11
+ * @returns {number} fraction of where the {@link value} lies between {@link a} and {@link b}
12
12
  */
13
13
  export function inverseLerp(a: number, b: number, value: number): number;
14
14
  //# sourceMappingURL=inverseLerp.d.ts.map
@@ -8,7 +8,7 @@
8
8
  * @param {number} a
9
9
  * @param {number} b
10
10
  * @param {number} value
11
- * @returns {number} fraction of where the {@link value{} lies between {@link a} and {@link b}
11
+ * @returns {number} fraction of where the {@link value} lies between {@link a} and {@link b}
12
12
  */
13
13
  export function inverseLerp(a, b, value) {
14
14
  const range = b - a;
@@ -18,7 +18,7 @@ export function inverseLerp(a, b, value) {
18
18
 
19
19
  // avoid division by zero error
20
20
 
21
- // this is arbitrary output, as actual answer is undefined
21
+ // this is arbitrary output, as the actual answer is undefined
22
22
 
23
23
  return 0;
24
24
  }
@@ -3,26 +3,18 @@ export function cadd(a: any, b: any): Float64Array;
3
3
  export function cmult(a: any, b: any): Float64Array;
4
4
  export function cdiv(a: any, b: any): Float64Array;
5
5
  /**
6
- * The following source code implements Lorenz-Mie theory using the formulas presented in the SIGGRAPH 2007 paper
7
- *
8
- * "Computing the Scattering Properties of Participating Media Using Lorenz-Mie Theory"
9
- *
10
- * By authors: Jeppe Revall Frisvad
11
- * Niels Joergen Christensen
12
- * Henrik Wann Jensen
13
- *
14
- * Code written by Jeppe Revall Frisvad, 2017.
15
- * Copyright (c) Jeppe Revall Frisvad 2017
16
- *
17
- * Permission is granted to anyone to use this code as
18
- * software for any purpose, including commercial applications.
19
- * However, the software is provided 'as-is' without any warranty.
6
+ * Implementation of Lorenz-Mie theory.
7
+ * Useful for calculating physically correct radiation scattering events for particles in a medium.
20
8
  *
21
9
  * @param {number} radius_m - Particle radius (in meters).
22
10
  * @param {number} wavelength_m - Wavelength of light in vacuum (in meters).
23
11
  * @param {vec2} n_p - Complex refractive index of the particle
24
12
  * @param {vec2} n_med - Complex refractive index of the medium (e.g., [1.0, 0.0] for air).
25
13
  * @returns {Float64Array} Mie coefficients a_n and b_n in form [a_n0.r, a_n0.i, b_n0.r, b_n0.i, ... a_nN.r, a_nN.i, b_nN.r, b_nN.i]
14
+ *
15
+ * @see "Computing the Scattering Properties of Participating Media Using Lorenz-Mie Theory", SIGGRAPH 2007 by Frisvad et al.
16
+ * @see https://en.wikipedia.org/wiki/Mie_scattering
17
+ * @author Alexander Goldring (c) 2025
26
18
  */
27
19
  export function lorenz_mie_coefs(wavelength_m: number, radius_m: number, n_p: typeof vec2, n_med: typeof vec2): Float64Array;
28
20
  //# sourceMappingURL=lorenz_mie_coefs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lorenz_mie_coefs.d.ts","sourceRoot":"","sources":["../../../../../../src/core/math/physics/mie/lorenz_mie_coefs.js"],"names":[],"mappings":"AAOA,mDAEC;AAMD,mDAMC;AAWD,oDAOC;AAED,mDAOC;AA8GD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,+CALW,MAAM,YADN,MAAM,yCAIJ,YAAY,CAqDxB"}
1
+ {"version":3,"file":"lorenz_mie_coefs.d.ts","sourceRoot":"","sources":["../../../../../../src/core/math/physics/mie/lorenz_mie_coefs.js"],"names":[],"mappings":"AAOA,mDAEC;AAMD,mDAMC;AAWD,oDAOC;AAED,mDAOC;AAgHD;;;;;;;;;;;;;GAaG;AACH,+CATW,MAAM,YADN,MAAM,yCAIJ,YAAY,CAyDxB"}
@@ -85,6 +85,7 @@ function psi_zeta(n, z, A, old_B, old_psi_zeta) {
85
85
  * @param {vec2} old_B - The previous B coefficient (B_{n-1}).
86
86
  * @param {vec2} old_psi_zeta - The previous psi_zeta product term.
87
87
  * @returns {vec2} The new B_n coefficient (complex number).
88
+ * @ignore
88
89
  */
89
90
  function B(n, z, A, old_B, old_psi_zeta) {
90
91
 
@@ -106,6 +107,7 @@ function B(n, z, A, old_B, old_psi_zeta) {
106
107
  * @param {vec2} B_n - The current B_n(z) coefficient.
107
108
  * @param {vec2} old_R - The previous R coefficient (R_{n-1}).
108
109
  * @returns {vec2} The new R_n coefficient (complex number).
110
+ * @ignore
109
111
  */
110
112
  function R(n, z, A, B_n, old_R) {
111
113
  if (n > 0) {
@@ -129,8 +131,8 @@ function R(n, z, A, B_n, old_R) {
129
131
  * @param {vec2} old_B - The previous B_{n-1}(x) coefficient.
130
132
  * @param {vec2} old_R - The previous R_{n-1}(x) coefficient.
131
133
  * @param {vec2} old_psi_zeta - The previous psi_zeta product.
132
- * @returns {vec4} A vec4 [Re(a_n), Im(a_n), Re(b_n), Im(b_n)] with state properties
133
- * (.old_B, .old_R, .old_psi_zeta) attached for the next iteration.
134
+ * @returns {vec4} A vec4 [Re(a_n), Im(a_n), Re(b_n), Im(b_n)] with state properties (.old_B, .old_R, .old_psi_zeta) attached for the next iteration.
135
+ * @ignore
134
136
  */
135
137
  function LorenzMie_ab(n, size, n_p, n_med, A_p, A_med, old_B, old_R, old_psi_zeta) {
136
138
 
@@ -157,26 +159,18 @@ function LorenzMie_ab(n, size, n_p, n_med, A_p, A_med, old_B, old_R, old_psi_zet
157
159
  }
158
160
 
159
161
  /**
160
- * The following source code implements Lorenz-Mie theory using the formulas presented in the SIGGRAPH 2007 paper
161
- *
162
- * "Computing the Scattering Properties of Participating Media Using Lorenz-Mie Theory"
163
- *
164
- * By authors: Jeppe Revall Frisvad
165
- * Niels Joergen Christensen
166
- * Henrik Wann Jensen
167
- *
168
- * Code written by Jeppe Revall Frisvad, 2017.
169
- * Copyright (c) Jeppe Revall Frisvad 2017
170
- *
171
- * Permission is granted to anyone to use this code as
172
- * software for any purpose, including commercial applications.
173
- * However, the software is provided 'as-is' without any warranty.
162
+ * Implementation of Lorenz-Mie theory.
163
+ * Useful for calculating physically correct radiation scattering events for particles in a medium.
174
164
  *
175
165
  * @param {number} radius_m - Particle radius (in meters).
176
166
  * @param {number} wavelength_m - Wavelength of light in vacuum (in meters).
177
167
  * @param {vec2} n_p - Complex refractive index of the particle
178
168
  * @param {vec2} n_med - Complex refractive index of the medium (e.g., [1.0, 0.0] for air).
179
169
  * @returns {Float64Array} Mie coefficients a_n and b_n in form [a_n0.r, a_n0.i, b_n0.r, b_n0.i, ... a_nN.r, a_nN.i, b_nN.r, b_nN.i]
170
+ *
171
+ * @see "Computing the Scattering Properties of Participating Media Using Lorenz-Mie Theory", SIGGRAPH 2007 by Frisvad et al.
172
+ * @see https://en.wikipedia.org/wiki/Mie_scattering
173
+ * @author Alexander Goldring (c) 2025
180
174
  */
181
175
  export function lorenz_mie_coefs(
182
176
  wavelength_m,
@@ -1 +1 @@
1
- {"version":3,"file":"sign.d.ts","sourceRoot":"","sources":["../../../../src/core/math/sign.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAHW,MAAM,GACJ,MAAM,CAIlB"}
1
+ {"version":3,"file":"sign.d.ts","sourceRoot":"","sources":["../../../../src/core/math/sign.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAHW,MAAM,GACJ,MAAM,CAIlB"}
@@ -1,7 +1,10 @@
1
1
  /**
2
+ * Positive number produce 1, negative -1 and 0 produces 0.
3
+ *
4
+ * Standard implementation in graphics languages such as HLSL and GLSL
2
5
  *
3
6
  * @param {number} v
4
- * @returns {number} +1 if v>0, 0 if v == 0, -1 if v<0
7
+ * @returns {number} +1 if `v > 0`, 0 if `v == 0`, -1 if `v < 0`
5
8
  */
6
9
  export function sign(v) {
7
10
  return v > 0 ? 1 : (v < 0 ? -1 : 0);
@@ -0,0 +1,65 @@
1
+ export default EntityAnimation;
2
+ declare class EntityAnimation {
3
+ /**
4
+ *
5
+ * @param {number} entity
6
+ */
7
+ constructor(entity: number);
8
+ /**
9
+ * @type {Array.<AnimationSpec>} animationSpecs
10
+ */
11
+ animationSpecs: Array<AnimationSpec>;
12
+ ended: ObservedValue;
13
+ entity: number;
14
+ /**
15
+ *
16
+ * @returns {Promise<any>}
17
+ */
18
+ promiseEnd(): Promise<any>;
19
+ __create(type: any, parameter: any, duration: any, transitionFunction: any): this;
20
+ translate(parameter: any, duration: any, timingFunction: any): this;
21
+ fade(parameter: any, duration: any, timingFunction: any): this;
22
+ /**
23
+ *
24
+ * @param {function(animation:EntityAnimation):void} callback
25
+ * @returns {EntityAnimation}
26
+ */
27
+ onEnded(callback: any): EntityAnimation;
28
+ start(em: any): void;
29
+ }
30
+ /**
31
+ * @ignore
32
+ */
33
+ declare class AnimationSpec {
34
+ /**
35
+ *
36
+ * @param {AnimationSpec.Type} type
37
+ * @param {number} parameter
38
+ * @param {number} duration in seconds
39
+ * @param {function(x:number):number} transitionFunction
40
+ */
41
+ constructor(type: {
42
+ TRANSLATE: number;
43
+ FADE: number;
44
+ }, parameter: number, duration: number, transitionFunction: any);
45
+ parameter: number;
46
+ duration: number;
47
+ transitionFunction: any;
48
+ type: {
49
+ TRANSLATE: number;
50
+ FADE: number;
51
+ };
52
+ /**
53
+ *
54
+ * @type {Tween|null}
55
+ */
56
+ tween: Tween | null;
57
+ }
58
+ declare namespace AnimationSpec {
59
+ namespace Type {
60
+ let TRANSLATE: number;
61
+ let FADE: number;
62
+ }
63
+ }
64
+ import ObservedValue from '../../core/model/ObservedValue.js';
65
+ //# sourceMappingURL=EntityAnimation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityAnimation.d.ts","sourceRoot":"","sources":["../../../../src/engine/animation/EntityAnimation.js"],"names":[],"mappings":";AAiCA;IAQI;;;OAGG;IACH,oBAFW,MAAM,EAIhB;IAbD;;OAEG;IACH,gBAFU,MAAO,aAAa,CAAC,CAEX;IAEpB,qBAAiC;IAO7B,eAAoB;IAGxB;;;OAGG;IACH,cAFa,QAAQ,GAAG,CAAC,CAUxB;IAED,kFAGC;IAED,oEAEC;IAED,+DAEC;IAED;;;;OAIG;IACH,wBAFa,eAAe,CAW3B;IAED,qBA4CC;CACJ;AAtID;;GAEG;AACH;IACI;;;;;;OAMG;IACH;;;kBAJW,MAAM,YACN,MAAM,2BAchB;IAVG,kBAA0B;IAC1B,iBAAwB;IACxB,wBAA4C;IAC5C;;;MAAgB;IAEhB;;;OAGG;IACH,OAFU,QAAM,IAAI,CAEH;CAExB;;;;;;;0BA1ByB,mCAAmC"}
@@ -2,130 +2,141 @@ import ObservedValue from '../../core/model/ObservedValue.js';
2
2
  import Animations from './Animations.js';
3
3
 
4
4
  /**
5
- *
6
- * @param {AnimationSpec.Type} type
7
- * @param {number} parameter
8
- * @param {number} duration in seconds
9
- * @param {function(x:number):number} transitionFunction
10
- * @constructor
11
- * @see {Tween} for more information on transition function
5
+ * @ignore
12
6
  */
13
- const AnimationSpec = function (type, parameter, duration, transitionFunction) {
14
- this.parameter = parameter;
15
- this.duration = duration;
16
- this.transitionFunction = transitionFunction;
17
- this.type = type;
18
-
19
- this.tween = null;
20
- };
7
+ class AnimationSpec {
8
+ /**
9
+ *
10
+ * @param {AnimationSpec.Type} type
11
+ * @param {number} parameter
12
+ * @param {number} duration in seconds
13
+ * @param {function(x:number):number} transitionFunction
14
+ */
15
+ constructor(type, parameter, duration, transitionFunction) {
16
+ this.parameter = parameter;
17
+ this.duration = duration;
18
+ this.transitionFunction = transitionFunction;
19
+ this.type = type;
20
+
21
+ /**
22
+ *
23
+ * @type {Tween|null}
24
+ */
25
+ this.tween = null;
26
+ }
27
+ }
21
28
 
22
29
  AnimationSpec.Type = {
23
30
  TRANSLATE: 0,
24
31
  FADE: 1
25
32
  };
26
33
 
27
- /**
28
- *
29
- * @param {number} entity
30
- * @constructor
31
- * @property {Array.<AnimationSpec>} animationSpecs
32
- */
33
- const EntityAnimation = function (entity) {
34
- this.entity = entity;
35
- this.animationSpecs = [];
36
-
37
- this.ended = new ObservedValue(false);
38
- };
39
-
40
- /**
41
- *
42
- * @returns {Promise<any>}
43
- */
44
- EntityAnimation.prototype.promiseEnd = function () {
45
- return new Promise((resolve, reject) => {
46
- if (this.ended.getValue()) {
47
- resolve();
48
- } else {
49
- this.ended.onChanged.addOne(resolve);
50
- }
51
- })
52
- };
34
+ class EntityAnimation {
35
+ /**
36
+ * @type {Array.<AnimationSpec>} animationSpecs
37
+ */
38
+ animationSpecs = [];
53
39
 
54
- EntityAnimation.prototype.__create = function (type, parameter, duration, transitionFunction) {
55
- this.animationSpecs.push(new AnimationSpec(type, parameter, duration, transitionFunction));
56
- return this;
57
- };
40
+ ended = new ObservedValue(false);
58
41
 
59
- EntityAnimation.prototype.translate = function (parameter, duration, timingFunction) {
60
- return this.__create(AnimationSpec.Type.TRANSLATE, parameter, duration, timingFunction);
61
- };
42
+ /**
43
+ *
44
+ * @param {number} entity
45
+ */
46
+ constructor(entity) {
47
+ this.entity = entity;
48
+ }
62
49
 
63
- EntityAnimation.prototype.fade = function (parameter, duration, timingFunction) {
64
- return this.__create(AnimationSpec.Type.FADE, parameter, duration, timingFunction);
65
- };
50
+ /**
51
+ *
52
+ * @returns {Promise<any>}
53
+ */
54
+ promiseEnd() {
55
+ return new Promise((resolve, reject) => {
56
+ if (this.ended.getValue()) {
57
+ resolve();
58
+ } else {
59
+ this.ended.onChanged.addOne(resolve);
60
+ }
61
+ })
62
+ }
66
63
 
67
- /**
68
- *
69
- * @param {function(animation:EntityAnimation):void} callback
70
- * @returns {EntityAnimation}
71
- */
72
- EntityAnimation.prototype.onEnded = function (callback) {
73
- const self = this;
74
- this.ended.onChanged.add(function (v) {
75
- if (v) {
76
- callback(self);
77
- }
78
- });
64
+ __create(type, parameter, duration, transitionFunction) {
65
+ this.animationSpecs.push(new AnimationSpec(type, parameter, duration, transitionFunction));
66
+ return this;
67
+ }
79
68
 
80
- return this;
81
- };
69
+ translate(parameter, duration, timingFunction) {
70
+ return this.__create(AnimationSpec.Type.TRANSLATE, parameter, duration, timingFunction);
71
+ }
82
72
 
73
+ fade(parameter, duration, timingFunction) {
74
+ return this.__create(AnimationSpec.Type.FADE, parameter, duration, timingFunction);
75
+ }
83
76
 
84
- EntityAnimation.prototype.start = function (em) {
85
- const entity = this.entity;
86
- const self = this;
77
+ /**
78
+ *
79
+ * @param {function(animation:EntityAnimation):void} callback
80
+ * @returns {EntityAnimation}
81
+ */
82
+ onEnded(callback) {
83
+ const self = this;
84
+ this.ended.onChanged.add(function (v) {
85
+ if (v) {
86
+ callback(self);
87
+ }
88
+ });
89
+
90
+ return this;
91
+ }
87
92
 
88
- this.ended.set(false);
93
+ start(em) {
94
+ const entity = this.entity;
95
+ const self = this;
89
96
 
90
- function buildTranslation(spec, em) {
91
- spec.tween = Animations.translate(entity, em, spec.parameter, spec.duration, spec.transitionFunction);
92
- }
97
+ this.ended.set(false);
93
98
 
94
- function buildFade(spec, em) {
95
- spec.tween = Animations.fade(entity, em, spec.parameter, spec.duration, spec.transitionFunction);
96
- }
99
+ function buildTranslation(spec, em) {
100
+ spec.tween = Animations.translate(entity, em, spec.parameter, spec.duration, spec.transitionFunction);
101
+ }
97
102
 
98
- this.animationSpecs.forEach(function (spec) {
99
- switch (spec.type) {
100
- case AnimationSpec.Type.TRANSLATE:
101
- buildTranslation(spec, em);
102
- break;
103
- case AnimationSpec.Type.FADE:
104
- buildFade(spec, em);
105
- break;
106
- default:
107
- console.error('Unknown animation type:', spec.type);
103
+ function buildFade(spec, em) {
104
+ spec.tween = Animations.fade(entity, em, spec.parameter, spec.duration, spec.transitionFunction);
108
105
  }
109
- });
110
- let runningTweenCount = 0;
111
106
 
112
- function handleTweenEnded() {
113
- runningTweenCount--;
114
- if (runningTweenCount <= 0) {
115
- self.ended.set(true);
107
+ this.animationSpecs.forEach(function (spec) {
108
+ switch (spec.type) {
109
+ case AnimationSpec.Type.TRANSLATE:
110
+ buildTranslation(spec, em);
111
+ break;
112
+ case AnimationSpec.Type.FADE:
113
+ buildFade(spec, em);
114
+ break;
115
+ default:
116
+ console.error('Unknown animation type:', spec.type);
117
+ }
118
+ });
119
+ let runningTweenCount = 0;
120
+
121
+ function handleTweenEnded() {
122
+ runningTweenCount--;
123
+ if (runningTweenCount <= 0) {
124
+ self.ended.set(true);
125
+ }
116
126
  }
127
+
128
+ //start all tweens
129
+ this.animationSpecs.forEach(function (spec) {
130
+ const tween = spec.tween;
131
+ if (tween !== null) {
132
+ runningTweenCount++;
133
+ tween.on.ended.add(handleTweenEnded);
134
+ tween.build(em);
135
+ }
136
+ });
117
137
  }
138
+ }
118
139
 
119
- //start all tweens
120
- this.animationSpecs.forEach(function (spec) {
121
- const tween = spec.tween;
122
- if (tween !== null) {
123
- runningTweenCount++;
124
- tween.on.ended.add(handleTweenEnded);
125
- tween.build(em);
126
- }
127
- });
128
- };
129
140
 
130
141
  export default EntityAnimation;
131
142
 
@@ -1 +1 @@
1
- {"version":3,"file":"NativeImageDecoder.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/asset/loaders/image/codec/NativeImageDecoder.js"],"names":[],"mappings":"AAyDA;;;GAGG;AACH;WAF0B,MAAM;YAAS,MAAM;UAAQ,UAAU;cAAY,MAAM;cAAW,MAAM;;;IAGhG;;;;OAIG;IACH,iBAHW,UAAU,GACT;QAAC,IAAI,EAAE,UAAU,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAgBhG;IAED;;;;;;OAiBC;CACJ;sBArGqB,YAAY"}
1
+ {"version":3,"file":"NativeImageDecoder.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/asset/loaders/image/codec/NativeImageDecoder.js"],"names":[],"mappings":"AA4DA;;;GAGG;AACH;WAF0B,MAAM;YAAS,MAAM;UAAQ,UAAU;cAAY,MAAM;cAAW,MAAM;;;IAGhG;;;;OAIG;IACH,iBAHW,UAAU,GACT;QAAC,IAAI,EAAE,UAAU,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAgBhG;IAED;;;;;;OAiBC;CACJ;sBAxGqB,YAAY"}
@@ -4,6 +4,7 @@ import { Codec } from "./Codec.js";
4
4
  *
5
5
  * @param {Image|ImageBitmap|HTMLImageElement} img
6
6
  * @returns {Uint8Array}
7
+ * @ignore
7
8
  */
8
9
  function decode(img) {
9
10
  const width = img.width;
@@ -27,6 +28,7 @@ function decode(img) {
27
28
  /**
28
29
  *
29
30
  * @param {HTMLImageElement} image
31
+ * @ignore
30
32
  */
31
33
  function make_decoded_data(image) {
32
34
 
@@ -49,6 +51,7 @@ function make_decoded_data(image) {
49
51
  * Don't forget to call `URL.revokeObjectURL(url)` when done
50
52
  * @param {Uint8Array} data
51
53
  * @return {string}
54
+ * @ignore
52
55
  */
53
56
  function data_to_url(data){
54
57
  const blob = new Blob([data]);
@@ -163,9 +163,12 @@ export class PNGReader {
163
163
  * @param {number} output_offset
164
164
  * @param {number} output_offset_previous where does result of previous scanline begin in the output? Needed for various filters such as `Up`
165
165
  * @param {number} length
166
+ *
167
+ * @see https://www.w3.org/TR/PNG-Filters.html
166
168
  */
167
169
  unFilter(filter_type: number, data: Uint8Array, scanline_address: number, output: Uint8Array, bytes_per_pixel: number, output_offset: number, output_offset_previous: number, length: number): void;
168
170
  /**
171
+ * With the None filter, the scanline is transmitted unmodified; it is only necessary to insert a filter type byte before the data.
169
172
  *
170
173
  * @param {Uint8Array} data
171
174
  * @param {number} scanline_address
@@ -174,12 +177,14 @@ export class PNGReader {
174
177
  * @param {number} output_offset
175
178
  * @param {number} output_offset_previous
176
179
  * @param {number} length
180
+ *
181
+ * @see https://www.w3.org/TR/PNG-Filters.html
177
182
  */
178
183
  unFilterNone(data: Uint8Array, scanline_address: number, output: Uint8Array, bytes_per_pixel: number, output_offset: number, output_offset_previous: number, length: number): void;
179
184
  /**
180
- * The Sub() filter transmits the difference between each byte and the value
185
+ * The `Sub` filter transmits the difference between each byte and the value
181
186
  * of the corresponding byte of the prior pixel.
182
- * Sub(x) = Raw(x) + Raw(x - bpp)
187
+ * `Sub(x) = Raw(x) + Raw(x - bpp)`
183
188
  *
184
189
  * @param {Uint8Array} scanline raw data
185
190
  * @param {number} scanline_offset
@@ -188,13 +193,14 @@ export class PNGReader {
188
193
  * @param {number} offset
189
194
  * @param {number} output_offset_previous
190
195
  * @param {number} length
196
+ * @see https://www.w3.org/TR/PNG-Filters.html
191
197
  */
192
198
  unFilterSub(scanline: Uint8Array, scanline_offset: number, pixels: Uint8Array, bpp: number, offset: number, output_offset_previous: number, length: number): void;
193
199
  /**
194
- * The Up() filter is just like the Sub() filter except that the pixel
200
+ * The `Up` filter is just like the Sub() filter except that the pixel
195
201
  * immediately above the current pixel, rather than just to its left, is used
196
202
  * as the predictor.
197
- * Up(x) = Raw(x) + Prior(x)
203
+ * `Up(x) = Raw(x) + Prior(x)`
198
204
  *
199
205
  * @param {Uint8Array} scanline raw data
200
206
  * @param {number} scanline_offset
@@ -203,12 +209,14 @@ export class PNGReader {
203
209
  * @param {number} offset
204
210
  * @param {number} output_offset_previous
205
211
  * @param {number} length
212
+ * @see https://www.w3.org/TR/PNG-Filters.html
206
213
  */
207
214
  unFilterUp(scanline: Uint8Array, scanline_offset: number, pixels: Uint8Array, bpp: number, offset: number, output_offset_previous: number, length: number): void;
208
215
  /**
209
- * The Average() filter uses the average of the two neighboring pixels (left
216
+ * The `Average` filter uses the average of the two neighboring pixels (left
210
217
  * and above) to predict the value of a pixel.
211
- * Average(x) = Raw(x) + floor((Raw(x-bpp)+Prior(x))/2)
218
+ *
219
+ * `Average(x) = Raw(x) + floor((Raw(x-bpp)+Prior(x))/2)`
212
220
  *
213
221
  * @param {Uint8Array} scanline raw data
214
222
  * @param {number} scanline_offset
@@ -217,29 +225,14 @@ export class PNGReader {
217
225
  * @param {number} offset
218
226
  * @param {number} output_offset_previous
219
227
  * @param {number} length
228
+ *
229
+ * @see https://www.w3.org/TR/PNG-Filters.html
220
230
  */
221
231
  unFilterAverage(scanline: Uint8Array, scanline_offset: number, pixels: Uint8Array, bpp: number, offset: number, output_offset_previous: number, length: number): void;
222
232
  /**
223
- * The Paeth() filter computes a simple linear function of the three
224
- * neighboring pixels (left, above, upper left), then chooses as predictor
225
- * the neighboring pixel closest to the computed value.
226
- * This technique is due to Alan W. Paeth.
233
+ * The `Paeth` filter computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value.
227
234
  *
228
- * Paeth(x) = Raw(x) +
229
- * PaethPredictor(Raw(x-bpp), Prior(x), Prior(x-bpp))
230
- * function PaethPredictor (a, b, c)
231
- * begin
232
- * ; a = left, b = above, c = upper left
233
- * p := a + b - c ; initial estimate
234
- * pa := abs(p - a) ; distances to a, b, c
235
- * pb := abs(p - b)
236
- * pc := abs(p - c)
237
- * ; return nearest of a,b,c,
238
- * ; breaking ties in order a,b,c.
239
- * if pa <= pb AND pa <= pc then return a
240
- * else if pb <= pc then return b
241
- * else return c
242
- * end
235
+ * This technique is due to Alan W. Paeth.
243
236
  *
244
237
  * @param {Uint8Array} scanline raw data
245
238
  * @param {number} scanline_offset
@@ -248,6 +241,8 @@ export class PNGReader {
248
241
  * @param {number} offset
249
242
  * @param {number} output_offset_previous
250
243
  * @param {number} length
244
+ *
245
+ * @see https://www.w3.org/TR/PNG-Filters.html
251
246
  */
252
247
  unFilterPaeth(scanline: Uint8Array, scanline_offset: number, pixels: Uint8Array, bpp: number, offset: number, output_offset_previous: number, length: number): void;
253
248
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"PNGReader.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/asset/loaders/image/png/PNGReader.js"],"names":[],"mappings":"AAyDA;;;;GAIG;AACH,iCAHW,WAAW,QAkDrB;;IApDD;;;;OAIG;IACH,mBAHW,WAAW,EAkDrB;IA9CG;;;OAGG;IACH,GAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,OAFU,UAAU,CAEc;IAElC;;;OAGG;IACH,KAFU,GAAG,CAEO;IAEpB;;;OAGG;IACH,YAFU,UAAU,EAAE,CAEF;IAEpB;;;OAGG;IACH,QAFU,YAAY,CAEU;IAOhC;;;OAGG;IACH,aAFU,OAAO,CAEO;IAExB;;;OAGG;IACH,QAFU,UAAU,CAEW;IAGnC;;;;OAIG;IACH,kBAHW,MAAM,GACL,UAAU,CAarB;IAED;;OAEG;IACH,qBAkBC;IAED;;;;;;;;;OASG;IACH,eAFa,MAAM,CA4ElB;IAGD;;;OAGG;IACH,kBAFW,UAAU,QAOpB;IAED;;;OAGG;IACH,kBAFW,UAAU,QAapB;IAED;;;;OAIG;IACH,kBAFW,UAAU;;;;;MAuCpB;IAGD;;;;OAIG;IACH,kBAFW,UAAU;;;MAiCpB;IAED;;;OAGG;IACH,kBAFW,UAAU,QASpB;IACD;;;;OAIG;IACH,kBAFW,UAAU,QAwBpB;IAED;;;;;;;;;;;OAWG;IACH,6BAWC;IAED;;;;OAIG;IACH,kBAFW,UAAU,QAIpB;IAED;;OAEG;IACH,6BAGC;IAED;;;OAGG;IACH,kBAFW,UAAU,QAIpB;IAED;;OAEG;IACH,mBACC;IAED;;OAEG;IACH,qBAyBC;IAID;;OAEG;IACH,oBAFW,UAAU,cA+CpB;IAGD;;;OAGG;IACH,qBAFW,UAAU,4BA8GpB;IAID;;;;;;;;;;OAUG;IACH,sBATW,MAAM,QACN,UAAU,oBACV,MAAM,UACN,UAAU,mBACV,MAAM,iBACN,MAAM,0BACN,MAAM,UACN,MAAM,QA6EhB;IAED;;;;;;;;;OASG;IACH,mBARW,UAAU,oBACV,MAAM,UACN,UAAU,mBACV,MAAM,iBACN,MAAM,0BACN,MAAM,UACN,MAAM,QA+ChB;IAED;;;;;;;;;;;;OAYG;IACH,sBARW,UAAU,mBACV,MAAM,UACN,UAAU,OACV,MAAM,UACN,MAAM,0BACN,MAAM,UACN,MAAM,QAwBhB;IAED;;;;;;;;;;;;;OAaG;IACH,qBARW,UAAU,mBACV,MAAM,UACN,UAAU,OACV,MAAM,UACN,MAAM,0BACN,MAAM,UACN,MAAM,QAkChB;IAED;;;;;;;;;;;;OAYG;IACH,0BARW,UAAU,mBACV,MAAM,UACN,UAAU,OACV,MAAM,UACN,MAAM,0BACN,MAAM,UACN,MAAM,QA4ChB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,wBARW,UAAU,mBACV,MAAM,UACN,UAAU,OACV,MAAM,UACN,MAAM,0BACN,MAAM,UACN,MAAM,QA4DhB;IAED;;;OAGG;IACH,SAFa,GAAG,CAqBf;;oBA3gCmB,UAAU;6BAND,4CAA4C"}
1
+ {"version":3,"file":"PNGReader.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/asset/loaders/image/png/PNGReader.js"],"names":[],"mappings":"AAyDA;;;;GAIG;AACH,iCAHW,WAAW,QAkDrB;;IApDD;;;;OAIG;IACH,mBAHW,WAAW,EAkDrB;IA9CG;;;OAGG;IACH,GAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,OAFU,UAAU,CAEc;IAElC;;;OAGG;IACH,KAFU,GAAG,CAEO;IAEpB;;;OAGG;IACH,YAFU,UAAU,EAAE,CAEF;IAEpB;;;OAGG;IACH,QAFU,YAAY,CAEU;IAOhC;;;OAGG;IACH,aAFU,OAAO,CAEO;IAExB;;;OAGG;IACH,QAFU,UAAU,CAEW;IAGnC;;;;OAIG;IACH,kBAHW,MAAM,GACL,UAAU,CAarB;IAED;;OAEG;IACH,qBAkBC;IAED;;;;;;;;;OASG;IACH,eAFa,MAAM,CA4ElB;IAGD;;;OAGG;IACH,kBAFW,UAAU,QAOpB;IAED;;;OAGG;IACH,kBAFW,UAAU,QAapB;IAED;;;;OAIG;IACH,kBAFW,UAAU;;;;;MAuCpB;IAGD;;;;OAIG;IACH,kBAFW,UAAU;;;MAiCpB;IAED;;;OAGG;IACH,kBAFW,UAAU,QASpB;IACD;;;;OAIG;IACH,kBAFW,UAAU,QAwBpB;IAED;;;;;;;;;;;OAWG;IACH,6BAWC;IAED;;;;OAIG;IACH,kBAFW,UAAU,QAIpB;IAED;;OAEG;IACH,6BAGC;IAED;;;OAGG;IACH,kBAFW,UAAU,QAIpB;IAED;;OAEG;IACH,mBACC;IAED;;OAEG;IACH,qBAyBC;IAID;;OAEG;IACH,oBAFW,UAAU,cA+CpB;IAGD;;;OAGG;IACH,qBAFW,UAAU,4BA8GpB;IAID;;;;;;;;;;;;OAYG;IACH,sBAXW,MAAM,QACN,UAAU,oBACV,MAAM,UACN,UAAU,mBACV,MAAM,iBACN,MAAM,0BACN,MAAM,UACN,MAAM,QA+EhB;IAED;;;;;;;;;;;;OAYG;IACH,mBAVW,UAAU,oBACV,MAAM,UACN,UAAU,mBACV,MAAM,iBACN,MAAM,0BACN,MAAM,UACN,MAAM,QAiDhB;IAED;;;;;;;;;;;;;OAaG;IACH,sBATW,UAAU,mBACV,MAAM,UACN,UAAU,OACV,MAAM,UACN,MAAM,0BACN,MAAM,UACN,MAAM,QAyBhB;IAED;;;;;;;;;;;;;;OAcG;IACH,qBATW,UAAU,mBACV,MAAM,UACN,UAAU,OACV,MAAM,UACN,MAAM,0BACN,MAAM,UACN,MAAM,QAmChB;IAED;;;;;;;;;;;;;;;OAeG;IACH,0BAVW,UAAU,mBACV,MAAM,UACN,UAAU,OACV,MAAM,UACN,MAAM,0BACN,MAAM,UACN,MAAM,QA8ChB;IAED;;;;;;;;;;;;;;OAcG;IACH,wBAVW,UAAU,mBACV,MAAM,UACN,UAAU,OACV,MAAM,UACN,MAAM,0BACN,MAAM,UACN,MAAM,QA8DhB;IAED;;;OAGG;IACH,SAFa,GAAG,CAqBf;;oBAtgCmB,UAAU;6BAND,4CAA4C"}
@@ -654,6 +654,8 @@ PNGReader.prototype.interlaceAdam7 = function (data) {
654
654
  * @param {number} output_offset
655
655
  * @param {number} output_offset_previous where does result of previous scanline begin in the output? Needed for various filters such as `Up`
656
656
  * @param {number} length
657
+ *
658
+ * @see https://www.w3.org/TR/PNG-Filters.html
657
659
  */
658
660
  PNGReader.prototype.unFilter = function (
659
661
  filter_type,
@@ -733,6 +735,7 @@ PNGReader.prototype.unFilter = function (
733
735
  }
734
736
 
735
737
  /**
738
+ * With the None filter, the scanline is transmitted unmodified; it is only necessary to insert a filter type byte before the data.
736
739
  *
737
740
  * @param {Uint8Array} data
738
741
  * @param {number} scanline_address
@@ -741,6 +744,8 @@ PNGReader.prototype.unFilter = function (
741
744
  * @param {number} output_offset
742
745
  * @param {number} output_offset_previous
743
746
  * @param {number} length
747
+ *
748
+ * @see https://www.w3.org/TR/PNG-Filters.html
744
749
  */
745
750
  PNGReader.prototype.unFilterNone = function (
746
751
  data,
@@ -790,9 +795,9 @@ PNGReader.prototype.unFilterNone = function (
790
795
  };
791
796
 
792
797
  /**
793
- * The Sub() filter transmits the difference between each byte and the value
798
+ * The `Sub` filter transmits the difference between each byte and the value
794
799
  * of the corresponding byte of the prior pixel.
795
- * Sub(x) = Raw(x) + Raw(x - bpp)
800
+ * `Sub(x) = Raw(x) + Raw(x - bpp)`
796
801
  *
797
802
  * @param {Uint8Array} scanline raw data
798
803
  * @param {number} scanline_offset
@@ -801,6 +806,7 @@ PNGReader.prototype.unFilterNone = function (
801
806
  * @param {number} offset
802
807
  * @param {number} output_offset_previous
803
808
  * @param {number} length
809
+ * @see https://www.w3.org/TR/PNG-Filters.html
804
810
  */
805
811
  PNGReader.prototype.unFilterSub = function (
806
812
  scanline,
@@ -827,10 +833,10 @@ PNGReader.prototype.unFilterSub = function (
827
833
  };
828
834
 
829
835
  /**
830
- * The Up() filter is just like the Sub() filter except that the pixel
836
+ * The `Up` filter is just like the Sub() filter except that the pixel
831
837
  * immediately above the current pixel, rather than just to its left, is used
832
838
  * as the predictor.
833
- * Up(x) = Raw(x) + Prior(x)
839
+ * `Up(x) = Raw(x) + Prior(x)`
834
840
  *
835
841
  * @param {Uint8Array} scanline raw data
836
842
  * @param {number} scanline_offset
@@ -839,6 +845,7 @@ PNGReader.prototype.unFilterSub = function (
839
845
  * @param {number} offset
840
846
  * @param {number} output_offset_previous
841
847
  * @param {number} length
848
+ * @see https://www.w3.org/TR/PNG-Filters.html
842
849
  */
843
850
  PNGReader.prototype.unFilterUp = function (
844
851
  scanline,
@@ -875,9 +882,10 @@ PNGReader.prototype.unFilterUp = function (
875
882
  };
876
883
 
877
884
  /**
878
- * The Average() filter uses the average of the two neighboring pixels (left
885
+ * The `Average` filter uses the average of the two neighboring pixels (left
879
886
  * and above) to predict the value of a pixel.
880
- * Average(x) = Raw(x) + floor((Raw(x-bpp)+Prior(x))/2)
887
+ *
888
+ * `Average(x) = Raw(x) + floor((Raw(x-bpp)+Prior(x))/2)`
881
889
  *
882
890
  * @param {Uint8Array} scanline raw data
883
891
  * @param {number} scanline_offset
@@ -886,6 +894,8 @@ PNGReader.prototype.unFilterUp = function (
886
894
  * @param {number} offset
887
895
  * @param {number} output_offset_previous
888
896
  * @param {number} length
897
+ *
898
+ * @see https://www.w3.org/TR/PNG-Filters.html
889
899
  */
890
900
  PNGReader.prototype.unFilterAverage = function (
891
901
  scanline,
@@ -932,26 +942,9 @@ PNGReader.prototype.unFilterAverage = function (
932
942
  };
933
943
 
934
944
  /**
935
- * The Paeth() filter computes a simple linear function of the three
936
- * neighboring pixels (left, above, upper left), then chooses as predictor
937
- * the neighboring pixel closest to the computed value.
938
- * This technique is due to Alan W. Paeth.
945
+ * The `Paeth` filter computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value.
939
946
  *
940
- * Paeth(x) = Raw(x) +
941
- * PaethPredictor(Raw(x-bpp), Prior(x), Prior(x-bpp))
942
- * function PaethPredictor (a, b, c)
943
- * begin
944
- * ; a = left, b = above, c = upper left
945
- * p := a + b - c ; initial estimate
946
- * pa := abs(p - a) ; distances to a, b, c
947
- * pb := abs(p - b)
948
- * pc := abs(p - c)
949
- * ; return nearest of a,b,c,
950
- * ; breaking ties in order a,b,c.
951
- * if pa <= pb AND pa <= pc then return a
952
- * else if pb <= pc then return b
953
- * else return c
954
- * end
947
+ * This technique is due to Alan W. Paeth.
955
948
  *
956
949
  * @param {Uint8Array} scanline raw data
957
950
  * @param {number} scanline_offset
@@ -960,6 +953,8 @@ PNGReader.prototype.unFilterAverage = function (
960
953
  * @param {number} offset
961
954
  * @param {number} output_offset_previous
962
955
  * @param {number} length
956
+ *
957
+ * @see https://www.w3.org/TR/PNG-Filters.html
963
958
  */
964
959
  PNGReader.prototype.unFilterPaeth = function (
965
960
  scanline,
@@ -1 +1 @@
1
- {"version":3,"file":"GUIElementSystem.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/gui/GUIElementSystem.js"],"names":[],"mappings":"AAgCA,gFAAiF;;AAEjF;IAyBI;;;;;OAKG;IACH,2BAJW,IAAI,kBAqCd;IA9DD,gBAaG;IAEH,oCAA4B;IAE5B;;;OAGG;IACH,YAAY;IA2BR,iCAAkC;IAGlC;;OAEG;IACH,8BAA0C;IAE1C;;;OAGG;IACH,eAAoB;IAIxB,gCAGC;IAED,iCAEC;IAED;;;;OAIG;IACH,2BAHW,UAAU,UACV,MAAM,QA6DhB;IAED;;;;OAIG;IACH,2BAHW,UAAU,UACV,MAAM,QAoBhB;IAED;;;;OAIG;IACH,gBAHW,UAAU,qBAiDpB;IAED;;;;OAIG;IACH,kBAHW,UAAU,qBAiBpB;CACJ;uBA/QsB,cAAc;sBAFf,qCAAqC;uBAGhB,iBAAiB;iBAF3C,uBAAuB"}
1
+ {"version":3,"file":"GUIElementSystem.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/gui/GUIElementSystem.js"],"names":[],"mappings":"AAiCA,gFAAiF;;AAEjF;IAyBI;;;;;OAKG;IACH,2BAJW,IAAI,kBAqCd;IA9DD,gBAaG;IAEH,oCAA4B;IAE5B;;;OAGG;IACH,YAAY;IA2BR,iCAAkC;IAGlC;;OAEG;IACH,8BAA0C;IAE1C;;;OAGG;IACH,eAAoB;IAIxB,gCAGC;IAED,iCAEC;IAED;;;;OAIG;IACH,2BAHW,UAAU,UACV,MAAM,QA6DhB;IAED;;;;OAIG;IACH,2BAHW,UAAU,UACV,MAAM,QAoBhB;IAED;;;;OAIG;IACH,gBAHW,UAAU,qBAiDpB;IAED;;;;OAIG;IACH,kBAHW,UAAU,qBAiBpB;CACJ;uBAhRsB,cAAc;sBAFf,qCAAqC;uBAGhB,iBAAiB;iBAF3C,uBAAuB"}
@@ -7,6 +7,7 @@ import { GUIElementEvent } from "./GUIElementEvent.js";
7
7
  /**
8
8
  * @this {{el:GUIElement, system:GUIElementSystem, entity: number}}
9
9
  * @param {boolean} v
10
+ * @ignore
10
11
  */
11
12
  function handleComponentVisibilityChange(v) {
12
13
  /**
@@ -2,6 +2,7 @@
2
2
  * @this {View}
3
3
  * @param {number} alpha
4
4
  * @param {number} scale
5
+ * @ignore
5
6
  */
6
7
  export function updateAnimationState(this: View, alpha: number, scale: number): void;
7
8
  //# sourceMappingURL=updateAnimationState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateAnimationState.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/ecs/gui/menu/radial/updateAnimationState.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wDAHW,MAAM,SACN,MAAM,QAUhB"}
1
+ {"version":3,"file":"updateAnimationState.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/ecs/gui/menu/radial/updateAnimationState.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wDAJW,MAAM,SACN,MAAM,QAWhB"}
@@ -2,6 +2,7 @@
2
2
  * @this {View}
3
3
  * @param {number} alpha
4
4
  * @param {number} scale
5
+ * @ignore
5
6
  */
6
7
  export function updateAnimationState(alpha, scale) {
7
8
  this.scale.set(scale, scale);
@@ -1 +1 @@
1
- {"version":3,"file":"ViewportPositionSystem.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/ecs/gui/position/ViewportPositionSystem.js"],"names":[],"mappings":";AAsBA;IACI,+BAoBC;IAjBG,8DAAkD;IAElD,kEAEC;IAED,kBAAgC;IAEhC,yCAME;IAEF,SAAc;IAGlB,2CAEC;IAED,4CAEC;IAED;;;OAGG;IACH,sBAHW,UAAU,MACV,gBAAgB,QAkE1B;IAED;;;;;OAKG;IACH,SAJW,gBAAgB,MAChB,UAAU,qBA8BpB;IAED;;;;;OAKG;IACH,WAJW,gBAAgB,MAChB,UAAU,qBAmBpB;IA4EL;;;OAGG;IACH,mCAFU,OAAO,CAEwC;CA7ExD;uBAjLsB,iBAAiB;uBACjB,kBAAkB;6BAEZ,uBAAuB;4CAJR,uDAAuD;8BAJrE,iDAAiD"}
1
+ {"version":3,"file":"ViewportPositionSystem.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/ecs/gui/position/ViewportPositionSystem.js"],"names":[],"mappings":";AAuBA;IACI,+BAoBC;IAjBG,8DAAkD;IAElD,kEAEC;IAED,kBAAgC;IAEhC,yCAME;IAEF,SAAc;IAGlB,2CAEC;IAED,4CAEC;IAED;;;OAGG;IACH,sBAHW,UAAU,MACV,gBAAgB,QAkE1B;IAED;;;;;OAKG;IACH,SAJW,gBAAgB,MAChB,UAAU,qBA8BpB;IAED;;;;;OAKG;IACH,WAJW,gBAAgB,MAChB,UAAU,qBAmBpB;IA4EL;;;OAGG;IACH,mCAFU,OAAO,CAEwC;CA7ExD;uBAlLsB,iBAAiB;uBACjB,kBAAkB;6BAEZ,uBAAuB;4CAJR,uDAAuD;8BAJrE,iDAAiD"}
@@ -13,6 +13,7 @@ const CSS_CLASS = 'ecs-viewport-position-component';
13
13
 
14
14
  /**
15
15
  * @this {{system:ViewportPositionSystem, vp: ViewportPosition, el: GUIElement}}
16
+ * @ignore
16
17
  */
17
18
  function updatePosition() {
18
19
  this.system.positionComponent(this.el, this.vp);
@@ -87,6 +87,7 @@ export class VoiceSystem extends AbstractContextSystem<any> {
87
87
  *
88
88
  * @param {string} text
89
89
  * @param {View} view
90
+ * @ignore
90
91
  * @private
91
92
  */
92
93
  private __setBubbleSize;
@@ -1 +1 @@
1
- {"version":3,"file":"VoiceSystem.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/speaker/VoiceSystem.js"],"names":[],"mappings":"AA2JA;IACI;;;;OAIG;IACH;;;OA2FC;IArFG,+BAA2B;IAE3B,qYAQC;IAGD;;;OAGG;IACH,0BAAuB;IAEvB;;;OAGG;IACH,eAAe;IAEf;;;OAGG;IACH,4BAAiB;IAEjB;;;OAGG;IACH,8BAAgB;IAEhB;;;OAGG;IACH,eAAoB;IAEpB;;;;OAIG;IACH,iCAAyC;IAEzC;;;;OAIG;IACH,kBAAkC;IAIlC;;;;OAIG;IACH,eAAkB;IAElB;;;;OAIG;IACH,oBAAgC;IAEhC;;;OAGG;IACH,oBAAqC;IAErC;;;;OAIG;IACH,gBAAoB;IAGxB;;;OAGG;IACH,kBAFY,MAAM,CAIjB;IAEF,2CAqBE;IAED;;;;;OAKG;IACH,uBAJW,MAAM,UACN,MAAM,SACN,KAAK,QAsBf;IAED;;;;;OAKG;IACH,wBAoBC;IAED;;;;;OAKG;IACH,gBAJW,MAAM,WACN,MAAM,SACN,KAAK,QAuHf;CACJ;sCAtbqC,oCAAoC;sBAIpD,YAAY;uBAPX,sBAAsB;4CAnBD,oDAAoD;0BAwBtE,2BAA2B;6BAHxB,qCAAqC;2BADvC,8BAA8B;2BAL9B,6BAA6B;sCAClB,wCAAwC;kCAR5C,sDAAsD"}
1
+ {"version":3,"file":"VoiceSystem.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/speaker/VoiceSystem.js"],"names":[],"mappings":"AA+JA;IACI;;;;OAIG;IACH;;;OA2FC;IArFG,+BAA2B;IAE3B,qYAQC;IAGD;;;OAGG;IACH,0BAAuB;IAEvB;;;OAGG;IACH,eAAe;IAEf;;;OAGG;IACH,4BAAiB;IAEjB;;;OAGG;IACH,8BAAgB;IAEhB;;;OAGG;IACH,eAAoB;IAEpB;;;;OAIG;IACH,iCAAyC;IAEzC;;;;OAIG;IACH,kBAAkC;IAIlC;;;;OAIG;IACH,eAAkB;IAElB;;;;OAIG;IACH,oBAAgC;IAEhC;;;OAGG;IACH,oBAAqC;IAErC;;;;OAIG;IACH,gBAAoB;IAGxB;;;OAGG;IACH,kBAFY,MAAM,CAIjB;IAEF,2CAqBE;IAED;;;;;OAKG;IACH,uBAJW,MAAM,UACN,MAAM,SACN,KAAK,QAsBf;IAED;;;;;;OAMG;IACH,wBAoBC;IAED;;;;;OAKG;IACH,gBAJW,MAAM,WACN,MAAM,SACN,KAAK,QAuHf;CACJ;sCA3bqC,oCAAoC;sBAIpD,YAAY;uBAPX,sBAAsB;4CAnBD,oDAAoD;0BAwBtE,2BAA2B;6BAHxB,qCAAqC;2BADvC,8BAA8B;2BAL9B,6BAA6B;sCAClB,wCAAwC;kCAR5C,sDAAsD"}
@@ -36,18 +36,21 @@ import { VoiceFlags } from "./VoiceFlags.js";
36
36
  /**
37
37
  * Delay before the user notices the text and begins to read
38
38
  * @type {number}
39
+ * @ignore
39
40
  */
40
41
  const TIMING_NOTICE_DELAY = 0.5;
41
42
 
42
43
  /**
43
44
  * Minimum time to read something
44
45
  * @type {number}
46
+ * @ignore
45
47
  */
46
48
  const TIMING_MINIMUM_READ_TIME = 1.2;
47
49
 
48
50
  /**
49
51
  *
50
52
  * @type {LineDescription[]}
53
+ * @ignore
51
54
  */
52
55
  const temp_lines = [];
53
56
 
@@ -146,6 +149,7 @@ SPEECH_BUBBLE_ANIMATION_OUTRO.addTransition(0, TransitionFunctions.CubicEaseIn);
146
149
  /**
147
150
  * @this {View}
148
151
  * @param {number} alpha
152
+ * @ignore
149
153
  */
150
154
  function bubble_animation_update_function(alpha) {
151
155
  this.css({
@@ -315,6 +319,7 @@ export class VoiceSystem extends AbstractContextSystem {
315
319
  *
316
320
  * @param {string} text
317
321
  * @param {View} view
322
+ * @ignore
318
323
  * @private
319
324
  */
320
325
  __setBubbleSize(text, view) {