You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SlotCenterPoint raises ValueError: Slots must have width > height. Got: {height=} width={half_line.length * 2} (computed) when the slot width is too small, however the minimum width calculation is incorrect. Also, the fstring was broken by the formatter.
The minimum width should actually be half_line.length * 2 + height or validated as half_line.length > 0 or center != point.
Example
SlotCenterPoint((0, 0), (1.5, 0), 3) but this would actually produce a slot with overall length 6.
The text was updated successfully, but these errors were encountered:
Unrelated, but I think it's weird/inconsistent this object takes a center point at all and isn't centered on the origin like all other sketch objects (except Polygon) when unlocated.
SlotCenterPoint
raisesValueError: Slots must have width > height. Got: {height=} width={half_line.length * 2} (computed)
when the slot width is too small, however the minimum width calculation is incorrect. Also, the fstring was broken by the formatter.The minimum width should actually be
half_line.length * 2 + height
or validated ashalf_line.length > 0
orcenter != point
.Example
SlotCenterPoint((0, 0), (1.5, 0), 3)
but this would actually produce a slot with overall length 6.The text was updated successfully, but these errors were encountered: