MCPcopy Create free account
hub / github.com/breck7/scroll / scale

Function scale

external/.d3.js:3835–3842  ·  view source on GitHub ↗
(xa, ya, xb, yb, s, q)

Source from the content-addressed store, hash-verified

3833 }
3834
3835 function scale(xa, ya, xb, yb, s, q) {
3836 if (xa !== xb || ya !== yb) {
3837 var i = s.push(pop(s) + "scale(", null, ",", null, ")");
3838 q.push({i: i - 4, x: interpolateNumber(xa, xb)}, {i: i - 2, x: interpolateNumber(ya, yb)});
3839 } else if (xb !== 1 || yb !== 1) {
3840 s.push(pop(s) + "scale(" + xb + "," + yb + ")");
3841 }
3842 }
3843
3844 return function(a, b) {
3845 var s = [], // string constants and placeholders

Callers 10

number$2Function · 0.85
center$1Function · 0.85
interpolateTransformFunction · 0.85
azimuthalRawFunction · 0.85
mercatorProjectionFunction · 0.85
reclipFunction · 0.85
zoomFunction · 0.85
wheeledFunction · 0.85
dblclickedFunction · 0.85
touchmovedFunction · 0.85

Calls 11

popFunction · 0.85
interpolateNumberFunction · 0.85
piecewiseFunction · 0.85
clampFunction · 0.85
unsquareFunction · 0.85
mapMethod · 0.80
maxMethod · 0.80
minMethod · 0.80
transformFunction · 0.70
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected