IInputManager
Enumerations
Button
Enumeration Members
| Enumeration Member | Value |
|---|---|
None | "None" |
Primary | "Primary" |
Secondary | "Secondary" |
Tertiary | "Tertiary" |
InputState
Enumeration Members
| Enumeration Member | Value |
|---|---|
Finished | "Finished" |
InProgress | "InProgress" |
Started | "Started" |
InputType
Enumeration Members
| Enumeration Member | Value |
|---|---|
Click | "Click" |
Hover | "Hover" |
Key | "Key" |
LongTap | "LongTap" |
Move | "Move" |
PointerDown | "PointerDown" |
Transform | "Transform" |
Wheel | "Wheel" |
NativeEventType
Enumeration Members
| Enumeration Member | Value |
|---|---|
KeyDown | 6 |
KeyUp | 7 |
MouseDown | 0 |
MouseMove | 2 |
MouseUp | 1 |
TouchEnd | 4 |
TouchMove | 5 |
TouchStart | 3 |
Wheel | 8 |
Interfaces
IContextMenuParams
Properties
items
items: Item[];
pointerParams
pointerParams: IPointerParams;
IInputManager
Methods
addOnInput()
addOnInput(handler): void;
Parameters
| Parameter | Type |
|---|---|
handler | (params) => any |
Returns
void
raiseNativeEvent()
raiseNativeEvent(event): void;
Parameters
| Parameter | Type |
|---|---|
event | INativeEvent |
Returns
void
removeOnInput()
removeOnInput(handler): void;
Parameters
| Parameter | Type |
|---|---|
handler | (params) => any |
Returns
void
IInputParams
Extended by
Properties
altKey
altKey: boolean;
ctrlKey
ctrlKey: boolean;
metaKey
metaKey: boolean;
preventDefault
preventDefault: () => any;
Returns
any
shiftKey
shiftKey: boolean;
type
type: InputType;
IKeyboardEventParams
Extends
Properties
altKey
altKey: boolean;
Inherited from
code
code: string;
ctrlKey
ctrlKey: boolean;
Inherited from
key
key: string;
metaKey
metaKey: boolean;
Inherited from
preventDefault
preventDefault: () => any;
Returns
any
Inherited from
shiftKey
shiftKey: boolean;
Inherited from
state
state: InputState;
type
type: InputType;
Inherited from
IMovePointerParams
Extends
Properties
altKey
altKey: boolean;
Inherited from
button
button: Button;
Inherited from
clickCount
clickCount: number;
Inherited from
ctrlKey
ctrlKey: boolean;
Inherited from
isMobile
isMobile: boolean;
Inherited from
metaKey
metaKey: boolean;
Inherited from
page
page: PointF;
Inherited from
preventDefault
preventDefault: () => any;
Returns
any
Inherited from
shiftKey
shiftKey: boolean;
Inherited from
startPage
startPage: PointF;
startWorkspace
startWorkspace: PointF;
state
state: InputState;
type
type: InputType;
Inherited from
workspace
workspace: PointF;
Inherited from
INativeEvent
Extended by
Properties
altKey
altKey: boolean;
ctrlKey
ctrlKey: boolean;
eventType
eventType: NativeEventType;
metaKey
metaKey: boolean;
preventDefault?
optional preventDefault?: () => any;
Returns
any
shiftKey
shiftKey: boolean;
INativeKeyEvent
Extends
Properties
altKey
altKey: boolean;
Inherited from
code
code: string;
ctrlKey
ctrlKey: boolean;
Inherited from
eventType
eventType:
| KeyDown
| KeyUp;
Overrides
key
key: string;
metaKey
metaKey: boolean;
Inherited from
preventDefault?
optional preventDefault?: () => any;
Returns
any
Inherited from
shiftKey
shiftKey: boolean;
Inherited from
INativeMouseEvent
Extends
Properties
altKey
altKey: boolean;
Inherited from
button?
optional button?: Button;
coordinates
coordinates: PointF;
ctrlKey
ctrlKey: boolean;
Inherited from
eventType
eventType:
| MouseDown
| MouseUp
| MouseMove;
Overrides
metaKey
metaKey: boolean;
Inherited from
preventDefault?
optional preventDefault?: () => any;
Returns
any
Inherited from
shiftKey
shiftKey: boolean;
Inherited from
INativeTouchEvent
Extends
Properties
altKey
altKey: boolean;
Inherited from
changedTouches
changedTouches: PointF[];
ctrlKey
ctrlKey: boolean;
Inherited from
eventType
eventType:
| TouchStart
| TouchEnd
| TouchMove;
Overrides
metaKey
metaKey: boolean;
Inherited from
preventDefault?
optional preventDefault?: () => any;
Returns
any
Inherited from
shiftKey
shiftKey: boolean;
Inherited from
touches
touches: PointF[];
INativeWheelEvent
Extends
Properties
altKey
altKey: boolean;
Inherited from
ctrlKey
ctrlKey: boolean;
Inherited from
delta
delta: PointF;
eventType
eventType: NativeEventType;
Inherited from
metaKey
metaKey: boolean;
Inherited from
preventDefault?
optional preventDefault?: () => any;
Returns
any
Inherited from
shiftKey
shiftKey: boolean;
Inherited from
IPointerParams
Extends
Extended by
Properties
altKey
altKey: boolean;
Inherited from
button
button: Button;
clickCount
clickCount: number;
ctrlKey
ctrlKey: boolean;
Inherited from
isMobile
isMobile: boolean;
metaKey
metaKey: boolean;
Inherited from
page
page: PointF;
preventDefault
preventDefault: () => any;
Returns
any
Inherited from
shiftKey
shiftKey: boolean;
Inherited from
type
type: InputType;
Inherited from
workspace
workspace: PointF;
ITransformViewportParams
Extends
Properties
altKey
altKey: boolean;
Inherited from
ctrlKey
ctrlKey: boolean;
Inherited from
metaKey
metaKey: boolean;
Inherited from
preventDefault
preventDefault: () => any;
Returns
any
Inherited from
scale
scale: number;
shiftKey
shiftKey: boolean;
Inherited from
state
state: InputState;
type
type: InputType;
Inherited from
zoomCenter
zoomCenter: PointF;
IWheelParams
Extends
Properties
altKey
altKey: boolean;
Inherited from
ctrlKey
ctrlKey: boolean;
Inherited from
delta
delta: PointF;
metaKey
metaKey: boolean;
Inherited from
preventDefault
preventDefault: () => any;
Returns
any
Inherited from
shiftKey
shiftKey: boolean;
Inherited from
type
type: InputType;
Inherited from
Functions
isNativeMouseEvent()
function isNativeMouseEvent(e): e is INativeMouseEvent;
Parameters
| Parameter | Type |
|---|---|
e | | INativeMouseEvent | INativeTouchEvent |
Returns
e is INativeMouseEvent