(a: ScreenRect, b: ScreenRect)
| 12 | import { placeAlongSegment, type ScreenRect } from './path-frame'; |
| 13 | |
| 14 | const overlaps = (a: ScreenRect, b: ScreenRect) => !(a.right <= b.left || b.right <= a.left || a.bottom <= b.top || b.bottom <= a.top); |
| 15 | function element(host: HTMLElement, html: string, rect: ScreenRect): HTMLElement { |
| 16 | host.insertAdjacentHTML('beforeend', html); |
| 17 | const added = host.lastElementChild as HTMLElement; |