MCPcopy Create free account
hub / github.com/microsoft/SandDance / SortItems

Function SortItems

docs/app/js/sanddance-app.js:130123–130125  ·  view source on GitHub ↗

* Sorts scenegraph items in the pulse source array. * @constructor * @param {object} params - The parameters for this operator. * @param {function(*,*): number} [params.sort] - A comparator * function for sorting tuples.

(params)

Source from the content-addressed store, hash-verified

130121 * @param {function(*,*): number} [params.sort] - A comparator
130122 * function for sorting tuples.
130123 */ function SortItems(params) {
130124 (0, _vegaDataflow.Transform).call(this, null, params);
130125}
130126(0, _vegaUtil.inherits)(SortItems, (0, _vegaDataflow.Transform), {
130127 transform (_, pulse) {
130128 const mod = _.modified("sort") || pulse.changed(pulse.ADD) || pulse.modified(_.sort.fields) || pulse.modified("datum");

Callers 1

parseMarkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected