Added spacing text and aligned text better

This commit is contained in:
ac
2025-07-02 08:57:46 +10:00
parent f73d59d2e3
commit 03225edd05

View File

@@ -93,6 +93,7 @@ class Panel:
self.text3 = None
self.text4 = None
self.dims = [self.gaps[i]*self.spacing + self.grid[i]*board.dims[i] + frame.extra_d[i] for i in range(0,2)]
self.spacing = [self.spacing + board.dims[i] for i in range(0,2)]
arrow_off = [frame.spacing + frame.width, frame.width]
text_off = [arrow_off[0] + 2, frame.width/2]
@@ -113,6 +114,7 @@ class Panel:
spacer = " "
txt =\
"PNL (x,y): (" + float_to_str_mm(self.dims[0],4) + ", " + float_to_str_mm(self.dims[1],4) + ")\n" +\
"SPA (x,y): (" + float_to_str_mm(self.spacing[0],2) + ", " + float_to_str_mm(self.spacing[1],2) +")\n" +\
"BRD (x,y),r: (" + float_to_str_mm(board.dims[0],4) + ", " + float_to_str_mm(board.dims[1],4) + "), " +\
float_to_deg(board.rot, 3) + "\n" +\
"FIDS (x,y) : " + board.fids