Lines Matching +full:x +full:- +full:view

2  * Copyright (c) 2006-2015, JGraph Ltd
11 function paintTableBackground(state, c, x, y, w, h, r) argument
15 var graph = state.view.graph;
53 c.moveTo(x + geo.x, y + start.y);
55 if (r > 0 && i == cols.length - 1)
57 c.lineTo(x + geo.x + geo.width - r, y);
58 c.quadTo(x + geo.x + geo.width, y, x + geo.x + geo.width, y + r);
59 c.lineTo(x + geo.x + geo.width, y + h - r);
60 c.quadTo(x + geo.x + geo.width, y + h, x + geo.x + geo.width - r, y + h);
64 c.lineTo(x + geo.x + geo.width, y + start.y);
65 c.lineTo(x + geo.x + geo.width, y + h - start.height);
68 c.lineTo(x + geo.x, y + h);
82 var b = (i == rows.length - 1) ? y + h : y + geo.y + geo.height;
86 c.moveTo(x + start.x, y + geo.y);
87 c.lineTo(x + w - start.width, y + geo.y);
89 if (r > 0 && i == rows.length - 1)
91 c.lineTo(x + w, b - r);
92 c.quadTo(x + w, b, x + w - r, b);
93 c.lineTo(x + r, b);
94 c.quadTo(x, b, x, b - r);
98 c.lineTo(x + w - start.width, b);
99 c.lineTo(x + start.x, b);
132 TableShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
135 //paintTableBackground(this.state, c, x, y, w, h);
146 c.translate(-x, -y);
149 this.paintForeground(c, x, y, w, h);
152 TableShape.prototype.paintForeground = function(c, x, y, w, h) argument
167 c.rotate(-this.getShapeRotation(), flipH, flipV, x + w / 2, y + h / 2);
170 x = this.bounds.x / s;
174 this.paintTableForeground(c, x, y, w, h);
178 TableShape.prototype.paintTableForeground = function(c, x, y, w, h) argument
180 var graph = this.state.view.graph;
193 x: 0, cells: cells, colspans: []}]; property
212 c.moveTo(x + start.x, y + geo.y);
219 tw = data.x;
225 c.lineTo(x + tw - start.width, y + geo.y);
228 c.moveTo(x + geo.x + geo.width + start.x, y + geo.y);
233 c.lineTo(x + w - start.width, y + geo.y);
252 c.moveTo(x + geo.x + start.x, y + start.y);
259 data.cells[i - 1], true)['colspan'] || 1) :
260 rowData[j].colspans[i - 1];
262 data.colspans[i] = colspan - 1;
274 c.lineTo(x + geo.x + start.x, y + th - start.height);
277 c.moveTo(x + geo.x + start.x, y + data.y);
282 c.lineTo(x + geo.x + start.x, y + h - start.height);
303 CubeShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
306 …var op = Math.max(-1, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'darkOpacity', this.dark…
307 …var op2 = Math.max(-1, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'darkOpacity2', this.da…
308 c.translate(x, y);
312 c.lineTo(w - s, 0);
316 c.lineTo(0, h - s);
332 c.lineTo(w - s, 0);
347 c.lineTo(0, h - s);
377 var tan30Dx = (0.5 - tan30) / 2;
389 WaypointShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
392 …var s = Math.max(0, parseFloat(mxUtils.getValue(this.style, 'size', this.size)) - 2) + 2 * this.st…
393 c.ellipse(x + (w - s) * 0.5, y + (h - s) * 0.5, s, s);
397 c.rect(x, y, w, h);
410 IsoRectangleShape.prototype.redrawPath = function(path, x, y, w, h) argument
414 path.translate((w - m) / 2, (h - m) / 2 + m / 4);
418 path.lineTo(0.5 * m, (0.5 - tan30Dx) * m);
433 IsoCubeShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) argument
440 path.lineTo(0.5 * m, (0.5 - tan30Dx) * m);
442 path.moveTo(0.5 * m, (0.5 - tan30Dx) * m);
443 path.lineTo(0.5 * m, (1 - tan30Dx) * m);
448 path.translate((w - m) / 2, (h - m) / 2);
453 path.lineTo(0.5 * m, (1 - tan30Dx) * m);
469 DataStoreShape.prototype.redrawPath = function(c, x, y, w, h, isForeground) argument
471 var dy = Math.min(h / 2, Math.round(h / 8) + this.strokewidth - 1);
478 // Needs separate shapes for correct hit-detection
489 // Needs separate shapes for correct hit-detection
500 // Needs separate shapes for correct hit-detection
507 c.translate(0, -dy);
513 c.curveTo(0, -dy / 3, w, -dy / 3, w, dy);
514 c.lineTo(w, h - dy);
515 c.curveTo(w, h + dy / 3, 0, h + dy / 3, 0, h - dy);
522 Math.round(rect.height / 8) + this.strokewidth - 1), 0, 0);
536 NoteShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
539 …var op = Math.max(-1, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'darkOpacity', this.dark…
540 c.translate(x, y);
544 c.lineTo(w - s, 0);
562 c.moveTo(w - s, 0);
563 c.lineTo(w - s, s);
570 c.moveTo(w - s, 0);
571 c.lineTo(w - s, s);
609 IsoCubeShape2.prototype.paintVertexShape = function(c, x, y, w, h) argument
614 c.translate(x,y);
619 c.lineTo(w, h - isoH);
621 c.lineTo(0, h - isoH);
649 CylinderShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
653 c.translate(x,y);
666 c.lineTo(w, h - size);
668 c.arcTo(w * 0.5, size, 0, 0, 1, 0, h - size);
698 CylinderShape3.prototype.paintVertexShape = function(c, x, y, w, h) argument
703 c.translate(x,y);
727 c.lineTo(w, h - size);
729 c.arcTo(w * 0.5, size, 0, 0, 1, 0, h - size);
754 SwitchShape.prototype.redrawPath = function(c, x, y, w, h) argument
759 c.quadTo(w * (1 - curve), h / 2, w, h);
760 c.quadTo(w / 2, h * (1 - curve), 0, h);
778 FolderShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
780 c.translate(x, y);
794 arcSize = Math.min(arcSize, w * 0.5, (h - dy) * 0.5);
797 dx = Math.min(w - arcSize, dx);
816 c.moveTo(w - dx, dy);
817 c.lineTo(w - dx, 0);
818 c.lineTo(w - Math.max(arcSize, 0), 0);
819 c.lineTo(w - Math.max(arcSize, 0), dy);
826 c.lineTo(w - arcSize, dy);
828 c.lineTo(w, h - arcSize);
829 c.arcTo(arcSize, arcSize, 0, 0, 1, w - arcSize, h);
831 c.arcTo(arcSize, arcSize, 0, 0, 1, 0, h - arcSize);
851 c.moveTo(w - 30, dy + 20);
852 c.lineTo(w - 20, dy + 10);
853 c.lineTo(w - 10, dy + 20);
880 arcSize = Math.min(arcSize, rect.width * 0.5, (rect.height - sizeY) * 0.5);
889 …Rectangle(arcSize, 0, Math.min(rect.width, rect.width - sizeX), Math.min(rect.height, rect.height
893 …new mxRectangle(Math.min(rect.width, rect.width - sizeX), 0, arcSize, Math.min(rect.height, rect.h…
915 UMLStateShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
917 c.translate(x, y);
946 c.lineTo(w - arcSize, 0);
948 c.lineTo(w, h - arcSize);
949 c.arcTo(arcSize, arcSize, 0, 0, 1, w - arcSize, h);
951 c.arcTo(arcSize, arcSize, 0, 0, 1, dx, h - arcSize);
961 c.roundrect(w - 40, h - 20, 10, 10, 3, 3);
963 c.roundrect(w - 20, h - 20, 10, 10, 3, 3);
966 c.moveTo(w - 30, h - 15);
967 c.lineTo(w - 20, h - 15);
973 c.ellipse(0, h * 0.5 - 10, 20, 20);
978 c.ellipse(0, h * 0.5 - 10, 20, 20);
982 c.moveTo(5, h * 0.5 - 5);
984 c.moveTo(15, h * 0.5 - 5);
1018 CardShape.prototype.redrawPath = function(c, x, y, w, h) argument
1036 TapeShape.prototype.redrawPath = function(c, x, y, w, h) argument
1043 c.quadTo(w * 3 / 4, dy * (1 - fy), w, dy / 2);
1044 c.lineTo(w, h - dy / 2);
1045 c.quadTo(w * 3 / 4, h - dy * fy, w / 2, h - dy / 2);
1046 c.quadTo(w / 4, h - dy * (1 - fy), 0, h - dy / 2);
1066 return new mxRectangle(rect.x, rect.y + dy, w, h - 2 * dy);
1072 return new mxRectangle(rect.x + dx, rect.y, w - 2 * dx, h);
1098 DocumentShape.prototype.redrawPath = function(c, x, y, w, h) argument
1105 c.lineTo(w, h - dy / 2);
1106 c.quadTo(w * 3 / 4, h - dy * fy, w / 2, h - dy / 2);
1107 c.quadTo(w / 4, h - dy * (1 - fy), 0, h - dy / 2);
1117 mxCylinder.prototype.getCylinderSize = function(x, y, w, h) argument
1179 arcSize = Math.min(arcSize, rect.width * 0.5, (rect.height - sizeY) * 0.5);
1188 …Rectangle(arcSize, 0, Math.min(rect.width, rect.width - sizeX), Math.min(rect.height, rect.height
1192 …new mxRectangle(Math.min(rect.width, rect.width - sizeX), 0, arcSize, Math.min(rect.height, rect.h…
1243 ParallelogramShape.prototype.redrawPath = function(c, x, y, w, h) argument
1249 …this.addPoints(c, [new mxPoint(0, h), new mxPoint(dx, 0), new mxPoint(w, 0), new mxPoint(w - dx, h…
1268 TrapezoidShape.prototype.redrawPath = function(c, x, y, w, h) argument
1275 …this.addPoints(c, [new mxPoint(0, h), new mxPoint(dx, 0), new mxPoint(w - dx, 0), new mxPoint(w, h…
1288 CurlyBracketShape.prototype.redrawPath = function(c, x, y, w, h) argument
1307 ParallelMarkerShape.prototype.redrawPath = function(c, x, y, w, h) argument
1388 HandJiggle.prototype.arcTo = function(rx, ry, angle, largeArcFlag, sweepFlag, x, y) argument
1391 this.lastX = x;
1400 var dx = Math.abs(endX - this.lastX);
1401 var dy = Math.abs(endY - this.lastY);
1422 function sign(x) argument
1424 return typeof x === 'number' ? x ? x < 0 ? -1 : 1 : x === x ? 0 : NaN : NaN;
1427 var stepX = sign(endX - this.lastX) * dx / segs;
1428 var stepY = sign(endY - this.lastY) * dy / segs;
1435 var x = stepX * s + this.lastX;
1438 var offset = (Math.random() - 0.5) * variation;
1439 this.originalLineTo.call(this.canvas, x - offset * fy, y - offset * fx);
1520 mxRectangleShape.prototype.paintBackground = function(c, x, y, w, h) argument
1561 c.moveTo(x + r, y);
1562 c.lineTo(x + w - r, y);
1563 c.quadTo(x + w, y, x + w, y + r);
1564 c.lineTo(x + w, y + h - r);
1565 c.quadTo(x + w, y + h, x + w - r, y + h);
1566 c.lineTo(x + r, y + h);
1567 c.quadTo(x, y + h, x, y + h - r);
1568 c.lineTo(x, y + r);
1569 c.quadTo(x, y, x + r, y);
1573 c.moveTo(x, y);
1574 c.lineTo(x + w, y);
1575 c.lineTo(x + w, y + h);
1576 c.lineTo(x, y + h);
1577 c.lineTo(x, y);
1612 var r = new mxRectangle(rect.x, rect.y, w, h);
1623 r.x += Math.round(inset);
1624 r.width -= Math.round(2 * inset);
1632 ProcessShape.prototype.paintForeground = function(c, x, y, w, h) argument
1657 c.moveTo(x + inset, y);
1658 c.lineTo(x + inset, y + h);
1659 c.moveTo(x + w - inset, y);
1660 c.lineTo(x + w - inset, y + h);
1676 TransparentShape.prototype.paintBackground = function(c, x, y, w, h) argument
1679 c.rect(x, y, w, h);
1682 TransparentShape.prototype.paintForeground = function(c, x, y, w, h) { }; argument
1705 CalloutShape.prototype.redrawPath = function(c, x, y, w, h) argument
1713 this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, h - s),
1714 new mxPoint(Math.min(w, dx + base), h - s), new mxPoint(dx2, h),
1715 new mxPoint(Math.max(0, dx), h - s), new mxPoint(0, h - s)],
1733 StepShape.prototype.redrawPath = function(c, x, y, w, h) argument
1739 …this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w - s, 0), new mxPoint(w, h / 2), new mxPoint(w
1758 HexagonShape.prototype.redrawPath = function(c, x, y, w, h) argument
1764 …this.addPoints(c, [new mxPoint(s, 0), new mxPoint(w - s, 0), new mxPoint(w, 0.5 * h), new mxPoint(…
1780 PlusShape.prototype.paintForeground = function(c, x, y, w, h) argument
1785 c.moveTo(x + w / 2, y + border);
1786 c.lineTo(x + w / 2, y + h - border);
1787 c.moveTo(x + border, y + h / 2);
1788 c.lineTo(x + w - border, y + h / 2);
1805 return new mxRectangle(rect.x + margin, rect.y + margin,
1806 rect.width - 2 * margin, rect.height - 2 * margin);
1811 mxRhombus.prototype.paintVertexShape = function(c, x, y, w, h) argument
1819 x += margin;
1821 w -= 2 * margin;
1822 h -= 2 * margin;
1828 // Workaround for closure compiler bug where the lines with x and y above
1830 mxRhombusPaintVertexShape.apply(this, [c, x, y, w, h]);
1852 return new mxRectangle(rect.x + margin, rect.y + margin,
1853 rect.width - 2 * margin, rect.height - 2 * margin);
1859 ExtendedShape.prototype.paintForeground = function(c, x, y, w, h) argument
1866 x += margin;
1868 w -= 2 * margin;
1869 h -= 2 * margin;
1906 var x2 = x;
1911 x2 += (w - width) / 2;
1915 x2 += w - width - spacing;
1924 y2 += (h - height) / 2;
1928 y2 += h - height - vspacing;
1962 MessageShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) argument
1989 UmlActorShape.prototype.paintBackground = function(c, x, y, w, h) argument
1991 c.translate(x, y);
2030 UmlBoundaryShape.prototype.paintBackground = function(c, x, y, w, h) argument
2032 c.translate(x, y);
2061 UmlEntityShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
2066 c.moveTo(x + w / 8, y + h);
2067 c.lineTo(x + w * 7 / 8, y + h);
2080 UmlDestroyShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
2082 c.translate(x, y);
2103 return new mxRectangle(rect.x, rect.y + rect.height / 8, rect.width, rect.height * 7 / 8);
2105 UmlControlShape.prototype.paintBackground = function(c, x, y, w, h) argument
2107 c.translate(x, y);
2120 UmlControlShape.prototype.paintForeground = function(c, x, y, w, h) argument
2149 return new mxRectangle(rect.x, rect.y, rect.width, size);
2151 UmlLifeline.prototype.paintBackground = function(c, x, y, w, h) argument
2158 mxRectangleShape.prototype.paintBackground.call(this, c, x, y, w, size); argument
2162 var ctor = this.state.view.graph.cellRenderer.getShape(participant);
2169 shape.paintVertexShape(c, x, y, w, size);
2178 c.moveTo(x + w / 2, y + size);
2179 c.lineTo(x + w / 2, y + h);
2184 UmlLifeline.prototype.paintForeground = function(c, x, y, w, h) argument
2187 mxRectangleShape.prototype.paintForeground.call(this, c, x, y, w, Math.min(h, size)); argument
2204 rect.width - (parseFloat(mxUtils.getValue(this.style, 'width', this.width) * this.scale)),
2205 rect.height - (parseFloat(mxUtils.getValue(this.style, 'height', this.height) * this.scale)));
2207 UmlFrame.prototype.paintBackground = function(c, x, y, w, h) argument
2217 c.rect(x, y, w, h);
2223 var b = this.getGradientBounds(c, x, y, w, h);
2224 c.setGradient(this.fill, this.gradient, x, y, w, h, this.gradientDirection);
2232 c.moveTo(x, y);
2233 c.lineTo(x + w0, y);
2234 c.lineTo(x + w0, y + Math.max(0, h0 - co * 1.5));
2235 c.lineTo(x + Math.max(0, w0 - co), y + h0);
2236 c.lineTo(x, y + h0);
2241 c.moveTo(x + w0, y);
2242 c.lineTo(x + w, y);
2243 c.lineTo(x + w, y + h);
2244 c.lineTo(x, y + h);
2245 c.lineTo(x, y + h0);
2264 size = mxUtils.getValue(vertex.style, 'size', size) * vertex.view.scale;
2267 …var sw = (parseFloat(vertex.style[mxConstants.STYLE_STROKEWIDTH] || 1) * vertex.view.scale / 2) -
2269 if (next.x < bounds.getCenterX())
2272 sw *= -1;
2292 …var sw = (parseFloat(vertex.style[mxConstants.STYLE_STROKEWIDTH] || 1) * vertex.view.scale / 2) -
2296 sw += (parseFloat(vertex.style['backboneSize']) * vertex.view.scale / 2) - 1;
2302 if (next.x < bounds.getCenterX())
2305 sw *= -1;
2316 sw *= -1;
2319 return new mxPoint(Math.min(bounds.x + bounds.width, Math.max(bounds.x, next.x)),
2331 CalloutShape.prototype.size)) * vertex.view.scale))),
2350 size *= vertex.view.scale;
2353 var x = bounds.x;
2368 points = [new mxPoint(x, y), new mxPoint(x + w, y + dy),
2369 new mxPoint(x + w, y + h), new mxPoint(x, y + h - dy), new mxPoint(x, y)];
2374 points = [new mxPoint(x + dx, y), new mxPoint(x + w, y),
2375 new mxPoint(x + w - dx, y + h), new mxPoint(x, y + h), new mxPoint(x + dx, y)];
2385 if (next.x < x || next.x > x + w)
2391 p1.x = next.x;
2413 size *= vertex.view.scale;
2416 var x = bounds.x;
2429 points = [new mxPoint(x + dx, y), new mxPoint(x + w - dx, y),
2430 new mxPoint(x + w, y + h), new mxPoint(x, y + h), new mxPoint(x + dx, y)];
2435 points = [new mxPoint(x, y), new mxPoint(x + w, y),
2436 new mxPoint(x + w - dx, y + h), new mxPoint(x + dx, y + h), new mxPoint(x, y)];
2441 points = [new mxPoint(x, y + dy), new mxPoint(x + w, y),
2442 new mxPoint(x + w, y + h), new mxPoint(x, y + h - dy), new mxPoint(x, y + dy)];
2447 points = [new mxPoint(x, y), new mxPoint(x + w, y + dy),
2448 new mxPoint(x + w, y + h - dy), new mxPoint(x, y + h), new mxPoint(x, y)];
2458 if (next.x < x || next.x > x + w)
2464 p1.x = next.x;
2486 size *= vertex.view.scale;
2489 var x = bounds.x;
2505 points = [new mxPoint(x, y), new mxPoint(x + w - dx, y), new mxPoint(x + w, cy),
2506 new mxPoint(x + w - dx, y + h), new mxPoint(x, y + h),
2507 new mxPoint(x + dx, cy), new mxPoint(x, y)];
2512 points = [new mxPoint(x + dx, y), new mxPoint(x + w, y), new mxPoint(x + w - dx, cy),
2513 new mxPoint(x + w, y + h), new mxPoint(x + dx, y + h),
2514 new mxPoint(x, cy), new mxPoint(x + dx, y)];
2519 points = [new mxPoint(x, y + dy), new mxPoint(cx, y), new mxPoint(x + w, y + dy),
2520 new mxPoint(x + w, y + h), new mxPoint(cx, y + h - dy),
2521 new mxPoint(x, y + h), new mxPoint(x, y + dy)];
2526 points = [new mxPoint(x, y), new mxPoint(cx, y + dy), new mxPoint(x + w, y),
2527 new mxPoint(x + w, y + h - dy), new mxPoint(cx, y + h),
2528 new mxPoint(x, y + h - dy), new mxPoint(x, y)];
2535 if (next.x < x || next.x > x + w)
2541 p1.x = next.x;
2563 size *= vertex.view.scale;
2566 var x = bounds.x;
2584 points = [new mxPoint(cx, y), new mxPoint(x + w, y + dy), new mxPoint(x + w, y + h - dy),
2585 new mxPoint(cx, y + h), new mxPoint(x, y + h - dy),
2586 new mxPoint(x, y + dy), new mxPoint(cx, y)];
2591 points = [new mxPoint(x + dx, y), new mxPoint(x + w - dx, y), new mxPoint(x + w, cy),
2592 new mxPoint(x + w - dx, y + h), new mxPoint(x + dx, y + h),
2593 new mxPoint(x, cy), new mxPoint(x + dx, y)];
2600 if (next.x < x || next.x > x + w)
2606 p1.x = next.x;
2622 LollipopShape.prototype.paintBackground = function(c, x, y, w, h) argument
2625 c.translate(x, y);
2627 c.ellipse((w - sz) / 2, 0, sz, sz);
2647 RequiresShape.prototype.paintBackground = function(c, x, y, w, h) argument
2651 c.translate(x, y);
2660 c.moveTo((w - sz) / 2 - inset, sz / 2);
2661 c.quadTo((w - sz) / 2 - inset, sz + inset, w / 2, sz + inset);
2676 RequiredInterfaceShape.prototype.paintBackground = function(c, x, y, w, h) argument
2678 c.translate(x, y);
2697 ProvidedRequiredInterfaceShape.prototype.paintBackground = function(c, x, y, w, h) argument
2700 c.translate(x, y);
2702 c.ellipse(0, inset, w - 2 * inset, h - 2 * inset);
2723 ModuleShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) argument
2729 var y0 = Math.min(dy, h - dy);
2730 var y1 = Math.min(y0 + 2 * dy, h - dy);
2773 ComponentShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) argument
2779 var y0 = 0.3 * h - dy / 2;
2780 var y1 = 0.7 * h - dy / 2;
2821 AssociativeEntity.prototype.paintForeground = function(c, x, y, w, h) argument
2828 this.addPoints(c, [new mxPoint(x + hw, y), new mxPoint(x + w, y + hh), new mxPoint(x + hw, y + h),
2829 new mxPoint(x, y + hh)], this.isRounded, arcSize, true);
2844 StateShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
2850 c.ellipse(x + inset, y + inset, w - 2 * inset, h - 2 * inset);
2858 c.ellipse(x, y, w, h);
2890 …return mxUtils.getNumber(this.style, 'width', this.defaultWidth) + Math.max(0, this.strokewidth -
2923 …return mxUtils.getNumber(this.style, 'width', this.defaultWidth) + Math.max(0, this.strokewidth -
2940 ManualInputShape.prototype.redrawPath = function(c, x, y, w, h) argument
2963 InternalStorageShape.prototype.paintForeground = function(c, x, y, w, h) argument
2979 c.moveTo(x, y + dy);
2980 c.lineTo(x + w, y + dy);
2985 c.moveTo(x + dx, y);
2986 c.lineTo(x + dx, y + h);
3003 CornerShape.prototype.redrawPath = function(c, x, y, w, h) argument
3024 CrossbarShape.prototype.redrawPath = function(c, x, y, w, h) argument
3051 TeeShape.prototype.redrawPath = function(c, x, y, w, h) argument
3055 var w2 = Math.abs(w - dx) / 2;
3060 … new mxPoint((w + dx) / 2, h), new mxPoint((w - dx) / 2, h), new mxPoint((w - dx) / 2, dy),
3075 SingleArrowShape.prototype.redrawPath = function(c, x, y, w, h) argument
3079 var at = (h - aw) / 2;
3083 …this.addPoints(c, [new mxPoint(0, at), new mxPoint(w - as, at), new mxPoint(w - as, 0), new mxPoin…
3084 new mxPoint(w - as, h), new mxPoint(w - as, ab), new mxPoint(0, ab)],
3097 DoubleArrowShape.prototype.redrawPath = function(c, x, y, w, h) argument
3101 var at = (h - aw) / 2;
3105 …Points(c, [new mxPoint(0, h / 2), new mxPoint(as, 0), new mxPoint(as, at), new mxPoint(w - as, at),
3106 new mxPoint(w - as, 0), new mxPoint(w, h / 2), new mxPoint(w - as, h),
3107 new mxPoint(w - as, ab), new mxPoint(as, ab), new mxPoint(as, h)],
3122 DataStorageShape.prototype.redrawPath = function(c, x, y, w, h) argument
3130 c.quadTo(w - s * 2, h / 2, w, h);
3132 c.quadTo(s - s * 2, h / 2, s, 0);
3145 OrShape.prototype.redrawPath = function(c, x, y, w, h) argument
3162 XorShape.prototype.redrawPath = function(c, x, y, w, h) argument
3185 LoopLimitShape.prototype.redrawPath = function(c, x, y, w, h) argument
3189 …this.addPoints(c, [new mxPoint(s, 0), new mxPoint(w - s, 0), new mxPoint(w, s * 0.8), new mxPoint(…
3207 OffPageConnectorShape.prototype.redrawPath = function(c, x, y, w, h) argument
3211 …this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, h - s), new mxPoint(w / 2,…
3212 new mxPoint(0, h - s)], this.isRounded, arcSize, true);
3224 TapeDataShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
3229 c.moveTo(x + w / 2, y + h);
3230 c.lineTo(x + w, y + h);
3243 OrEllipseShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
3249 c.moveTo(x, y + h / 2);
3250 c.lineTo(x + w, y + h / 2);
3255 c.moveTo(x + w / 2, y);
3256 c.lineTo(x + w / 2, y + h);
3269 SumEllipseShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
3276 c.moveTo(x + w * s2, y + h * s2);
3277 c.lineTo(x + w * (1 - s2), y + h * (1 - s2));
3282 c.moveTo(x + w * (1 - s2), y + h * s2);
3283 c.lineTo(x + w * s2, y + h * (1 - s2));
3296 SortShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
3302 c.moveTo(x, y + h / 2);
3303 c.lineTo(x + w, y + h / 2);
3316 CollateShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
3319 c.moveTo(x, y);
3320 c.lineTo(x + w, y);
3321 c.lineTo(x + w / 2, y + h / 2);
3326 c.moveTo(x, y + h);
3327 c.lineTo(x + w, y + h);
3328 c.lineTo(x + w / 2, y + h / 2);
3341 DimensionShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
3345 var cy = y + h - al / 2;
3348 c.moveTo(x, y);
3349 c.lineTo(x, y + h);
3350 c.moveTo(x, cy);
3351 c.lineTo(x + al, cy - al / 2);
3352 c.moveTo(x, cy);
3353 c.lineTo(x + al, cy + al / 2);
3354 c.moveTo(x, cy);
3355 c.lineTo(x + w, cy);
3358 c.moveTo(x + w, y);
3359 c.lineTo(x + w, y + h);
3360 c.moveTo(x + w, cy);
3361 c.lineTo(x + w - al, cy - al / 2);
3362 c.moveTo(x + w, cy);
3363 c.lineTo(x + w - al, cy + al / 2);
3376 PartialRectangleShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
3393 c.rect(x, y, w, h);
3399 c.moveTo(x, y);
3403 c.lineTo(x + w, y);
3407 c.moveTo(x + w, y);
3412 c.lineTo(x + w, y + h);
3416 c.moveTo(x + w, y + h);
3421 c.lineTo(x, y + h);
3425 c.moveTo(x, y + h);
3430 c.lineTo(x, y);
3446 LineEllipseShape.prototype.paintVertexShape = function(c, x, y, w, h) argument
3455 c.moveTo(x + w / 2, y);
3456 c.lineTo(x + w / 2, y + h);
3460 c.moveTo(x, y + h / 2);
3461 c.lineTo(x + w, y + h / 2);
3476 DelayShape.prototype.redrawPath = function(c, x, y, w, h) argument
3480 c.lineTo(w - dx, 0);
3482 c.quadTo(w, h, w - dx, h);
3497 CrossShape.prototype.redrawPath = function(c, x, y, w, h) argument
3501 var t = (h - size) / 2;
3503 var l = (w - size) / 2;
3531 DisplayShape.prototype.redrawPath = function(c, x, y, w, h) argument
3534 …var s = Math.min(w - dx, Math.max(0, parseFloat(mxUtils.getValue(this.style, 'size', this.size))) …
3538 c.lineTo(w - dx, 0);
3540 c.quadTo(w, h, w - dx, h);
3649 mxShapeBasicRect2.prototype.paintVertexShape = function(c, x, y, w, h) argument
3651 c.translate(x, y);
3656 mxShapeBasicRect2.prototype.strictDrawShape = function(c, x, y, w, h, os) argument
3709 indent = Math.min(indent, Math.min(w, h) * 0.5 - size);
3722 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
3727 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
3730 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
3734 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
3737 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
3741 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
3744 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
3748 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
3751 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
3782 sc.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
3785 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
3789 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
3792 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
3796 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
3799 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
3803 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
3806 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
3810 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
3818 …sc.paintFolds(c, x, y, w, h, rectStyle, topLeftStyle, topRightStyle, bottomRightStyle, bottomLeftS…
3830 sc.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom);
3831 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
3835 sc.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
3836 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
3844 sc.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom);
3845 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
3846 sc.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
3847 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
3857 sc.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
3858 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
3862 sc.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
3863 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
3871 sc.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
3872 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
3873 sc.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
3874 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
3884 sc.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
3885 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
3886 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
3887 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
3891 sc.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
3892 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
3893 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
3894 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
3902 sc.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
3903 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
3904 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
3905 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
3906 sc.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
3907 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
3908 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
3909 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
3919 sc.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
3920 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
3924 sc.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom);
3925 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
3933 sc.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
3934 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
3935 sc.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom);
3936 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
3946 sc.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom);
3947 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
3951 sc.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
3952 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
3958 sc.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
3959 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
3963 sc.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom);
3964 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
3972 sc.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom);
3973 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
3974 sc.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
3975 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
3980 sc.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
3981 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
3982 sc.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom);
3983 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
3993 sc.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
3994 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
3995 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
3996 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4000 sc.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
4001 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4002 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
4003 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4011 sc.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4012 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4013 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4014 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4015 sc.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
4016 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4017 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
4018 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4028 sc.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4029 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4030 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4031 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4032 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4033 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4037 sc.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
4038 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4039 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
4040 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4041 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
4042 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4050 sc.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4051 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4052 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4053 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4054 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4055 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4056 sc.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left);
4057 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4058 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
4059 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4060 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
4061 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4071 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4072 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4076 sc.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right);
4077 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4085 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4086 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4087 sc.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right);
4088 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4098 sc.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4099 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4100 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4101 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4105 sc.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right);
4106 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4107 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
4108 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4116 sc.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4117 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4118 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4119 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4120 sc.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right);
4121 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4122 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
4123 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4133 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4134 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4138 sc.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right);
4139 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4145 sc.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4146 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4150 sc.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
4151 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4159 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4160 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4161 sc.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right);
4162 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4167 sc.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4168 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4169 sc.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
4170 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4180 sc.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4181 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4182 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4183 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4184 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4185 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4189 sc.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right);
4190 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4191 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
4192 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4193 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
4194 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4202 sc.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4203 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4204 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4205 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4206 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4207 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4208 sc.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right);
4209 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4210 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
4211 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4212 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
4213 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4223 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4224 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4225 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4226 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4230 sc.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom);
4231 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4232 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
4233 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4241 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4242 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4243 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4244 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4245 sc.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom);
4246 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4247 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
4248 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4258 sc.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4259 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4260 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4261 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4262 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4263 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4267 sc.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom);
4268 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4269 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
4270 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4271 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
4272 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4280 sc.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4281 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4282 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4283 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4284 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4285 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4286 sc.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom);
4287 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4288 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
4289 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4290 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
4291 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4301 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4302 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4303 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4304 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4305 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4306 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4310 sc.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
4311 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4312 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
4313 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4314 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
4315 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4323 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4324 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4325 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4326 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4327 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4328 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4329 sc.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
4330 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4331 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
4332 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4333 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
4334 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4344 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4345 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4346 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4347 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4348 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4349 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4350 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4351 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4352 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4357 sc.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
4358 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
4359 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4360 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
4361 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4362 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
4363 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4364 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
4365 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4374 sc.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4375 sc.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left);
4376 sc.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right);
4377 sc.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top);
4378 sc.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom);
4379 sc.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right);
4380 sc.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left);
4381 sc.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom);
4382 sc.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top);
4384 sc.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left);
4385 sc.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom);
4386 sc.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom);
4387 sc.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent);
4388 sc.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right);
4389 sc.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent);
4390 sc.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top);
4391 sc.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent);
4392 sc.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left);
4399 …sc.paintFolds(c, x, y, w, h, rectStyle, topLeftStyle, topRightStyle, bottomRightStyle, bottomLeftS…
4403 mxShapeBasicRect2.prototype.moveNW = function(c, x, y, w, h, rectStyle, topLeftStyle, size, left) argument
4415 mxShapeBasicRect2.prototype.moveNE = function(c, x, y, w, h, rectStyle, topRightStyle, size, top) argument
4423 c.moveTo(w - size, 0);
4427 …mxShapeBasicRect2.prototype.moveSE = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, ri… argument
4435 c.moveTo(w, h - size);
4439 …mxShapeBasicRect2.prototype.moveSW = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bot… argument
4451 mxShapeBasicRect2.prototype.paintNW = function(c, x, y, w, h, rectStyle, topLeftStyle, size, left) argument
4476 …mxShapeBasicRect2.prototype.paintTop = function(c, x, y, w, h, rectStyle, topRightStyle, size, rig… argument
4484 c.lineTo(w - size, 0);
4488 mxShapeBasicRect2.prototype.paintNE = function(c, x, y, w, h, rectStyle, topRightStyle, size, top) argument
4513 …mxShapeBasicRect2.prototype.paintRight = function(c, x, y, w, h, rectStyle, bottomRightStyle, size… argument
4521 c.lineTo(w, h - size);
4525 mxShapeBasicRect2.prototype.paintLeft = function(c, x, y, w, h, rectStyle, topLeftStyle, size, top) argument
4537 …mxShapeBasicRect2.prototype.paintSE = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, r… argument
4553 c.arcTo(size, size, 0, 0, inv, w - size, h);
4558 c.lineTo(w - size, h);
4562 …mxShapeBasicRect2.prototype.paintBottom = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size… argument
4574 …mxShapeBasicRect2.prototype.paintSW = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bo… argument
4590 c.arcTo(size, size, 0, 0, inv, 0, h - size);
4595 c.lineTo(0, h - size);
4599 …mxShapeBasicRect2.prototype.paintNWInner = function(c, x, y, w, h, rectStyle, topLeftStyle, size, … argument
4603 c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, indent, indent * 0.5 + size);
4620 …mxShapeBasicRect2.prototype.paintTopInner = function(c, x, y, w, h, rectStyle, topLeftStyle, size,… argument
4653 …mxShapeBasicRect2.prototype.paintNEInner = function(c, x, y, w, h, rectStyle, topRightStyle, size,… argument
4657 c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, w - size - indent * 0.5, indent);
4661 c.arcTo(size + indent, size + indent, 0, 0, 1, w - size - indent, indent);
4665 c.lineTo(w - size - indent * 0.5, indent);
4669 c.lineTo(w - size - indent, size + indent);
4670 c.lineTo(w - size - indent, indent);
4674 …mxShapeBasicRect2.prototype.paintRightInner = function(c, x, y, w, h, rectStyle, topRightStyle, si… argument
4682 c.lineTo(w - indent, 0);
4690 c.lineTo(w - indent, 0);
4694 c.lineTo(w - indent, indent);
4699 c.lineTo(w - indent, size + indent * 0.5);
4703 c.lineTo(w - indent, size + indent);
4707 …mxShapeBasicRect2.prototype.paintLeftInner = function(c, x, y, w, h, rectStyle, bottomLeftStyle, s… argument
4719 c.lineTo(0, h - indent);
4727 c.lineTo(indent, h - indent);
4732 c.lineTo(indent, h - size - indent * 0.5);
4736 c.lineTo(indent, h - size - indent);
4740 …mxShapeBasicRect2.prototype.paintSEInner = function(c, x, y, w, h, rectStyle, bottomRightStyle, si… argument
4744 c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, w - indent, h - size - indent * 0.5);
4748 c.arcTo(size + indent, size + indent, 0, 0, 1, w - indent, h - size - indent);
4752 c.lineTo(w - indent, h - size - indent * 0.5);
4756 c.lineTo(w - size - indent, h - size - indent);
4757 c.lineTo(w - indent, h - size - indent);
4761 …mxShapeBasicRect2.prototype.paintBottomInner = function(c, x, y, w, h, rectStyle, bottomRightStyle… argument
4769 c.lineTo(w, h - indent);
4773 c.lineTo(w - indent, h);
4777 c.lineTo(w - indent, h - indent);
4782 c.lineTo(w - size - indent * 0.5, h - indent);
4786 c.lineTo(w - size - indent, h - indent);
4790 …mxShapeBasicRect2.prototype.paintSWInner = function(c, x, y, w, h, rectStyle, bottomLeftStyle, siz… argument
4798 c.lineTo(indent, h - indent);
4802 c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, size + indent * 0.5, h - indent);
4806 c.arcTo(size + indent, size + indent, 0, 0, 1, size + indent, h - indent);
4810 c.lineTo(size + indent * 0.5, h - indent);
4814 c.lineTo(indent + size, h - size - indent);
4815 c.lineTo(indent + size, h - indent);
4819 …mxShapeBasicRect2.prototype.moveSWInner = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size… argument
4823 c.moveTo(0, h - indent);
4827 c.moveTo(indent, h - indent);
4832 c.moveTo(indent, h - size - indent * 0.5);
4837 c.moveTo(indent, h - size - indent);
4841 …mxShapeBasicRect2.prototype.lineSWInner = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size… argument
4845 c.lineTo(0, h - indent);
4849 c.lineTo(indent, h - indent);
4854 c.lineTo(indent, h - size - indent * 0.5);
4859 c.lineTo(indent, h - size - indent);
4863 …mxShapeBasicRect2.prototype.moveSEInner = function(c, x, y, w, h, rectStyle, bottomRightStyle, siz… argument
4867 c.moveTo(w - indent, h);
4871 c.moveTo(w - indent, h - indent);
4876 c.moveTo(w - indent, h - size - indent * 0.5);
4881 c.moveTo(w - indent, h - size - indent);
4885 …mxShapeBasicRect2.prototype.lineSEInner = function(c, x, y, w, h, rectStyle, bottomRightStyle, siz… argument
4889 c.lineTo(w - indent, h);
4893 c.lineTo(w - indent, h - indent);
4898 c.lineTo(w - indent, h - size - indent * 0.5);
4903 c.lineTo(w - indent, h - size - indent);
4907 …mxShapeBasicRect2.prototype.moveNEInner = function(c, x, y, w, h, rectStyle, topRightStyle, size, … argument
4915 c.moveTo(w - indent, indent);
4920 c.moveTo(w - indent, size + indent * 0.5);
4925 c.moveTo(w - indent, size + indent);
4929 …mxShapeBasicRect2.prototype.lineNEInner = function(c, x, y, w, h, rectStyle, topRightStyle, size, … argument
4937 c.lineTo(w - indent, indent);
4942 c.lineTo(w - indent, size + indent * 0.5);
4947 c.lineTo(w - indent, size + indent);
4951 …mxShapeBasicRect2.prototype.moveNWInner = function(c, x, y, w, h, rectStyle, topLeftStyle, size, i… argument
4981 …mxShapeBasicRect2.prototype.lineNWInner = function(c, x, y, w, h, rectStyle, topLeftStyle, size, i… argument
5011 …mxShapeBasicRect2.prototype.paintFolds = function(c, x, y, w, h, rectStyle, topLeftStyle, topRight… argument
5024 c.moveTo(w - size, 0);
5025 c.lineTo(w - size, size);
5031 c.moveTo(w - size, h);
5032 c.lineTo(w - size, h - size);
5033 c.lineTo(w, h - size);
5038 c.moveTo(0, h - size);
5039 c.lineTo(size, h - size);
5079 c.setStrokeWidth(c.state.strokeWidth - 2);
5121 c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2);
5122 c.lineTo(pe.x + ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 - nx / 2);
5132 var px = pe.x + nx / 2;
5135 pe.x -= nx;
5136 pe.y -= ny;
5141 c.moveTo(px - nx / 2 - ny / 2, py - ny / 2 + nx / 2);
5142 c.lineTo(px - nx / 2 + ny / 2, py - ny / 2 - nx / 2);
5143 c.lineTo(px + ny / 2 - 3 * nx / 2, py - 3 * ny / 2 - nx / 2);
5144 c.lineTo(px - ny / 2 - 3 * nx / 2, py - 3 * ny / 2 + nx / 2);
5167 c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2);
5168 c.lineTo(pe.x + ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 - nx / 2);
5169 c.moveTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2);
5170 c.lineTo(pe.x - ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 + nx / 2);
5182 pe.x -= unitX * (2 * size + sw);
5183 pe.y -= unitY * (2 * size + sw);
5190 c.ellipse(pt.x - unitX - size, pt.y - unitY - size, 2 * size, 2 * size);
5216 c.moveTo(pt.x - unitX * (sw), pt.y - unitY * (sw));
5217 c.lineTo(pt.x - 2 * nx + unitX * (sw), pt.y - 2 * ny + unitY * (sw));
5218 c.moveTo(pt.x - nx - ny + unitY * sw, pt.y - ny + nx - unitX * sw);
5219 c.lineTo(pt.x + ny - nx - unitY * sw, pt.y - ny - nx + unitX * sw);
5231 pe.x -= nx;
5232 pe.y -= ny;
5237 c.moveTo(pt.x - ny, pt.y + nx);
5238 c.quadTo(pe.x - ny, pe.y + nx, pe.x, pe.y);
5239 c.quadTo(pe.x + ny, pe.y - nx, pt.x + ny, pt.y - nx);
5246 // The angle of the forward facing arrow sides against the x axis is
5256 pt.x -= endOffsetX;
5257 pt.y -= endOffsetY;
5260 pe.x += -unitX * f - endOffsetX;
5261 pe.y += -unitY * f - endOffsetY;
5266 c.moveTo(pt.x, pt.y);
5270 c.lineTo(pt.x - unitX - unitY / 2, pt.y - unitY + unitX / 2);
5274 c.lineTo(pt.x + unitY / 2 - unitX, pt.y - unitY - unitX / 2);
5277 c.lineTo(pt.x - unitX, pt.y - unitY);
5305 c.moveTo(pt.x, pt.y);
5309 c.lineTo(pt.x - unitX - unitY / widthFactor, pt.y - unitY + unitX / widthFactor);
5313 c.lineTo(pt.x + unitY / widthFactor - unitX, pt.y - unitY - unitX / widthFactor);
5325 // The angle of the forward facing arrow sides against the x axis is
5335 pt.x -= endOffsetX;
5336 pt.y -= endOffsetY;
5339 pe.x += -unitX * f - endOffsetX;
5340 pe.y += -unitY * f - endOffsetY;
5345 canvas.moveTo(pt.x, pt.y);
5346 canvas.lineTo(pt.x - unitX - unitY / widthFactor, pt.y - unitY + unitX / widthFactor);
5350 canvas.lineTo(pt.x - unitX * 3 / 4, pt.y - unitY * 3 / 4);
5353 canvas.lineTo(pt.x + unitY / widthFactor - unitX, pt.y - unitY - unitX / widthFactor);
5401 state.view.invalidate(this.state.cell);
5402 state.view.validate();
5419 … return new mxPoint(bounds.x + bounds.width - Math.min(bounds.width / 2, arcSize), bounds.y + tmp);
5426 …return new mxPoint(bounds.x + bounds.width - Math.min(Math.max(bounds.width / 2, bounds.height / 2…
5434 (bounds.x + bounds.width - pt.x) * 2)));
5438 var f = Math.min(50, Math.max(0, (bounds.width - pt.x + bounds.x) * 100 /
5471 …return new mxPoint(bounds.x + Math.min(bounds.width * 0.75 * max, size * ((fixed) ? 0.75 : bounds.…
5475 …var size = (fixed) ? (pt.x - bounds.x) : Math.max(0, Math.min(max, (pt.x - bounds.x) / bounds.widt…
5500 …return new mxPoint(bounds.x + Math.max(0, Math.min(bounds.width * 0.5, size * ((fixed) ? 1 : bound…
5504 …var size = (fixed) ? (pt.x - bounds.x) : Math.max(0, Math.min(max, (pt.x - bounds.x) / bounds.widt…
5527 return new mxPoint(bounds.x + size, bounds.y + size);
5530 …this.state.style['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, pt.x - bounds.x),
5531 Math.min(bounds.height, pt.y - bounds.y))) / factor);
5551 return new mxPoint(bounds.x, bounds.y + size);
5554 this.state.style['size'] = Math.max(0, pt.y - bounds.y);
5568 … return new mxPoint(bounds.x + (1 - as) * bounds.width, bounds.y + (1 - aw) * bounds.height / 2);
5571 …rrowWidth'] = Math.max(0, Math.min(1, Math.abs(bounds.y + bounds.height / 2 - pt.y) / bounds.heigh…
5572 …this.state.style['arrowSize'] = Math.max(0, Math.min(maxSize, (bounds.x + bounds.width - pt.x) / (…
5582 var n = pts.length - 1;
5584 var tr = state.view.translate;
5585 var s = state.view.scale;
5588 var p1 = (start) ? pts[1] : pts[n - 1];
5589 var dx = (start) ? p1.x - p0.x : p1.x - p0.x;
5590 var dy = (start) ? p1.y - p0.y : p1.y - p0.y;
5596 return new mxPoint(pt.x / s - tr.x, pt.y / s - tr.y);
5600 var n = pts.length - 1;
5602 var tr = state.view.translate;
5603 var s = state.view.scale;
5606 var p1 = (start) ? pts[1] : pts[n - 1];
5607 var dx = (start) ? p1.x - p0.x : p1.x - p0.x;
5608 var dy = (start) ? p1.y - p0.y : p1.y - p0.y;
5611 pt.x = (pt.x + tr.x) * s;
5622 var w = state.shape.getEdgeWidth() * state.view.scale + spacing;
5624 return new mxPoint(p0.x + nx * dist / 4 + ny * w / 2, p0.y + ny * dist / 4 - nx * w / 2);
5627 var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y));
5628 state.style['width'] = Math.round(w * 2) / state.view.scale - spacing;
5634 …return Math.abs((y2 - y1) * x0 - (x2 - x1) * y0 + x2 * y1 - y2 * x1) / Math.sqrt((y2 - y1) * (y2 -
5647 var tol = state.view.graph.gridSize / state.view.scale;
5654 var w = (state.shape.getEdgeWidth() - state.shape.strokewidth) * state.view.scale;
5655 …umber(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale;
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);
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);
5664 …le[mxConstants.STYLE_STARTSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / stat…
5665 state.style['width'] = Math.round(w * 2) / state.view.scale;
5676 …if (Math.abs(parseFloat(state.style[mxConstants.STYLE_STARTSIZE]) - parseFloat(state.style[mxConst…
5685 var w = (state.shape.getStartArrowWidth() - state.shape.strokewidth) * state.view.scale;
5686 …umber(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale;
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);
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);
5695 …le[mxConstants.STYLE_STARTSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / stat…
5696 …te.style['startWidth'] = Math.max(0, Math.round(w * 2) - state.shape.getEdgeWidth()) / state.view.…
5708 …if (Math.abs(parseFloat(state.style[mxConstants.STYLE_STARTSIZE]) - parseFloat(state.style[mxConst…
5713 … if (Math.abs(parseFloat(state.style['startWidth']) - parseFloat(state.style['endWidth'])) < tol)
5725 var w = (state.shape.getEdgeWidth() - state.shape.strokewidth) * state.view.scale;
5726 …tNumber(state.style, mxConstants.STYLE_ENDSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale;
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);
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);
5735 …tyle[mxConstants.STYLE_ENDSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / stat…
5736 state.style['width'] = Math.round(w * 2) / state.view.scale;
5747 …if (Math.abs(parseFloat(state.style[mxConstants.STYLE_ENDSIZE]) - parseFloat(state.style[mxConstan…
5756 var w = (state.shape.getEndArrowWidth() - state.shape.strokewidth) * state.view.scale;
5757 …tNumber(state.style, mxConstants.STYLE_ENDSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale;
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);
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);
5766 …tyle[mxConstants.STYLE_ENDSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / stat…
5767 …tate.style['endWidth'] = Math.max(0, Math.round(w * 2) - state.shape.getEdgeWidth()) / state.view.…
5779 …if (Math.abs(parseFloat(state.style[mxConstants.STYLE_ENDSIZE]) - parseFloat(state.style[mxConstan…
5784 … if (Math.abs(parseFloat(state.style['endWidth']) - parseFloat(state.style['startWidth'])) < tol)
5815 return new mxPoint(bounds.x + Math.max(0, Math.min(bounds.width, size)), bounds.getCenterY());
5821 Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))) :
5822 Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x)));
5827 var graph = state.view.graph;
5869 this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
5879 return new mxPoint(bounds.x + w0, bounds.y + h0);
5882 …width'] = Math.round(Math.max(UmlFrame.prototype.corner, Math.min(bounds.width, pt.x - bounds.x)));
5883 … = Math.round(Math.max(UmlFrame.prototype.corner * 1.5, Math.min(bounds.height, pt.y - bounds.y)));
5896 …return (fixed) ? new mxPoint(bounds.x + size, bounds.y + bounds.height / 4) : new mxPoint(bounds.x
5900 … Math.max(0, Math.min(bounds.width * 0.5, (pt.x - bounds.x))) : Math.max(0, Math.min(0.5, (pt.x -
5918 return new mxPoint(bounds.getCenterX() - size, bounds.getCenterY() - size);
5922 …this.state.style['size'] = Math.max(0, Math.min(1, Math.min((Math.max(0, bounds.getCenterY() - pt.…
5923 (Math.max(0, bounds.getCenterX() - pt.x) / m) * 2)));
5933 return new mxPoint(bounds.x + bounds.width - size, bounds.y + size);
5936 …e['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, bounds.x + bounds.width - pt.x),
5937 Math.min(bounds.height, pt.y - bounds.y))));
5947 return new mxPoint(bounds.x + bounds.width - size, bounds.y + size);
5950 …e['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, bounds.x + bounds.width - pt.x),
5951 Math.min(bounds.height, pt.y - bounds.y))));
5960 return new mxPoint(bounds.x + bounds.width / 4, bounds.y + size * 3 / 4);
5963 …this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, (pt.y - bounds.y) * 4 / …
5980 …return new mxPoint(bounds.x + bounds.width - size * ((fixed) ? 1 : bounds.width), bounds.getCenter…
5984 …0, Math.min(bounds.width, (bounds.x + bounds.width - pt.x))) : Math.max(0, Math.min(1, (bounds.x +…
5997 return new mxPoint(bounds.x + position * bounds.width, bounds.y + bounds.height - size);
6001 ….style['size'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y)));
6002 …this.state.style['position'] = Math.round(Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
6007 return new mxPoint(bounds.x + position2 * bounds.width, bounds.y + bounds.height);
6010 …this.state.style['position2'] = Math.round(Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.widt…
6017 …return new mxPoint(bounds.x + Math.min(bounds.width, position * bounds.width + base), bounds.y + b…
6022 …this.state.style['base'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x - positio…
6039 return new mxPoint(bounds.x + dx, bounds.y + dy);
6042 this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x)));
6043 this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
6060 return new mxPoint(bounds.x + dx / 2, bounds.y + dy * 2);
6063 …this.state.style['jettyWidth'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x)) *…
6064 …this.state.style['jettyHeight'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))…
6076 return new mxPoint(bounds.x + dx, bounds.y + dy);
6079 this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x)));
6080 this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
6090 return new mxPoint(bounds.x + (bounds.width + dx) / 2, bounds.y + dy);
6093 …this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width / 2, (pt.x - bounds.x - boun…
6094 this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
6108 tw = bounds.width - tw;
6111 return new mxPoint(bounds.x + tw, bounds.y + th);
6114 var tw = Math.max(0, Math.min(bounds.width, pt.x - bounds.x));
6118 tw = bounds.width - tw;
6122 … this.state.style['tabHeight'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
6131 return new mxPoint(bounds.x + 3 * bounds.width / 4, bounds.y + (1 - size) * bounds.height);
6134 …this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.heig…
6146 this.state.style['size'] = Math.max(0, Math.min(1, ((pt.y - bounds.y) / bounds.height) * 2));
6156 return new mxPoint(bounds.x, bounds.y + isoH);
6159 this.state.style['isoAngle'] = Math.max(0, (pt.y - bounds.y) * 50 / bounds.height);
6170 return new mxPoint(bounds.getCenterX(), bounds.y + (1 - size) * bounds.height);
6173 …this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.heig…
6182 return new mxPoint(bounds.x + size, bounds.y + size);
6185 …ath.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100;
6192 return new mxPoint(bounds.x + bounds.width * 0.75, bounds.y + dx2 * bounds.height / 200);
6195 …this.state.style['indent'] = Math.round(100 * Math.max(0, Math.min(100, 200 * (pt.y - bounds.y) / …
6234 else if (this.state.view.graph.isSwimlane(this.state.cell))
6297 var alpha1 = mxUtils.toRadians(-30);
6304 var alpha2 = mxUtils.toRadians(-150);
6313 var view = state.view;
6317 var pe = pts[pts.length-1];
6321 pt = view.transformControlPoint(state, pt);
6340 var a1 = isoHVector.x;
6343 var b1 = isoVVector.x;
6352 function isoLineTo(x, y, ignoreFirst) argument
6354 var c1 = x - last.x;
6355 var c2 = y - last.y;
6358 var h = (b2 * c1 - b1 * c2) / (a1 * b2 - a2 * b1);
6359 var v = (a2 * c1 - a1 * c2) / (a2 * b1 - a1 * b2);
6365 last = new mxPoint(last.x + a1 * h, last.y + a2 * h);
6369 last = new mxPoint(last.x + b1 * v, last.y + b2 * v);
6376 last = new mxPoint(last.x + b1 * v, last.y + b2 * v);
6380 last = new mxPoint(last.x + a1 * h, last.y + a2 * h);
6387 pt = new mxPoint(p0.x + (pe.x - p0.x) / 2, p0.y + (pe.y - p0.y) / 2);
6390 isoLineTo(pt.x, pt.y, true);
6391 isoLineTo(pe.x, pe.y, false);
6418 var tan30Dx = (0.5 - tan30) / 2;
6420 var dx = (w - m) / 2;
6421 var dy = (h - m) / 2;
6427 …constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + 0.5 * m, dy + (1 - tan…
6442 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - isoH));
6444 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - isoH));
6465 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - s) * 0.5));
6466 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - s));
6468 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - s));
6469 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - s) * 0.5));
6511 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - s) * 0.5, 0));
6512 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - s, 0));
6513 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - s * 0.5, s * 0.5));
6559 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - s) * 0.5, 0));
6560 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - s, 0));
6561 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - s * 0.5, s * 0.5));
6567 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, s * 0.5, h - s * 0.5));
6568 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - s));
6569 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - s) * 0.5));
6586 constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, 0, -s));
6587 constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 0, -s));
6589 …constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, s + (h * 0.5 - s) * 0.5)…
6590 …constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, s + (h * 0.5 - s) * 0.5)…
6591 …constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, h - s - (h * 0.5 - s) * …
6592 …constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - s - (h * 0.5 - s) * …
6596 constr.push(new mxConnectionConstraint(new mxPoint(0.855, 1), false, null, 0, -s * 0.29));
6597 constr.push(new mxConnectionConstraint(new mxPoint(0.145, 1), false, null, 0, -s * 0.29));
6620 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, 0));
6621 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0));
6622 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy));
6623 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, dy));
6627 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.25 + dy));
6628 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5 + dy));
6629 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.75 + dy));
6632 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.25 + dy));
6633 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5 + dy));
6634 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.75 + dy));
6656 …var s = Math.min(w - dx, Math.max(0, parseFloat(mxUtils.getValue(this.style, 'size', this.size))) …
6660 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (s + w - dx) * 0.5, 0));
6661 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0));
6663 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h));
6664 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (s + w - dx) * 0.5, h));
6687 new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, Math.min(h - 0.5 * dy, 1.5 * dy)),
6688 new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, Math.min(h - 0.5 * dy, 3.5 * dy))];
6835 var w2 = Math.abs(w - dx) / 2;
6847 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, h));
6848 …constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, (h + dy) * …
6849 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, dy));
6850 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25 - dx * 0.25, dy));
6894 var at = (h - aw) / 2;
6899 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - as) * 0.5, at));
6900 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - as, 0));
6902 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - as, h));
6903 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - as) * 0.5, h - at));
6904 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - at));
6914 var at = (h - aw) / 2;
6920 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - as, 0));
6922 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - as, h));
6923 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h - at));
6934 var t = (h - size) / 2;
6936 var l = (w - size) / 2;
6945 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, l, h - t * 0.5));
6949 constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r, h - t * 0.5));