(sort, multidomain)
| 147403 | return ref(v); |
| 147404 | } |
| 147405 | function parseSort(sort, multidomain) { |
| 147406 | if (sort) { |
| 147407 | if (!sort.field && !sort.op) { |
| 147408 | if ((0, _vegaUtil.isObject)(sort)) sort.field = "key"; |
| 147409 | else sort = { |
| 147410 | field: "key" |
| 147411 | }; |
| 147412 | } else if (!sort.field && sort.op !== "count") (0, _vegaUtil.error)("No field provided for sort aggregate op: " + sort.op); |
| 147413 | else if (multidomain && sort.field) { |
| 147414 | if (sort.op && !MULTIDOMAIN_SORT_OPS[sort.op]) (0, _vegaUtil.error)("Multiple domain scales can not be sorted using " + sort.op); |
| 147415 | } |
| 147416 | } |
| 147417 | return sort; |
| 147418 | } |
| 147419 | function quantileMultipleDomain(domain, scope, fields) { |
| 147420 | // get value arrays for each domain field |
| 147421 | const values = fields.map((f)=>{ |
no outgoing calls
no test coverage detected