Lines Matching refs:s1

88 	        verticalCells.sort(function(s1, s2)  argument
90 return s1.y - s2.y;
104 var s1 = verticalCells[i - 1];
106 midDy = (s3.y - s1.y - s1.height - newState.height) / 2;
116 var s1 = verticalCells[i];
118 var isMovingOne = newState == s1 || newState == s2;
119 var curDy = s2.y - s1.y - s1.height;
121 newStatePassed |= newState == s1;
168 horizontalCells.sort(function(s1, s2) argument
170 return s1.x - s2.x;
184 var s1 = horizontalCells[i - 1];
186 midDx = (s3.x - s1.x - s1.width - newState.width) / 2;
196 var s1 = horizontalCells[i];
198 var isMovingOne = newState == s1 || newState == s2;
199 var curDx = s2.x - s1.x - s1.width;
201 newStatePassed |= newState == s1;
316 var s1 = horizontalCells[i];
319 if (newState == s1)
321 newX = s2.x - s1.width - fixedDx;
322 hPoints.push(new mxPoint(newX + s1.width + shift, firstY));
327 hPoints.push(new mxPoint(s1.x + s1.width + shift, firstY));
328 newX = s1.x + s1.width + fixedDx;
333 hPoints.push(new mxPoint(s1.x + s1.width + shift, firstY));
340 var s1 = horizontalCells[0];
342 newX = s1.x + s1.width + (s3.x - s1.x - s1.width - newState.width) / 2;
343 hPoints.push(new mxPoint(s1.x + s1.width + shift, firstY));
390 var s1 = verticalCells[i];
393 if (newState == s1)
395 newY = s2.y - s1.height - fixedDy;
396 vPoints.push(new mxPoint(firstX, newY + s1.height + shift));
401 vPoints.push(new mxPoint(firstX, s1.y + s1.height + shift));
402 newY = s1.y + s1.height + fixedDy;
407 vPoints.push(new mxPoint(firstX, s1.y + s1.height + shift));
414 var s1 = verticalCells[0];
416 newY = s1.y + s1.height + (s3.y - s1.y - s1.height - newState.height) / 2;
417 vPoints.push(new mxPoint(firstX, s1.y + s1.height + shift));