Commit graph

49 commits

Author SHA1 Message Date
Richard Davey
607fb6ff7c Make docs crystal clear 2020-12-07 12:25:57 +00:00
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
b733dbcbe1 The ScaleManager.resolution property has been removed and all internal use of it. 2020-09-12 11:59:30 +01:00
Richard Davey
68946f3894 The Phaser.Scale.Events#RESIZE event no longer sends the resolution as a parameter. 2020-09-12 11:58:50 +01:00
Richard Davey
60e311afe5 Updated JSDocs 2020-09-11 15:16:37 +01:00
Richard Davey
ce236f0d69 ScaleManager.refresh is now called when the Game.READY event fires. This fixes a bug where the Scale Manager would have the incorrect canvas bounds, because they were calculated before a previous canvas was removed from the DOM. Fix #4905 2020-09-11 12:10:10 +01:00
Richard Davey
380cc422b2 The ScaleManager.updateBounds method is now called every time the browser fires a 'resize' or 'orientationchange' event. This will update the offset of the canvas element Phaser is rendering to, which is responsible for keeping input positions correct. However, if you change the canvas position, or visibility, via any other method (i.e. via an Angular route) you should call the updateBounds method directly, yourself. 2020-08-04 10:35:29 +01:00
samme
02f6c51ff5
Docs: protect ScaleManager#onFullScreenChange
#5229
2020-07-22 11:22:43 -07:00
samme
ee284c6a42 Remove fullscreen promise, handle in onFullScreenChange() instead
Lets Safari start fullscreen (#5143)
2020-05-14 08:43:32 -07:00
Richard Davey
6a93f9e746
Merge pull request #5043 from samme/fix/setGameSize-aspect
Fix wrong display aspect ratio after setGameSize()
2020-04-27 12:21:54 +01:00
Survesh
ed0e76cdbf Updated fix for issue #5069 2020-04-03 18:48:49 +05:30
samme
b61edd088e Update display aspect ratio in setGameSize()
Fixes #4971
2020-03-13 16:49:11 -07:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
fdbd5a4f6d The ScaleManager.destroy method wasn't being called when the Game DESTROY event was dispatched, causing minor gc to build up. The destroy method will now be called properly on game destruction. Fix #4944 2020-01-13 12:20:24 +00:00
Adam Beswick
cf4a4e2107 Remove requestedFullscreenChange and replace with checking the document's fullscreen element 2019-12-30 10:34:43 +00:00
Josh Soref
0526276e68 spelling: in case 2019-10-29 02:21:46 -04:00
Richard Davey
ce6a0c1d76 ScaleManager.startFullscreen now checks to see if the call returns a Promise, rather than checking if the browser supports them, before waiting for promise resolution. This fixes a runtime console warning in Microsoft Edge. Fix #4795 2019-10-11 13:53:21 +01:00
Arne Keller
c77bc8d66c
Updated scaleManager.js Docs
Use SCALE_MODE `NONE` instead of `NO_SCALE` in the docs
2019-10-07 12:23:24 +02:00
Richard Davey
bf3a424dfd It was not possible to set the zoom value of the Scale Manager back to 1 again, having changed it to a different value. Fix #4633 2019-08-07 12:47:40 +01:00
Richard Davey
53076e09d1 Update ScaleManager.js 2019-07-15 15:28:31 +01:00
Richard Davey
67b28d6764 The Scale Manager would throw the error 'TypeError: this.removeFullscreenTarget is not a function' when entering full-screen mode. It would still enter fullscreen, but the error would appear in the console. Fix #4605 2019-06-21 10:53:27 +01:00
Richard Davey
6b5b751134 Handle sending previous size to event and updating canvas size in setGameSize. Cleaned-up workflow. 2019-06-06 15:58:23 +01:00
Richard Davey
0a761e104c Added new arguments to RESIZE event 2019-06-06 15:56:26 +01:00
jorbascrumps
648c0faed9 Removed arrow function syntax 2019-05-18 19:15:01 -04:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
725e1d7ef7 JSDoc changes to help TypeScript not get its knickers in a twist 2019-05-09 17:13:25 +01:00
Richard Davey
a6341a97a8 Fixed Types references 2019-05-09 15:32:53 +01:00
Richard Davey
44a63e4d1a Fixed DOM Container centering 2019-04-16 13:10:08 +01:00
Richard Davey
950fc79e2e Took DOM Element out of experimental and hooked to the Scale Manager 2019-04-09 23:28:40 +01:00
Richard Davey
e0f2b829f8 startFullscreen now uses a Promise internally, if it can do so, to resolve and handle the request.
It also tidies up after itself, fires the new 'fail' event and has better documentation.
2019-03-07 12:32:32 +00:00
Richard Davey
046e9801aa Improved docs 2019-03-07 12:31:44 +00:00
Richard Davey
9440412f19 New fullscreen failed event 2019-03-07 12:31:34 +00:00
Richard Davey
c1c03b8464 Improved docs 2019-03-07 12:31:25 +00:00
Richard Davey
a87f275054 The parent bounds are reset when exiting fullscreen mode in the Scale Manager. This fixes an issue when leaving fullscreen mode by pressing ESC (instead of programmatically) would leave the canvas in the full screen size. Fix #4357 2019-02-24 22:12:00 +00:00
Richard Davey
b50e1c78b5 Lots more jsdoc tweaks and improvements 2019-02-12 15:01:54 +00:00
Richard Davey
ccaae460a4 Added jsdoc version numbers to each event 2019-02-12 11:37:58 +00:00
Richard Davey
a252225be6 Entering Fullscreen mode in the Scale Manager and then pressing ESC would leave the injected fullsceen div in the DOM, causing it to fail with a node insertion failure the second time you wanted to enter fullscreen mode. Fix #4352 2019-02-10 16:13:45 +00:00
Richard Davey
e423e9c387 No scale mode, no expansion. 2019-02-04 22:14:16 +00:00
Richard Davey
60542a25cc Numerous jsdoc and TS related fixes 2019-02-04 17:16:08 +00:00
Richard Davey
d04232ae54 JSDoc fixes 2019-02-04 11:45:17 +00:00
Richard Davey
f3075fea72 Updated jsdocs 2019-02-04 10:55:09 +00:00
Richard Davey
348306cafb Lots more jsdoc fixes and new documentation 2019-01-31 14:47:50 +00:00
Richard Davey
4f6f6ee72f Lots of jsdoc and type fixes 2019-01-31 12:19:01 +00:00
Richard Davey
ffde5564e3 Now uses GetTarget and new consts 2019-01-31 11:11:49 +00:00
Richard Davey
537d58a858 Moved Scale consts to their own files for better docs navigation 2019-01-31 11:11:35 +00:00
Richard Davey
fd38cbd3ca Lots of Scale Manager tweaks to deal with dead div parents, dead height body docs and lots more. 2019-01-31 00:48:43 +00:00
Richard Davey
6c16a888b3 Updated namespace, added missing docs, explained in more detail some methods. 2019-01-29 19:17:07 +00:00
Richard Davey
3e3acee4f6 jsdoc fixes 2019-01-29 17:17:26 +00:00
Richard Davey
cb7b335d7f Moved ScaleManager to its own namespace (Phaser.Scale) and out of DOM 2019-01-29 15:42:27 +00:00