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

Function streamPolygon

docs/app/js/sanddance-app.js:132042–132047  ·  view source on GitHub ↗
(coordinates, stream)

Source from the content-addressed store, hash-verified

132040 stream.lineEnd();
132041}
132042function streamPolygon(coordinates, stream) {
132043 var i = -1, n = coordinates.length;
132044 stream.polygonStart();
132045 while(++i < n)streamLine(coordinates[i], stream, 1);
132046 stream.polygonEnd();
132047}
132048exports.default = function(object, stream) {
132049 if (object && streamObjectType.hasOwnProperty(object.type)) streamObjectType[object.type](object, stream);
132050 else streamGeometry(object, stream);

Callers 1

sanddance-app.jsFile · 0.70

Calls 1

streamLineFunction · 0.70

Tested by

no test coverage detected