[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { ModifierKeys } from '@angular/cdk/testing';
|
---|
| 9 | /**
|
---|
| 10 | * Creates a browser MouseEvent with the specified options.
|
---|
| 11 | * @docs-private
|
---|
| 12 | */
|
---|
| 13 | export declare function createMouseEvent(type: string, clientX?: number, clientY?: number, button?: number, modifiers?: ModifierKeys): MouseEvent;
|
---|
| 14 | /**
|
---|
| 15 | * Creates a browser `PointerEvent` with the specified options. Pointer events
|
---|
| 16 | * by default will appear as if they are the primary pointer of their type.
|
---|
| 17 | * https://www.w3.org/TR/pointerevents2/#dom-pointerevent-isprimary.
|
---|
| 18 | *
|
---|
| 19 | * For example, if pointer events for a multi-touch interaction are created, the non-primary
|
---|
| 20 | * pointer touches would need to be represented by non-primary pointer events.
|
---|
| 21 | *
|
---|
| 22 | * @docs-private
|
---|
| 23 | */
|
---|
| 24 | export declare function createPointerEvent(type: string, clientX?: number, clientY?: number, options?: PointerEventInit): PointerEvent;
|
---|
| 25 | /**
|
---|
| 26 | * Creates a browser TouchEvent with the specified pointer coordinates.
|
---|
| 27 | * @docs-private
|
---|
| 28 | */
|
---|
| 29 | export declare function createTouchEvent(type: string, pageX?: number, pageY?: number, clientX?: number, clientY?: number): UIEvent;
|
---|
| 30 | /**
|
---|
| 31 | * Creates a keyboard event with the specified key and modifiers.
|
---|
| 32 | * @docs-private
|
---|
| 33 | */
|
---|
| 34 | export declare function createKeyboardEvent(type: string, keyCode?: number, key?: string, modifiers?: ModifierKeys): KeyboardEvent;
|
---|
| 35 | /**
|
---|
| 36 | * Creates a fake event object with any desired event type.
|
---|
| 37 | * @docs-private
|
---|
| 38 | */
|
---|
| 39 | export declare function createFakeEvent(type: string, canBubble?: boolean, cancelable?: boolean): Event;
|
---|