utils.d.ts 485 B

12345678910111213141516171819202122
  1. interface Rect {
  2. left: number;
  3. top: number;
  4. right: number;
  5. bottom: number;
  6. width: number;
  7. height: number;
  8. }
  9. interface SystemInfo {
  10. windowHeight: number;
  11. windowWidth: number;
  12. }
  13. export declare function getPopoverStyle(placement: string, autoAdjustOverflow: boolean, size: {
  14. containerRect: Rect;
  15. childrenRect: Rect;
  16. contentRect: Rect;
  17. systemInfo: SystemInfo;
  18. }): {
  19. popoverContentStyle: any;
  20. adjustedPlacement: string;
  21. };
  22. export {};