Merge pull request #485 from Sypaq-MadMan/master

Add dimensions config to kikit panelize post
This commit is contained in:
Salvador E. Tropea 2023-08-29 13:18:52 -03:00 committed by GitHub
commit 1af4204def
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -3436,6 +3436,7 @@ Notes:
- *script_arg*: Alias for scriptarg. - *script_arg*: Alias for scriptarg.
- `scriptarg`: [string=''] An arbitrary string passed to the user post-processing script specified in script. - `scriptarg`: [string=''] An arbitrary string passed to the user post-processing script specified in script.
- `type`: [string='auto'] [auto] Currently fixed. - `type`: [string='auto'] [auto] Currently fixed.
- `dimensions`: [boolean=false] Draw dimensions with the panel size.
- `source`: [dict] Used to adjust details of which part of the PCB is panelized. - `source`: [dict] Used to adjust details of which part of the PCB is panelized.
* Valid keys: * Valid keys:
- **`type`**: [string='auto'] [auto,rectangle,annotation] How we select the area of the PCB tu used for the panelization. - **`type`**: [string='auto'] [auto,rectangle,annotation] How we select the area of the PCB tu used for the panelization.

View File

@ -1853,6 +1853,8 @@ outputs:
scriptarg: '' scriptarg: ''
# [string='auto'] [auto] Currently fixed # [string='auto'] [auto] Currently fixed
type: 'auto' type: 'auto'
# [boolean=false] Draw dimensions with the panel size.
dimensions: false
# [dict] Used to adjust details of which part of the PCB is panelized # [dict] Used to adjust details of which part of the PCB is panelized
source: source:
# [number|string] Bottom right X coordinate of the rectangle used. Used for *rectangle* # [number|string] Bottom right X coordinate of the rectangle used. Used for *rectangle*

View File

@ -430,6 +430,8 @@ class PanelizePost(PanelOptions):
""" [tl,tr,bl,br,mt,mb,ml,mr,c] Specify if the auxiliary origin an grid origin should be placed. """ [tl,tr,bl,br,mt,mb,ml,mr,c] Specify if the auxiliary origin an grid origin should be placed.
Can be one of tl, tr, bl, br (corners), mt, mb, ml, mr (middle of sides), c (center). Can be one of tl, tr, bl, br (corners), mt, mb, ml, mr (middle of sides), c (center).
Empty string does not changes the origin """ Empty string does not changes the origin """
self.dimensions = False
""" Draw dimensions with the panel size. """
super().__init__() super().__init__()
def config(self, parent): def config(self, parent):