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

Function adjustRange

docs/app/js/sanddance-app.js:119052–119056  ·  view source on GitHub ↗
(w, bisect)

Source from the content-addressed store, hash-verified

119050 w.index = i;
119051} // if frame type is 'range', adjust window for peer values
119052function adjustRange(w, bisect) {
119053 const r0 = w.i0, r1 = w.i1 - 1, c = w.compare, d = w.data, n = d.length - 1;
119054 if (r0 > 0 && !c(d[r0], d[r0 - 1])) w.i0 = bisect.left(d, d[r0]);
119055 if (r1 < n && !c(d[r1], d[r1 + 1])) w.i1 = bisect.right(d, d[r1]);
119056}
119057
119058},{"vega-util":"dPFAY","vega-dataflow":"4kvYg","vega-statistics":"hZmG3","d3-array":"8JMcC","vega-time":"hDlOp","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"hZmG3":[function(require,module,exports) {
119059var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

processPartitionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected