(path)
| 1766 | it('should place zoombox handles at correct place on main drag', function(done) { |
| 1767 | // d attr to array of segment [x,y] |
| 1768 | function path2coords(path) { |
| 1769 | if(!path.size()) return [[]]; |
| 1770 | return path.attr('d') |
| 1771 | .replace(/Z/g, '') |
| 1772 | .split('M') |
| 1773 | .filter(Boolean) |
| 1774 | .map(function(s) { |
| 1775 | return s.split('L') |
| 1776 | .map(function(s) { return s.split(',').map(Number); }); |
| 1777 | }) |
| 1778 | .reduce(function(a, b) { return a.concat(b); }); |
| 1779 | } |
| 1780 | |
| 1781 | function _run(msg, p0, dp, exp) { |
| 1782 | var node = d3Select('.polar > .draglayer > .maindrag').node(); |
no outgoing calls
no test coverage detected
searching dependent graphs…