Lines Matching refs:bounds

11 function mxShapeBasicCross(bounds, fill, stroke, strokewidth)  argument
14 this.bounds = bounds;
62 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
64 …var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this…
66 return new mxPoint(bounds.x + bounds.width / 2 + dx, bounds.y + bounds.height / 2 - dx);
67 }, function(bounds, pt)
69 …'dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x…
81 function mxShapeBasicRectCallout(bounds, fill, stroke, strokewidth) argument
84 this.bounds = bounds;
142 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
144 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
145 …var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', t…
147 return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy);
148 }, function(bounds, pt)
151 …this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))…
152 …this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height -…
184 function mxShapeBasicRoundRectCallout(bounds, fill, stroke, strokewidth) argument
187 this.bounds = bounds;
251 return [Graph.createHandle(state, ['dx', 'dy'], function(bounds) argument
253 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
254 …var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', t…
256 return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy);
257 }, function(bounds, pt) argument
260 …this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))…
261 …this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height -…
262 }), Graph.createHandle(state, ['size'], function(bounds) argument
264 …var size = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'size'…
266 return new mxPoint(bounds.x + bounds.width - size, bounds.y + 10);
267 }, function(bounds, pt) argument
270 …ize'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, (bounds.height - dy) / 2, bounds.x…
317 function mxShapeBasicWave(bounds, fill, stroke, strokewidth) argument
320 this.bounds = bounds;
369 var handles = [Graph.createHandle(state, ['dy'], function(bounds)
373 return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy * bounds.height);
374 }, function(bounds, pt)
376 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.heigh…
414 function mxShapeBasicOctagon(bounds, fill, stroke, strokewidth) argument
417 this.bounds = bounds;
467 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
469 …var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this…
471 return new mxPoint(bounds.x + dx, bounds.y + dx);
472 }, function(bounds, pt)
474 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bou…
505 function mxShapeBasicIsoCube(bounds, fill, stroke, strokewidth) argument
508 this.bounds = bounds;
565 var handles = [Graph.createHandle(state, ['isoAngle'], function(bounds)
568 var isoH = Math.min(bounds.width * Math.tan(isoAngle), bounds.height * 0.5);
570 return new mxPoint(bounds.x, bounds.y + isoH);
571 }, function(bounds, pt)
573 …this.state.style['isoAngle'] = Math.round(100 * Math.max(0, Math.min(100, pt.y - bounds.y))) / 100;
603 function mxShapeBasicTriangleAcute(bounds, fill, stroke, strokewidth) argument
606 this.bounds = bounds;
649 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
653 return new mxPoint(bounds.x + dx * bounds.width, bounds.y + 10);
654 }, function(bounds, pt)
656 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
683 function mxShapeBasicTriangleObtuse(bounds, fill, stroke, strokewidth) argument
686 this.bounds = bounds;
729 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
733 return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height - 10);
734 }, function(bounds, pt)
736 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
763 function mxShapeBasicDrop(bounds, fill, stroke, strokewidth) argument
766 this.bounds = bounds;
818 function mxShapeBasicCone2(bounds, fill, stroke, strokewidth) argument
821 this.bounds = bounds;
880 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
884 return new mxPoint(bounds.x + dx * bounds.width, bounds.y + 10);
885 }, function(bounds, pt)
887 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
890 var handle2 = Graph.createHandle(state, ['dy'], function(bounds) argument
894 return new mxPoint(bounds.x + 10, bounds.y + dy * bounds.height);
895 }, function(bounds, pt) argument
897 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.heigh…
926 function mxShapeBasicPyramid(bounds, fill, stroke, strokewidth) argument
929 this.bounds = bounds;
989 var handles = [Graph.createHandle(state, ['dx1'], function(bounds)
993 return new mxPoint(bounds.x + dx1 * bounds.width, bounds.y + 10);
994 }, function(bounds, pt)
996 …this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.widt…
999 var handle2 = Graph.createHandle(state, ['dx2'], function(bounds) argument
1003 return new mxPoint(bounds.x + dx2 * bounds.width, bounds.y + bounds.height - 10);
1004 }, function(bounds, pt) argument
1006 …this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.widt…
1011 var handle3 = Graph.createHandle(state, ['dy1'], function(bounds) argument
1015 return new mxPoint(bounds.x + 10, bounds.y + dy1 * bounds.height);
1016 }, function(bounds, pt) argument
1018 …this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.heig…
1023 var handle4 = Graph.createHandle(state, ['dy2'], function(bounds) argument
1027 return new mxPoint(bounds.x + bounds.width - 10, bounds.y + dy2 * bounds.height);
1028 }, function(bounds, pt) argument
1030 …this.state.style['dy2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.heig…
1064 function mxShapeBasic4PointStar2(bounds, fill, stroke, strokewidth) argument
1067 this.bounds = bounds;
1115 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1119 return new mxPoint(bounds.x + dx * bounds.width / 2, bounds.y + dx * bounds.height / 2);
1120 }, function(bounds, pt)
1122 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, 2 * (pt.x - bounds.x) / bounds.w…
1151 function mxShapeBasicDiagSnipRect(bounds, fill, stroke, strokewidth) argument
1154 this.bounds = bounds;
1202 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1204 …var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this…
1206 return new mxPoint(bounds.x + dx, bounds.y + dx);
1207 }, function(bounds, pt)
1209 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bou…
1240 function mxShapeBasicDiagRoundRect(bounds, fill, stroke, strokewidth) argument
1243 this.bounds = bounds;
1292 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1294 …var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this…
1296 return new mxPoint(bounds.x + dx, bounds.y + dx);
1297 }, function(bounds, pt)
1299 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bou…
1325 function mxShapeBasicCornerRoundRect(bounds, fill, stroke, strokewidth) argument
1328 this.bounds = bounds;
1376 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1378 …var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this…
1380 return new mxPoint(bounds.x + dx, bounds.y + dx);
1381 }, function(bounds, pt)
1383 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bou…
1410 function mxShapeBasicPlaque(bounds, fill, stroke, strokewidth) argument
1413 this.bounds = bounds;
1463 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1465 …var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this…
1467 return new mxPoint(bounds.x + dx * 1.41, bounds.y + dx * 1.41);
1468 }, function(bounds, pt)
1470 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bou…
1494 function mxShapeBasicFrame(bounds, fill, stroke, strokewidth) argument
1497 this.bounds = bounds;
1548 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1550 …var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this…
1552 return new mxPoint(bounds.x + dx, bounds.y + dx);
1553 }, function(bounds, pt)
1555 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bou…
1609 function mxShapeBasicPlaqueFrame(bounds, fill, stroke, strokewidth) argument
1612 this.bounds = bounds;
1673 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1675 …var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this…
1677 return new mxPoint(bounds.x + dx, bounds.y + dx);
1678 }, function(bounds, pt)
1680 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bou…
1710 function mxShapeBasicRoundedFrame(bounds, fill, stroke, strokewidth) argument
1713 this.bounds = bounds;
1775 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1777 …var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this…
1779 return new mxPoint(bounds.x + dx, bounds.y + dx);
1780 }, function(bounds, pt)
1782 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bou…
1812 function mxShapeBasicFrameCorner(bounds, fill, stroke, strokewidth) argument
1815 this.bounds = bounds;
1863 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1865 …var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this…
1867 return new mxPoint(bounds.x + dx, bounds.y + dx);
1868 }, function(bounds, pt)
1870 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bou…
1903 function mxShapeBasicDiagStripe(bounds, fill, stroke, strokewidth) argument
1906 this.bounds = bounds;
1952 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
1954 …var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx'…
1956 return new mxPoint(bounds.x + dx, bounds.y + bounds.height);
1957 }, function(bounds, pt)
1959 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bou…
1989 function mxShapeBasicDonut(bounds, fill, stroke, strokewidth) argument
1992 this.bounds = bounds;
2045 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
2047 …var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this…
2049 return new mxPoint(bounds.x + dx, bounds.y + bounds.height / 2);
2050 }, function(bounds, pt)
2052 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bou…
2064 function mxShapeBasicLayeredRect(bounds, fill, stroke, strokewidth) argument
2067 this.bounds = bounds;
2129 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
2131 …var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this…
2133 return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height - dx);
2134 }, function(bounds, pt)
2136 …'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, - pt.x + bounds.wi…
2178 function mxShapeBasicButton(bounds, fill, stroke, strokewidth) argument
2181 this.bounds = bounds;
2272 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
2274 …var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this…
2276 return new mxPoint(bounds.x + dx, bounds.y + dx);
2277 }, function(bounds, pt)
2279 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bou…
2291 function mxShapeBasicShadedButton(bounds, fill, stroke, strokewidth) argument
2294 this.bounds = bounds;
2382 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
2384 …var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this…
2386 return new mxPoint(bounds.x + dx, bounds.y + dx);
2387 }, function(bounds, pt)
2389 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bou…
2401 function mxShapeBasicPie(bounds, fill, stroke, strokewidth) argument
2404 this.bounds = bounds;
2493 var handles = [Graph.createHandle(state, ['startAngle'], function(bounds)
2497 …mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + boun…
2498 }, function(bounds, pt)
2500 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2501 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
2514 var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) argument
2518 …w mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + boun…
2519 }, function(bounds, pt) argument
2521 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2522 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
2545 function mxShapeBasicArc(bounds, fill, stroke, strokewidth) argument
2548 this.bounds = bounds;
2635 var handles = [Graph.createHandle(state, ['startAngle'], function(bounds)
2639 …mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + boun…
2640 }, function(bounds, pt)
2642 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2643 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
2656 var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) argument
2660 …w mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + boun…
2661 }, function(bounds, pt) argument
2663 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2664 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
2687 function mxShapeBasicPartConcEllipse(bounds, fill, stroke, strokewidth) argument
2690 this.bounds = bounds;
2772 var handles = [Graph.createHandle(state, ['startAngle'], function(bounds)
2776 …mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + boun…
2777 }, function(bounds, pt)
2779 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2780 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
2793 var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) argument
2797 …w mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + boun…
2798 }, function(bounds, pt) argument
2800 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2801 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
2815 var handle3 = Graph.createHandle(state, ['arcWidth'], function(bounds) argument
2819 return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5);
2820 }, function(bounds, pt) argument
2822 …h'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y)…
2836 function mxShapeBasicNumEntryVert(bounds, fill, stroke, strokewidth) argument
2839 this.bounds = bounds;
2888 var handles = [Graph.createHandle(state, ['dy'], function(bounds)
2890 …var dy = Math.max(0, Math.min(bounds.width, bounds.width, parseFloat(mxUtils.getValue(this.state.s…
2892 return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy);
2893 }, function(bounds, pt)
2895 …te.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.width, pt.y - bounds.…
2907 function mxShapeBasicBendingArch(bounds, fill, stroke, strokewidth) argument
2910 this.bounds = bounds;
2987 var handles = [Graph.createHandle(state, ['startAngle'], function(bounds)
2991 …mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + boun…
2992 }, function(bounds, pt)
2994 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2995 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
3008 var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) argument
3012 …w mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + boun…
3013 }, function(bounds, pt) argument
3015 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
3016 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
3030 var handle3 = Graph.createHandle(state, ['arcWidth'], function(bounds) argument
3034 return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5);
3035 }, function(bounds, pt) argument
3037 …h'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y)…
3051 function mxShapeBasicThreeCornerRoundRect(bounds, fill, stroke, strokewidth) argument
3054 this.bounds = bounds;
3104 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
3106 …var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this…
3108 return new mxPoint(bounds.x + dx, bounds.y + dx);
3109 }, function(bounds, pt)
3111 …tyle['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bou…
3136 function mxShapeBasicPolygon(bounds, fill, stroke, strokewidth) argument
3139 this.bounds = bounds;
3212 handles.push(Graph.createHandle(state, ['polyCoords'], function(bounds) argument
3214 … return new mxPoint(bounds.x + c[index][0] * bounds.width, bounds.y + c[index][1] * bounds.height);
3215 }, function(bounds, pt) argument
3217 … var x = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100;
3218 … var y = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100;
3241 function mxShapeBasicPatternFillRect(bounds, fill, stroke, strokewidth) argument
3244 this.bounds = bounds;