SVGGraphicsGeometry

class SVGGraphicsGeometry extends PIXI.GraphicsGeometry

Constructor


new SVGGraphicsGeometry() → {}

Summary


Properties inherited from GraphicsGeometry

number
batchDirty = -1

Batches need to regenerated if the geometry is updated.

Array<PIXI.graphicsUtils.BatchPart>
batches
PIXI.Bounds
bounds
number
boundsPadding = 0

Padding to add to the bounds.

number
closePointEps = 0.0001

Minimal distance between points that are considered different. Affects line tesselation.

number[]
colors

The collection of colors

Array<PIXI.BatchDrawCall>
drawCalls
Array<PIXI.GraphicsData>
graphicsData
number[]
indices

The indices of the vertices

number[]
points

An array of points to draw, 2 numbers per point

number[]
textureIds

Reference to the texture IDs.

number[]
uvs

The UVs collection

PIXI.Bounds
protected _bounds

Cached bounds.

number
protected boundsDirty = -1

The bounds dirty flag.

number
protected cacheDirty = -1

Used to check if the cache is dirty.

number
protected clearDirty = 0

Used to detect if we cleared the graphicsData.

number
protected dirty = 0

Used to detect if the graphics object has changed.

number
protected shapeIndex = 0

Index of the last batched shape in the stack of calls.

Properties inherited from BatchGeometry

Properties inherited from Geometry

object
glVertexArrayObjects
number
instanceCount = 1
boolean
instanced

Whether the geometry is instanced.

number
refCount

Count of existing (not destroyed) meshes that reference this geometry.

Methods inherited from GraphicsGeometry

PIXI.GraphicsGeometry
clear()
boolean
containsPoint(point: IPointData)
void
destroy()

Destroys the GraphicsGeometry object.

PIXI.GraphicsGeometry
drawHole(shape: PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle, matrix: PIXI.Matrix)
PIXI.GraphicsGeometry
drawShape(shape: PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle, fillStyle: PIXI.FillStyle, lineStyle: PIXI.LineStyle, matrix: PIXI.Matrix)
void
updateBatches()
boolean
protected _compareStyles(styleA: PIXI.FillStyle | PIXI.LineStyle, styleB: PIXI.FillStyle | PIXI.LineStyle)
void
protected addColors(colors: Array<number>, color: number, alpha: number, size: number, offset: number)
void
protected addTextureIds(textureIds: Array<number>, id: number, size: number, offset: number)
void
protected addUvs(verts: Array<number>, uvs: Array<number>, texture: PIXI.Texture, start: number, size: number, matrix: PIXI.Matrix)
void
protected adjustUvs(uvs: Array<number>, texture: PIXI.Texture, start: number, size: number)
void
protected buildDrawCalls()

Converts intermediate batches data to drawCalls.

void
protected calculateBounds()

Update the local bounds of the object. Expensive to use performance-wise.

void
protected invalidate()

Call if you changed graphicsData manually. Empties all batch buffers.

boolean
protected isBatchable()
void
protected packAttributes()

Packs attributes to single buffer.

void
protected packBatches()

Offset the indices so that it works with the batcher.

void
protected processFill(data: PIXI.GraphicsData)
void
protected processHoles(holes: Array<PIXI.GraphicsData>)
void
protected processLine(data: PIXI.GraphicsData)
void
protected transformPoints(points: Array<number>, matrix: PIXI.Matrix)
boolean
protected validateBatching()

Test geometry for batching process.

Methods inherited from Geometry

this
addAttribute(id: string, buffer: PIXI.Buffer | number<Array>, size: number, normalized: boolean, type: PIXI.TYPES, stride: number, start: number, instance: boolean)
PIXI.Geometry
addIndex(buffer: PIXI.Buffer | number<Array>)
PIXI.Geometry
clone()
void
dispose()

Disposes WebGL resources that are connected to this geometry.

PIXI.Attribute
getAttribute(id: string)
PIXI.Buffer
getBuffer(id: string)
PIXI.Buffer
getIndex()
number
getSize()

Get the size of the geometries, in vertices.

PIXI.Geometry
interleave()

Powered by webdoc!