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
73a1d96b48
Correction
...
Made a correction, my previous assumption was that the particleData stored a copy of the configuration data, but after further review of the code only the min and max values are ever used. Any further extensions of the code will need to have these properties.
2023-09-25 13:57:03 -06: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
Alvaro Estrada
1888025575
Added to the description that EmitterColorOp is an extension of the EmitterOp class.
2023-09-24 22:48:21 -06:00
Rex
1704e2ca5a
Add read-only originX, originY properties
2023-09-21 11:10:49 +08:00
Rex
8f061e1039
Update remove, removeAll, add methods
2023-09-21 00:40:53 +08:00
Alvaro Estrada
787c534ff1
Update ParticleEmitter.js
...
Made AddEmitZone and AddDeathZone work more similar.
* AddDeathZone returns an output array
* AddEmitZone checks for the validity of the source needed methods
2023-09-20 10:27:36 -06:00
Alvaro Estrada
5c09d6e34d
Updated the description of DeathZoneObj
...
Switched the references of Circle, Ellipse, Polygon, and Triangle for only one reference to the DeathZoneSource
2023-09-19 12:15:34 -06:00
Alvaro Estrada
45b6292a0c
Constructor parameters correction
...
Defining stepRate as an optional parameter
2023-09-18 09:58:58 -06:00
Alvaro Estrada
62949f1d38
addEmitZone return correction
...
Changed the type of return
2023-09-14 13:01:37 -06:00
Alvaro Estrada
62eb820ba0
Type clarification for emit zone data
...
I have updated the definition of EmitZoneObject to exclusively represent EdgeZone or RandomZone objects, excluding their configurations. Previously, the emitZones property was either an array of RandomZones or an array of EdgeZones, not an Array that could hold either. With this change, emitZones is now represented as an array of EmitZoneObjects.
EmitZoneData takes over the role previously held by EmitZoneObject.
2023-09-14 12:35:31 -06:00
Alvaro Estrada
6aa625b3cc
Description correction
2023-09-13 12:34:13 -06:00
Alvaro Estrada
5df5258c68
EmitterOpOnEmitCallback update
...
Changed the parameters to be optional since not all the onEmit calls actually pass parameters to the function, so there should be a warning about that
2023-09-13 12:31:29 -06:00
Alvaro Estrada
9d33475c5d
Changed the obligatory definition for an optional definition
2023-09-07 20:53:17 -06:00
Alvaro Estrada
7ff66e81bb
Fixed int type
...
Added int as possible undefined
2023-09-07 18:43:26 -06:00
Alvaro Estrada
953b316526
EmitterOpRandomMinMaxConfig type correction
...
Added the description of the "int" boolean property that was missing
2023-09-07 18:18:52 -06:00
Alvaro Estrada
0ed6d4030d
Created ParticleData description
...
Gave a description for the ParticleData type
2023-09-07 18:12:52 -06:00
Alvaro Estrada
2d32b53c1a
Added the use of Vector2Like
...
Changed the types of follow and followOffset to use the interface Vector2Like, this enable more objects to be used and not only gameobjects and better describe followOffset
2023-09-07 18:11:02 -06: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
Richard Davey
80da532028
Merge pull request #6555 from PresentCreativeLLC/particle-emitter-type-fix
...
JSDocs update
2023-07-26 18:46:24 +01:00
Richard Davey
719bfd9dd8
Default the fill/line style to transparent
2023-07-24 14:33:49 +01:00
Alvaro Estrada
996a1361c4
JSDocs update
...
Updated the JSDocs for the particle emitter to fix an issue with its typescript constructor description
2023-07-21 13:48:18 -06:00
Richard Davey
c44dbccedc
The PathFollower.pathUpdate
method will now check if the tween
property has a valid data
component before running the update. This prevents a call to PathFollower.stopFollow
from throwing a Cannot read properties of null (reading '0')
error as it tried to do a single update post stop. Fix #6508
2023-07-21 18:20:38 +01:00
Richard Davey
4fa348e161
Group.createFromConfig
will now check to see if the config contains either internalCreateCallback
or internalRemoveCallback
and set them accordingly. This fixes an issue where the callbacks would never be set if specified in an array of single configuration objects. Fix #6519
2023-07-21 18:12:33 +01:00
Richard Davey
7d4e6a3688
When using interpolation for a Particle Emitter operation, such as: x: { values: [ 50, 500, 200, 800 ] }
it would fail to set the final value unless you specified the interpolation
property as well. It now defaults to linear
if not given. Fix #6551
2023-07-21 17:33:13 +01:00
Richard Davey
a17c6f78e9
Particle.alpha
is now clamped to the range 0 to 1 within the update
method, preventing it from going out of range. Fix #6551
2023-07-21 17:18:59 +01:00
Richard Davey
56254d0114
The Rope
Game Object now calls initPostPipeline
allowing you to use Post FX directly on it, such as glow, blur, etc. Fix #6550
2023-07-21 17:07:32 +01:00
Richard Davey
b266223318
Modified method name to be plural
2023-07-21 16:57:48 +01:00
Richard Davey
a4e53acc33
Merge pull request #6453 from rexrainbow/particles-clear-zones
...
Add methods to clear EmitZone or DeathZone
2023-07-21 16:55:22 +01:00
Richard Davey
b3e1b77686
Updated jsdocs
2023-07-21 16:54:51 +01:00
Richard Davey
0db2134c2e
Merge pull request #6505 from Ariorh1337/6504
...
6504: add letter spacing
2023-07-21 16:48:45 +01:00
Richard Davey
31a0fe0303
Merge pull request #6480 from EmilSV/bitmaptext_render_fix
...
BitmapText now reset texture unit on flush
2023-07-21 16:36:27 +01:00
Richard Davey
bce1e48040
Merge pull request #6494 from samme/docs/particle-emitter-xy
...
Docs: particleX and particleY are updatable ops
2023-07-21 16:06:53 +01:00
Richard Davey
63234a2add
Text.setRTL
is a new method that allows you to set a Text Game Object as being rendered from right-to-left, instead of the default left to right (thanks @rexrainbow)
2023-07-21 16:03:43 +01:00
Richard Davey
c678807d69
Merge pull request #6517 from rexrainbow/text-setrtl
...
Add setRTL method
2023-07-21 15:57:10 +01:00
Richard Davey
fb3c85888b
Typo fix
2023-06-11 22:37:06 +01:00
Rex
ba5eb16aeb
Add setRTL method
2023-05-31 21:01:15 +08:00
Dmitry Omelchenko
b84ee33cc2
add letter spacing
2023-05-13 04:50:37 +03:00
samme
1149ad2fc5
Docs: particleX and particleY are updatable ops
2023-05-04 16:32:38 -07:00
Richard Davey
ed180bcc44
Particle.scaleY
would always be set to the scaleX
value, even if given a different one within the config. It will now use its own value correctly.
2023-04-19 17:58:48 +01:00
Emil Schnedler Vad
0d06b87c9e
BitmapText now reset texture unit on flush
2023-04-19 15:37:17 +02:00
Richard Davey
6b55674d89
Update ParticleEmitterConfig.js
2023-04-12 08:49:58 +01:00
Richard Davey
4ccf0371ec
Remove visible check, so they render to DynamicTextures again
2023-04-12 07:10:52 +01:00
Richard Davey
63a852779a
Return array of zones
2023-04-12 02:07:59 +01:00
Richard Davey
1c6e0c81d1
Merge pull request #6462 from EmilSV/particle-render-fix
...
fixed particle using a white texture if flush happened
2023-04-12 01:54:43 +01:00
Richard Davey
4a892c007d
Removed 'removeVideoElementOnDestroy' and better docs
2023-04-12 01:46:45 +01:00
Richard Davey
136c2fee42
Updated video events
2023-04-12 01:46:32 +01:00
Richard Davey
08556b2695
Delete VIDEO_TIMEOUT_EVENT.js
2023-04-12 01:46:23 +01:00
Richard Davey
ce05f42759
Update VideoFactory.js
2023-04-12 00:39:34 +01:00
Richard Davey
ff3f92f4d5
Test for ended state. Fix #5873
2023-04-12 00:39:30 +01:00
Richard Davey
9cd1fa45fb
Updated jsdocs
2023-04-12 00:08:42 +01:00
Richard Davey
3af1d9002c
Reset playCalled on complete. Emit new texture ready event.
2023-04-12 00:01:15 +01:00
Richard Davey
950fabe306
Added texture ready event
2023-04-12 00:00:58 +01:00
Richard Davey
8c2e591362
Moved PLAY event to after texture creation. Added frameReady property. Better paused handling.
2023-04-11 19:46:13 +01:00
Richard Davey
93620ca39e
Fixed markers and video looping
2023-04-11 18:26:46 +01:00
Richard Davey
8412e53df3
Working perfectly for modern and legacy browsers.
2023-04-11 17:03:00 +01:00
Richard Davey
257fdaed4f
All now working via promise + rvf flow
2023-04-11 02:05:56 +01:00