Lines Matching refs:s2
88 verticalCells.sort(function(s1, s2) argument
90 return s1.y - s2.y;
117 var s2 = verticalCells[i + 1];
118 var isMovingOne = newState == s1 || newState == s2;
119 var curDy = s2.y - s1.y - s1.height;
168 horizontalCells.sort(function(s1, s2) argument
170 return s1.x - s2.x;
197 var s2 = horizontalCells[i + 1];
198 var isMovingOne = newState == s1 || newState == s2;
199 var curDx = s2.x - s1.x - s1.width;
317 var s2 = horizontalCells[i + 1];
321 newX = s2.x - s1.width - fixedDx;
323 hPoints.push(new mxPoint(s2.x - shift, firstY));
325 else if (newState == s2)
334 hPoints.push(new mxPoint(s2.x - shift, firstY));
391 var s2 = verticalCells[i + 1];
395 newY = s2.y - s1.height - fixedDy;
397 vPoints.push(new mxPoint(firstX, s2.y - shift));
399 else if (newState == s2)
408 vPoints.push(new mxPoint(firstX, s2.y - shift));