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

Function scaleRef

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

Source from the content-addressed store, hash-verified

146922 };
146923}
146924const scaleRef = (scale1)=>(0, _vegaUtil.isString)(scale1) ? (0, _vegaUtil.stringValue)(scale1) : scale1.signal ? `(${scale1.signal})` : field(scale1);
146925function entry$1(enc) {
146926 if (enc.gradient != null) return gradient(enc);
146927 let value3 = enc.signal ? `(${enc.signal})` : enc.color ? color(enc.color) : enc.field != null ? field(enc.field) : enc.value !== undefined ? (0, _vegaUtil.stringValue)(enc.value) : undefined;

Callers 2

gradientFunction · 0.70
scaleFunction · 0.70

Calls 3

fieldFunction · 0.70
refFunction · 0.70
getScaleMethod · 0.45

Tested by

no test coverage detected