@angular/cdk
Version:
Angular Material Component Development Kit
29 lines (28 loc) • 1.04 kB
TypeScript
/**
* @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, x?: number, y?: number, button?: number): MouseEvent;
/**
* Creates a browser TouchEvent with the specified pointer coordinates.
* @docs-private
*/
export declare function createTouchEvent(type: string, pageX?: number, pageY?: number): UIEvent;
/**
* Dispatches a keydown event from an element.
* @docs-private
*/
export declare function createKeyboardEvent(type: string, keyCode?: number, key?: string, target?: Element, modifiers?: ModifierKeys): any;
/**
* Creates a fake event object with any desired event type.
* @docs-private
*/
export declare function createFakeEvent(type: string, canBubble?: boolean, cancelable?: boolean): Event;