MCPcopy Create free account
hub / github.com/breck7/scroll / polygonEnd

Function polygonEnd

external/.d3.js:11231–11248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11229 }
11230
11231 function polygonEnd() {
11232 var startInside = polygonInside(),
11233 cleanInside = clean && startInside,
11234 visible = (segments = merge(segments)).length;
11235 if (cleanInside || visible) {
11236 stream.polygonStart();
11237 if (cleanInside) {
11238 stream.lineStart();
11239 interpolate(null, null, 1, stream);
11240 stream.lineEnd();
11241 }
11242 if (visible) {
11243 clipRejoin(segments, compareIntersection, startInside, interpolate, stream);
11244 }
11245 stream.polygonEnd();
11246 }
11247 activeStream = stream, segments = polygon = ring = null;
11248 }
11249
11250 function lineStart() {
11251 clipStream.point = linePoint;

Callers

nothing calls this directly

Calls 8

polygonInsideFunction · 0.85
mergeFunction · 0.85
interpolateFunction · 0.85
clipRejoinFunction · 0.85
polygonStartMethod · 0.80
polygonEndMethod · 0.80
lineStartMethod · 0.45
lineEndMethod · 0.45

Tested by

no test coverage detected