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

Function modp

docs/app/js/sanddance-app.js:139270–139273  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

139268(0, _vegaUtil.inherits)(Label, (0, _vegaDataflow.Transform), {
139269 transform (_, pulse) {
139270 function modp(param) {
139271 const p = _[param];
139272 return (0, _vegaUtil.isFunction)(p) && pulse.modified(p.fields);
139273 }
139274 const mod = _.modified();
139275 if (!(mod || pulse.changed(pulse.ADD_REM) || modp("sort"))) return;
139276 if (!_.size || _.size.length !== 2) (0, _vegaUtil.error)("Size parameter should be specified as a [width, height] array.");

Callers 1

transformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected