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

Function rotate

external/.d3.js:3818–3825  ·  view source on GitHub ↗
(a, b, s, q)

Source from the content-addressed store, hash-verified

3816 }
3817
3818 function rotate(a, b, s, q) {
3819 if (a !== b) {
3820 if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path
3821 q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: interpolateNumber(a, b)});
3822 } else if (b) {
3823 s.push(pop(s) + "rotate(" + b + degParen);
3824 }
3825 }
3826
3827 function skewX(a, b, s, q) {
3828 if (a !== b) {

Callers 5

interpolateTransformFunction · 0.85
forwardFunction · 0.85
pointFunction · 0.85
transformRotateFunction · 0.85
transverseMercatorFunction · 0.85

Calls 2

popFunction · 0.85
interpolateNumberFunction · 0.85

Tested by

no test coverage detected