You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.7 KiB
39 lines
1.7 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { ModifierKeys } from '@angular/cdk/testing';
|
|
/**
|
|
* Creates a browser MouseEvent with the specified options.
|
|
* @docs-private
|
|
*/
|
|
export declare function createMouseEvent(type: string, clientX?: number, clientY?: number, button?: number, modifiers?: ModifierKeys): MouseEvent;
|
|
/**
|
|
* Creates a browser `PointerEvent` with the specified options. Pointer events
|
|
* by default will appear as if they are the primary pointer of their type.
|
|
* https://www.w3.org/TR/pointerevents2/#dom-pointerevent-isprimary.
|
|
*
|
|
* For example, if pointer events for a multi-touch interaction are created, the non-primary
|
|
* pointer touches would need to be represented by non-primary pointer events.
|
|
*
|
|
* @docs-private
|
|
*/
|
|
export declare function createPointerEvent(type: string, clientX?: number, clientY?: number, options?: PointerEventInit): PointerEvent;
|
|
/**
|
|
* Creates a browser TouchEvent with the specified pointer coordinates.
|
|
* @docs-private
|
|
*/
|
|
export declare function createTouchEvent(type: string, pageX?: number, pageY?: number, clientX?: number, clientY?: number): UIEvent;
|
|
/**
|
|
* Creates a keyboard event with the specified key and modifiers.
|
|
* @docs-private
|
|
*/
|
|
export declare function createKeyboardEvent(type: string, keyCode?: number, key?: string, modifiers?: ModifierKeys): KeyboardEvent;
|
|
/**
|
|
* Creates a fake event object with any desired event type.
|
|
* @docs-private
|
|
*/
|
|
export declare function createFakeEvent(type: string, canBubble?: boolean, cancelable?: boolean): Event;
|