Lines Matching +full:i +full:- +full:mate
2 * $Id: mxMockupMisc.js,v 1.5 2013/02/28 13:50:11 mate Exp $
3 * Copyright (c) 2006-2010, JGraph Ltd
61 c.rect(0, (h - controlBarHeight) * 0.5, w, controlBarHeight);
74 c.ellipse(10, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize);
76 c.ellipse(40, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize);
78 c.ellipse(70, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize);
80 c.ellipse(100, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize);
82 c.ellipse(130, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize);
84 c.ellipse(160, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize);
86 c.ellipse(190, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize);
93 var t = h * 0.5 - controlBarHeight * 0.5;
217 c.roundrect(0, h * 0.5 - 5, w, 10, 5, 5);
228 var virRange = w - 2 * deadzone;
232 c.roundrect(0, h * 0.5 - 5, truePos, 10, 5, 5);
247 …this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 /…
384 for (var i = 0; i < grade; i++)
387 c.moveTo(i * h * 1.5, 0.33 * h);
388 c.lineTo(i * h * 1.5 + 0.364 * h, 0.33 * h);
389 c.lineTo(i * h * 1.5 + 0.475 * h, 0);
390 c.lineTo(i * h * 1.5 + 0.586 * h, 0.33 * h);
391 c.lineTo(i * h * 1.5 + 0.95 * h, 0.33 * h);
392 c.lineTo(i * h * 1.5 + 0.66 * h, 0.551 * h);
393 c.lineTo(i * h * 1.5 + 0.775 * h, 0.9 * h);
394 c.lineTo(i * h * 1.5 + 0.475 * h, 0.684 * h);
395 c.lineTo(i * h * 1.5 + 0.175 * h, 0.9 * h);
396 c.lineTo(i * h * 1.5 + 0.29 * h, 0.551 * h);
403 for (var i = 0; i < grade; i++)
406 c.moveTo(i * h * 1.5 + h * 0.519, h * 0.947);
407 …c.curveTo(i * h * 1.5 + h * 0.558, h * 0.908, i * h * 1.5 + h * 0.778, h * 0.682, i * h * 1.5 + h …
408 …c.curveTo(i * h * 1.5 + h * 1.039, h * 0.414, i * h * 1.5 + h * 1.036, h * 0.229, i * h * 1.5 + h …
409 …c.curveTo(i * h * 1.5 + h * 0.812, 0, i * h * 1.5 + h * 0.631, 0, i * h * 1.5 + h * 0.519, h * 0.1…
410 …c.curveTo(i * h * 1.5 + h * 0.408, 0, i * h * 1.5 + h * 0.227, 0, i * h * 1.5 + h * 0.115, h * 0.1…
411 …c.curveTo(i * h * 1.5 + h * 0.03, h * 0.229, i * h * 1.5, h * 0.414, i * h * 1.5 + h * 0.123, h * …
422 for (var i = grade; i < ratingScale; i++)
425 c.moveTo(i * h * 1.5, 0.33 * h);
426 c.lineTo(i * h * 1.5 + 0.364 * h, 0.33 * h);
427 c.lineTo(i * h * 1.5 + 0.475 * h, 0);
428 c.lineTo(i * h * 1.5 + 0.586 * h, 0.33 * h);
429 c.lineTo(i * h * 1.5 + 0.95 * h, 0.33 * h);
430 c.lineTo(i * h * 1.5 + 0.66 * h, 0.551 * h);
431 c.lineTo(i * h * 1.5 + 0.775 * h, 0.9 * h);
432 c.lineTo(i * h * 1.5 + 0.475 * h, 0.684 * h);
433 c.lineTo(i * h * 1.5 + 0.175 * h, 0.9 * h);
434 c.lineTo(i * h * 1.5 + 0.29 * h, 0.551 * h);
441 for (var i = grade; i < ratingScale; i++)
444 c.moveTo(i * h * 1.5 + h * 0.519, h * 0.947);
445 …c.curveTo(i * h * 1.5 + h * 0.558, h * 0.908, i * h * 1.5 + h * 0.778, h * 0.682, i * h * 1.5 + h …
446 …c.curveTo(i * h * 1.5 + h * 1.039, h * 0.414, i * h * 1.5 + h * 1.036, h * 0.229, i * h * 1.5 + h …
447 …c.curveTo(i * h * 1.5 + h * 0.812, 0, i * h * 1.5 + h * 0.631, 0, i * h * 1.5 + h * 0.519, h * 0.1…
448 …c.curveTo(i * h * 1.5 + h * 0.408, 0, i * h * 1.5 + h * 0.227, 0, i * h * 1.5 + h * 0.115, h * 0.1…
449 …c.curveTo(i * h * 1.5 + h * 0.03, h * 0.229, i * h * 1.5, h * 0.414, i * h * 1.5 + h * 0.123, h * …
555 var speakerStartX = w - controlBarHeight;
556 var speakerStartY = (h - controlBarHeight) * 0.5;
569 var barMax = w - controlBarHeight * 1.3;
570 var videoBarStartY = (h - controlBarHeight) * 0.5;
571 var barRange = barMax - barMin;
575 var soundStartX = w - controlBarHeight;
576 var soundStartY = (h - controlBarHeight) * 0.5;
588 var videoBarStartY = (h - controlBarHeight) * 0.5;
589 var videoBarEndX = w - controlBarHeight * 1.3;
598 …c.ellipse(barEnd - controlBarHeight * 0.25, videoBarStartY + controlBarHeight * 0.25, controlBarHe…
611 …return new mxPoint(bounds.x + barPos * (bounds.width - 32.5) / 100, bounds.y + bounds.height * 0.5…
614 …this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 /…
1111 var i = 1;
1119 var remainder = i % 10;
1138 i = i + 1;
1149 var remainder = i % 10;
1168 i = i + 1;
1238 this.state.style['spacingLeft'] = Math.round(1000 * Math.max(0, Math.min(w, dx))) / 1000 - 4;
1245 var i = 1;
1253 var remainder = i % 10;
1257 c.moveTo(currX, h - 10);
1266 var num = i * Math.round(100 * unit) / 1000;
1268 if (i != 10 && num != 0)
1270 …c.text(currX, (h - 10) * 0.5, 0, 0, num.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MI…
1277 c.moveTo(currX, h - 6);
1282 c.moveTo(currX, h - 4);
1287 i = i + 1;
1298 var remainder = i % 10;
1311 var num = i * Math.round(100 * unit) / 1000;
1313 if (i != 10 && num != 0)
1332 i = i + 1;
1347 return new mxPoint(bounds.x + dx, bounds.y + bounds.height - 10);
1350 …this.state.style['dx'] = Math.round(1000 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) /…
1351 …spacingLeft'] = Math.round(1000 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 1000 - 4;
1500 c.rect(0, h * 0.5 - 15, w, 30);
1513 c.roundrect(5, h * 0.5 - 10, (w - 75) * 0.46, 20, 5, 5);
1516 c.roundrect(10 + (w - 75) * 0.46, h * 0.5 - 10, (w - 75) * 0.23, 20, 5, 5);
1518 c.roundrect(15 + (w - 75) * 0.69, h * 0.5 - 10, (w - 75) * 0.276, 20, 5, 5);
1524 …c.text(10 + (w - 75) * 0.575, h * 0.5, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.AL…
1525 …c.text(15 + (w - 75) * 0.828, h * 0.5, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.AL…
1528 c.ellipse(w - 25, h * 0.5 - 10, 20, 20);
1531 c.moveTo(w - 55, h * 0.5 + 10);
1532 c.lineTo(w - 35, h * 0.5 + 10);