Commit graph

74 commits

Author SHA1 Message Date
Josh Soref
d6820e6da8 spelling: envelope 2019-10-29 01:53:22 -04:00
Josh Soref
4d1683c9ee spelling: component 2019-10-29 01:49:23 -04:00
Richard Davey
7212945bea ProcessQueue now extends Event Emitter. Also added removeAll method and length getter. 2019-10-02 12:13:07 +01:00
Richard Davey
f3cc1f82fe Added new ProcessQueue events 2019-10-02 12:12:37 +01:00
Richard Davey
67e28efd2e Removed dead code 2019-08-30 03:47:58 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
1830480fec Added Size.setCSS method 2019-04-09 23:28:05 +01:00
Richard Davey
39e18a5b41 Updated docs 2019-03-07 13:36:01 +00:00
Richard Davey
b75db77db8 Updated docs 2019-03-05 09:25:19 +00:00
Richard Davey
57970f1149 Added Size.resize and Size.setAspectRatio methods. 2019-01-25 12:13:26 +00:00
Richard Davey
fac2efedc4 Container + List.sort scope fixed and custom handler option added. Fix #4241 2019-01-24 11:04:36 +00:00
Richard Davey
ebb926bdaf Added copy method. 2019-01-22 14:45:54 +00:00
Richard Davey
1eccff1e3b Fixed jsdoc links and markdown bullet lists 2019-01-18 15:20:56 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
58c8ae8202 JSDoc update 2019-01-12 12:44:29 +00:00
Richard Davey
aa3b80371b Should be envelop, not envelope :) 2019-01-12 12:36:21 +00:00
Richard Davey
ed6e3f596f Fixed min size clamp. 2019-01-11 18:05:43 +00:00
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