Fixed misplaced label for vertical dimension lines Issue #915

This commit is contained in:
gumyr 2025-05-30 09:12:48 -04:00
parent 878a737516
commit 644200f565
2 changed files with 7 additions and 2 deletions

View file

@ -260,6 +260,11 @@ class DimensionLineTestCase(unittest.TestCase):
with self.assertRaises(ValueError):
DimensionLine([(0, 0, 0), (5, 0, 0)], draft=metric, arrows=(False, False))
def test_vertical(self):
d_line = DimensionLine([(0, 0), (0, 100)], Draft())
bbox = d_line.bounding_box()
self.assertAlmostEqual(bbox.size.Y, 100, 5) # numbers within
class ExtensionLineTestCase(unittest.TestCase):
def test_min_x(self):