MCPcopy
hub / github.com/microsoft/SandDance / buildLegendEncode

Function buildLegendEncode

docs/tests/v2/es6/js/sanddance.js:136191–136210  ·  view source on GitHub ↗
(_, config)

Source from the content-addressed store, hash-verified

136189}
136190
136191function buildLegendEncode(_, config) {
136192 var encode = {
136193 enter: {},
136194 update: {}
136195 };
136196 (0, _encodeUtil.addEncoders)(encode, {
136197 orient: _('orient'),
136198 offset: _('offset'),
136199 padding: _('padding'),
136200 titlePadding: _('titlePadding'),
136201 cornerRadius: _('cornerRadius'),
136202 fill: _('fillColor'),
136203 stroke: _('strokeColor'),
136204 strokeWidth: config.strokeWidth,
136205 strokeDash: config.strokeDash,
136206 x: _('legendX'),
136207 y: _('legendY')
136208 });
136209 return encode;
136210}
136211
136212function sizeExpression(spec, scope, marks) {
136213 var size = (0, _util.deref)(getChannel('size', spec, marks)),

Callers 1

_defaultFunction · 0.70

Calls 1

_Function · 0.70

Tested by

no test coverage detected