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 | import { ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
|
---|
9 | import { NgZone } from '@angular/core';
|
---|
10 | import { BlockScrollStrategy } from './block-scroll-strategy';
|
---|
11 | import { CloseScrollStrategy, CloseScrollStrategyConfig } from './close-scroll-strategy';
|
---|
12 | import { NoopScrollStrategy } from './noop-scroll-strategy';
|
---|
13 | import { RepositionScrollStrategy, RepositionScrollStrategyConfig } from './reposition-scroll-strategy';
|
---|
14 | /**
|
---|
15 | * Options for how an overlay will handle scrolling.
|
---|
16 | *
|
---|
17 | * Users can provide a custom value for `ScrollStrategyOptions` to replace the default
|
---|
18 | * behaviors. This class primarily acts as a factory for ScrollStrategy instances.
|
---|
19 | */
|
---|
20 | export declare class ScrollStrategyOptions {
|
---|
21 | private _scrollDispatcher;
|
---|
22 | private _viewportRuler;
|
---|
23 | private _ngZone;
|
---|
24 | private _document;
|
---|
25 | constructor(_scrollDispatcher: ScrollDispatcher, _viewportRuler: ViewportRuler, _ngZone: NgZone, document: any);
|
---|
26 | /** Do nothing on scroll. */
|
---|
27 | noop: () => NoopScrollStrategy;
|
---|
28 | /**
|
---|
29 | * Close the overlay as soon as the user scrolls.
|
---|
30 | * @param config Configuration to be used inside the scroll strategy.
|
---|
31 | */
|
---|
32 | close: (config?: CloseScrollStrategyConfig | undefined) => CloseScrollStrategy;
|
---|
33 | /** Block scrolling. */
|
---|
34 | block: () => BlockScrollStrategy;
|
---|
35 | /**
|
---|
36 | * Update the overlay's position on scroll.
|
---|
37 | * @param config Configuration to be used inside the scroll strategy.
|
---|
38 | * Allows debouncing the reposition calls.
|
---|
39 | */
|
---|
40 | reposition: (config?: RepositionScrollStrategyConfig | undefined) => RepositionScrollStrategy;
|
---|
41 | }
|
---|