/** * @license * Copyright 厦门乾元盛世科技有限公司 All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file. */ import { ElementRef, Renderer } from '@angular/core'; import { OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; import 'rxjs/add/operator/debounceTime'; /** * Align * 参考 https://github.com/react-component/align */ export declare class Align implements OnInit, OnDestroy, OnChanges, AfterViewInit { private __renderer; private __elementRef; /** * https://www.npmjs.com/package/dom-align */ align: object; disabled: boolean; monitorWindowResize: boolean; monitorBufferTime: number; private alignTarget; private resizeHandler; private resizeEvents; private resizeIndex; constructor(__renderer: Renderer, __elementRef: ElementRef); ngOnInit(): void; ngOnDestroy(): void; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; getHostElement(): HTMLElement; /** * 需要调整位置的组件,调用align()方法后位置将发生变化 */ getAlignTarget(): any; /** * 基准组件,位置不会变 */ getBaseTarget(): any; startMonitorWindowResize(): void; stopMonitorWindowResize(): void; getAlign(): {}; forceAlign(): void; onAlign(align: any): void; }