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 | import * as ɵngcc0 from '@angular/core';
|
---|
21 | export declare class ScrollStrategyOptions {
|
---|
22 | private _scrollDispatcher;
|
---|
23 | private _viewportRuler;
|
---|
24 | private _ngZone;
|
---|
25 | private _document;
|
---|
26 | constructor(_scrollDispatcher: ScrollDispatcher, _viewportRuler: ViewportRuler, _ngZone: NgZone, document: any);
|
---|
27 | /** Do nothing on scroll. */
|
---|
28 | noop: () => NoopScrollStrategy;
|
---|
29 | /**
|
---|
30 | * Close the overlay as soon as the user scrolls.
|
---|
31 | * @param config Configuration to be used inside the scroll strategy.
|
---|
32 | */
|
---|
33 | close: (config?: CloseScrollStrategyConfig | undefined) => CloseScrollStrategy;
|
---|
34 | /** Block scrolling. */
|
---|
35 | block: () => BlockScrollStrategy;
|
---|
36 | /**
|
---|
37 | * Update the overlay's position on scroll.
|
---|
38 | * @param config Configuration to be used inside the scroll strategy.
|
---|
39 | * Allows debouncing the reposition calls.
|
---|
40 | */
|
---|
41 | reposition: (config?: RepositionScrollStrategyConfig | undefined) => RepositionScrollStrategy;
|
---|
42 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ScrollStrategyOptions, never>;
|
---|
43 | }
|
---|
44 |
|
---|
45 | //# sourceMappingURL=scroll-strategy-options.d.ts.map |
---|