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

Function zoomLog

docs/tests/v2/es6/js/sanddance.js:75151–75154  ·  view source on GitHub ↗
(domain, anchor, scale)

Source from the content-addressed store, hash-verified

75149}
75150
75151function zoomLog(domain, anchor, scale) {
75152 var sign = Math.sign(domain[0]);
75153 return zoom(domain, anchor, scale, log(sign), exp(sign));
75154}
75155
75156function zoomPow(domain, anchor, scale, exponent) {
75157 return zoom(domain, anchor, scale, pow(exponent), pow(1 / exponent));

Callers

nothing calls this directly

Calls 3

zoomFunction · 0.70
logFunction · 0.70
expFunction · 0.70

Tested by

no test coverage detected