source: trip-planner-front/node_modules/@angular/cdk/testing/testbed/fake-events/event-objects.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
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 */
8import { ModifierKeys } from '@angular/cdk/testing';
9/**
10 * Creates a browser MouseEvent with the specified options.
11 * @docs-private
12 */
13export 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 */
24export 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 */
29export 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 */
34export 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 */
39export declare function createFakeEvent(type: string, canBubble?: boolean, cancelable?: boolean): Event;
Note: See TracBrowser for help on using the repository browser.