ConicDisplay

class ConicDisplay extends PIXI.Container

Draws a segment of conic section represented by the equation k2- lm = 0, where k, l, m are lines.

This display-object shades the inside/outside of a conic section within a mesh.

A conic curve can be represented in the form: k2 - lm = 0, where k, l, m are lines described in the form ax + by + c = 0. l and m are the tangents to the curve, and k is a chord connecting the points of tangency.

Summary


Properties from ConicDisplay

number
_dirtyID = 0

Flags whether the geometry data needs to be updated.

number
_transformID = 0

The world transform ID last when the geometry was updated.

number
_updateID = -1

Last _dirtyID when the geometry was updated.

[number, number, number]
k
[number, number, number]
l
[number, number, number]
m
shape

The conic curve drawn by this graphic.

uvData

Texture positions of the vertices.

vertexData

World positions of the vertices

Properties inherited from Container

T[]
children
number
height

The height of the Container, setting this will actually modify the scale to achieve the value set.

boolean
interactiveChildren = true
boolean
sortableChildren
boolean
sortDirty

Should children be sorted by zIndex at the next updateTransform call.

number
width

The width of the Container, setting this will actually modify the scale to achieve the value set.

Properties inherited from DisplayObject

boolean
_accessibleActive = false
boolean
_accessibleDiv = undefined
PIXI.Bounds
_bounds

The bounds object, this is used to calculate and store the bounds of the displayObject.

PIXI.Bounds
_localBounds

Local bounds object, swapped with _bounds when using getLocalBounds().

boolean
accessible = false
boolean
accessibleChildren = true
string
accessibleHint = undefined
string
accessiblePointerEvents = 'auto'
?string
accessibleTitle = undefined
string
accessibleType = 'button'
number
alpha

The opacity of the object.

number
angle
boolean
buttonMode
boolean
cacheAsBitmap
number
cacheAsBitmapMultisample = PIXI.MSAA_QUALITY.NONE
number
cacheAsBitmapResolution = null
boolean
cullable

Should this object be rendered if the bounds of this object are out of frame?

PIXI.Rectangle
cullArea
string
cursor = undefined
boolean
destroyed

Readonly flag for destroyed display objects.

PIXI.Rectangle
filterArea
PIXI.Filter[] | null
filters
PIXI.IHitArea
hitArea = undefined
boolean
interactive = false
boolean
isMask

Does any other displayObject use this object as a mask?

boolean
isSprite

Used to fast check if a sprite is.. a sprite!

PIXI.Matrix
localTransform
PIXI.Container | PIXI.MaskData | null
mask
string
name = undefined
PIXI.Container
parent

The display object container that contains this display object.

PIXI.ObservablePoint
pivot
PIXI.ObservablePoint
position
boolean
renderable
number
rotation
PIXI.ObservablePoint
scale

The scale factors of this object along the local coordinate axes.

PIXI.ObservablePoint
skew
PIXI.DisplayObject
smartMask = undefined
PIXI.Transform
transform
boolean
visible
number
worldAlpha
PIXI.Matrix
worldTransform
boolean
worldVisible
number
x
number
y
number
zIndex

The zIndex of the displayObject.

number
protected _boundsID

Flags the cached bounds as dirty.

PIXI.Rectangle
protected _boundsRect

Cache of this display-object's bounds-rectangle.

boolean
protected _destroyed

If the object has been destroyed via destroy(). If true, it should not be used.

PIXI.Filter[]
protected _enabledFilters
number
protected _lastSortedIndex
PIXI.Rectangle
protected _localBoundsRect

Cache of this display-object's local-bounds rectangle.

PIXI.Container | PIXI.MaskData
protected _mask
PIXI.Container
protected _tempDisplayObjectParent
number
protected _zIndex

Inherited Events from Container

Inherited Events from DisplayObject

added
childRemoved
click
clickcapture

Capture phase equivalent of click.

destroyed
mousedown
mousedowncapture

Capture phase equivalent of mousedown.

mouseenter

Fired when the mouse pointer is moved over a DisplayObject and its descendant's hit testing boundaries.

mouseentercapture

Capture phase equivalent of mouseenter

mouseleave

Fired when the mouse pointer exits a DisplayObject and its descendants.

mouseleavecapture

Capture phase equivalent of mouseleave.

mousemove
mousemovecature

Capture phase equivalent of mousemove.

mouseout
mouseoutcapture

Capture phase equivalent of mouseout.

mouseover
mouseovercapture

Capture phase equivalent of mouseover.

mouseup
mouseupcature

Capture phase equivalent of mouseup.

mouseupoutside
mouseupoutsidecapture

Capture phase equivalent of mouseupoutside.

pointercancel
pointercancelcapture

Capture phase equivalent of pointercancel.

pointerdown
pointerdowncapture

Capture phase equivalent of pointerdown.

pointerenter

Fired when the pointer is moved over a DisplayObject and its descendant's hit testing boundaries.

pointerentercapture

Capture phase equivalent of pointerenter

pointerleave

Fired when the pointer leaves the hit testing boundaries of a DisplayObject and its descendants.

pointerleavecapture

Capture phase equivalent of pointerleave.

pointermove
pointermovecapture

Capture phase equivalent of pointermove.

pointerout
pointeroutcapture

