MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / shiftDown

Function shiftDown

libs/echarts/echarts.simple.js:43893–43910  ·  view source on GitHub ↗
(start, end, delta, dir)

Source from the content-addressed store, hash-verified

43891 });
43892
43893 function shiftDown(start, end, delta, dir) {
43894 for (var j = start; j < end; j++) {
43895 if (list[j].y + delta > viewTop + viewHeight) {
43896 break;
43897 }
43898
43899 list[j].y += delta;
43900 if (j > start
43901 && j + 1 < end
43902 && list[j + 1].y > list[j].y + list[j].height
43903 ) {
43904 shiftUp(j, delta / 2);
43905 return;
43906 }
43907 }
43908
43909 shiftUp(end - 1, delta / 2);
43910 }
43911
43912 function shiftUp(end, delta) {
43913 for (var j = end; j >= 0; j--) {

Callers 1

adjustSingleSideFunction · 0.70

Calls 1

shiftUpFunction · 0.70

Tested by

no test coverage detected