From 03225edd05f51a901d6f2f26bb09773469ab37e0 Mon Sep 17 00:00:00 2001 From: ac Date: Wed, 2 Jul 2025 08:57:46 +1000 Subject: [PATCH] Added spacing text and aligned text better --- .scripts/pre_panel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.scripts/pre_panel.py b/.scripts/pre_panel.py index 7072905..578eb90 100644 --- a/.scripts/pre_panel.py +++ b/.scripts/pre_panel.py @@ -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] @@ -112,7 +113,8 @@ class Panel: spacer = " " txt =\ - "PNL (x,y) : (" + float_to_str_mm(self.dims[0],4) + ", " + float_to_str_mm(self.dims[1],4) + ")\n" +\ + "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