Commit graph

63 commits

Author SHA1 Message Date
Richard Davey
9e84c9f082 Fixed slice method 2018-07-08 22:44:40 +01:00
Richard Davey
6aa1526ea9 Graphics.arc has a new optional argument overshoot. This is a small value that is added onto the end of the endAngle and allows you to extend the arc further than the default 360 degrees. You may wish to do this if you're trying to draw an arc with an especially thick line stroke, to ensure there are no gaps. Fix #3798 2018-07-06 17:15:46 +01:00
Richard Davey
90ba2608fa Added in Camera alpha support to all canvas renderers 2018-06-25 16:24:08 +01:00
Richard Davey
5a0fe89a7e Swap _id to id 2018-06-23 12:26:39 +01:00
Richard Davey
622fd7c34a
Merge pull request #3745 from cyantree/feature/update-graphics-jsdoc
Changed options and sub options of `Graphics` constructor in docs to …
2018-06-19 13:19:12 +01:00
Richard Davey
62661b46fb Updated rounded rect functions 2018-06-19 13:17:38 +01:00
Richard Davey
cc5f1bb91e
Merge pull request #3755 from TadejZupancic/patch-8
Add rounded rectangle to Graphics
2018-06-19 12:47:58 +01:00
TadejZupancic
c1d0c11b30
Update Graphics.js 2018-06-18 10:52:49 +02:00
Chris Andrew
a480232d87 Documented Graphics.save() and Graphics.restore().
Adapted from Mozilla's descriptions of the corresponding Canvas methods.
2018-06-17 19:43:05 +01:00
TadejZupancic
caef54a34e
Update Graphics.js 2018-06-15 14:36:24 +02:00
TadejZupancic
321aba14c3
Update Graphics.js 2018-06-15 14:31:44 +02:00
TadejZupancic
9affc60037
Update Graphics.js 2018-06-15 14:23:40 +02:00
cyantree
a727437304 Changed options and sub options of Graphics constructor in docs to be optional 2018-06-13 20:01:26 +02:00
Chris Andrew
f8ee35d46a Fixed Gamepad lint errors, tweaked some Graphics docs. 2018-06-07 18:36:27 +01:00
Chris Andrew
62d6496dfb Adapted Graphics class description from Phaser CE.
Documented the remaining properties and a few more methods.
2018-06-07 16:47:27 +01:00
Chris Andrew
786d2068a3 Documented most of the Graphics Game Object methods. 2018-06-07 16:01:40 +01:00
Chris Andrew
69ec32a2fe Documented initial Graphics options and Graphics style settings types. 2018-06-07 16:01:40 +01:00
Chris Andrew
ab5853f65e Started documenting the Graphics game object.
Added a couple of missing descriptions for the Container game object.
2018-06-06 17:52:31 +01:00
Richard Davey
b3ef36ed08 Added preDestroy callback 2018-05-22 15:59:23 +01:00
Richard Davey
0d0846a415 Calling a creator, such as GraphicsCreator, without passing in a config object, would cause an error to be thrown. All Game Object creators now catch against this. 2018-05-16 15:17:08 +01:00
Richard Davey
c13c828dc4 lint fix 2018-05-02 11:36:03 +01:00
Richard Davey
a30d5acb9e The Graphics Creator would automatically add the Graphics to the display list by mistake. The default should be to remain hidden. Fix #3637 2018-05-02 10:57:04 +01:00
Richard Davey
e3c28d3cd9 Removed un-needed arguments 2018-04-23 17:28:37 +01:00
Richard Davey
606ba6d8d7 Added new Mask component and added to all relevant Game Objects 2018-04-20 18:57:49 +01:00
Richard Davey
6299019838 Updated to use typeof DefinePlugin check. 2018-04-20 00:23:24 +01:00
Chris Andrew
f70f92b038 Fixed explicit check for undefined GraphicsCanvasRenderer's parentMatrix, which meant null could not be passed as an argument. 2018-04-05 21:07:45 +01:00
Chris Andrew
9293891c82 Fixed renderCanvas() call in Graphics.generateTexture().
Introduced by altering the signature of the Canvas renderers (c232642a).
2018-04-05 19:08:54 +01:00
Felipe Alfonso
c232642a52 Parent matrix is applied to canvas context on each draw function 2018-04-04 14:05:59 -03:00
Felipe Alfonso
eafb488e25 Merge branch 'master' into containers 2018-04-04 13:15:42 -03:00
Felipe Alfonso
96b8db4685 Added parentMatrix to all canvas rendering functions 2018-04-04 13:14:55 -03:00
Felipe Alfonso
bea7ca36ad Merge branch 'master' into containers
# Conflicts:
#	src/renderer/webgl/pipelines/TextureTintPipeline.js
2018-04-04 12:07:41 -03:00
Richard Davey
c251eceaf6 jsdoc fixes 2018-04-04 14:43:53 +01:00
Richard Davey
dac030dd3e Graphics.slice allows you to easily draw a Pacman, or slice of pie shape to a Graphics object. 2018-04-04 11:13:19 +01:00
Felipe Alfonso
e0f678d1ff Merge branch 'master' into containers 2018-03-28 20:49:00 -03:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Felipe Alfonso
b23ad3b130 Fixed issue with creating containers and graphics with scene.make. 2018-03-27 17:32:33 -03:00
Felipe Alfonso
d544701495 parentMatrix added to individual game object render function 2018-03-27 14:49:09 -03:00
orblazer
87633fdfad Fix multiple types on GameObjects 2018-03-20 15:56:31 +01:00
orblazer
90def456f2 Update JSDoc on GameObjects 2018-03-19 12:54:31 +01:00
Richard Davey
c2f25b3742
Merge pull request #3240 from Twilrom/arc-fix
Update WebGL Graphics.arc to work more like on Canvas
2018-03-05 21:54:46 +00:00
Richard Davey
50dac412be eslint fixes and console removal 2018-02-16 19:08:50 +00:00
Twilrom
d45784f3c9 Remove some unnecessary calls to closePath. 2018-02-16 16:13:48 +01:00
Richard Davey
79520bfdc4 Added jsdoc 2018-02-15 14:33:36 +00:00
Richard Davey
353dba4d5e Added missing Target camera back, fixing Graphics.generateTexture in the process. 2018-02-13 08:08:48 +00:00
Richard Davey
d578e89828 Moved Mesh out of core and into its own Graphics extension. 2018-02-12 16:59:27 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
40689d1e35 Updated jsdocs. 2018-02-07 15:27:21 +00:00
Richard Davey
36229eee79 Added jsdocs 2018-02-06 01:08:43 +00:00
Richard Davey
d838f4cfcd Added jsdocs 2018-02-06 00:56:09 +00:00
Richard Davey
d457373287 Added Depth component and tidied up redundant parts of Transform 2018-02-01 00:50:15 +00:00