PIXI.GraphicsData

class GraphicsData

A class to contain data useful for Graphics objects

Constructor


new PIXI.GraphicsData(shape: PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle, fillStyle: PIXI.FillStyle, lineStyle: PIXI.LineStyle, matrix: PIXI.Matrix) → {}
Parameters:
Name Type Default Description
shape PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle

The shape object to draw.

fillStyle PIXI.FillStyle undefined

the width of the line to draw

lineStyle PIXI.LineStyle undefined

the color of the line to draw

matrix PIXI.Matrix undefined

Transform matrix

Summary


Properties from GraphicsData

PIXI.FillStyle
fillStyle

The style of the fill.

Array<PIXI.GraphicsData>
holes

The collection of holes.

PIXI.LineStyle
lineStyle

The style of the line.

PIXI.Matrix
matrix

The transform matrix.

number[]
points

The collection of points.

PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle
shape
PIXI.SHAPES
type

The type of the shape, see the Const.Shapes file for all the existing types,

Methods from GraphicsData

PIXI.GraphicsData
clone()
void
destroy()

Destroys the Graphics data.

Public Properties


fillStyle GraphicsData.ts:20
fillStyle: PIXI.FillStyle

The style of the fill.

holes GraphicsData.ts:32
holes: Array<PIXI.GraphicsData>

The collection of holes.

lineStyle GraphicsData.ts:17
lineStyle: PIXI.LineStyle

The style of the line.

matrix GraphicsData.ts:23
matrix: PIXI.Matrix

The transform matrix.

points GraphicsData.ts:29
points: number[]

The collection of points.

type GraphicsData.ts:26
type: PIXI.SHAPES

The type of the shape, see the Const.Shapes file for all the existing types,

Public Methods


clone GraphicsData.ts:51
clone() → {PIXI.GraphicsData}

Creates a new GraphicsData object with the same values as this one.

Returns:
Type Description
PIXI.GraphicsData
  • Cloned GraphicsData object
destroy GraphicsData.ts:65
destroy() → {void}

Destroys the Graphics data.

Returns:
Type Description
void

Powered by webdoc!