(format3)
| 127253 | return type === SymbolLegend && isDiscreteRange(scale16) ? formatRange(format2) : type === DiscreteLegend ? formatDiscrete(format2) : formatPoint(format2); |
| 127254 | } |
| 127255 | const formatRange = (format3)=>(value, index, array)=>{ |
| 127256 | const limit = get(array[index + 1], get(array.max, Infinity)), lo = formatValue(value, format3), hi = formatValue(limit, format3); |
| 127257 | return lo && hi ? lo + " \u2013 " + hi : hi ? "< " + hi : "\u2265 " + lo; |
| 127258 | }; |
| 127259 | const get = (value, dflt)=>value != null ? value : dflt; |
| 127260 | const formatDiscrete = (format4)=>(value, index)=>index ? format4(value) : null; |
| 127261 | const formatPoint = (format5)=>(value)=>format5(value); |
no test coverage detected