MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / shrink

Function shrink

api/prettydiff-webtool.ts:4123–4150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4121 : ((17 - width) / step),
4122 incH = height / step,
4123 shrink = function dom_event_minimize_shrinkage_shrink():boolean {
4124 left = left + incL;
4125 top = top + incT;
4126 width = width - incW;
4127 height = height - incH;
4128 body.style.width = `${width}em`;
4129 heading.style.width = `${width}em`;
4130 body.style.height = `${height}em`;
4131 box.style.left = `${left}em`;
4132 box.style.top = `${top}em`;
4133 if (width - incW > 16.8) {
4134 setTimeout(dom_event_minimize_shrinkage_shrink, 1);
4135 } else {
4136 box.style.left = "auto";
4137 box.style.top = "auto";
4138 box.style.right = `${final}em`;
4139 data.settings.report[idval].max = false;
4140 body.style.display = "none";
4141 heading.getElementsByTagName("button")[0].style.cursor = "pointer";
4142 heading.style.margin = "-0.1em 0em -3.2em -0.1em";
4143 box.style.zIndex = "2";
4144 method
4145 .app
4146 .options(e);
4147 return false;
4148 }
4149 return true;
4150 };
4151 parentNode = <HTMLElement>box.parentNode;
4152 incT = (((parentNode.offsetTop / 10) - top) / step);
4153 buttonMin.innerHTML = "\u2191";

Callers 1

shrinkageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected