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

Function invertRange

docs/app/js/sanddance-app.js:126650–126663  ·  view source on GitHub ↗
(scale1)

Source from the content-addressed store, hash-verified

126648const Interpolating = "interpolating";
126649const Temporal = "temporal";
126650function invertRange(scale1) {
126651 return function(_) {
126652 let lo = _[0], hi = _[1], t;
126653 if (hi < lo) {
126654 t = lo;
126655 lo = hi;
126656 hi = t;
126657 }
126658 return [
126659 scale1.invert(lo),
126660 scale1.invert(hi)
126661 ];
126662 };
126663}
126664function invertRangeExtent(scale2) {
126665 return function(_) {
126666 const range = scale2.range();

Callers 1

ctrFunction · 0.70

Calls 1

invertMethod · 0.45

Tested by

no test coverage detected