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 | export declare class OverlayPositionBuilder {
|
---|
18 | private _viewportRuler;
|
---|
19 | private _document;
|
---|
20 | private _platform;
|
---|
21 | private _overlayContainer;
|
---|
22 | constructor(_viewportRuler: ViewportRuler, _document: any, _platform: Platform, _overlayContainer: OverlayContainer);
|
---|
23 | /**
|
---|
24 | * Creates a global position strategy.
|
---|
25 | */
|
---|
26 | global(): GlobalPositionStrategy;
|
---|
27 | /**
|
---|
28 | * Creates a relative position strategy.
|
---|
29 | * @param elementRef
|
---|
30 | * @param originPos
|
---|
31 | * @param overlayPos
|
---|
32 | * @deprecated Use `flexibleConnectedTo` instead.
|
---|
33 | * @breaking-change 8.0.0
|
---|
34 | */
|
---|
35 | connectedTo(elementRef: ElementRef, originPos: OriginConnectionPosition, overlayPos: OverlayConnectionPosition): ConnectedPositionStrategy;
|
---|
36 | /**
|
---|
37 | * Creates a flexible position strategy.
|
---|
38 | * @param origin Origin relative to which to position the overlay.
|
---|
39 | */
|
---|
40 | flexibleConnectedTo(origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy;
|
---|
41 | }
|
---|