Capture phase equivalent of pointerout.

pointerover
pointerovercapture

Capture phase equivalent of pointerover.

pointertap
pointertapcapture

Capture phase equivalent of pointertap.

pointerup
pointerupcapture

Capture phase equivalent of pointerup.

pointerupoutside
pointerupoutsidecapture

Capture phase equivalent of pointerupoutside.

removed
rightclick
rightclickcapture

Capture phase equivalent of rightclick.

rightdown
rightdowncapture

Capture phase equivalent of rightdown.

rightup
rightupcapture

Capture phase equivalent of rightup.

rightupoutside
rightupoutsidecapture

Capture phase equivalent of rightupoutside.

tap
tapcapture

Capture phase equivalent of tap.

touchcancel
touchcancelcapture

Capture phase equivalent of touchcancel.

touchend
touchendcapture

Capture phase equivalent of touchend.

touchendoutside
touchendoutsidecapture

Capture phase equivalent of touchendoutside.

touchmove
touchmovecapture

Capture phase equivalent of touchmove.

touchstart
touchstartcapture

Capture phase equivalent of touchstart.

PIXI.FederatedWheelEvent
wheel

Fired when a the user scrolls with the mouse cursor over a DisplayObject.

PIXI.FederatedWheelEvent
wheelcapture

Capture phase equivalent of wheel.

Public Properties


_dirtyID ConicDisplay.ts:41
_dirtyID: number = 0

Flags whether the geometry data needs to be updated.

_transformID ConicDisplay.ts:46
_transformID: number = 0

The world transform ID last when the geometry was updated.

_updateID ConicDisplay.ts:51
_updateID: number = -1

Last _dirtyID when the geometry was updated.

k ConicDisplay.ts:69
k: [number, number, number]
See: Conic#k
l ConicDisplay.ts:81
l: [number, number, number]
See: Conic#l
m ConicDisplay.ts:93
m: [number, number, number]
See: Conic#m
shape ConicDisplay.ts:36
shape

The conic curve drawn by this graphic.

uvData ConicDisplay.ts:61
uvData

Texture positions of the vertices.

vertexData ConicDisplay.ts:56
vertexData

World positions of the vertices

Public Methods


drawControlPoints ConicDisplay.ts:130
drawControlPoints() → {this}

Draws the triangle formed by the control points of the shape.

Returns:
Type Description
this
drawRect ConicDisplay.ts:173
drawRect(x: number, y: number, width: number, height: number) → {this}
Parameters:
Name Type Description
x number
y number
width number
height number
Returns:
Type Description
this
drawTriangle ConicDisplay.ts:146
drawTriangle(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number) → {this}

Draw a triangle defined in texture space transformed into local space. Generally, you would want to draw the triangle formed by the shape's control points.

Parameters:
Name Type Description
x0 number
y0 number
x1 number
y1 number
x2 number
y2 number
Returns:
Type Description
this
renderCanvas Container.ts:17
renderCanvas(renderer: PIXI.CanvasRenderer) → {void}

Renders the object using the Canvas renderer

Parameters:
Name Type Description
renderer PIXI.CanvasRenderer

The renderer

Returns:
Type Description
void
setControlPoints ConicDisplay.ts:234
setControlPoints(c0: PIXI.Point, c1: PIXI.Point, c2: PIXI.Point) → {void}

Sets the local-space control points of the curve.

Parameters:
Name Type Description
c0 PIXI.Point
c1 PIXI.Point
c2 PIXI.Point
Returns:
Type Description
void
setTransform ConicDisplay.ts:248
setTransform(matrix: any) → {this}

Set the transform of the conic

Parameters:
Name Type Description
matrix any

transformation between design space and texture space

Returns:
Type Description
this
setTransform ConicDisplay.ts:255
setTransform(a0: PIXI.Point, b0: PIXI.Point, c0: PIXI.Point, a1: PIXI.Point, b1: PIXI.Point, c1: PIXI.Point) → {this}

Set the transformation by defining a triangle in design space (a0, b0, c0) mapping to the triangle (a1, b1, c1) in texture space.

Parameters:
Name Type Description
a0 PIXI.Point
b0 PIXI.Point
c0 PIXI.Point
a1 PIXI.Point
b1 PIXI.Point
c1 PIXI.Point
Returns:
Type Description
this
setTransform ConicDisplay.ts:268
setTransform(ax0: number, ay0: number, bx0: number, by0: number, cx0: number, cy0: number, ax1: number, ay1: number, bx1: number, by1: number, cx1: number, cy1: number) → {this}

Set the transformation by defining the triangle in design space (ax0, ay0), (bx0, by0), (cx0, cy0) mapping to the triangle (ax1, ay1), (bx1, by1), (cx1, cy1) in texture space.

Parameters:
Name Type Description
ax0 number
ay0 number
bx0 number
by0 number
cx0 number
cy0 number
ax1 number
ay1 number
bx1 number
by1 number
cx1 number
cy1 number
Returns:
Type Description
this
updateConic ConicDisplay.ts:201
updateConic() → {void}

Updates the geometry data for this conic.

Returns:
Type Description
void
updateTransform ConicDisplay.ts:383
updateTransform() → {void}

Updates the transform of the conic, and if changed updates the geometry data.

Returns:
Type Description
void

Powered by webdoc!