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`. */
|
---|
9 | export 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 | */
|
---|
16 | export 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 | */
|
---|
23 | export 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 | */
|
---|
31 | export declare function isPointerNearClientRect(rect: ClientRect, threshold: number, pointerX: number, pointerY: number): boolean;
|
---|