()
| 16 | }; |
| 17 | |
| 18 | function getPopoverDimensions(): PopoverDimensions | undefined { |
| 19 | const popover = getState("popover"); |
| 20 | if (!popover?.wrapper) { |
| 21 | return; |
| 22 | } |
| 23 | |
| 24 | const boundingClientRect = popover.wrapper.getBoundingClientRect(); |
| 25 | |
| 26 | const stagePadding = getConfig("stagePadding") || 0; |
| 27 | const popoverOffset = getConfig("popoverOffset") || 0; |
| 28 | |
| 29 | return { |
| 30 | width: boundingClientRect.width + stagePadding + popoverOffset, |
| 31 | height: boundingClientRect.height + stagePadding + popoverOffset, |
| 32 | |
| 33 | realWidth: boundingClientRect.width, |
| 34 | realHeight: boundingClientRect.height, |
| 35 | }; |
| 36 | } |
| 37 | |
| 38 | function calculateTopForLeftRight( |
| 39 | alignment: Alignment, |
no test coverage detected
searching dependent graphs…