Commit 069e762f authored by Oleg Korshul's avatar Oleg Korshul

.

parent 6e8615e1
......@@ -997,6 +997,21 @@ function (window, undefined)
ctx.moveTo(_x2C, (_koef * pos3.Y) >> 0);
ctx.lineTo(_x2C, (_koef * pos4.Y) >> 0);
if (_x2C > (_x1C + 10))
{
var _y1 = ((_koef * pos1.Y) >> 0) + 2;
var _y2 = ((_koef * pos2.Y) >> 0) - 2;
if (_y2 > _y1)
{
ctx.moveTo(_x2C - 3, _y1);
ctx.lineTo(_x2C - 3, _y2);
ctx.moveTo(_x2C - 6, _y1);
ctx.lineTo(_x2C - 6, _y2);
}
}
ctx.stroke();
ctx.beginPath();
......@@ -1025,6 +1040,21 @@ function (window, undefined)
ctx.moveTo((_koef * pos2.X) >> 0, _y2C);
ctx.lineTo((_koef * pos4.X) >> 0, _y2C);
if (_y2C > (_y1C + 10))
{
var _x1 = ((_koef * pos1.X) >> 0) + 2;
var _x2 = ((_koef * pos3.X) >> 0) - 2;
if (_x2 > _x1)
{
ctx.moveTo(_x1, _y2C - 3);
ctx.lineTo(_x2, _y2C - 3);
ctx.moveTo(_x1, _y2C - 6);
ctx.lineTo(_x2, _y2C - 6);
}
}
ctx.stroke();
ctx.beginPath();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment