Class: SmoothGraphicsGeometry

PIXI.smooth.SmoothGraphicsGeometry

Extends

  • Geometry

Members

bounds PIXI.Bounds readonly

Get the current bounds of the graphic geometry.

Methods

containsPoint (point) Boolean

Check to see if a point is contained within this geometry.

Name Type Description
point PIXI.IPointData

Point to check if it's contained.

Returns:
Type Description
Boolean true if the point is contained within geometry.

_compareStyles (styleA, styleB) boolean protected

Affinity check

Name Type Description
styleA PIXI.FillStyle | PIXI.LineStyle
styleB PIXI.FillStyle | PIXI.LineStyle
Returns:
Type Description
boolean

buildDrawCalls (shaderSettings) protected

Converts intermediate batches data to drawCalls.

Name Type Attributes Description
shaderSettings PIXI.smooth.IGraphicsBatchSettings <optional>

calculateBounds () void protected

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

invalidate () void protected

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

packBatches () void protected

Offset the indices so that it works with the batcher.

transformPoints (points, matrix) void protected

Transform points using matrix.

Name Type Description
points Array<number>

Points to transform

matrix PIXI.Matrix

Transform matrix

validateBatching () boolean protected

Test geometry for batching process.

Returns:
Type Description
boolean