(sort, multidomain)
| 133679 | } |
| 133680 | |
| 133681 | function parseSort(sort, multidomain) { |
| 133682 | if (sort) { |
| 133683 | if (!sort.field && !sort.op) { |
| 133684 | if ((0, _vegaUtil.isObject)(sort)) sort.field = 'key';else sort = { |
| 133685 | field: 'key' |
| 133686 | }; |
| 133687 | } else if (!sort.field && sort.op !== 'count') { |
| 133688 | (0, _vegaUtil.error)('No field provided for sort aggregate op: ' + sort.op); |
| 133689 | } else if (multidomain && sort.field) { |
| 133690 | if (sort.op && !MULTIDOMAIN_SORT_OPS[sort.op]) { |
| 133691 | (0, _vegaUtil.error)('Multiple domain scales can not be sorted using ' + sort.op); |
| 133692 | } |
| 133693 | } |
| 133694 | } |
| 133695 | |
| 133696 | return sort; |
| 133697 | } |
| 133698 | |
| 133699 | function quantileMultipleDomain(domain, scope, fields) { |
| 133700 | // get value arrays for each domain field |
no outgoing calls
no test coverage detected