@woosh/meep-engine 2.131.20 → 2.131.21

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 (26) 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/sign.d.ts.map +1 -1
  17. package/src/core/math/sign.js +4 -1
  18. package/src/engine/asset/loaders/image/codec/NativeImageDecoder.d.ts.map +1 -1
  19. package/src/engine/asset/loaders/image/codec/NativeImageDecoder.js +3 -0
  20. package/src/engine/asset/loaders/image/png/PNGReader.d.ts +20 -25
  21. package/src/engine/asset/loaders/image/png/PNGReader.d.ts.map +1 -1
  22. package/src/engine/asset/loaders/image/png/PNGReader.js +20 -25
  23. package/src/engine/ecs/gui/GUIElementSystem.d.ts.map +1 -1
  24. package/src/engine/ecs/gui/GUIElementSystem.js +1 -0
  25. package/src/engine/ecs/gui/position/ViewportPositionSystem.d.ts.map +1 -1
  26. package/src/engine/ecs/gui/position/ViewportPositionSystem.js +1 -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.21",
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":";AAaA;;;GAGG;AACH;IACI;;;;;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B2.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/2d/aabb/AABB2.js"],"names":[],"mappings":";AAaA;;;GAGG;AACH;IACI;;;;;;OAMG;IACH,iBANW,MAAM,OACN,MAAM,OACN,MAAM,OACN,MAAM,EAuChB;IApBG;;;OAGG;IACH,IAFU,MAAM,CAEJ;IACZ;;;OAGG;IACH,IAFU,MAAM,CAEJ;IACZ;;;OAGG;IACH,IAFU,MAAM,CAEJ;IACZ;;;OAGG;IACH,IAFU,MAAM,CAEJ;IA8ChB;;OAEG;IACH,mBAEC;IAtCD;;;OAGG;IACH,gBAEC;IAkCD;;OAEG;IACH,mBAEC;IArCD;;;OAGG;IACH,gBAEC;IAiCD;;OAEG;IACH,mBAEC;IApCD;;;OAGG;IACH,gBAEC;IAgCD;;OAEG;IACH,mBAEC;IAnCD;;;OAGG;IACH,gBAEC;IA+BD;;;OAGG;IACH,gBAFW,MAAM,QAQhB;IAED;;;OAGG;IACH,iBAFW,MAAM,QAQhB;IAED;;;OAGG;IACH,WAFW,MAAM,QAMhB;IAED;;;OAGG;IACH,aAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QA8BlB;IAED;;;OAGG;IACH,sBAFW,MAAM,QAShB;IAED;;;;;OAKG;IACH,sBAJW,KAAK,UACL,KAAK,GACH,OAAO,CAcnB;IAED;;;;OAIG;IACH,qBAHW,KAAK,GACH,OAAO,CAcnB;IAED;;;;;;;OAOG;IACH,0EAMC;IAED;;;;OAIG;IACH,qBAHW,MAAM,KACN,MAAM,QAKhB;IAED;;;;;;OAMG;IACH,0BALW,OAAO,MACP,OAAO,UACP,OAAO,GACL,OAAO,CA0BnB;IAED;;;;OAIG;IACH,kCAHW,OAAO,UACP,OAAO,QAmBjB;IAED;;;;OAIG;IACH,wBAHW,KAAK,GACH,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,sBANW,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,GACJ,MAAM,CA4BlB;IA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;;;;GAOG;AACH,gDANW,KAAK,MACL,KAAK,MACL,OAAO,MACP,OAAO,GACL,OAAO,CAsBnB"}
@@ -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
  }
@@ -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);
@@ -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,kB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;;;;;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
  /**
@@ -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);