| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | define(['leaflet', 'helper'],  | 
            ||
| 6 |       setData: function (d) { | 
            ||
| 7 | this.data = d;  | 
            ||
| 8 | |||
| 9 | // pre-calculate start angles  | 
            ||
| 10 |         this.data.all().forEach(function (n) { | 
            ||
| 11 | n.startAngle = (parseInt(n.node.nodeinfo.node_id.substr(10, 2), 16) / 255) * 2 * Math.PI;  | 
            ||
| 12 | });  | 
            ||
| 13 | this.redraw();  | 
            ||
| 14 | },  | 
            ||
| 15 |       drawTile: function (canvas, tilePoint) { | 
            ||
| 51 |