Richard Davey
f9f162f499
Default is now zero again.
2019-01-09 17:13:43 +00:00
Richard Davey
80b14368c1
Refactored how snap is applied and consolidated the fit and envelope methods into one.
2019-01-09 14:19:17 +00:00
Richard Davey
e7fcc0bb1a
Finished the Size component and JSDocs.
2019-01-09 00:16:36 +00:00
Richard Davey
92396ba9d8
Finalizing the Size component
2019-01-08 23:07:54 +00:00
Richard Davey
ad0e2a6435
Refactoring the Size component
2019-01-08 17:23:20 +00:00
Richard Davey
874929d807
Merge pull request #4250 from jcyuan/Branch_v3.15.1
...
doc improvement & minor bug fix
2019-01-04 13:15:20 +00:00
Omar Shehata
9abb11cba5
Remove unecessary type description
2018-12-26 10:51:01 -05:00
Richard Davey
cc280d8950
Removed dead code
2018-12-21 02:47:10 +00:00
Richard Davey
ef0b18f88b
If a Map entry exists, it is updated with the new value, rather than skipped.
2018-12-20 12:12:49 +00:00
Richard Davey
52519a1932
Updated docs and added envelope method.
2018-12-20 12:12:31 +00:00
J.C
580cc36ad4
Merge branch 'master' into Branch_v3.15.1
2018-12-20 12:42:25 +08:00
J.C
136a8355d8
doc improvement:
...
1, provide type for callback argument
2, remove comment for $type to avoid jsdoc warning: "The @type tag does not permit a description;"
2018-12-20 12:15:49 +08:00
J.C
c8fc944d94
the parameter is actually the value you are seeking but not T type.
...
bug fix: GetFirstElement -> GetFirst, as ArrayUtils does not have GetFirstElement method.
2018-12-20 11:09:30 +08:00
Richard Davey
f5fcea898c
Updated Size component to handle fitting, ratios, locking and more.
2018-12-19 17:07:46 +00:00
Richard Davey
c6f72241e3
Added Size component.
2018-12-19 12:16:13 +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
Richard Davey
7ee0a717f5
Container.getFirst
was using an incorrect Array Utils function GetFirstElement
, when it should have been using GetFirst
. It now uses the correct function. Fix #4244
2018-12-18 12:12:47 +00:00
J.C
d860725d57
first / last / next / prev should specify the return type as T
2018-12-17 10:56:41 +08:00
Rory O'Connell
49e5e5c3a9
callbackScope is an optional param
2018-11-10 14:29:49 -08:00
Richard Davey
eea1b34549
Added jsdocs
2018-10-19 15:53:04 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
a9063604dc
Replace @readOnly with @readonly
2018-10-09 13:40:00 +01:00
Richard Davey
e297b3272e
Added hundreds of new jsdoc descriptions
2018-10-01 11:35:01 +01:00
Richard Davey
99ba77c29d
Added jsdocs.
2018-09-28 12:45:01 +01:00
Richard Davey
3aef1e8a65
Set.size
will now only set the new size if the value is smaller than the current size, truncating the Set in the process. Values larger than the current size are ignored.
...
Plus added jsdocs.
2018-09-28 12:44:55 +01:00
samme
b241315fa1
Correct Structs.Set#iterate docs
...
callbackScope argument is optional
2018-08-22 13:06:50 -07:00
Richard Davey
15b544fc46
jsdoc fixes
2018-06-13 08:37:40 +01:00
Richard Davey
f57ab02fe6
Recoded how RTree generations its functions. Solves perf issue introduced in 3.4 Fix #3594
2018-04-18 22:32:52 +01:00
Richard Davey
6b2307594a
Scene plugin flow overhaul
...
Every Plugin has been updated to correctly follow the same flow through the Scene lifecycle. Instead of listening for the Scene 'boot' event, which is only dispatched once (when the Scene is first created), they will now listen for the Scene 'start' event, which occurs every time the Scene is started. All plugins now consistently follow the same Shutdown and Destroy patterns too, meaning they tidy-up after themselves on a shutdown, not just a destroy. Overall, this change means that there should be less issues when returning to previously closed Scenes, as the plugins will restart themselves properly.
2018-04-13 17:12:17 +01:00
jdotrjs
6c6d5f4aa1
somebody forgot their ;s
2018-04-10 23:49:46 -07:00
jdotrjs
d089e16345
[ fixes #3535 ] Fix constructed bounding box functions for RTree
...
The previous patch didn't take into account that the accessors passed
in as the format array were dot-prefixed due to the previous eval-based
construction.
The only two uses of RTree that I found were in World.js:
```javascript
this.tree = new RTree(this.maxEntries, [ '.left', '.top', '.right', '.bottom' ]);
this.staticTree = new RTree(this.maxEntries, [ '.left', '.top', '.right', '.bottom' ]);
```
It's likely that this could be updated to just not pass dotted attribute
names but I wasn't super comfortable that they weren't needed in this form
elsewhere despite a quick search. I'd honestly say that it might be a better
change if we remove the dots before merge but I'll leave that up to the
discretion of the reviewers/merger.
I'm not super familiar with Phaser's style but I passed lint sooo :D
Buyer beware: the only testing I did was on the repo case I left in the
bug and I did not verify that this is still within the twitch CSP (though
it should be).
2018-04-10 23:11:14 -07:00
Richard Davey
330eac1ebc
List is now internally using all of the new Utils.Array functions.
2018-04-10 04:00:39 +01:00
Richard Davey
ae8706a424
Added missing callback
2018-04-05 15:28:22 +01:00
Richard Davey
a44fcb6ad6
Added addCallback, removeCallback and skipCallback arguments
2018-04-05 13:51:57 +01:00
orblazer
e3b0c3e4d2
Remove generic on type
2018-04-03 16:24:48 +02:00
Antriel
630732f9fc
jsdoc generics fix
2018-03-30 14:43:58 +02:00
orblazer
e10a10b3b1
Fix usage of @genericUse
2018-03-29 12:58:18 +02:00
Richard Davey
06998276ec
Removed stict mode warning
2018-03-28 16:00:19 +01:00
orblazer
d0e1320cbe
Add generic types and fix types on Input and Structs
2018-03-27 15:59:49 +02:00
Richard Davey
1f44366bc7
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-27 01:09:34 +01:00
Richard Davey
3aa95b4f20
Formatting fix.
2018-03-27 01:09:23 +01:00
Richard Davey
25cbb320a5
Merge pull request #3453 from orblazer/genericTypes
...
Change structs for generic types
2018-03-27 00:37:34 +01:00
orblazer
f42f1bf132
Change structs for generic types
2018-03-23 16:54:12 +01:00
Jamie Mansfield
88647a4879
Remove string-generated Functions for CSP policies - Resolves #3441
2018-03-22 22:32:46 +00:00
orblazer
7fba122321
Fix "any" types
2018-03-20 17:15:49 +01:00
orblazer
fa13b597e3
Add more callbacks
2018-03-19 23:08:05 +01:00
orblazer
6b5dc62ad1
Update JSDoc on Structs
2018-03-19 02:00:21 +01:00
yp
9f07ee0af4
Bugfixes in Structs.Set
2018-02-18 12:59:32 +02:00
Richard Davey
d23688c3e4
Added eslint fixes and overrides
2018-02-16 18:44:07 +00:00
Richard Davey
e1554c34d6
eslint fixes
2018-02-16 18:07:49 +00:00