mirror of
https://github.com/photonstorm/phaser
synced 2024-12-19 17:44:45 +00:00
1 line
No EOL
34 KiB
JSON
1 line
No EOL
34 KiB
JSON
{"class":{"name":"PIXI.Graphics","extends":"PIXI.DisplayObjectContainer","static":false,"constructor":true,"parameters":[],"help":"The Graphics class contains methods used to draw primitive shapes such as lines, circles and rectangles to the display, and color and fill them."},"consts":[],"methods":{"public":[{"name":"addChild","static":false,"returns":{"types":["PIXI.DisplayObject"],"help":"The child that was added."},"help":"Adds a child to the container.","line":93,"public":true,"protected":false,"private":false,"parameters":[{"name":"child","type":["PIXI.DisplayObject"],"help":"The DisplayObject to add to the container","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"addChildAt","static":false,"returns":{"types":["PIXI.DisplayObject"],"help":"The child that was added."},"help":"Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown","line":106,"public":true,"protected":false,"private":false,"parameters":[{"name":"child","type":["PIXI.DisplayObject"],"help":"The child to add","optional":false,"default":null},{"name":"index","type":["number"],"help":"The index to place the child in","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"arc","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"The arc method creates an arc\/curve (used to create circles, or parts of circles).","line":419,"public":true,"protected":false,"private":false,"parameters":[{"name":"cx","type":["number"],"help":"The x-coordinate of the center of the circle","optional":false,"default":null},{"name":"cy","type":["number"],"help":"The y-coordinate of the center of the circle","optional":false,"default":null},{"name":"radius","type":["number"],"help":"The radius of the circle","optional":false,"default":null},{"name":"startAngle","type":["number"],"help":"The starting angle, in radians (0 is at the 3 o'clock position of the arc's circle)","optional":false,"default":null},{"name":"endAngle","type":["number"],"help":"The ending angle, in radians","optional":false,"default":null},{"name":"anticlockwise","type":["boolean"],"help":"Optional. Specifies whether the drawing should be counterclockwise or clockwise. False is default, and indicates clockwise, while true indicates counter-clockwise.","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"beginFill","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Specifies a simple one-color fill that subsequent calls to other Graphics methods\\n(such as lineTo() or drawCircle()) use when drawing.","line":486,"public":true,"protected":false,"private":false,"parameters":[{"name":"color","type":["number"],"help":"the color of the fill","optional":false,"default":null},{"name":"alpha","type":["number"],"help":"the alpha of the fill","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"bezierCurveTo","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Calculate the points for a bezier curve and then draws it.","line":297,"public":true,"protected":false,"private":false,"parameters":[{"name":"cpX","type":["number"],"help":"Control point x","optional":false,"default":null},{"name":"cpY","type":["number"],"help":"Control point y","optional":false,"default":null},{"name":"cpX2","type":["number"],"help":"Second Control point x","optional":false,"default":null},{"name":"cpY2","type":["number"],"help":"Second Control point y","optional":false,"default":null},{"name":"toX","type":["number"],"help":"Destination point x","optional":false,"default":null},{"name":"toY","type":["number"],"help":"Destination point y","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"clear","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Clears the graphics that were drawn to this Graphics object, and resets fill and line style settings.","line":604,"public":true,"protected":false,"private":false,"parameters":[],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"click","static":false,"returns":null,"help":"A callback that is used when the users clicks on the displayObject with their mouse's left button","line":238,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"destroyCachedSprite","static":false,"returns":null,"help":"Destroys a previous cached sprite.","line":1039,"public":true,"protected":false,"private":false,"parameters":[],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"drawCircle","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Draws a circle.","line":560,"public":true,"protected":false,"private":false,"parameters":[{"name":"x","type":["number"],"help":"The X coordinate of the center of the circle","optional":false,"default":null},{"name":"y","type":["number"],"help":"The Y coordinate of the center of the circle","optional":false,"default":null},{"name":"radius","type":["number"],"help":"The radius of the circle","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"drawEllipse","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Draws an ellipse.","line":577,"public":true,"protected":false,"private":false,"parameters":[{"name":"x","type":["number"],"help":"The X coordinate of the center of the ellipse","optional":false,"default":null},{"name":"y","type":["number"],"help":"The Y coordinate of the center of the ellipse","optional":false,"default":null},{"name":"width","type":["number"],"help":"The half width of the ellipse","optional":false,"default":null},{"name":"height","type":["number"],"help":"The half height of the ellipse","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"drawPolygon","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Draws a polygon using the given path.","line":591,"public":true,"protected":false,"private":false,"parameters":[{"name":"path","type":["array"],"help":"The path data used to construct the polygon.","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"drawRect","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"","line":528,"public":true,"protected":false,"private":false,"parameters":[{"name":"x","type":["number"],"help":"The X coord of the top-left of the rectangle","optional":false,"default":null},{"name":"y","type":["number"],"help":"The Y coord of the top-left of the rectangle","optional":false,"default":null},{"name":"width","type":["number"],"help":"The width of the rectangle","optional":false,"default":null},{"name":"height","type":["number"],"help":"The height of the rectangle","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"drawRoundedRect","static":false,"returns":null,"help":"","line":544,"public":true,"protected":false,"private":false,"parameters":[{"name":"x","type":["number"],"help":"The X coord of the top-left of the rectangle","optional":false,"default":null},{"name":"y","type":["number"],"help":"The Y coord of the top-left of the rectangle","optional":false,"default":null},{"name":"width","type":["number"],"help":"The width of the rectangle","optional":false,"default":null},{"name":"height","type":["number"],"help":"The height of the rectangle","optional":false,"default":null},{"name":"radius","type":["number"],"help":"Radius of the rectangle corners","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"drawShape","static":false,"returns":{"types":["PIXI.GraphicsData"],"help":"The generated GraphicsData object."},"help":"Draws the given shape to this Graphics object. Can be any of Circle, Rectangle, Ellipse, Line or Polygon.","line":1055,"public":true,"protected":false,"private":false,"parameters":[{"name":"shape","type":["Phaser.Circle","Phaser.Rectangle","Phaser.Ellipse","Phaser.Line","Phaser.Polygon"],"help":" The Shape object to draw.","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"endFill","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Applies a fill to the lines and shapes that were added since the last call to the beginFill() method.","line":510,"public":true,"protected":false,"private":false,"parameters":[],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"generateTexture","static":false,"returns":{"types":["PIXI.Texture"],"help":"a texture of the graphics object"},"help":"Useful function that returns a texture of the graphics object that can then be used to create sprites\\nThis can be quite useful if your geometry is complicated and needs to be reused multiple times.","line":625,"public":true,"protected":false,"private":false,"parameters":[{"name":"resolution","type":["number"],"help":"The resolution of the texture being generated","optional":false,"default":null},{"name":"scaleMode","type":["number"],"help":"Should be one of the PIXI.scaleMode consts","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"getBounds","static":false,"returns":{"types":["Phaser.Rectangle"],"help":"the rectangular bounding area"},"help":"Retrieves the bounds of the graphic shape as a rectangle object","line":800,"public":true,"protected":false,"private":false,"parameters":[],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"getChildAt","static":false,"returns":{"types":["PIXI.DisplayObject"],"help":"The child at the given index, if any."},"help":"Returns the child at the specified index","line":196,"public":true,"protected":false,"private":false,"parameters":[{"name":"index","type":["number"],"help":"The index to get the child from","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"getChildIndex","static":false,"returns":{"types":["number"],"help":"The index position of the child display object to identify"},"help":"Returns the index position of a child DisplayObject instance","line":161,"public":true,"protected":false,"private":false,"parameters":[{"name":"child","type":["PIXI.DisplayObject"],"help":"The DisplayObject instance to identify","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"getLocalBounds","static":false,"returns":{"types":["Phaser.Rectangle"],"help":"The rectangular bounding area"},"help":"Retrieves the non-global local bounds of the displayObjectContainer as a rectangle. The calculation takes all visible children into consideration.","line":359,"public":true,"protected":false,"private":false,"parameters":[],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"lineStyle","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Specifies the line style used for subsequent calls to Graphics methods such as the lineTo() method or the drawCircle() method.","line":178,"public":true,"protected":false,"private":false,"parameters":[{"name":"lineWidth","type":["number"],"help":"width of the line to draw, will update the objects stored style","optional":false,"default":null},{"name":"color","type":["number"],"help":"color of the line to draw, will update the objects stored style","optional":false,"default":null},{"name":"alpha","type":["number"],"help":"alpha of the line to draw, will update the objects stored style","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"lineTo","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Draws a line using the current line style from the current drawing position to (x, y);\\nThe current drawing position is then set to (x, y).","line":227,"public":true,"protected":false,"private":false,"parameters":[{"name":"x","type":["number"],"help":"the X coordinate to draw to","optional":false,"default":null},{"name":"y","type":["number"],"help":"the Y coordinate to draw to","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"mousedown","static":false,"returns":null,"help":"A callback that is used when the user clicks the mouse's left button down over the sprite","line":244,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"mouseout","static":false,"returns":null,"help":"A callback that is used when the users mouse leaves the displayObject","line":231,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"mouseover","static":false,"returns":null,"help":"A callback that is used when the users mouse rolls over the displayObject","line":225,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"mouseup","static":false,"returns":null,"help":"A callback that is used when the user releases the mouse's left button that was over the displayObject\\nfor this callback to be fired, the mouse's left button must have been pressed down over the displayObject","line":251,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"mouseupoutside","static":false,"returns":null,"help":"A callback that is used when the user releases the mouse's left button that was over the displayObject but is no longer over the displayObject\\nfor this callback to be fired, the mouse's left button must have been pressed down over the displayObject","line":258,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"moveTo","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Moves the current drawing position to x, y.","line":211,"public":true,"protected":false,"private":false,"parameters":[{"name":"x","type":["number"],"help":"the X coordinate to move to","optional":false,"default":null},{"name":"y","type":["number"],"help":"the Y coordinate to move to","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"quadraticCurveTo","static":false,"returns":{"types":["PIXI.Graphics"],"help":""},"help":"Calculate the points for a quadratic bezier curve and then draws it.\\nBased on: https:\/\/stackoverflow.com\/questions\/785097\/how-do-i-implement-a-bezier-curve-in-c","line":246,"public":true,"protected":false,"private":false,"parameters":[{"name":"cpX","type":["number"],"help":"Control point x","optional":false,"default":null},{"name":"cpY","type":["number"],"help":"Control point y","optional":false,"default":null},{"name":"toX","type":["number"],"help":"Destination point x","optional":false,"default":null},{"name":"toY","type":["number"],"help":"Destination point y","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"removeChild","static":false,"returns":{"types":["PIXI.DisplayObject"],"help":"The child that was removed."},"help":"Removes a child from the container.","line":213,"public":true,"protected":false,"private":false,"parameters":[{"name":"child","type":["PIXI.DisplayObject"],"help":"The DisplayObject to remove","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"removeChildAt","static":false,"returns":{"types":["PIXI.DisplayObject"],"help":"The child that was removed."},"help":"Removes a child from the specified index position.","line":228,"public":true,"protected":false,"private":false,"parameters":[{"name":"index","type":["number"],"help":"The index to get the child from","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"removeChildren","static":false,"returns":null,"help":"Removes all children from this container that are within the begin and end indexes.","line":246,"public":true,"protected":false,"private":false,"parameters":[{"name":"beginIndex","type":["number"],"help":"The beginning position. Default value is 0.","optional":false,"default":null},{"name":"endIndex","type":["number"],"help":"The ending position. Default value is size of the container.","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"removeStageReference","static":false,"returns":null,"help":"Removes the current stage reference from the container and all of its children.","line":400,"public":true,"protected":false,"private":false,"parameters":[],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"rightclick","static":false,"returns":null,"help":"A callback that is used when the users clicks on the displayObject with their mouse's right button","line":265,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"rightdown","static":false,"returns":null,"help":"A callback that is used when the user clicks the mouse's right button down over the sprite","line":271,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"rightup","static":false,"returns":null,"help":"A callback that is used when the user releases the mouse's right button that was over the displayObject\\nfor this callback to be fired the mouse's right button must have been pressed down over the displayObject","line":278,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"rightupoutside","static":false,"returns":null,"help":"A callback that is used when the user releases the mouse's right button that was over the displayObject but is no longer over the displayObject\\nfor this callback to be fired, the mouse's right button must have been pressed down over the displayObject","line":285,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"setChildIndex","static":false,"returns":null,"help":"Changes the position of an existing child in the display object container","line":178,"public":true,"protected":false,"private":false,"parameters":[{"name":"child","type":["PIXI.DisplayObject"],"help":"The child DisplayObject instance for which you want to change the index number","optional":false,"default":null},{"name":"index","type":["number"],"help":"The resulting index number for the child display object","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"setStageReference","static":false,"returns":null,"help":"Sets the containers Stage reference. This is the Stage that this object, and all of its children, is connected to.","line":383,"public":true,"protected":false,"private":false,"parameters":[{"name":"stage","type":["PIXI.Stage"],"help":"the stage that the container will have as its current stage reference","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"swapChildren","static":false,"returns":null,"help":"Swaps the position of 2 Display Objects within this container.","line":136,"public":true,"protected":false,"private":false,"parameters":[{"name":"child","type":["PIXI.DisplayObject"],"help":"","optional":false,"default":null},{"name":"child2","type":["PIXI.DisplayObject"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"tap","static":false,"returns":null,"help":"A callback that is used when the users taps on the sprite with their finger\\nbasically a touch version of click","line":296,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"toGlobal","static":false,"returns":{"types":["Phaser.Point"],"help":"A point object representing the position of this object"},"help":"Calculates the global position of the display object","line":592,"public":true,"protected":false,"private":false,"parameters":[{"name":"position","type":["Phaser.Point"],"help":"The world origin to calculate from","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"toLocal","static":false,"returns":{"types":["Phaser.Point"],"help":"A point object representing the position of this object"},"help":"Calculates the local position of the display object relative to another point","line":606,"public":true,"protected":false,"private":false,"parameters":[{"name":"position","type":["Phaser.Point"],"help":"The world origin to calculate from","optional":false,"default":null},{"name":"[from]","type":["PIXI.DisplayObject"],"help":"The DisplayObject to calculate the global position from","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"touchend","static":false,"returns":null,"help":"A callback that is used when the user releases a touch over the displayObject","line":308,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"touchendoutside","static":false,"returns":null,"help":"A callback that is used when the user releases the touch that was over the displayObject\\nfor this callback to be fired, The touch must have started over the sprite","line":315,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"touchstart","static":false,"returns":null,"help":"A callback that is used when the user touches over the displayObject","line":302,"public":true,"protected":false,"private":false,"parameters":[{"name":"interactionData","type":["PIXI.InteractionData"],"help":"","optional":false,"default":null}],"inherited":true,"inheritedFrom":"PIXI.Sprite"},{"name":"updateBounds","static":false,"returns":null,"help":"Update the bounds of the object","line":875,"public":true,"protected":false,"private":false,"parameters":[],"inherited":true,"inheritedFrom":"PIXI.Graphics"},{"name":"updateCache","static":false,"returns":null,"help":"Generates and updates the cached sprite for this object.","line":580,"public":true,"protected":false,"private":false,"parameters":[],"inherited":true,"inheritedFrom":"PIXI.Sprite"}],"protected":[],"private":[{"name":"_generateCachedSprite","static":false,"returns":null,"help":"Generates the cached sprite when the sprite has cacheAsBitmap = true","line":976,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"_renderCanvas","static":false,"returns":null,"help":"Renders the object using the Canvas renderer","line":732,"public":false,"protected":false,"private":true,"parameters":[{"name":"renderSession","type":["PIXI.RenderSession"],"help":"","optional":false,"default":null}],"inherited":false,"inheritedFrom":""},{"name":"_renderWebGL","static":false,"returns":null,"help":"Renders the object using the WebGL renderer","line":652,"public":false,"protected":false,"private":true,"parameters":[{"name":"renderSession","type":["PIXI.RenderSession"],"help":"","optional":false,"default":null}],"inherited":false,"inheritedFrom":""},{"name":"updateCachedSpriteTexture","static":false,"returns":null,"help":"Updates texture size based on canvas size","line":1016,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""}],"static":[]},"properties":{"public":[{"name":"alpha","type":["number"],"help":"The opacity of the object.","inlineHelp":"","line":52,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"blendMode","type":["number"],"help":"The blend mode to be applied to the graphic shape. Apply a value of PIXI.blendModes.NORMAL to reset the blend mode.","inlineHelp":"","line":68,"default":"PIXI.blendModes.NORMAL;","public":true,"protected":false,"private":false,"readOnly":false},{"name":"boundsPadding","type":["number"],"help":"The bounds' padding used for bounds calculation.","inlineHelp":"","line":102,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"buttonMode","type":["boolean"],"help":"This is used to indicate if the displayObject should display a mouse hand cursor on rollover","inlineHelp":"","line":77,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"cacheAsBitmap","type":["boolean"],"help":"Set if this display object is cached as a bitmap.\\nThis basically takes a snap shot of the display object as it is at that moment. It can provide a performance benefit for complex static displayObjects.\\nTo remove simply set this property to 'null'","inlineHelp":"","line":424,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"children","type":["array PIXI.DisplayObject"],"help":"[read-only] The array of children of this container.","inlineHelp":"","line":24,"default":null,"public":true,"protected":false,"private":false,"readOnly":true},{"name":"defaultCursor","type":["string"],"help":"This is the cursor that will be used when the mouse is over this object. To enable this the element must have interaction = true and buttonMode = true\\n","inlineHelp":"","line":131,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"fillAlpha","type":["number"],"help":"The alpha value used when filling the Graphics object.","inlineHelp":"","line":24,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"filterArea","type":["Phaser.Rectangle"],"help":"The area the filter is applied to like the hitArea this is used as more of an optimisation\\nrather than figuring out the dimensions of the displayObject each frame you can set this rectangle","inlineHelp":"","line":168,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"filters","type":["array"],"help":"Sets the filters for the displayObject.\\n* IMPORTANT: This is a webGL only feature and will be ignored by the canvas renderer.\\nTo remove filters simply set this property to 'null'","inlineHelp":"","line":388,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"height","type":["number"],"help":"The height of the displayObjectContainer, setting this will actually modify the scale to achieve the value set","inlineHelp":"","line":65,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"hitArea","type":["Phaser.Rectangle","Phaser.Circle","Phaser.Ellipse","Phaser.Polygon"],"help":"This is the defined area that will pick up mouse \/ touch events. It is null by default.\\nSetting it is a neat way of optimising the hitTest function that the interactionManager will use (as it will not need to hit test all the children)","inlineHelp":"","line":69,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"interactive","type":["boolean"],"help":"Indicates if the sprite will have touch and mouse interactivity. It is false by default","inlineHelp":"","line":327,"default":"false","public":true,"protected":false,"private":false,"readOnly":false},{"name":"isMask","type":["boolean"],"help":"Whether this shape is being used as a mask.","inlineHelp":"","line":94,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"lineColor","type":["string"],"help":"The color of any lines drawn.","inlineHelp":"","line":41,"default":"0","public":true,"protected":false,"private":false,"readOnly":false},{"name":"lineWidth","type":["number"],"help":"The width (thickness) of any lines drawn.","inlineHelp":"","line":32,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"mask","type":["PIXI.Graphics"],"help":"Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.\\nIn PIXI a regular mask must be a PIXI.Graphics object. This allows for much faster masking in canvas as it utilises shape clipping.\\nTo remove a mask, set this property to null.","inlineHelp":"","line":369,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"parent","type":["PIXI.DisplayObjectContainer"],"help":"[read-only] The display object container that contains this display object.","inlineHelp":"","line":94,"default":null,"public":true,"protected":false,"private":false,"readOnly":true},{"name":"pivot","type":["Phaser.Point"],"help":"The pivot point of the displayObject that it rotates around","inlineHelp":"","line":36,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"position","type":["Phaser.Point"],"help":"The coordinate of the object relative to the local coordinates of the parent.","inlineHelp":"","line":20,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"renderable","type":["boolean"],"help":"Can this object be rendered","inlineHelp":"","line":85,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"rotation","type":["number"],"help":"The rotation of the object in radians.","inlineHelp":"","line":44,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"scale","type":["Phaser.Point"],"help":"The scale factor of the object.","inlineHelp":"","line":28,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"stage","type":["PIXI.Stage"],"help":"[read-only] The stage the display object is connected to, or undefined if it is not connected to the stage.","inlineHelp":"","line":103,"default":null,"public":true,"protected":false,"private":false,"readOnly":true},{"name":"tint","type":["number"],"help":"The tint applied to the graphic shape. This is a hex value. Apply a value of 0xFFFFFF to reset the tint.","inlineHelp":"","line":59,"default":"0xFFFFFF","public":true,"protected":false,"private":false,"readOnly":false},{"name":"visible","type":["boolean"],"help":"The visibility of the object.","inlineHelp":"","line":60,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"width","type":["number"],"help":"The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set","inlineHelp":"","line":37,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"worldAlpha","type":["number"],"help":"[read-only] The multiplied alpha of the displayObject","inlineHelp":"","line":112,"default":null,"public":true,"protected":false,"private":false,"readOnly":true},{"name":"worldVisible","type":["boolean"],"help":"[read-only] Indicates if the sprite is globally visible.","inlineHelp":"","line":346,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"x","type":["number"],"help":"The position of the displayObject on the x axis relative to the local coordinates of the parent.","inlineHelp":"","line":734,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"y","type":["number"],"help":"The position of the displayObject on the y axis relative to the local coordinates of the parent.","inlineHelp":"","line":749,"default":null,"public":true,"protected":false,"private":false,"readOnly":false}],"protected":[],"private":[{"name":"_webGL","type":["array"],"help":"Array containing some WebGL-related properties used by the WebGL renderer.","inlineHelp":"","line":86,"default":null,"public":false,"protected":false,"private":true,"readOnly":false},{"name":"cacheAsBitmap","type":["boolean"],"help":"When cacheAsBitmap is set to true the graphics object will be rendered as if it was a sprite.\\nThis is useful if your graphics element does not change often, as it will speed up the rendering of the object in exchange for taking up texture memory.\\nIt is also useful if you need the graphics object to be anti-aliased, because it will be rendered using canvas.\\nThis is not recommended if you are constantly redrawing the graphics element.","inlineHelp":"","line":148,"default":"false","public":false,"protected":false,"private":true,"readOnly":false},{"name":"cachedSpriteDirty","type":["boolean"],"help":"Used to detect if the cached sprite object needs to be updated.","inlineHelp":"","line":129,"default":null,"public":false,"protected":false,"private":true,"readOnly":false},{"name":"currentPath","type":["object"],"help":"Current path","inlineHelp":"","line":77,"default":null,"public":false,"protected":false,"private":true,"readOnly":false},{"name":"dirty","type":["boolean"],"help":"Used to detect if the graphics object has changed. If this is set to true then the graphics object will be recalculated.","inlineHelp":"","line":111,"default":null,"public":false,"protected":false,"private":true,"readOnly":false},{"name":"graphicsData","type":["array"],"help":"Graphics data","inlineHelp":"","line":50,"default":null,"public":false,"protected":false,"private":true,"readOnly":false},{"name":"webGLDirty","type":["boolean"],"help":"Used to detect if the webgl graphics object has changed. If this is set to true then the graphics object will be recalculated.","inlineHelp":"","line":120,"default":null,"public":false,"protected":false,"private":true,"readOnly":false}]}} |