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

Function reset

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

Source from the content-addressed store, hash-verified

120217 return (item)=>b.encloses(item.bounds);
120218}; // reset all items to be fully opaque
120219const reset = (source)=>{
120220 source.forEach((item)=>item.opacity = 1);
120221 return source;
120222}; // add all tuples to mod, fork pulse if parameters were modified
120223// fork prevents cross-stream tuple pollution (e.g., pulse from scale)
120224const reflow = (pulse, _)=>pulse.reflow(_.modified()).modifies("opacity");
120225(0, _vegaUtil.inherits)(Overlap, (0, _vegaDataflow.Transform), {

Callers 4

transformFunction · 0.70
projectionMutatorFunction · 0.70
recenterFunction · 0.70
sanddance-app.jsFile · 0.70

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected