MCPcopy Index your code
hub / github.com/microsoft/SandDance / polygonEnd

Function polygonEnd

docs/app/js/sanddance-app.js:133115–133128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133113 activeStream = bufferStream, segments = [], polygon = [], clean = true;
133114 }
133115 function polygonEnd() {
133116 var startInside = polygonInside(), cleanInside = clean && startInside, visible = (segments = (0, _d3Array.merge)(segments)).length;
133117 if (cleanInside || visible) {
133118 stream.polygonStart();
133119 if (cleanInside) {
133120 stream.lineStart();
133121 interpolate(null, null, 1, stream);
133122 stream.lineEnd();
133123 }
133124 if (visible) (0, _rejoinJsDefault.default)(segments, compareIntersection, startInside, interpolate, stream);
133125 stream.polygonEnd();
133126 }
133127 activeStream = stream, segments = polygon = ring1 = null;
133128 }
133129 function lineStart() {
133130 clipStream.point = linePoint;
133131 if (polygon) polygon.push(ring1 = []);

Callers

nothing calls this directly

Calls 2

polygonInsideFunction · 0.70
interpolateFunction · 0.70

Tested by

no test coverage detected