Skip to content

Commit

Permalink
[ve] Fix arrow wrong angle
Browse files Browse the repository at this point in the history
  • Loading branch information
fedek1324 committed Sep 16, 2024
1 parent b78941d commit a34340c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions draw/model/overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ CShapeDrawer.prototype.ds = function()

var _max_delta = Math.max(Math.abs(_x1 - _x2), Math.abs(_y1 - _y2));
var cur_point = 2;
while (_max_delta < _max_delta_eps && cur_point < arr.length)
{
_x2 = trans.TransformPointX(arr[cur_point].x, arr[cur_point].y);
_y2 = trans.TransformPointY(arr[cur_point].x, arr[cur_point].y);
_max_delta = Math.max(Math.abs(_x1 - _x2), Math.abs(_y1 - _y2));
cur_point++;
}
// while (_max_delta < _max_delta_eps && cur_point < arr.length)
// {
// _x2 = trans.TransformPointX(arr[cur_point].x, arr[cur_point].y);
// _y2 = trans.TransformPointY(arr[cur_point].x, arr[cur_point].y);
// _max_delta = Math.max(Math.abs(_x1 - _x2), Math.abs(_y1 - _y2));
// cur_point++;
// }

if (_max_delta > _max_delta_eps2)
{
Expand All @@ -337,13 +337,13 @@ CShapeDrawer.prototype.ds = function()

var _max_delta = Math.max(Math.abs(_x1 - _x2), Math.abs(_y1 - _y2));
var cur_point = _2 - 1;
while (_max_delta < _max_delta_eps && cur_point >= 0)
{
_x2 = trans.TransformPointX(arr[cur_point].x, arr[cur_point].y);
_y2 = trans.TransformPointY(arr[cur_point].x, arr[cur_point].y);
_max_delta = Math.max(Math.abs(_x1 - _x2), Math.abs(_y1 - _y2));
cur_point--;
}
// while (_max_delta < _max_delta_eps && cur_point >= 0)
// {
// _x2 = trans.TransformPointX(arr[cur_point].x, arr[cur_point].y);
// _y2 = trans.TransformPointY(arr[cur_point].x, arr[cur_point].y);
// _max_delta = Math.max(Math.abs(_x1 - _x2), Math.abs(_y1 - _y2));
// cur_point--;
// }

if (_max_delta > _max_delta_eps2)
{
Expand Down

0 comments on commit a34340c

Please sign in to comment.