Skip to content

Commit 788a60a

Browse files
author
AZhurav1ev
committed
Added radius recalculating condition, that resolves arrow bug, that occurs after rendering
1 parent e97df9a commit 788a60a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

enjoyhint.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,8 +1254,11 @@
12541254
}
12551255
}
12561256

1257-
var data_width_size = data.width ? data.width : data.radius * 2;
1258-
var data_height_size = data.height ? data.height : data.radius * 2;
1257+
var data_width_size = data.shape === "circle" ? data.radius * 2 :
1258+
data.width ? data.width : data.radius * 2;
1259+
1260+
var data_height_size = data.shape === "circle" ? data.radius * 2 :
1261+
data.height ? data.height : data.radius * 2;
12591262

12601263
var right_position = data.center_x + data_width_size/2 + 80;
12611264
var left_position = data.center_x - label_width - data_width_size/2 - 80;

0 commit comments

Comments
 (0)