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

Function streamSource

docs/app/js/sanddance-app.js:147233–147237  ·  view source on GitHub ↗
(stream, scope)

Source from the content-addressed store, hash-verified

147231 sources.forEach((source)=>scope.addUpdate((0, _vegaUtil.extend)(streamSource(source, scope), entry5)));
147232}
147233function streamSource(stream, scope) {
147234 return {
147235 source: stream.signal ? scope.signalRef(stream.signal) : stream.scale ? scope.scaleRef(stream.scale) : parseStream(stream, scope)
147236 };
147237}
147238function mergeSources(sources) {
147239 return {
147240 signal: "[" + sources.map((s)=>s.scale ? 'scale("' + s.scale + '")' : s.signal) + "]"

Callers 1

parseUpdateFunction · 0.70

Calls 1

parseStreamFunction · 0.70

Tested by

no test coverage detected