MCPcopy Create free account
hub / github.com/idank/explainshell / ESPath

Class ESPath

explainshell/web/static/js/es.js:258–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257// a convenient wrapper around an array of points that allows to chain appends
258class 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
270function swapNodes(a, b) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected