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

Function toPathString

docs/tests/v2/es6/js/sanddance.js:125121–125129  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

125119
125120
125121function toPathString(p) {
125122 const x = p[0][0],
125123 y = p[0][1];
125124 let n = p.length - 1;
125125
125126 for (; p[n][0] === x && p[n][1] === y; --n);
125127
125128 return 'M' + p.slice(0, n + 1).join('L') + 'Z';
125129}
125130},{"vega-dataflow":"luN0","vega-util":"d61Z","d3-delaunay":"fQOh"}],"Ys7f":[function(require,module,exports) {
125131"use strict";
125132

Callers 1

sanddance.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected