MCPcopy Create free account
hub / github.com/microsoft/SandDance / toPathString

Function toPathString

docs/app/js/sanddance-app.js:139600–139605  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

139598 }
139599}); // suppress duplicated end point vertices
139600function toPathString(p) {
139601 const x = p[0][0], y = p[0][1];
139602 let n = p.length - 1;
139603 for(; p[n][0] === x && p[n][1] === y; --n);
139604 return "M" + p.slice(0, n + 1).join("L") + "Z";
139605}
139606
139607},{"vega-dataflow":"4kvYg","vega-util":"dPFAY","d3-delaunay":"cD8xj","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"cD8xj":[function(require,module,exports) {
139608var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

transformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected