MCPcopy
hub / github.com/microsoft/SandDance / trail

Function trail

docs/tests/v2/es6/js/sanddance.js:98295–98315  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

98293 }
98294
98295 function trail(data) {
98296 var i,
98297 n = data.length,
98298 d,
98299 defined0 = false,
98300 buffer;
98301 if (context == null) context = buffer = (0, _d3Path.path)();
98302
98303 for (i = 0; i <= n; ++i) {
98304 if (!(i < n && defined(d = data[i], i, data)) === defined0) {
98305 if (defined0 = !defined0) ready = 0;
98306 }
98307
98308 if (defined0) point(+x(d, i, data), +y(d, i, data), +size(d, i, data));
98309 }
98310
98311 if (buffer) {
98312 context = null;
98313 return buffer + '' || null;
98314 }
98315 }
98316
98317 trail.x = function (_) {
98318 if (arguments.length) {

Callers

nothing calls this directly

Calls 3

pointFunction · 0.70
xFunction · 0.70
yFunction · 0.70

Tested by

no test coverage detected