@woosh/meep-engine 2.117.1 → 2.117.3

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.117.1",
8
+ "version": "2.117.3",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1 +1,10 @@
1
- export function arrayPickBestElement<T>(elements: T[], scoreFunction: (T) => number): T | undefined
1
+ /**
2
+ * Picks element with highest score from the array using supplied scoring function.
3
+ * If multiple elements with the same highest score exist, the result will be first such encountered element
4
+ * @template T
5
+ * @param {T[]} array
6
+ * @param {function(el:T, index:number):number} scoreFunction
7
+ * @returns {T|undefined}
8
+ */
9
+ export function array_pick_best_element<T>(array: T[], scoreFunction: any): T;
10
+ //# sourceMappingURL=array_pick_best_element.d.ts.map
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * Will invoke any "clone" methods and inherit prototypes where possible creating as close to identical copy as possible
2
3
  * @template T
3
4
  * @param {T} source
4
5
  * @returns {T}
@@ -1 +1 @@
1
- {"version":3,"file":"object_deep_clone.d.ts","sourceRoot":"","sources":["../../../../../src/core/model/object/object_deep_clone.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,mDAqBC"}
1
+ {"version":3,"file":"object_deep_clone.d.ts","sourceRoot":"","sources":["../../../../../src/core/model/object/object_deep_clone.js"],"names":[],"mappings":"AAmBA;;;;;GAKG;AACH,mDAqBC"}
@@ -18,7 +18,7 @@ function structural_clone(source) {
18
18
  }
19
19
 
20
20
  /**
21
- * Will invoke any "clone" methods and inherit prototypes where possible
21
+ * Will invoke any "clone" methods and inherit prototypes where possible creating as close to identical copy as possible
22
22
  * @template T
23
23
  * @param {T} source
24
24
  * @returns {T}
@@ -1 +1 @@
1
- {"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/render/forward_plus/model/DirectionalLight.js"],"names":[],"mappings":"AAKA;IAGI;;;OAGG;IACH,mBAFU,OAAO,CAEQ;IAEzB;;;OAGG;IACH,oBAFU,OAAO,CAES;IAE1B;;;OAGG;IACH,gBAFU,KAAK,CAEY;IAE3B;;;OAGG;IACH,oBAFU,OAAO,CAEU;IAI/B;;;OAGG;IACH,6BAFU,OAAO,CAE4B;CAN5C;8BA7B6B,oBAAoB;oBAD9B,qCAAqC;sBAFnC,oCAAoC;oBACtC,qCAAqC"}
1
+ {"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/render/forward_plus/model/DirectionalLight.js"],"names":[],"mappings":"AAKA;IAGI;;;OAGG;IACH,mBAFU,OAAO,CAEQ;IAEzB;;;OAGG;IACH,oBAFU,OAAO,CAEe;IAEhC;;;OAGG;IACH,gBAFU,KAAK,CAEY;IAE3B;;;OAGG;IACH,oBAFU,OAAO,CAEU;IAI/B;;;OAGG;IACH,6BAFU,OAAO,CAE4B;CAN5C;8BA7B6B,oBAAoB;oBAD9B,qCAAqC;sBAFnC,oCAAoC;oBACtC,qCAAqC"}
@@ -16,7 +16,7 @@ export class DirectionalLight extends AbstractLight {
16
16
  * @readonly
17
17
  * @type {Vector3}
18
18
  */
19
- direction = new Vector3();
19
+ direction = new Vector3(0,-1,0);
20
20
 
21
21
  /**
22
22
  * @readonly