(minA, maxA, minB, maxB)
| 1993 | } |
| 1994 | |
| 1995 | function calcLineOverlap(minA, maxA, minB, maxB) { |
| 1996 | expect(minA).toBeLessThan(maxA); |
| 1997 | expect(minB).toBeLessThan(maxB); |
| 1998 | |
| 1999 | var overlap = Math.min(maxA, maxB) - Math.max(minA, minB); |
| 2000 | return Math.max(0, overlap); |
| 2001 | } |
| 2002 | |
| 2003 | function labelCount() { |
| 2004 | return d3Select(gd).selectAll('g.hovertext').size(); |
no outgoing calls
no test coverage detected
searching dependent graphs…