Usability improvements

This commit is contained in:
Luis Fernando Molina committed 2019-06-27 01:15:06 +02:00
1 parent 87f1745391
commit e6d09863ee
3 files changed
+12 -7

No files matched your search

+3 -1
View File
@@ -548,6 +548,7 @@
browserCanvasContext.strokeStyle = 'rgba(' + UI_COLOR.MANGANESE_PURPLE + ', 1)';
browserCanvasContext.lineWidth = 1
browserCanvasContext.setLineDash([0, 0])
browserCanvasContext.stroke()
}
@@ -589,7 +590,7 @@
}
browserCanvasContext.setLineDash([4, 3])
browserCanvasContext.lineWidth = 0.2
browserCanvasContext.lineWidth = 0.5
browserCanvasContext.stroke()
browserCanvasContext.setLineDash([0, 0])
@@ -667,3 +668,4 @@
+4 -2
View File
@@ -570,6 +570,7 @@
browserCanvasContext.fill();
browserCanvasContext.lineWidth = 1;
browserCanvasContext.setLineDash([0, 0])
browserCanvasContext.stroke();
if (
@@ -585,8 +586,8 @@
} else {
printLabel(line1, recordPoint2.x - (recordPoint2.x - recordPoint1.x) / 2 - line1.length * FONT_ASPECT_RATIO, recordPoint4.y - 30, '0.50', 12);
printLabel(line2, recordPoint2.x - (recordPoint2.x - recordPoint1.x) / 2 - line2.length * FONT_ASPECT_RATIO, recordPoint4.y - 15, '0.50', 12);
printLabel(line1, recordPoint2.x - (recordPoint2.x - recordPoint1.x) / 2 - line1.length * FONT_ASPECT_RATIO, recordPoint4.y - 30, '1', 12);
printLabel(line2, recordPoint2.x - (recordPoint2.x - recordPoint1.x) / 2 - line2.length * FONT_ASPECT_RATIO, recordPoint4.y - 15, '1', 12);
}
@@ -663,3 +664,4 @@
+5 -4
View File
@@ -139,7 +139,7 @@
/* Loading a few icons */
imageStopLossPhase = canvas.strategySpace.iconByPartType.get('Stop');
imageTakeProfitPhase = canvas.strategySpace.iconByPartType.get('Take Profit');
imageTakeProfitPhase = canvas.strategySpace.iconByPartType.get('Phase');
imageRecord = canvas.strategySpace.iconByPartType.get('Trading System');
callBackFunction();
@@ -662,7 +662,7 @@
browserCanvasContext.save();
browserCanvasContext.translate(recordPoint3.x + labelOffset.x, recordPoint3.y + labelOffset.y);
browserCanvasContext.rotate(-Math.PI / 2);
printLabel(recordLabel, 0, 0, '0.9', 8);
printLabel(recordLabel, 0, 0, '1', 8);
browserCanvasContext.restore();
}
@@ -729,7 +729,7 @@
if (imageStopLossPhase.canDrawIcon === true && stopLossPhase > 0) {
browserCanvasContext.drawImage(imageStopLossPhase, recordPoint5.x - imageSize, recordPoint5.y - imageSize * 1.25 + yOffset, imageSize, imageSize);
printLabel(stopLossPhase, recordPoint5.x - imageSize / 2 - 3, recordPoint5.y - imageSize * 1.5 + yOffset * 2, '0.9', 8);
printLabel(stopLossPhase - 1, recordPoint5.x - imageSize / 2 - 3, recordPoint5.y - imageSize * 1.5 + yOffset * 2, '1', 9);
}
/* Next we are drawing the Take Profit */
@@ -756,7 +756,7 @@
if (imageTakeProfitPhase.canDrawIcon === true && takeProfitPhase > 0) {
browserCanvasContext.drawImage(imageTakeProfitPhase, recordPoint9.x - imageSize * 2 / 3, recordPoint9.y + imageSize / 4 - yOffset, imageSize, imageSize);
printLabel(takeProfitPhase, recordPoint9.x - imageSize * 1 / 3, recordPoint9.y + imageSize * 1.9 - yOffset * 2, '0.9', 8);
printLabel(takeProfitPhase - 1, recordPoint9.x - imageSize * 1 / 3, recordPoint9.y + imageSize * 1.9 - yOffset * 2, '1', 9);
}
}
@@ -838,5 +838,6 @@