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

Function ref

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

Source from the content-addressed store, hash-verified

142857 visitors._range = scaleVisitor;
142858 visitors._scale = scaleVisitor; // resolve scale reference directly to the signal hash argument
142859 const ref = (arg)=>"_[" + (arg.type === (0, _vegaExpression.Literal) ? (0, _vegaUtil.stringValue)(ScalePrefix + arg.value) : (0, _vegaUtil.stringValue)(ScalePrefix) + "+" + codegen(arg)) + "]"; // define and return internal scale function code generators
142860 // these internal functions are called by mark encoders
142861 return {
142862 _bandwidth: (args)=>`this.__bandwidth(${ref(args[0])})`,

Callers 15

createElementFunction · 0.70
sanddance-app.jsFile · 0.70
createResolverFunction · 0.70
useMergedRefsFunction · 0.70
internalScaleFunctionsFunction · 0.70
ordinalMultipleDomainFunction · 0.70
quantileMultipleDomainFunction · 0.70
numericMultipleDomainFunction · 0.70
parameterValueFunction · 0.70
parseSubParameterFunction · 0.70
parseData$1Function · 0.70
getDataRefFunction · 0.70

Calls 1

codegenFunction · 0.70

Tested by

no test coverage detected