MCPcopy
hub / github.com/microsoft/SandDance / zoomLog

Function zoomLog

docs/app/js/sanddance-app.js:106715–106718  ·  view source on GitHub ↗
(domain, anchor, scale)

Source from the content-addressed store, hash-verified

106713 return zoom(domain, anchor, scale, toNumber, identity);
106714}
106715function zoomLog(domain, anchor, scale) {
106716 const sign = Math.sign(domain[0]);
106717 return zoom(domain, anchor, scale, log(sign), exp(sign));
106718}
106719function zoomPow(domain, anchor, scale, exponent) {
106720 return zoom(domain, anchor, scale, pow(exponent), pow(1 / exponent));
106721}

Callers

nothing calls this directly

Calls 3

zoomFunction · 0.70
logFunction · 0.70
expFunction · 0.70

Tested by

no test coverage detected