utils.d.ts 467 B

12345678910111213
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. export interface SimpleRect {
  6. top: number;
  7. left: number;
  8. width?: number;
  9. height?: number;
  10. bottom?: number;
  11. }
  12. export declare function isTargetWindow(target: Element | Window): target is Window;
  13. export declare function getTargetRect(target: Element | Window): SimpleRect;