Lines Matching +full:i +full:- +full:mate
2 * $Id: mxFloorplan.js,v 1.3 2014/02/17 17:05:39 mate Exp $
3 * Copyright (c) 2006-2014, JGraph Ltd
49 c.rect(0, h * 0.5 - wallTh * 0.5, w, wallTh);
161 c.lineTo(w - wallTh, h);
162 c.lineTo(w - wallTh, wallTh);
222 c.lineTo(wallTh, h - wallTh);
223 c.lineTo(w - wallTh, h - wallTh);
224 c.lineTo(w - wallTh, wallTh);
274 c.rect(0, h * 0.5 - wallTh * 0.5, w, wallTh);
332 c.moveTo(w - 10, 15);
334 c.lineTo(w - 10, 25);
382 c.moveTo(0, h - 20);
383 c.lineTo(w, h - 20);
384 c.moveTo(10, h - 15);
385 c.lineTo(0, h - 20);
386 c.lineTo(10, h - 25);
387 c.moveTo(w - 10, h - 15);
388 c.lineTo(w, h - 20);
389 c.lineTo(w - 10, h - 25);
390 c.moveTo(0, h - 15);
392 c.moveTo(w, h - 15);
445 for (var i = 25; i < w; i = i + step)
447 c.moveTo(i, 0);
448 c.lineTo(i, h);
456 c.moveTo(w - step, 0);
458 c.lineTo(w - step, h);
513 // for (var i = 25; i < w - h * 0.5; i = i + step)
515 // c.moveTo(i, 0);
516 // c.lineTo(i, h);
526 // c.lineTo(w - h * 0.5, h * 0.5);
529 // c.moveTo(w - h * 0.5, 0);
530 // c.lineTo(w - h * 0.5, h);
586 for (var i = 25; i < w - h * 0.5; i = i + step)
588 c.moveTo(i, 0);
589 c.lineTo(i, h);
599 c.lineTo(w - h * 0.5, h * 0.5);
602 c.moveTo(w - h * 0.5, 0);
603 c.lineTo(w - h * 0.5, h);
818 c.arcTo(w - dx, w - dx, 0, 0, 0, w, 5 + w - dx);
834 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
893 c.arcTo(w - dx, w - dx, 0, 0, 0, w, 5 + w);
909 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
953 c.rect((w - d) * 0.5 , h * 0.5 - 2.5, d, 5);
956 c.rect(w * 0.5 - 2.5, (h - d) * 0.5, 5, d);
960 c.ellipse((w - d) * 0.5, (h - d) * 0.5, d, d);
1006 c.rect(dx, h * 0.5 - 5, 5, 10);
1009 c.rect(w - 5, h * 0.5 - 5, 5, 10);
1012 c.rect(0, h * 0.5 - 2.5, w - dx, 5);
1027 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(0.5, (pt.x - bounds.x) / bounds.wid…
1073 c.rect(dx, h * 0.5 - 5, 5, 10);
1076 c.rect(w - dx - 5, h * 0.5 - 5, 5, 10);
1079 c.rect(0, h * 0.5 - 2.5, w * 0.5 - dx, 5);
1082 c.rect(w * 0.5 + dx, h * 0.5 - 2.5, w * 0.5 - dx, 5);
1097 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(0.25, (pt.x - bounds.x) / bounds.wi…
1104 //Door, By-Pass
1143 c.rect(0, h * 0.5 - 5, 5, 10);
1146 c.rect(w - 5, h * 0.5 - 5, 5, 10);
1152 c.rect(dx, h * 0.5 - 5, w * 0.5, 5);
1167 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(0.5, (pt.x - bounds.x) / bounds.wid…
1174 //Door, Bi-fold
1214 c.rect(0, h - 10, 5, 10);
1217 c.rect(w - 5, h - 10, 5, 10);
1223 c.moveTo(5, h - 10);
1224 c.lineTo(Math.max((dx - 10) * 0.5 + 5, 5), 0);
1225 c.lineTo(Math.max(dx, 5), h - 10);
1226 c.moveTo(w - 5, h - 10);
1227 c.lineTo(w - Math.max((dx - 10) * 0.5 + 5, 5), 0);
1228 c.lineTo(w - Math.max(dx, 5), h - 10);
1243 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(0.5, (pt.x - bounds.x) / bounds.wid…
1289 c.rect(0, h * 0.5 - 5, 5, 10);
1292 c.rect(w - 5, h * 0.5 - 5, 5, 10);
1298 c.rect(dx, h * 0.5 - 2, w * 0.5, 2);
1313 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(0.5, (pt.x - bounds.x) / bounds.wid…
1353 c.rect(0, h - 10, 5, 10);
1356 c.rect(w - 5, h - 10, 5, 10);
1359 c.rect(5, 0, w - 10, h - 5);
1403 c.rect(w - 5, 0, 5, h);
1450 c.rect(0, h * 0.5 - 5, w, 10);
1456 c.rect(dx, h * 0.5 - 1, w * 0.5, 1);
1471 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(0.5, (pt.x - bounds.x) / bounds.wid…
1516 var paneW = (w - 14 - (windowPanes - 1) * d) / windowPanes;
1519 c.rect(0, h - 10, 5, 10);
1521 c.rect(w - 5, h - 10, 5, 10);
1527 c.lineTo(w - 5, 0);
1528 c.lineTo(w - 5, h);
1529 c.lineTo(w - 5 - d, h);
1530 c.lineTo(w - 5 - d, d);
1532 for (var i = 1; i < windowPanes; i++)
1534 c.lineTo(w - 5 - d - i * paneW - (i - 1) * d, d);
1535 c.lineTo(w - 5 - d - i * paneW - (i - 1) * d, h);
1536 c.lineTo(w - 5 - 2 * d - (i - 1) * d - i * paneW, h);
1537 c.lineTo(w - 5 - 2 * d - (i - 1) * d - i * paneW, d);
1585 c.moveTo(0, (h - d) * 0.5);
1587 c.lineTo(w - d, (h + d) * 0.5);
1588 c.lineTo(w, (h - d) * 0.5);
1680 var dx = Math.min(w - 5, dx);
1686 c.rect(0, h * 0.5 - 5, 5, 10);
1689 c.rect(w - 5, h * 0.5 - 5, 5, 10);
1694 var l = dx - 5;
1718 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
1725 //Door, Double-action
1761 c.rect(0, h * 0.5 - 2.5, w, 5);
1773 c.moveTo(w, h * 0.5 - 2.5);
1774 c.arcTo(w, w, 0, 0, 0, 0, h * 0.5 - 2.5 - w);
1775 c.lineTo(0, h * 0.5 - 2.5);