(a: ScreenRect, b: ScreenRect)
| 46 | describe('hand test K6: edge labels avoid node names', () => { |
| 47 | const size = { width: 40, height: 14 }; |
| 48 | const overlaps = (a: ScreenRect, b: ScreenRect) => !(a.right <= b.left || b.right <= a.left || a.bottom <= b.top || b.bottom <= a.top); |
| 49 | |
| 50 | it('keeps the midpoint when nothing is in the way', () => { |
| 51 | expect(placeAlongSegment({ x: 0, y: 0 }, { x: 200, y: 0 }, size, [], []).t).toBe(0.5); |