@@ -2547,7 +2547,7 @@ def __call__(self, x0, y0, width, height, mutation_size):
2547
2547
dx = (y1 - y0 ) / 2
2548
2548
dxx = dx / 2
2549
2549
2550
- # Pad text to position text and its padding margin exactly inside arrow tail
2550
+ # Pad to position original box and its margins exactly inside arrow shaft
2551
2551
padding_offset = (0.5 * pad ) + (0.25 * mutation_size )
2552
2552
x0 -= padding_offset
2553
2553
@@ -2571,9 +2571,9 @@ def __call__(self, x0, y0, width, height, mutation_size):
2571
2571
angle_adjustment = ((dx + width_adjustment ) / tan_half_angle ) - dxx
2572
2572
2573
2573
# If there is sufficient space available, shorten the arrow tail to push
2574
- # some of the text padding margin into the head
2574
+ # some of the padding margin into the head
2575
2575
if self .head_width > 1 and pad * tan_half_angle < width_adjustment :
2576
- # Pad text into head
2576
+ # Pad original box into head
2577
2577
x0 += pad
2578
2578
2579
2579
return Path ._create_closed ([
@@ -2625,8 +2625,8 @@ def __call__(self, x0, y0, width, height, mutation_size):
2625
2625
# Trapezium-shaped reversed arrow (reversed triangle 'cut off' by
2626
2626
# end of body
2627
2627
2628
- # Vertical distance between top of text at end furthest from arrow
2629
- # head and corner of trapezium
2628
+ # Vertical distance between top of original box at end furthest from
2629
+ # arrow head and corner of trapezium
2630
2630
vertical_offset = width_adjustment + ((x0 - x1 ) * tan_half_angle )
2631
2631
2632
2632
return Path ._create_closed ([
@@ -2693,7 +2693,7 @@ def __call__(self, x0, y0, width, height, mutation_size):
2693
2693
dx = (y1 - y0 ) / 2
2694
2694
dxx = dx / 2
2695
2695
2696
- # Pad text
2696
+ # Pad original box
2697
2697
padding_offset = (0.5 * pad ) + (0.25 * mutation_size )
2698
2698
x0 -= padding_offset
2699
2699
x1 += 2 * pad
@@ -2718,9 +2718,9 @@ def __call__(self, x0, y0, width, height, mutation_size):
2718
2718
angle_adjustment = ((dx + width_adjustment ) / tan_half_angle ) - dxx
2719
2719
2720
2720
# If there is sufficient space available, shorten the arrow tail to push
2721
- # some of the text padding margin into the heads
2721
+ # some of the padding margin into the heads
2722
2722
if self .head_width > 1 and pad * tan_half_angle < width_adjustment :
2723
- # Pad text into heads
2723
+ # Pad original box into heads
2724
2724
x0 += pad
2725
2725
x1 -= pad
2726
2726
0 commit comments