(spec, scaleType)
| 148539 | }), scope); |
| 148540 | } |
| 148541 | function legendType(spec, scaleType) { |
| 148542 | let type = spec.type || Symbols; |
| 148543 | if (!spec.type && scaleCount(spec) === 1 && (spec.fill || spec.stroke)) type = (0, _vegaScale.isContinuous)(scaleType) ? Gradient : (0, _vegaScale.isDiscretizing)(scaleType) ? Discrete : Symbols; |
| 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 | } |
no test coverage detected