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

Function recenter

docs/app/js/sanddance-app.js:133989–133996  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133987 return (0, _fitJs.fitHeight)(projection1, height, object);
133988 };
133989 function recenter() {
133990 var center = scaleTranslateRotate(k, 0, 0, sx, sy, alpha).apply(null, project(lambda, phi)), transform = scaleTranslateRotate(k, x - center[0], y - center[1], sx, sy, alpha);
133991 rotate = (0, _rotationJs.rotateRadians)(deltaLambda, deltaPhi, deltaGamma);
133992 projectTransform = (0, _composeJsDefault.default)(project, transform);
133993 projectRotateTransform = (0, _composeJsDefault.default)(rotate, projectTransform);
133994 projectResample = (0, _resampleJsDefault.default)(projectTransform, delta2);
133995 return reset();
133996 }
133997 function reset() {
133998 cache = cacheStream = null;
133999 return projection1;

Callers 1

projectionMutatorFunction · 0.70

Calls 3

scaleTranslateRotateFunction · 0.70
projectFunction · 0.70
resetFunction · 0.70

Tested by

no test coverage detected