API ReferenceGlobalsMockInputEventDispatcher

# Class: MockInputEventDispatcher

# Hierarchy

  • MockInputEventDispatcher

# Index

# Constructors

# Methods

# Constructors

# constructor

+ new MockInputEventDispatcher(element: HTMLElement): MockInputEventDispatcher

Defined in packages/common-core/mock/mock-input-event-dispatcher.ts:6

Parameters:

Name Type
element HTMLElement

Returns: MockInputEventDispatcher

# Methods

# dispatchDoubleTouchEvent

dispatchDoubleTouchEvent(type: string, pos0: Position2, pos1: Position2, timeToAdd?: number): void

Defined in packages/common-core/mock/mock-input-event-dispatcher.ts:33

Parameters:

Name Type
type string
pos0 Position2
pos1 Position2
timeToAdd? number

Returns: void


# dispatchEvent

dispatchEvent(event: Event, options: any): void

Defined in packages/common-core/mock/mock-input-event-dispatcher.ts:82

Parameters:

Name Type Default
event Event -
options any {}

Returns: void


# dispatchGenericEvent

dispatchGenericEvent(type: string, __namedParameters: object): void

Defined in packages/common-core/mock/mock-input-event-dispatcher.ts:77

Parameters:

type: string

__namedParameters: object

Name Type
x number
y number

Returns: void


# dispatchMouseEvent

dispatchMouseEvent(type: string, __namedParameters: object, options: any): void

Defined in packages/common-core/mock/mock-input-event-dispatcher.ts:68

Parameters:

type: string

__namedParameters: object

Name Type
x number
y number

Default value options: any= {}

Returns: void


# dispatchTouchEvent

dispatchTouchEvent(type: string, __namedParameters: object): void

Defined in packages/common-core/mock/mock-input-event-dispatcher.ts:16

Parameters:

type: string

__namedParameters: object

Name Type
x number
y number

Returns: void


# getElement

getElement(): HTMLElement

Defined in packages/common-core/mock/mock-input-event-dispatcher.ts:12

Returns: HTMLElement