Commit graph

3324 commits

Author SHA1 Message Date
Richard Davey
3a74008e30 TransformMatrix.setQuad has been fixed so it no longer rounds the quad dimensions, only the x/y coordinates. This fixes a bug where it could give slightly different (+- 1px) sized textures based on how the dimensions were rounded when using roundPixels on the camera. Fix #6874 2024-09-17 19:01:10 +01:00
Richard Davey
556847750e Updated Layer jsdocs, which resolves a TypeScript extends error. 2024-09-05 17:37:50 +01:00
Richard Davey
b12f3bbaa0
Renamed methods to avoid Container conflicts 2024-09-05 11:29:29 +01:00
Richard Davey
4c2f2ed899
Added getDisplayList method 2024-09-05 11:29:18 +01:00
Richard Davey
7bd23db219 Fixed incorrect version numbers 2024-09-05 09:50:39 +01:00
Richard Davey
f5b4691166 Fixed illegal use of destructuring. 2024-09-05 09:44:54 +01:00
Richard Davey
dfe3ec3aba Fixed lint errors and lines redeclaration 2024-09-05 09:39:51 +01:00
Richard Davey
45d2d6f939 Tidied up and renamed the new depth ordering functions 2024-09-05 09:37:37 +01:00
Richard Davey
dc714b10bd lint fixes 2024-09-05 09:35:19 +01:00
Richard Davey
25f20485a2
Merge pull request #6819 from moufmouf/fix-dom-zoom-origin
Fixing DomElement position when camera zoom != 1
2024-09-03 14:36:59 +01:00
Zeke Chan
780def8cf9 Fix #6860 BitmapText not wrapping lines in some cases 2024-09-03 15:52:10 +08:00
Richard Davey
c308c430c3
The NineSlice Game Object will now guard against an invalid texture by checking for the frame and textureFrame vars before trying to read values from them. Fix #6804 2024-09-02 22:40:41 +01:00
Richard Davey
fcd0f7180c
The Mesh WebGLRenderer will now recalculate the vertexOffset correctly if the batch flushes, fixing an issue where it would display missing triangles in a mesh after a batch flush. Fix #6814 2024-09-02 22:34:29 +01:00
Richard Davey
98ea091edc
Video.getFirstFrame is a new method that can be used to load the first frame of the Video into its texture without starting playback. This is useful if you want to display the first frame of a video behind a 'Play' button, without calling the 'play' method. Fix #6695 2024-09-02 22:02:55 +01:00
Luca Fagioli
0cf92cba50
Update TextStyle.js 2024-09-02 11:06:01 +02:00
Richard Davey
c86b5b2528 Make Layer extend event emitter in the docs 2024-08-29 14:05:17 +01:00
samme
7fd11d2e98 Docs: clarify moveAbove(), moveBelow() 2024-08-23 08:50:47 -07:00
Richard Davey
5b972ae38a Added resetCursor boolean to disableInteractive and removeInteractive methods 2024-08-07 18:36:02 +01:00
Roman Chaley
cdefe1f68c
Apply stroke letter by letter if there is custom letter spacing 2024-08-04 16:11:37 +02:00
zekechan
cc0bac0214 Removed empty line spacing added when text is undefined. Fix #6807 2024-07-30 13:40:53 +08:00
Richard Davey
a3470a08e5
Updated rounding to use Math.floor + 0.5 2024-07-28 14:56:53 +01:00
Zeke Chan
994389d041
Merge pull request #6816 from jacklehamster/master
Add PR to fix null pointer exception.
2024-07-23 16:52:37 +08:00
Zeke Chan
54e555d56a Revert "#6816 Phaser.GameObjects.Components.FX#add fix null pipeline pointer"
This reverts commit 389e2af60f.
2024-07-23 16:51:45 +08:00
Zeke Chan
389e2af60f #6816 Phaser.GameObjects.Components.FX#add fix null pipeline pointer 2024-07-23 16:50:00 +08:00
Zeke Chan
5d74999620 Fixed "undefined" style bug causing crashes 2024-07-19 11:06:23 +08:00
Richard Davey
2fc8f5b3f9
Floor, not round 2024-07-16 23:17:40 +01:00
Richard Davey
77f209bbe5
Removed the uRoundPixels shader uniform and from the pipelines. Pass camera.roundPixels to setQuad. 2024-07-16 21:24:16 +01:00
Richard Davey
160587fb2d
Inlined the BitmapText BatchChar math to avoid 16 function calls per character 2024-07-16 21:23:09 +01:00
Richard Davey
f2855c66dd
Merge branch 'master' of https://github.com/phaserjs/phaser 2024-07-16 20:25:28 +01:00
Richard Davey
a8724b88d8
Calling Ellipse.setSize will internally call updateDisplayOrigin to retain position 2024-07-16 20:25:26 +01:00
Zeke Chan
f8dc6dcadb
Merge pull request #6782 from rexrainbow/depth-helper
Add some helper methods for changing rendering order
2024-07-16 16:29:45 +08:00
Richard Davey
5038c26051 The TextStyle.setStyle method will no longer mutate the given style object if it includes a numeric fontSize value. Fix #6863 2024-07-15 17:44:39 +01:00
Richard Davey
b14c580282 typo 2024-07-15 17:26:16 +01:00
zekechan
944c6be993 BitmapText with maxWidth set does not wrap text correctly when a line ends with a white space. Fix #6860 2024-07-15 17:12:50 +08:00
Zeke Chan
7931e181a2 Updated maxWidth calculations 2024-07-12 15:34:48 +08:00
Zeke Chan
e9f92fab64 Revert "Updated maxWidth calculations"
This reverts commit 514f99d8aa.
2024-07-12 12:37:42 +08:00
Zeke Chan
514f99d8aa Updated maxWidth calculations 2024-07-12 12:27:13 +08:00
Zeke Chan
9ecd99d173 Corrected currentLine offset 2024-07-11 17:34:47 +08:00
Zeke Chan
6fd0769915 Fixed line wrapping issue for lines ending with a space 2024-07-11 17:00:53 +08:00
zekechan
a190054ce0 Update TileSprite.js
Default width and height are assigned to displayFrame separately.
2024-07-10 17:15:57 +08:00
Zeke Chan
ea48bcf491 Update ParticleEmitter.js 2024-06-26 10:58:39 +08:00
Zeke Chan
f0f82d3a40 Update ParticleEmitter.js 2024-06-25 15:55:55 +08:00
Zeke Chan
42a6831106 Update GetBitmapTextSize.js
Fixed extra empty line issue in GetBitmapTextSize.js when setMaxWidth is called with line width less than a word.
2024-06-21 16:27:30 +08:00
Zeke Chan
9b2663774e Fixed bitmapText kerning bug 2024-06-19 13:55:41 +08:00
Zeke Chan
b2d62b6234 Update DeathZone.js
DeathZone now checks for particle local coordinates, not world coordinates.
2024-06-12 16:43:32 +08:00
Richard Davey
2f3a92b2d9 Added useSpriteSheet config property. Fix #6752 2024-06-07 16:30:06 +01:00
Richard Davey
27a0cb1a8f
Merge pull request #6813 from AlbertMontagutCasero/fix-TextStyle-setWordWrapWidth-definition
Fix jsdoc in setWordWrapWidth from Text and TextStyle
2024-06-06 15:27:45 +01:00
Richard Davey
d18f42377b
Merge pull request #6801 from samme/fix/getPipelineName-null
`getPipelineName()` is null if pipeline is null
2024-06-06 15:18:12 +01:00
Richard Davey
159fe935bb
Merge pull request #6785 from samme/feature/bitmaptext-key-error
Throw an error for invalid BitmapText key
2024-06-06 15:14:12 +01:00
Jack Le Hamster
f3dd9523e2
Merge branch 'phaserjs:master' into master 2024-05-16 15:48:32 -07:00