Commit graph

1880 commits

Author SHA1 Message Date
Richard Davey
5fa4264219 Added new Transform.getParentRotation method 2019-06-19 10:40:47 +01:00
Richard Davey
f5cae5a48b Added in Text justification feature. Fix #4291 2019-06-19 09:46:32 +01:00
Richard Davey
2e64f4c5cc
Merge pull request #4588 from rexrainbow/master
Update displayOriginX, displayOriginY after size changed
2019-06-19 09:25:38 +01:00
Richard Davey
aa7f4da0d9
Merge pull request #4587 from samme/fix/emitter-op-random
Fix EmitterOp config with { random: false }
2019-06-19 09:24:20 +01:00
Richard Davey
a786298c66 Updated Line docs. #4590 2019-06-12 23:20:22 +01:00
Hua
da617f364d Update displayOriginX, displayOriginY after size changed 2019-06-12 13:54:27 +08:00
samme
df3953e604 Require truthy random value for randomness 2019-06-11 11:38:29 -07:00
Richard Davey
13180b9a9a If you had a Graphics object in the display list immediately after an object with a Bitmap Mask it would throw an error Uncaught TypeError: Cannot set property 'TL' of undefined. Fix #4581 2019-06-11 17:58:57 +01:00
Richard Davey
423a9e5003 Implent Grid canvas rendering! Fix #4585 2019-06-11 16:45:13 +01:00
Richard Davey
eb73b51cd8 Allow for color and alpha overrides 2019-06-11 16:44:55 +01:00
Hua
382afd6945 Set (width,height) of arc/cicle to (diameter,diameter)
Set (width,height) of arc/cicle to (diameter,diameter), not (radius,radius).
2019-06-11 12:38:26 +08:00
samme
c55ee432ce Docs for easedValueEmit() 2019-06-07 13:32:12 -07:00
samme
cf627a07e1 Correct emitOnly values for angle, lifespan, x, y 2019-06-07 13:31:01 -07:00
Richard Davey
0dfc9806cc Fixed lots of jsdos and moved the frame.cutX/Y addition into each function, allowing the x/y defaults to work again. Fix #4528 2019-06-06 17:45:18 +01:00
Richard Davey
2c8a5d3446 Renamed translate, rotate and scale to make them more explicit 2019-06-06 17:41:42 +01:00
Richard Davey
11d845a77e Specifically state this is a render flag only #4574 2019-06-06 09:52:19 +01:00
Richard Davey
2cdb672d36 Added new Text Padding typedef 2019-06-05 23:40:27 +01:00
Richard Davey
2446e2f3fc Setting padding in a Text style configuration object would cause an error about calling split on undefined. Padding can now be applied both in the config and via setPadding 2019-06-05 23:40:10 +01:00
Richard Davey
458c592596 Changing the radius of an Arc Game Object wouldn't update the size, causing origin issues. It now updates the size and origin correctly in WebGL. Fix #4542 2019-06-05 23:02:59 +01:00
Richard Davey
515adc737d Fixed typo 2019-06-05 22:48:22 +01:00
Richard Davey
ab17888c18
Merge pull request #4577 from samme/feature/group-name
Add Group#name
2019-06-05 22:45:58 +01:00
Richard Davey
8968b2179c Added GameObject.scale transform property for a unified scale setter 2019-06-05 15:30:23 +01:00
samme
04384f78a6 Add Group#name 2019-06-04 09:33:08 -07:00
Richard Davey
558f6aea55 JSDoc fixes 2019-06-04 16:01:37 +01:00
samme
d3407c5e44 Add EmitterOpOnEmitType and EmitterOpOnUpdateType
Also some corrections in ParticleEmitterConfig docs
2019-06-01 13:33:06 -07:00
Richard Davey
278bde236b lint fix 2019-05-30 23:05:06 +01:00
Richard Davey
ec6bbdeebd Added typedefs for the Text Game Object. Fix #4551 2019-05-30 23:01:53 +01:00
Richard Davey
114b7b570d
Merge pull request #4552 from rexrainbow/master
Set canvas size equal to text object size
2019-05-30 22:24:51 +01:00
Richard Davey
897de33a64
Merge pull request #4554 from samme/types/group-classType
Remove GroupClassTypeConstructor type
2019-05-30 22:05:55 +01:00
Richard Davey
90e04c7e90
Merge pull request #4563 from samme/types/tween-configs
Add types for tween configs
2019-05-30 22:00:37 +01:00
Richard Davey
df0b474638 Added getTopCenter, getBottomCenter, getLeftCenter and getRightCenter 2019-05-29 16:27:31 +01:00
samme
777f436aa3 Add NumberTweenBuilderConfig to path configs 2019-05-28 14:11:28 -07:00
samme
7125334677 Duration is optional 2019-05-28 14:08:03 -07:00
samme
c3c11652ef Merge branch 'master' of https://github.com/photonstorm/phaser into types/group-classType 2019-05-28 09:16:27 -07:00
samme
84e476762a Docs description for GroupCreateConfig 2019-05-27 09:05:16 -07:00
samme
e879ec7703 Correct types for GroupCreateConfig.key, GroupCreateConfig.frame 2019-05-27 09:03:28 -07:00
Rex
9a958631fc Don't draw text only when width or height is 0
It can fix this issue:
Text is empty string '', but have fixedWidth and fixedHeight, with backgroundColor setting.
2019-05-26 20:58:40 +08:00
samme
8e717d5588 Remove GroupClassTypeConstructor type 2019-05-23 15:10:40 -07:00
Hua
cc7870906b Fix coding style 2019-05-23 17:30:04 +08:00
Hua
d1b31649ec Fix text align to right/center issue
Calculate text-width in fixedWidth mode
2019-05-23 17:22:51 +08:00
Hua
97b60efa21 Set canvas size equal to text object size
Canvas size might less than text object size, when `fixedWidth` and `fixedHeight` is set.
2019-05-23 16:54:32 +08:00
Richard Davey
9959dce57e Passing a Frame object to Bob.setFrame would fail, as it expected a string or integer. It now checks the type of object, and if a Frame it checks to make sure it's a Frame belonging to the parent Blitter's texture, and if so sets it. Fix #4516 2019-05-17 14:00:39 +01:00
Richard Davey
0ac5d7b8d9 There was some test code left in the DOMElementCSSRenderer file that caused getBoundingClientRect to be called every render. This has been removed, which increases performance significantly for DOM heavy games. 2019-05-17 13:43:55 +01:00
Richard Davey
e23a86d45a The default BaseShader vertex shader has a new uniform uResolution which is set during the Shader init and load to be the size of the Game Object to which the shader is bound. 2019-05-16 17:44:59 +01:00
Hua
fd454a1e9b Use customHitArea in condition
customHitArea has been added in 3.17.0, used in text game object
2019-05-14 10:12:32 +08:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
7deaa9e2b2
Merge pull request #4517 from antoine-pous/patch-1
JSDoc fix returned object type
2019-05-10 14:19:36 +01:00
Richard Davey
a6341a97a8 Fixed Types references 2019-05-09 15:32:53 +01:00
Antoine Pous
ce1577bcc3
JSDoc fix returned object type 2019-05-09 15:20:37 +02:00
Richard Davey
290389c4ae Input Types 2019-05-09 12:02:03 +01:00