overlay-reference.d.ts 913 B

123456789101112131415161718192021222324252627
  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 { Portal } from '@angular/cdk/portal';
  9. import { Direction, Directionality } from '@angular/cdk/bidi';
  10. /**
  11. * Basic interface for an overlay. Used to avoid circular type references between
  12. * `OverlayRef`, `PositionStrategy` and `ScrollStrategy`, and `OverlayConfig`.
  13. * @docs-private
  14. */
  15. export interface OverlayReference {
  16. attach: (portal: Portal<any>) => any;
  17. detach: () => any;
  18. dispose: () => void;
  19. overlayElement: HTMLElement;
  20. hostElement: HTMLElement;
  21. getConfig: () => any;
  22. hasAttached: () => boolean;
  23. updateSize: (config: any) => void;
  24. updatePosition: () => void;
  25. getDirection: () => Direction;
  26. setDirection: (dir: Direction | Directionality) => void;
  27. }