source: trip-planner-front/node_modules/@angular/cdk/drag-drop/parent-position-tracker.d.ts@ 6a80231

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

initial commit

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[6a3a178]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 { ViewportRuler } from '@angular/cdk/scrolling';
9/** Object holding the scroll position of something. */
10interface ScrollPosition {
11 top: number;
12 left: number;
13}
14/** Keeps track of the scroll position and dimensions of the parents of an element. */
15export declare class ParentPositionTracker {
16 private _document;
17 private _viewportRuler;
18 /** Cached positions of the scrollable parent elements. */
19 readonly positions: Map<HTMLElement | Document, {
20 scrollPosition: ScrollPosition;
21 clientRect?: ClientRect | undefined;
22 }>;
23 constructor(_document: Document, _viewportRuler: ViewportRuler);
24 /** Clears the cached positions. */
25 clear(): void;
26 /** Caches the positions. Should be called at the beginning of a drag sequence. */
27 cache(elements: readonly HTMLElement[]): void;
28 /** Handles scrolling while a drag is taking place. */
29 handleScroll(event: Event): ScrollPosition | null;
30}
31export {};
Note: See TracBrowser for help on using the repository browser.