@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
22 lines (21 loc) • 1.1 kB
TypeScript
import { OverlayRef } from '@angular/cdk/overlay';
import { AnchorPlacement } from '../../common/overlay/index';
import * as i0 from "@angular/core";
export declare class OverlayPlacementService {
/** Updates the position of the current menu. */
updatePosition(overlayRef: OverlayRef, placement: string, alignment: string, customFallbackPlacement?: AnchorPlacement): void;
/** Apply position to position strategy */
private addPositions;
/** Get the origin position based on the specified tooltip placement */
private getOrigin;
/** Calculate the overlay position based on the specified tooltip placement */
private getOverlayPosition;
/** Convert the alignment property to a valid CDK alignment value */
private getVerticalAlignment;
/** Inverts an overlay position. */
private invertPosition;
invertHorizontalPosition(y: string): 'top' | 'center' | 'bottom';
private getFallbackPosition;
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayPlacementService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayPlacementService>;
}