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

Function getChannel

docs/app/js/sanddance-app.js:148576–148578  ·  view source on GitHub ↗
(name, spec, marks)

Source from the content-addressed store, hash-verified

148574 return (0, _vegaFunctions.parseExpression)(`max(ceil(sqrt(${size})+${strokeWidth}),${fontSize})`, scope);
148575}
148576function getChannel(name, spec, marks) {
148577 return spec[name] ? `scale("${spec[name]}",datum)` : getEncoding(name, marks[0].encode);
148578}
148579function getFontSize(encode, scope, style) {
148580 return getEncoding("fontSize", encode) || getStyle("fontSize", scope, style);
148581}

Callers 1

sizeExpressionFunction · 0.70

Calls 1

getEncodingFunction · 0.70

Tested by

no test coverage detected