Chris
c048c1bb54
Update GetFirst.js
...
Improve type accuracy for GetFirst
2023-12-02 15:38:05 -05:00
neki-dev
5f02636daa
Fixed jsdoc for GetRandom
2023-10-27 17:22:39 +02:00
Richard Davey
1a2a255904
Matrix Translation fixes
...
* `Array.Matrix.RotateLeft` was missing the `total` parameter, which controls how many times to rotate the matrix.
* `Array.Matrix.RotateRight` was missing the `total` parameter, which controls how many times to rotate the matrix.
* `Array.Matrix.TranslateMatrix` didn't work with any translation values above 1 due to missing parameters in `RotateLeft` and `RotateRight`
2023-06-29 21:14:21 +01:00
Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
0fe75e9969
Use new features.stableSort
2022-10-04 17:08:18 +01:00
Richard Davey
a563b49877
Put missing return back in
2022-10-03 20:23:24 +01:00
Richard Davey
bf8ec50fe1
Remove use of 'len' for iOS test
2022-10-03 14:42:33 +01:00
Richard Davey
71703ff19c
GameConfig.stableSort
is a new optional property that will control if the internal depth sorting routine uses our own StableSort function, or the built-in browser Array.sort one. Only modern browsers have a _stable_ Array.sort implementation, which Phaser requires. Older ones need to use our function instead. Set to 1 to use the legacy version, 0 to use the ES2019 version or -1 to have Phaser try and detect which is best for the browser
...
Ref #6217
2022-09-21 17:52:57 +01:00
Richard Davey
1f6554f98e
Utils.Array.Flatten
is a new function that will return a flattened version of an array, regardless of how deeply-nested it is.
2022-07-26 18:34:04 +01:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
ksritharan
11c8216cb6
Fix to SafeRange to allow more valid ranges
...
The expression startIndex + endIndex > len is not needed.
The fix will allow the following ranges to be valid:
- n to Array.length, n = {1, 2, ..., Array.length-1}
- n to m, n = {1, 2, ..., Array.length - 1}, m = {n+1, ..., Array.length}
2022-01-24 13:17:24 -05:00
Richard Davey
ede72366ca
Merge pull request #5624 from andriibarvynko/fix_check_matrix_for_one_row_matrix_support
...
Allow to have one row matrix in CheckMatrix
2021-09-22 11:32:56 +01:00
Rex
62ea171971
Add MoveAbove, MoveBelow methods of List structure
...
MoveAbove: Moves the given array element above another one in the array.
MoveBelow: Moves the given array element below another one in the array.
2021-04-26 15:17:42 +08:00
Andrii Barvynko
c7fd4c4e0a
Allow to have one row matrix in CheckMatrix
2021-03-26 12:03:39 +02:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
4181e90db1
Utils.Array.Remove
would return an incorrect array of removed elements if one of the items to be removed was skipped in the array. Fix #5398
2020-11-20 11:58:14 +00:00
Richard Davey
08b4597b72
Improved JSDocs
2020-09-15 10:37:19 +01:00
Richard Davey
99c12540f7
Utils.Array.Matrix.Translate
is a new function that will translate an Array Matrix by horizontally and vertically by the given amounts.
2020-09-15 10:35:53 +01:00
Richard Davey
b8d35d7cf0
Utils.Array.NumerArray
can now accept the start
and end
parameters in reverse order, i.e. 10, 1
will generate a number array running from 10 to 1. Internally it has also been optimized to skip string based returns.
2020-09-08 13:02:16 +01:00
Richard Davey
28c6635ea3
Utils.Array.SortByDigits
is a new function that takes the given array of strings and runs a numeric sort on it, ignoring any non-digits.
2020-09-03 15:01:55 +01:00
Richard Davey
27fd496e8f
Updated to stablesort 0.1.8 and recoded to fit our style. Removed inplace
static function.
2020-09-02 12:21:36 +01:00
Richard Davey
07865a5823
Final set of namespace changes. Fix #5062
2020-09-01 20:28:42 +01:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Valentin Vetter
f3350ce5a8
TypeScript: improve pick/shuffle types
2019-12-01 22:36:47 +01:00
Richard Davey
a5d494f9d2
JSDoc fix. Fix #4871
2019-11-20 13:02:56 +00:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Valentin Vetter
f33a9d730f
TypeScript: Fix matrix
types
2019-05-08 19:17:52 +02:00
Richard Davey
6ba3f49b08
Merge pull request #4442 from LoolzRules/master
...
issue #4411 fix
2019-04-05 18:28:39 +01:00
LoolzRules
842ed1a995
issue #4411 fix
2019-03-25 03:31:16 +06:00
Richard Davey
c85497b6c5
Fixing jsdocs
2019-02-12 11:59:31 +00:00
Richard Davey
348306cafb
Lots more jsdoc fixes and new documentation
2019-01-31 14:47:50 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
74a84a8242
Merge pull request #4247 from jcyuan/Branch_v3.15.1
...
docs improvement for 3.5.1 release
2018-12-19 10:21:05 +00:00
J.C
110819e82c
add docs for StableSort & StableSort.inplace
2018-12-17 16:11:51 +08:00
Richard Davey
146745057a
Utils.Array.MoveUp
wouldn't let you move an array element to the top-most index in the array. This also impacted Container.moveUp
.
2018-11-29 23:33:54 +00:00
Richard Davey
eea1b34549
Added jsdocs
2018-10-19 15:53:04 +01:00
Richard Davey
60dc63fe9f
Added jsdocs
2018-10-19 15:33:43 +01:00
Richard Davey
809e3f4bbc
Added jsdocs
2018-10-19 15:02:27 +01:00
Richard Davey
9e6298ba0f
Array.Matrix.ReverseColumns
was actually reversing the rows, but now reverses the columns.
2018-10-19 15:02:21 +01:00
Richard Davey
874d7350cd
Array.Matrix.ReverseRows
was actually reversing the columns, but now reverses the rows.
2018-10-19 15:02:08 +01:00
Richard Davey
4c4421c47f
Docjam merge
2018-10-19 12:32:43 +01:00
Richard Davey
b687f051e9
Added new jsdocs
2018-09-28 15:00:55 +01:00
Richard Davey
da2b91b460
ArrayUtils.AddAt didn't calculate the array offset correctly if you passed an array in to be merged with an existing array. This also caused Container.addAt to fail if an array was passed to it. Fix #3788
2018-06-27 11:31:51 +01:00
samme
703f338348
args
description
2018-06-26 15:58:51 -07:00
samme
bb29f0cdfc
Fix context
argument wrongly passed to callback
2018-06-26 15:57:49 -07:00
Chris Andrew
978f982c26
Documented the remaining ParticleEmitter Zone classes.
2018-06-21 14:12:47 +01:00
Richard Davey
bdf9f5ce60
Utils.Array.BringToTop failed to move the penultimate item in an array due to an index error. Fix #3658
2018-05-15 08:45:39 +01:00
Richard Davey
65c54f4b8d
Array.AddAt would fail if it branched to the fast-path within a Container due to an invalid property. Fix #3617
2018-04-26 15:44:56 +01:00
Richard Davey
68d2526d69
Limit fix
2018-04-11 17:12:40 +01:00
Richard Davey
9bc6237831
TS defs fix
2018-04-11 16:58:32 +01:00