Commit graph

3181 commits

Author SHA1 Message Date
Richard Davey
065d3f4635
Merge pull request #6637 from PresentCreativeLLC/EmitterOpRandomStartEndConfigRemoval
Removed interface EmitterOpRandomStartEndConfig
2023-11-08 15:31:28 +00:00
Richard Davey
a8a894e9dc
Merge pull request #6639 from PresentCreativeLLC/EmitterOpPropertyValueTypeAddition
Added missing reference to EmitterOpOnUpdateType
2023-11-08 15:30:55 +00:00
Richard Davey
2d1c24cc3a
Merge pull request #6641 from rexrainbow/gameobject-tint-getter
Add getter of tint property
2023-11-08 15:29:29 +00:00
Richard Davey
315e3b757f
Merge pull request #6653 from PresentCreativeLLC/TextColorGradient
Extended color and stroke definitions
2023-11-08 15:27:23 +00:00
Richard Davey
94c810fd39 Remove false param to setQuad 2023-11-07 18:53:51 +00:00
Richard Davey
89ceaa288a Remove roundPixels 2023-11-07 18:52:30 +00:00
Richard Davey
34f282397c The TransformMatrix.setQuad method signature has changed slightly. The roundPixels parameter is now optional and defaults to false. Previously, you always had to set it. 2023-11-07 18:50:42 +00:00
Richard Davey
d799c06031 Update TransformMatrix.js
* `TransformMatrix.setToContext` will now use `setTransform(this)` as 'this' is an equivalent object that this method can natively take.
* `TransformMatrix.setQuad` no longer uses an anonymous function for `roundPixels`, which will help with performance.
2023-11-07 18:27:47 +00:00
Richard Davey
4564216c54 Set the context from the CanvasTexture 2023-11-07 18:25:36 +00:00
Richard Davey
91b145915c Don't use the anonymous function, just a boolean check 2023-11-06 18:54:11 +00:00
Alvaro Estrada
dedd6c3438 Added missing property definitions
* Added missing parenthesis in the previous additions
* Added the definitions missing in the Text class
2023-10-16 15:59:33 -06:00
Alvaro Estrada
625981e57a Update TextStyle.js
Updated the setFill method to match the setColor method
2023-10-16 15:50:09 -06:00
Alvaro Estrada
ffad6f6d90 Extended color and stroke definitions
Declared that the color and stroke properties can also be CanvasGradient or CanvasPattern
2023-10-16 15:43:38 -06:00
Richard Davey
059ff984a2 JSDocs fix 2023-10-13 14:45:49 +01:00
Richard Davey
4ef3c58caa Updated jsdocs 2023-10-13 13:09:28 +01:00
Richard Davey
181a022348 Merge branch 'master' of https://github.com/photonstorm/phaser 2023-10-10 20:22:31 +01:00
Richard Davey
b958123dad Fixed typedefs 2023-10-10 20:22:28 +01:00
Richard Davey
6360d76515 Removed use of roundPixels for now 2023-10-10 18:49:59 +01:00
Rex
aae03412fb Add getter of tint property 2023-10-01 22:37:09 +08:00
Alvaro Estrada
7b9a3f2318 Added missing reference to EmitterOpOnUpdateType
* Added missing possible type description of the propertyValue and defaultValue
2023-09-28 08:42:35 -06:00
Richard Davey
a79ae92d44 Calling the Line.setLineWidth method on the Line Shape Game Object would result in a line with double the thickness it should have had in WebGL. In Canvas it was the correct width. Both renderers now match. Fix #6604 2023-09-27 18:53:36 +01:00
Richard Davey
455420c4a0
Merge pull request #6627 from rexrainbow/plane-origin
Add read-only originX, originY properties
2023-09-27 18:06:20 +01:00
Richard Davey
ba7f2ff22e
Merge pull request #6635 from PresentCreativeLLC/ParticleDocumentationTypoFix
Fixed a typo, changed 'Interal' for 'Internal'
2023-09-27 17:57:10 +01:00
Richard Davey
6cda06c6b2 The Text.dirty Game Object property has been removed. It wasn't used internally at all, so was just adding confusion and using space. 2023-09-27 16:58:25 +01:00
Alvaro Estrada
1ce053c7a7 Removed interface EmitterOpRandomStartEndConfig
The interface EmitterOpRandomStartEndConfig, even though it is another path to configure a random emit value, it does not fully describe that all the options for the EmitterOpEaseConfig are available to use. Instead it is better to add to the description of the EmitterOpEaseConfig that there is a random start value option available.
2023-09-24 23:51:44 -06:00
Alvaro Estrada
9b4d41d1bf Fixed a typo, changed 'Interal' for 'Internal' 2023-09-24 22:49:42 -06:00
Rex
1704e2ca5a Add read-only originX, originY properties 2023-09-21 11:10:49 +08:00
Richard Davey
de48d84699 Updated jsdocs 2023-09-07 17:21:32 +01:00
Richard Davey
232916e3fa Fixed use of modified Wrap function 2023-09-07 16:42:41 +01:00
Richard Davey
533ed6e47d The ParticleEmitterWebGLRenderer has been refactored so that the particle.frame is used as the source of the glTexture used in the batch and also if a new texture unit is required. This fixes issues where a Particle Emitter would fail to use the correct frame from a multi-atlas texture. Fix #6515 2023-09-07 16:14:06 +01:00
Richard Davey
540fe9ec9a
Merge pull request #6578 from rexrainbow/mesh-setinteractive-improve
Uses current faces to do hit-testing
2023-09-07 14:08:28 +01:00
Richard Davey
6cbcfefe7b Clarified jsdocs 2023-09-07 13:28:52 +01:00
Richard Davey
b57369347f
Merge pull request #6576 from PresentCreativeLLC/EmitParticle-Type-Fix
Update return type of emitParticle
2023-09-07 13:26:44 +01:00
Richard Davey
0cec5012b4
Merge pull request #6575 from PresentCreativeLLC/ParticleEmitterConfig-Type-Fix
Update ParticleEmitterConfig.js
2023-09-07 13:26:05 +01:00
Richard Davey
8622e611f7
Merge pull request #6595 from PresentCreativeLLC/ParticleEmitterFrameConfigFix
Update ParticleEmitterFrameConfig.js
2023-09-07 13:23:40 +01:00
Richard Davey
6d22019f26 Update ParticleEmitterAnimConfig.js 2023-09-07 13:21:51 +01:00
Richard Davey
18f5a73692
Merge pull request #6587 from PresentCreativeLLC/missing-particle-emitter-property
Added missing description of the anims property of the particle emitter for JSDoc
2023-09-07 13:19:17 +01:00
Richard Davey
4c65ea408a
Merge pull request #6605 from emadkhezri/master
Fixed a typo in TextFactory.js
2023-09-07 13:16:37 +01:00
Richard Davey
d9f51c0562 null the Camera reference 2023-09-05 14:56:13 +01:00
Emad
266ddb7545 fixed a typo in TextFactory.js 2023-09-03 22:34:28 +10:00
Richard Davey
b5c9b76eff Updated docs 2023-08-28 15:42:02 +01:00
Alvaro Estrada
4cfa8c4287 Update ParticleEmitterFrameConfig.js
Changed the configuration to better reflect what is accepted by the function
2023-08-24 13:57:52 -06:00
Alvaro Estrada
e37134e47e Fixed file name discrepancy with the interface name 2023-08-17 11:11:57 -06:00
Alvaro Estrada
525730dbb1 Added missing description of the anims property of the particle emitter
- Created a description of the object handed to the function setAnim
- Added the property anim to ParticleEmitterConfig
- Changed the parameters description of setAnim to better match
2023-08-17 11:09:04 -06:00
Rex
cd3646c850 Uses current faces to do hit-testing 2023-08-10 12:04:41 +08:00
Alvaro Estrada
6177670abc Update return type of emitParticle
The function emitParticle can also return undefined when the particle max limit has been reached
2023-08-08 07:07:49 -06:00
Alvaro Estrada
f01af5ba3a Update ParticleEmitterConfig.js
- Fixed the Texture type in the ParticleEmitterConfig
2023-08-07 23:15:25 -06:00
Alvaro Estrada
6bc801ddff Update ParticleEmitterConfig.js
- Fixed a typo
- Updated JSDoc so ParticleEmitterConfig refers to EmitZoneObject and EmitZoneObject[] instead of EdgeZoneConfig and RandomZoneConfig
- Updated JSDoc so ParticleEmitterConfig refers to DeatZoneObject and DeathZoneObject[] instead of DeathZoneConfig
2023-08-07 18:14:00 -06:00
Trissolo
1ea1c9313c Added two optional parameters, 'updateSize' and 'updateOrigin', which are used as second and third arguments when setting the frame. In fact 'setFrame()' takes three arguments 2023-08-02 11:17:20 +02:00
Richard Davey
d5318589bd Marked as optional 2023-07-26 18:49:38 +01:00