Lines Matching refs:p0

5587 				var p0 = (start) ? pts[0] : pts[n];
5589 var dx = (start) ? p1.x - p0.x : p1.x - p0.x;
5590 var dy = (start) ? p1.y - p0.y : p1.y - p0.y;
5594 var pt = getPosition.call(this, dist, dx / dist, dy / dist, p0, p1);
5605 var p0 = (start) ? pts[0] : pts[n];
5607 var dx = (start) ? p1.x - p0.x : p1.x - p0.x;
5608 var dy = (start) ? p1.y - p0.y : p1.y - p0.y;
5614 setPosition.call(this, dist, dx / dist, dy / dist, p0, p1, pt, me);
5620 return createEdgeHandle(state, ['width'], start, function(dist, nx, ny, p0, p1) argument
5624 return new mxPoint(p0.x + nx * dist / 4 + ny * w / 2, p0.y + ny * dist / 4 - nx * w / 2);
5625 }, function(dist, nx, ny, p0, p1, pt) argument
5627 var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y));
5652 …dth', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], true, function(dist, nx, ny, p0, p1) argument
5657 return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) + ny * w / 2,
5658 p0.y + ny * (l + state.shape.strokewidth * state.view.scale) - nx * w / 2);
5659 }, function(dist, nx, ny, p0, p1, pt, me) argument
5661 var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y));
5662 var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y);
5683 …dth', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], true, function(dist, nx, ny, p0, p1) argument
5688 return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) + ny * w / 2,
5689 p0.y + ny * (l + state.shape.strokewidth * state.view.scale) - nx * w / 2);
5690 }, function(dist, nx, ny, p0, p1, pt, me) argument
5692 var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y));
5693 var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y);
5723 …th', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], false, function(dist, nx, ny, p0, p1) argument
5728 return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) - ny * w / 2,
5729 p0.y + ny * (l + state.shape.strokewidth * state.view.scale) + nx * w / 2);
5730 }, function(dist, nx, ny, p0, p1, pt, me) argument
5732 var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y));
5733 var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y);
5754 …th', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], false, function(dist, nx, ny, p0, p1) argument
5759 return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) - ny * w / 2,
5760 p0.y + ny * (l + state.shape.strokewidth * state.view.scale) + nx * w / 2);
5761 }, function(dist, nx, ny, p0, p1, pt, me) argument
5763 var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y));
5764 var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y);
6316 var p0 = pts[0];
6324 if (p0 == null)
6328 p0 = new mxPoint(source.getCenterX(), source.getCenterY());
6348 if (pe != null && p0 != null)
6350 var last = p0;
6387 pt = new mxPoint(p0.x + (pe.x - p0.x) / 2, p0.y + (pe.y - p0.y) / 2);