TransformerHandle
class TransformerHandle extends PIXI.Graphics
The transfomer handle base implementation.
Constructor
new TransformerHandle(transformer: Transformer, handle: string, styleOpts: object, handler: Function, commit: Function, cursor: string) → {}
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
transformer | Transformer | |||
handle | string |
the type of handle being drawn |
||
styleOpts | object |
styling options passed by the user |
||
handler | Function |
handler for drag events, it receives the pointer position; used by |
||
commit | Function |
handler for drag-end events. |
||
cursor | string |
<optional> |
'move' |
a custom cursor to be applied on this handle |
Summary
Properties from TransformerHandle
boolean |
This flags whether this handle should be redrawn in the next frame due to style changes. |
Partial<ITransformerHandleStyle> |
The currently applied handle style. |
Transformer |
|
Methods from TransformerHandle
void |
Redraws the handle's geometry. This is called on a |
void |
Called on a |
void |
Called on a |
void |
Called on the first |
void |
Handles the |
void |
Handles the |
void |
Handles the |
Properties inherited from Graphics
PIXI.BLEND_MODES |
|
boolean |
|
PIXI.Polygon |
|
PIXI.FillStyle |
|
PIXI.GraphicsGeometry |
|
PIXI.LineStyle |
|
string |
Renderer plugin for batching |
PIXI.Shader |
|
number |
|
PIXI.FillStyle |
Current fill style. |
boolean |
Current hole mode is enabled. |
PIXI.LineStyle |
Current line style. |
PIXI.Matrix |
Current shape transform matrix. |
number |
Update dirty for limiting calculating batches. |
Array<IGraphicsBatchElement> |
A collections of batches! These can be drawn by the renderer batch system. |
number |
Update dirty for limiting calculating tints for batches. |
Float32Array |
Copy of the object vertex data. |
Properties inherited from Container
T[] |
|
number |
The height of the Container, setting this will actually modify the scale to achieve the value set. |
boolean |
|
boolean |
|
boolean |
Should children be sorted by zIndex at the next updateTransform call. |
number |
The width of the Container, setting this will actually modify the scale to achieve the value set. |
Properties inherited from DisplayObject
boolean |
|
boolean |
|
PIXI.Bounds |
The bounds object, this is used to calculate and store the bounds of the displayObject. |
PIXI.Bounds |
Local bounds object, swapped with |
boolean |
|
boolean |
|
string |
|
string |
|
?string |
|
string |
|
number |
The opacity of the object. |
number |
|
boolean |
|
number |
|
number |
|
boolean |
Should this object be rendered if the bounds of this object are out of frame? |
PIXI.Rectangle |
|
string |
|
boolean |
Readonly flag for destroyed display objects. |
PIXI.Rectangle |
|
PIXI.Filter[] | null |
|
PIXI.IHitArea |
|
boolean |
|
boolean |
Does any other displayObject use this object as a mask? |
boolean |
Used to fast check if a sprite is.. a sprite! |
PIXI.Matrix |
|
PIXI.Container | PIXI.MaskData | null |
|
string |
|
PIXI.Container |
The display object container that contains this display object. |
PIXI.ObservablePoint |
|
PIXI.ObservablePoint |
|
boolean |
|
number |
|
PIXI.ObservablePoint |
The scale factors of this object along the local coordinate axes. |
PIXI.ObservablePoint |
|
PIXI.DisplayObject |
|
PIXI.Transform |
|
boolean |
|
number |
|
PIXI.Matrix |
|
boolean |
|
number |
|
number |
|
number |
The zIndex of the displayObject. |
number |
Flags the cached bounds as dirty. |
PIXI.Rectangle |
Cache of this display-object's bounds-rectangle. |
boolean |
If the object has been destroyed via destroy(). If true, it should not be used. |
PIXI.Filter[] |
|
number |
|
PIXI.Rectangle |
Cache of this display-object's local-bounds rectangle. |
PIXI.Container | PIXI.MaskData |
|
PIXI.Container |
|
number |
|
Methods inherited from Graphics
Methods inherited from Container
Methods inherited from DisplayObject
Inherited Events from Container
Inherited Events from DisplayObject
|
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
Fired when the mouse pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
Capture phase equivalent of |
|
Fired when the mouse pointer exits a DisplayObject and its descendants. |
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
Fired when the pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
Capture phase equivalent of |
|
Fired when the pointer leaves the hit testing boundaries of a DisplayObject and its descendants. |
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
PIXI.FederatedWheelEvent |
Fired when a the user scrolls with the mouse cursor over a DisplayObject. |
PIXI.FederatedWheelEvent |
Capture phase equivalent of |
Public Properties
_dirty: boolean = true
This flags whether this handle should be redrawn in the next frame due to style changes.
style: Partial<ITransformerHandleStyle>
The currently applied handle style.
Protected Methods
protected draw() → {void}
Redraws the handle's geometry. This is called on a render
if this._dirty
is true.
Type | Description |
---|---|
void |
protected onDrag(e: PIXI.InteractionEvent) → {void}
Called on a pointermove
when this._pointerDown
& this._pointerDragging
.
Name | Type | Description |
---|---|---|
e | PIXI.InteractionEvent |
Type | Description |
---|---|
void |
protected onDragEnd(_: PIXI.InteractionEvent) → {void}
Called on a pointerup
or pointerupoutside
& this._pointerDragging
was true.
Name | Type | Description |
---|---|---|
_ | PIXI.InteractionEvent |
Type | Description |
---|---|
void |
protected onDragStart(e: PIXI.InteractionEvent) → {void}
Called on the first pointermove
when this._pointerDown
is true. You must call the super implementation.
Name | Type | Description |
---|---|---|
e | PIXI.InteractionEvent |
Type | Description |
---|---|
void |
protected onPointerDown(e: PIXI.InteractionEvent) → {void}
Handles the pointerdown
event. You must call the super implementation.
Name | Type | Description |
---|---|---|
e | PIXI.InteractionEvent |
Type | Description |
---|---|
void |
protected onPointerMove(e: PIXI.InteractionEvent) → {void}
Handles the pointermove
event. You must call the super implementation.
Name | Type | Description |
---|---|---|
e | PIXI.InteractionEvent |
Type | Description |
---|---|
void |
protected onPointerUp(e: PIXI.InteractionEvent) → {void}
Handles the pointerup
event. You must call the super implementation.
Name | Type | Description |
---|---|---|
e | PIXI.InteractionEvent |
Type | Description |
---|---|
void |