(_, spec)
| 97237 | }), scope); |
| 97238 | } |
| 97239 | function buildAxisEncode(_, spec) { |
| 97240 | const encode = { |
| 97241 | enter: {}, |
| 97242 | update: {} |
| 97243 | }; |
| 97244 | addEncoders(encode, { |
| 97245 | orient: _("orient"), |
| 97246 | offset: _("offset") || 0, |
| 97247 | position: value(spec.position, 0), |
| 97248 | titlePadding: _("titlePadding"), |
| 97249 | minExtent: _("minExtent"), |
| 97250 | maxExtent: _("maxExtent"), |
| 97251 | range: { |
| 97252 | signal: `abs(span(range("${spec.scale}")))` |
| 97253 | }, |
| 97254 | translate: _("translate"), |
| 97255 | // accessibility support |
| 97256 | format: spec.format, |
| 97257 | formatType: spec.formatType |
| 97258 | }); |
| 97259 | return encode; |
| 97260 | } |
| 97261 | function parseScope(spec, scope, preprocessed) { |
| 97262 | const signals = (0, _vegaUtil.array)(spec.signals), scales = (0, _vegaUtil.array)(spec.scales); // parse signal definitions, if not already preprocessed |
| 97263 | if (!preprocessed) signals.forEach((_)=>parseSignal(_, scope)); // parse cartographic projection definitions |
no test coverage detected