(items: Record<string, unknown>)
| 734 | } |
| 735 | |
| 736 | export function addToGlobal(items: Record<string, unknown>): void { |
| 737 | for (const [name, item] of Object.entries(items)) { |
| 738 | //@ts-expect-error dev |
| 739 | window[name] = item; |
| 740 | } |
| 741 | } |
| 742 | |
| 743 | export function getTotalInlineMargin(element: HTMLElement): number { |
| 744 | const computedStyle = window.getComputedStyle(element); |