Lines Matching +full:i +full:- +full:mate
2 * $Id: mxIOS7Ui.js,v 1.6 2013/12/04 16:48:54 mate Exp $
3 * Copyright (c) 2006-2013, JGraph Ltd
90 c.ellipse(5, h * 0.5 - 1.5, 3, 3);
92 c.ellipse(9, h * 0.5 - 1.5, 3, 3);
94 c.ellipse(13, h * 0.5 - 1.5, 3, 3);
96 c.ellipse(17, h * 0.5 - 1.5, 3, 3);
98 c.ellipse(21, h * 0.5 - 1.5, 3, 3);
111 c.moveTo(50, h * 0.5 - 1);
112 c.arcTo(6, 6, 0, 0, 1, 60, h * 0.5 - 1);
116 c.moveTo(w - 19, h * 0.5 - 2);
117 c.lineTo(w - 6, h * 0.5 - 2);
118 c.lineTo(w - 6, h * 0.5 + 2);
119 c.lineTo(w - 19, h * 0.5 + 2);
125 c.moveTo(w - 44, h * 0.5 - 2.5);
126 c.lineTo(w - 36, h * 0.5 + 2.5);
127 c.lineTo(w - 40, h * 0.5 + 5);
128 c.lineTo(w - 40, h * 0.5 - 5);
129 c.lineTo(w - 36, h * 0.5 - 2.5);
130 c.lineTo(w - 44, h * 0.5 + 2.5);
134 c.moveTo(w - 20, h * 0.5 - 3);
135 c.lineTo(w - 5, h * 0.5 - 3);
136 c.lineTo(w - 5, h * 0.5 - 1);
137 c.lineTo(w - 3.5, h * 0.5 - 1);
138 c.lineTo(w - 3.5, h * 0.5 + 1);
139 c.lineTo(w - 5, h * 0.5 + 1);
140 c.lineTo(w - 5, h * 0.5 + 3);
141 c.lineTo(w - 20, h * 0.5 + 3);
149 //On-Off Button
215 c.ellipse(w - h + 1, 1, h - 2, h - 2);
276 var virRange = w - 2 * deadzone;
280 c.ellipse(truePos - 5, h * 0.5 - 5, 10, 10);
295 …this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 /…
375 …this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 /…
465 var selectedButton = -1;
469 for (var i = 0; i < buttonNum; i++)
471 var buttonText = textStrings[i];
475 buttonText = textStrings[i].substring(1);
476 selectedButton = i;
479 …buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).w…
480 buttonTotalWidth += buttonWidths[i];
493 for (var i = 0; i < buttonNum; i++)
495 if (i === selectedButton)
505 this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW);
506 currWidth = currWidth + buttonWidths[i] + labelOffset;
519 c.lineTo(w - rSize, 0);
521 c.lineTo(w, h - rSize);
522 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
524 c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize);
531 for (var i = 1; i < buttonNum; i++)
533 if (i !== selectedButton && i !== (selectedButton + 1))
537 for (var j = 0; j < i; j++)
554 for (var i = 0; i < selectedButton; i++)
556 buttonLeft += buttonWidths[i] + 2 * labelOffset;
573 c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize);
577 else if (selectedButton === buttonNum - 1)
582 c.lineTo(buttonRight - rSize, 0);
584 c.lineTo(buttonRight, h - rSize);
585 c.arcTo(rSize, rSize, 0, 0, 1, buttonRight - rSize, h);
590 else if (selectedButton !== -1)
608 c.lineTo(w - rSize, 0);
610 c.lineTo(w, h - rSize);
611 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
613 c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize);
666 c.ellipse(0, h * 0.5 - rSize, 2 * rSize, 2 * rSize);
668 c.ellipse(w * 0.25 - rSize * 0.5, h * 0.5 - rSize, 2 * rSize, 2 * rSize);
670 c.ellipse(w * 0.5 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize);
672 c.ellipse(w * 0.75 - rSize * 1.5, h * 0.5 - rSize, 2 * rSize, 2 * rSize);
675 c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize);
715 var boxSizeX = w / (parseInt(gridSize[0],10) + (gridSize[0]-1) * 0.1);
716 var boxSizeY = h / (parseInt(gridSize[1],10) + (gridSize[1]-1) * 0.1);
718 for (var i = 0; i < gridSize[0]; i++)
722 c.rect(boxSizeX * 1.1 * i, boxSizeY * 1.1 * j, boxSizeX, boxSizeY);
843 c.ellipse(w * 0.05 + 3, h * 0.5 - 3, 4, 4);
911 c.moveTo(w * 0.95 - 5, h * 0.5);
912 c.arcTo(3, 3, 0, 1, 1, w * 0.95 - 8, h * 0.5 - 3);
917 c.moveTo(w * 0.95 - 8, h * 0.5 - 4);
918 c.lineTo(w * 0.95 - 6, h * 0.5 - 3);
919 c.lineTo(w * 0.95 - 8, h * 0.5 - 2);
1117 c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize);
1168 c.lineTo(w - rSize, 0);
1170 c.lineTo(w, h - rSize);
1171 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
1224 c.lineTo(w - rSize, 0);
1275 c.lineTo(0, h - rSize);
1277 c.lineTo(w - rSize, h);
1278 c.arcTo(rSize, rSize, 0, 0, 0, w, h - rSize);
1395 var w1 = w - marginRight - x1 - margin;
1396 var h1 = h - marginBottom - y1 - margin;
1451 c.moveTo(15, h - r * 0.3);
1453 c.arcTo(r * 1.5, r * 1.5, 0, 0, 0, 10, h - r * 1);
1456 c.lineTo(w - r, 0);
1458 c.lineTo(w, h - r);
1459 c.arcTo(r, r, 0, 0, 1, w - r, h);
1461 c.arcTo(r, r, 0, 0, 1, r * 1.5, h - r * 0.3);
1516 …var dy = Math.max(0, Math.min(h, (w - Math.max(20, r) - r) / 2, parseFloat(mxUtils.getValue(this.s…
1520 dx = Math.min(w - r - dy, w - 20 - dy, dx);
1523 c.moveTo(dx - dy, h);
1525 c.arcTo(r, r, 0, 0, 1, 0, h - r);
1528 c.lineTo(w - r, 0);
1530 c.lineTo(w, h - r);
1531 c.arcTo(r, r, 0, 0, 1, w - r, h);
1540 c.moveTo(w - Math.max(20, r), 0);
1541 c.lineTo(w - Math.max(20, r), h);
1548 while (currDx < (w - Math.max(20, r)))
1559 var x1 = w - w1 * 0.5;
1564 c.moveTo(x1 - w1 * 0.15, y1 - w1 * 0.225);
1566 c.lineTo(x1 - w1 * 0.15, y1 + w1 * 0.225);
1585 …this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))…
1595 …this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, pt.y - bounds.y - bo…
1604 return new mxPoint(bounds.x + bounds.width - size, bounds.y + 10);
1607 … Math.max(0, Math.min(bounds.width / 2, bounds.height / 2, bounds.x + bounds.width - pt.x))) / 100;
1619 …this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) /…
1696 c.ellipse(barPos * w - hSize * 0.5, h * 0.5 - hSize * 0.5, hSize, hSize);
1714 …this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / …