Advanced
Readonly
typeThe type of the object, mainly used to avoid instanceof
checks
Readonly
xThe X coordinate of the shape
Readonly
yThe Y coordinate of the shape
Creates a clone of this ShapePrimitive instance.
Checks whether the x and y coordinates passed to this function are contained within this ShapePrimitive.
Copies the properties from another ShapePrimitive to this ShapePrimitive.
Copies the properties from this ShapePrimitive to another ShapePrimitive.
Checks whether the x and y coordinates passed to this function are contained within the stroke of this shape
Optional
alignment: number
A basic interface that defines common properties and methods for all Pixi shape primitives. Provides a standard API for shape manipulation, hit testing, and bounds calculation.
Example
See