Lines Matching refs:bounds

11 function mxShapeInfographicNumEntryVert(bounds, fill, stroke, strokewidth)  argument
14 this.bounds = bounds;
65 var handles = [Graph.createHandle(state, ['dy'], function(bounds)
67 …var dy = Math.max(0, Math.min(bounds.width, bounds.width, parseFloat(mxUtils.getValue(this.state.s…
69 return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy);
70 }, function(bounds, pt)
72 …te.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.width, pt.y - bounds.…
103 function mxShapeInfographicBendingArch(bounds, fill, stroke, strokewidth) argument
106 this.bounds = bounds;
189 var handles = [Graph.createHandle(state, ['startAngle'], function(bounds)
193 …mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + boun…
194 }, function(bounds, pt)
196 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
197 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
210 var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) argument
214 …w mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + boun…
215 }, function(bounds, pt) argument
217 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
218 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
232 var handle3 = Graph.createHandle(state, ['arcWidth'], function(bounds) argument
236 return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5);
237 }, function(bounds, pt) argument
239 …h'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y)…
253 function mxShapeInfographicParallelogram(bounds, fill, stroke, strokewidth) argument
256 this.bounds = bounds;
298 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
300 …var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx'…
302 return new mxPoint(bounds.x + dx, bounds.y + bounds.height / 2);
303 }, function(bounds, pt)
305 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, pt.x - bounds.x))…
335 function mxShapeInfographicRibbonRolled(bounds, fill, stroke, strokewidth) argument
338 this.bounds = bounds;
414 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
416 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
417 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
419 return new mxPoint(bounds.x + dx, bounds.y + dy);
420 }, function(bounds, pt)
422 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / …
423 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y)…
458 function mxShapeInfographicRibbonDoubleFolded(bounds, fill, stroke, strokewidth) argument
461 this.bounds = bounds;
537 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
539 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
540 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
542 return new mxPoint(bounds.x + dx, bounds.y + dy);
543 }, function(bounds, pt)
545 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / …
546 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y)…
580 function mxShapeInfographicRibbonFrontFolded(bounds, fill, stroke, strokewidth) argument
583 this.bounds = bounds;
656 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
658 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
659 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
661 return new mxPoint(bounds.x + dx, bounds.y + dy);
662 }, function(bounds, pt)
664 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / …
665 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y)…
668 var handle2 = Graph.createHandle(state, ['notch'], function(bounds) argument
670 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
671 …var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notc…
673 return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5);
674 }, function(bounds, pt) argument
676 …te.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x -…
713 function mxShapeInfographicRibbonBackFolded(bounds, fill, stroke, strokewidth) argument
716 this.bounds = bounds;
788 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
790 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
791 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
793 return new mxPoint(bounds.x + dx, bounds.y + dy);
794 }, function(bounds, pt)
796 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / …
797 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y)…
800 var handle2 = Graph.createHandle(state, ['notch'], function(bounds) argument
802 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
803 …var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notc…
805 return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5);
806 }, function(bounds, pt) argument
808 …te.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x -…
845 function mxShapeInfographicBanner(bounds, fill, stroke, strokewidth) argument
848 this.bounds = bounds;
942 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
944 …var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx'…
945 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
947 return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy);
948 }, function(bounds, pt)
950 ….state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, bounds.x + bounds.wid…
951 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y)…
954 var handle2 = Graph.createHandle(state, ['notch'], function(bounds) argument
956 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
957 …var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx'…
960 return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5);
961 }, function(bounds, pt) argument
963 …te.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x -…
1005 function mxShapeInfographicCircularCallout(bounds, fill, stroke, strokewidth) argument
1008 this.bounds = bounds;
1060 var handles = [Graph.createHandle(state, ['dy'], function(bounds)
1062 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
1064 return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + dy);
1065 }, function(bounds, pt)
1067 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y)…
1098 function mxShapeInfographicShadedTriangle(bounds, fill, stroke, strokewidth) argument
1101 this.bounds = bounds;
1181 function mxShapeInfographicShadedPyramid(bounds, fill, stroke, strokewidth) argument
1184 this.bounds = bounds;
1270 function mxShapeInfographicPyramidStep(bounds, fill, stroke, strokewidth) argument
1273 this.bounds = bounds;
1370 function mxShapeInfographicCylinder(bounds, fill, stroke, strokewidth) argument
1373 this.bounds = bounds;
1458 function mxShapeInfographicCircularCallout2(bounds, fill, stroke, strokewidth) argument
1461 this.bounds = bounds;
1580 function mxShapeInfographicBannerSingleFold(bounds, fill, stroke, strokewidth) argument
1583 this.bounds = bounds;
1679 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
1681 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
1682 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
1684 return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy);
1685 }, function(bounds, pt)
1687 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.x + bounds.wid…
1688 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y)…
1691 var handle2 = Graph.createHandle(state, ['notch'], function(bounds) argument
1693 …var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy…
1694 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
1697 return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5);
1698 }, function(bounds, pt) argument
1700 …te.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x -…
1705 var handle3 = Graph.createHandle(state, ['dx2'], function(bounds) argument
1707 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
1708 …var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', t…
1709 …var dx2 = Math.max(0, Math.min(bounds.width - dx, parseFloat(mxUtils.getValue(this.state.style, 'd…
1711 return new mxPoint(bounds.x + dx2, bounds.y + (bounds.height - dy) * 0.5);
1712 }, function(bounds, pt) argument
1714 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
1715 …var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', t…
1717 …te.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - dx - 2 * dy, pt.x - bounds.…
1768 function mxShapeInfographicShadedCube(bounds, fill, stroke, strokewidth) argument
1771 this.bounds = bounds;
1837 var handles = [Graph.createHandle(state, ['isoAngle'], function(bounds)
1840 var isoH = Math.min(bounds.width * Math.tan(isoAngle), bounds.height * 0.5);
1842 return new mxPoint(bounds.x, bounds.y + isoH);
1843 }, function(bounds, pt)
1845 …this.state.style['isoAngle'] = Math.round(100 * Math.max(0, Math.min(100, pt.y - bounds.y))) / 100;
1884 function mxShapeInfographicPartConcEllipse(bounds, fill, stroke, strokewidth) argument
1887 this.bounds = bounds;
2010 var handles = [Graph.createHandle(state, ['startAngle'], function(bounds)
2014 …mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + boun…
2015 }, function(bounds, pt)
2017 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2018 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
2031 var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) argument
2035 …w mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + boun…
2036 }, function(bounds, pt) argument
2038 …leX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.w…
2039 …eY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.…
2053 var handle3 = Graph.createHandle(state, ['arcWidth'], function(bounds) argument
2057 return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5);
2058 }, function(bounds, pt) argument
2060 …h'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y)…
2090 function mxShapeInfographicBannerHalfFold(bounds, fill, stroke, strokewidth) argument
2093 this.bounds = bounds;
2173 var handles = [Graph.createHandle(state, ['dx'], function(bounds)
2175 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
2177 return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dx);
2178 }, function(bounds, pt)
2180 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.x + bounds.wid…
2183 var handle2 = Graph.createHandle(state, ['notch'], function(bounds) argument
2185 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
2186 …var notch = Math.max(0, Math.min(bounds.height - dx, parseFloat(mxUtils.getValue(this.state.style,…
2188 return new mxPoint(bounds.x + bounds.width - dx * 0.5, bounds.y + bounds.height - notch);
2189 }, function(bounds, pt) argument
2191 …e.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.height, (bounds.height + bounds.y …
2196 var handle3 = Graph.createHandle(state, ['dx2'], function(bounds) argument
2198 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
2199 …var dx2 = Math.max(0, Math.min(bounds.width - dx, parseFloat(mxUtils.getValue(this.state.style, 'd…
2201 return new mxPoint(bounds.x + dx2, bounds.y + dx);
2202 }, function(bounds, pt) argument
2204 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
2206 …this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - dx, pt.x - bounds.x…
2256 function mxShapeInfographicCircularDial(bounds, fill, stroke, strokewidth) argument
2259 this.bounds = bounds;
2323 var handles = [Graph.createHandle(state, ['dy'], function(bounds)
2325 …var dy = Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, parseFloat(mxUtils.getValue(thi…
2327 return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + dy);
2328 }, function(bounds, pt)
2330 …tyle['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.y - bou…
2364 function mxShapeInfographicRibbonSimple(bounds, fill, stroke, strokewidth) argument
2367 this.bounds = bounds;
2414 var handles = [Graph.createHandle(state, ['notch1'], function(bounds)
2416 …var notch1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'not…
2418 return new mxPoint(bounds.x + notch1, bounds.y + bounds.height * 0.5);
2419 }, function(bounds, pt)
2421 …this.state.style['notch1'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))…
2424 var handle2 = Graph.createHandle(state, ['notch2'], function(bounds) argument
2426 …var notch2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'not…
2428 return new mxPoint(bounds.x + bounds.width - notch2, bounds.y);
2429 }, function(bounds, pt) argument
2431 …e.style['notch2'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x -…
2468 function mxShapeInfographicBarCallout(bounds, fill, stroke, strokewidth) argument
2471 this.bounds = bounds;
2524 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
2526 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
2527 …var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', t…
2529 return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy);
2530 }, function(bounds, pt)
2532 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / …
2533 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.he…
2568 function mxShapeInfographicFlag(bounds, fill, stroke, strokewidth) argument
2571 this.bounds = bounds;
2630 var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds)
2632 …var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', th…
2633 …var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', t…
2635 return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy);
2636 }, function(bounds, pt)
2638 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / …
2639 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.he…