(spec)
| 148544 | return type !== Gradient ? type : (0, _vegaScale.isDiscretizing)(scaleType) ? Discrete : Gradient; |
| 148545 | } |
| 148546 | function scaleCount(spec) { |
| 148547 | return LegendScales.reduce((count, type)=>count + (spec[type] ? 1 : 0), 0); |
| 148548 | } |
| 148549 | function buildLegendEncode(_, spec, config) { |
| 148550 | const encode = { |
| 148551 | enter: {}, |