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 { Platform } from '@angular/cdk/platform';
|
---|
9 | import { ViewportRuler } from '@angular/cdk/scrolling';
|
---|
10 | import { ElementRef } from '@angular/core';
|
---|
11 | import { OverlayContainer } from '../overlay-container';
|
---|
12 | import { OriginConnectionPosition, OverlayConnectionPosition } from './connected-position';
|
---|
13 | import { ConnectedPositionStrategy } from './connected-position-strategy';
|
---|
14 | import { FlexibleConnectedPositionStrategy, FlexibleConnectedPositionStrategyOrigin } from './flexible-connected-position-strategy';
|
---|
15 | import { GlobalPositionStrategy } from './global-position-strategy';
|
---|
16 | /** Builder for overlay position strategy. */
|
---|
17 | import * as ɵngcc0 from '@angular/core';
|
---|
18 | export declare class OverlayPositionBuilder {
|
---|
19 | private _viewportRuler;
|
---|
20 | private _document;
|
---|
21 | private _platform;
|
---|
22 | private _overlayContainer;
|
---|
23 | constructor(_viewportRuler: ViewportRuler, _document: any, _platform: Platform, _overlayContainer: OverlayContainer);
|
---|
24 | /**
|
---|
25 | * Creates a global position strategy.
|
---|
26 | */
|
---|
27 | global(): GlobalPositionStrategy;
|
---|
28 | /**
|
---|
29 | * Creates a relative position strategy.
|
---|
30 | * @param elementRef
|
---|
31 | * @param originPos
|
---|
32 | * @param overlayPos
|
---|
33 | * @deprecated Use `flexibleConnectedTo` instead.
|
---|
34 | * @breaking-change 8.0.0
|
---|
35 | */
|
---|
36 | connectedTo(elementRef: ElementRef, originPos: OriginConnectionPosition, overlayPos: OverlayConnectionPosition): ConnectedPositionStrategy;
|
---|
37 | /**
|
---|
38 | * Creates a flexible position strategy.
|
---|
39 | * @param origin Origin relative to which to position the overlay.
|
---|
40 | */
|
---|
41 | flexibleConnectedTo(origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy;
|
---|
42 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<OverlayPositionBuilder, never>;
|
---|
43 | }
|
---|
44 |
|
---|
45 | //# sourceMappingURL=overlay-position-builder.d.ts.map |
---|