| 256 | |
| 257 | // a convenient wrapper around an array of points that allows to chain appends |
| 258 | class ESPath { |
| 259 | constructor() { |
| 260 | this.points = []; |
| 261 | } |
| 262 | |
| 263 | addpoint(x, y) { |
| 264 | this.points.push({ x: d3.round(x), y: d3.round(y) }); |
| 265 | return this; |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | // swap the position of two nodes in the DOM |
| 270 | function swapNodes(a, b) { |
nothing calls this directly
no outgoing calls
no test coverage detected