Lines Matching refs:newState

35 		  var newState = new mxCellState();
39 newState.x = bounds.x + xShift;
40 newState.y = bounds.y + yShift;
41 newState.width = bounds.width;
42 newState.height = bounds.height;
58 if (((newState.x >= state.x && newState.x <= (state.x + state.width))
59 || (state.x >= newState.x && state.x <= (newState.x + newState.width)))
60 …&& (newState.y > state.y + state.height + 4|| newState.y + newState.height + 4 < state.y)) // + 4 …
64 else if (((newState.y >= state.y && newState.y <= (state.y + state.height))
65 || (state.y >= newState.y && state.y <= (newState.y + newState.height)))
66 …&& (newState.x > state.x + state.width + 4 || newState.x + newState.width + 4 < state.x)) // + 4 t…
86 verticalCells.push(newState);
94 var firstMoving = newState == verticalCells[0];
95 var lastMoving = newState == verticalCells[verticalCells.length - 1];
102 if (newState == verticalCells[i])
106 midDy = (s3.y - s1.y - s1.height - newState.height) / 2;
118 var isMovingOne = newState == s1 || newState == s2;
121 newStatePassed |= newState == s1;
158 if (verticalCells.length == 3 && verticalCells[1] == newState)
166 horizontalCells.push(newState)
174 var firstMoving = newState == horizontalCells[0];
175 var lastMoving = newState == horizontalCells[horizontalCells.length - 1];
182 if (newState == horizontalCells[i])
186 midDx = (s3.x - s1.x - s1.width - newState.width) / 2;
198 var isMovingOne = newState == s1 || newState == s2;
201 newStatePassed |= newState == s1;
237 if (horizontalCells.length == 3 && horizontalCells[1] == newState)
309 var firstI = horizontalCells[0] == newState? 1 : 0;
319 if (newState == s1)
325 else if (newState == s2)
342 newX = s1.x + s1.width + (s3.x - s1.x - s1.width - newState.width) / 2;
345 hPoints.push(new mxPoint(newX + newState.width + shift, firstY));
383 var firstI = verticalCells[0] == newState? 1 : 0;
393 if (newState == s1)
399 else if (newState == s2)
416 newY = s1.y + s1.height + (s3.y - s1.y - s1.height - newState.height) / 2;
419 vPoints.push(new mxPoint(firstX, newY + newState.height + shift));