source: trip-planner-front/node_modules/@angular/cdk/drag-drop/client-rect.d.ts@ 6fe77af

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

initial commit

  • Property mode set to 100644
File size: 1.4 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 */
8/** Gets a mutable version of an element's bounding `ClientRect`. */
9export declare function getMutableClientRect(element: Element): ClientRect;
10/**
11 * Checks whether some coordinates are within a `ClientRect`.
12 * @param clientRect ClientRect that is being checked.
13 * @param x Coordinates along the X axis.
14 * @param y Coordinates along the Y axis.
15 */
16export declare function isInsideClientRect(clientRect: ClientRect, x: number, y: number): boolean;
17/**
18 * Updates the top/left positions of a `ClientRect`, as well as their bottom/right counterparts.
19 * @param clientRect `ClientRect` that should be updated.
20 * @param top Amount to add to the `top` position.
21 * @param left Amount to add to the `left` position.
22 */
23export declare function adjustClientRect(clientRect: ClientRect, top: number, left: number): void;
24/**
25 * Checks whether the pointer coordinates are close to a ClientRect.
26 * @param rect ClientRect to check against.
27 * @param threshold Threshold around the ClientRect.
28 * @param pointerX Coordinates along the X axis.
29 * @param pointerY Coordinates along the Y axis.
30 */
31export declare function isPointerNearClientRect(rect: ClientRect, threshold: number, pointerX: number, pointerY: number): boolean;
Note: See TracBrowser for help on using the repository browser.