MouseState
Extends:
managing mouse states buttons/position/dragging etc
Static Member Summary
| Static Public Members | ||
| public static |
BUTTON_4: * |
|
| public static |
BUTTON_5: * |
|
| public static |
BUTTON_LEFT: * |
|
| public static |
BUTTON_NONE: * |
|
| public static |
BUTTON_RIGHT: * |
|
| public static |
BUTTON_WHEEL: * |
|
| public static |
|
|
| public static |
shiftKey: * |
|
| Static Private Members | ||
| private static |
_isDragging: * |
|
| private static |
_mouseOverCanvas: boolean |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
buttonAny: * |
|
| public get |
|
|
| public get |
|
|
| public |
|
|
| public |
|
|
| public get |
buttonLeft: * |
|
| public get |
buttonMiddle: * |
|
| public get |
buttonRight: * |
|
| public get |
|
|
| public get |
|
|
| public get |
|
|
| public get |
|
|
| public |
draggingDistance: number |
|
| public get |
isDragging: * |
|
| public get |
|
|
| public get |
numFingers: * |
|
| public |
shiftKey: boolean |
|
| public get |
x: * |
|
| public get |
y: * |
|
| Private Members | ||
| private |
_buttonStates: {} |
|
| private |
_isDragging: boolean |
|
| private |
_mouseDownX: number |
|
| private |
_mouseDownY: number |
|
| private |
_mouseOverCanvas: boolean |
|
| private |
_numFingers: number |
|
| private |
|
|
| private |
_x: number |
|
| private |
_y: number |
|
Method Summary
| Public Methods | ||
| public |
debug(data: *) |
|
| public |
getButton(): Number |
|
| public |
isButtonDown(button: Number): * |
|
| Private Methods | ||
| private |
_buttonUp(button: *) |
|
| private |
_down(e: *) |
|
| private |
|
|
| private |
|
|
| private |
_up(e: *) |
|
| private |
|
|
| private |
buttonDown(button: *) |
|
| private |
move(e: PointerEvent) |
|
| private |
setButton(button: *, newState: *) |
|
Static Public Members
public static BUTTON_4: * source
public static BUTTON_5: * source
public static BUTTON_LEFT: * source
public static BUTTON_NONE: * source
public static BUTTON_RIGHT: * source
public static BUTTON_WHEEL: * source
public static draggingDistance: * source
public static shiftKey: * source
Static Private Members
private static _isDragging: * source
private static _mouseOverCanvas: boolean source
Public Constructors
public constructor() source
Public Members
public get buttonAny: * source
public get buttonForLinkInsertOp: * source
public get buttonForRemoveLink: * source
public buttonForScrolling: * source
public buttonForSelecting: * source
public get buttonLeft: * source
public get buttonMiddle: * source
public get buttonRight: * source
public get buttonStateForLinkDrag: * source
public get buttonStateForScrolling: * source
public get buttonStateForSelecting: * source
public get buttonStateForSelectionArea: * source
public draggingDistance: number source
public get isDragging: * source
public get mouseOverCanvas: * source
public get numFingers: * source
public shiftKey: boolean source
public get x: * source
public get y: * source
Private Members
private _buttonStates: {} source
private _isDragging: boolean source
private _mouseDownX: number source
private _mouseDownY: number source
private _mouseOverCanvas: boolean source
private _numFingers: number source
private _useDragCablesButton: * source
private _x: number source
private _y: number source
Public Methods
public debug(data: *) source
Params:
| Name | Type | Attribute | Description |
| data | * |
public isButtonDown(button: Number): * source
Params:
| Name | Type | Attribute | Description |
| button | Number |
|
Return:
| * |
Private Methods
private _buttonUp(button: *) source
Params:
| Name | Type | Attribute | Description |
| button | * |
private _down(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
private _initUserPrefs() source
private _setButtonsUp() source
private _up(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
private _updateDebug() source
private buttonDown(button: *) source
Params:
| Name | Type | Attribute | Description |
| button | * |
private move(e: PointerEvent) source
Params:
| Name | Type | Attribute | Description |
| e | PointerEvent |
private setButton(button: *, newState: *) source
Params:
| Name | Type | Attribute | Description |
| button | * | ||
| newState | * |