@woosh/meep-engine 2.109.8 → 2.109.10

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.
@@ -106142,16 +106142,16 @@ const stack$1 = [];
106142
106142
  * @template T
106143
106143
  * @param {T[]|ArrayLike<number>|Uint32Array} data
106144
106144
  * @param {function(T):number} score_function
106145
- * @param {*} score_function_context
106146
- * @param {number} start
106147
- * @param {number} end
106145
+ * @param {*} [score_function_context]
106146
+ * @param {number} [start]
106147
+ * @param {number} [end]
106148
106148
  * @param {function(T[],number, number):*} [swap_operator]
106149
106149
  * @param {*} [swap_context]
106150
106150
  */
106151
106151
  function arrayQuickSort(
106152
106152
  data,
106153
106153
  score_function, score_function_context,
106154
- start, end,
106154
+ start = 0, end = data.length - 1,
106155
106155
  swap_operator = array_swap_one, swap_context = undefined
106156
106156
  ) {
106157
106157
  if (start >= end) {
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.109.8",
8
+ "version": "2.109.10",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -2,11 +2,11 @@
2
2
  * @template T
3
3
  * @param {T[]|ArrayLike<number>|Uint32Array} data
4
4
  * @param {function(T):number} score_function
5
- * @param {*} score_function_context
6
- * @param {number} start
7
- * @param {number} end
5
+ * @param {*} [score_function_context]
6
+ * @param {number} [start]
7
+ * @param {number} [end]
8
8
  * @param {function(T[],number, number):*} [swap_operator]
9
9
  * @param {*} [swap_context]
10
10
  */
11
- export function arrayQuickSort<T>(data: ArrayLike<number> | Uint32Array | T[], score_function: (arg0: T) => number, score_function_context: any, start: number, end: number, swap_operator?: (arg0: T[], arg1: number, arg2: number) => any, swap_context?: any): void;
11
+ export function arrayQuickSort<T>(data: ArrayLike<number> | Uint32Array | T[], score_function: (arg0: T) => number, score_function_context?: any, start?: number, end?: number, swap_operator?: (arg0: T[], arg1: number, arg2: number) => any, swap_context?: any): void;
12
12
  //# sourceMappingURL=arrayQuickSort.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"arrayQuickSort.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/array/arrayQuickSort.js"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,4GAPuB,MAAM,sCAElB,MAAM,OACN,MAAM,oCACO,MAAM,QAAE,MAAM,oCAiErC"}
1
+ {"version":3,"file":"arrayQuickSort.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/array/arrayQuickSort.js"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,4GAPuB,MAAM,wCAElB,MAAM,QACN,MAAM,oCACO,MAAM,QAAE,MAAM,oCAiErC"}
@@ -6,16 +6,16 @@ const stack = [];
6
6
  * @template T
7
7
  * @param {T[]|ArrayLike<number>|Uint32Array} data
8
8
  * @param {function(T):number} score_function
9
- * @param {*} score_function_context
10
- * @param {number} start
11
- * @param {number} end
9
+ * @param {*} [score_function_context]
10
+ * @param {number} [start]
11
+ * @param {number} [end]
12
12
  * @param {function(T[],number, number):*} [swap_operator]
13
13
  * @param {*} [swap_context]
14
14
  */
15
15
  export function arrayQuickSort(
16
16
  data,
17
17
  score_function, score_function_context,
18
- start, end,
18
+ start = 0, end = data.length - 1,
19
19
  swap_operator = array_swap_one, swap_context = undefined
20
20
  ) {
21
21
  if (start >= end) {