Skip to content

Commit

Permalink
use min-col-width and min-row-width
Browse files Browse the repository at this point in the history
  • Loading branch information
erwin-lau committed Sep 24, 2024
1 parent 9306a6c commit 3b8dcc3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/protocols/displayport/displayport-src.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public pcb-component component :

val box-params = BoxSymbolParams(
show-grid = false
col-width = 1
min-col-width = 1
)

val box = BoxSymbol(self, params = box-params)
Expand Down
2 changes: 1 addition & 1 deletion examples/protocols/pcie/pcie-src.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public pcb-component component :

val box-params = BoxSymbolParams(
show-grid = false
col-width = 1
min-col-width = 1
)

val box = BoxSymbol(self, params = box-params)
Expand Down
20 changes: 10 additions & 10 deletions examples/symbols/box-symbol.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ pcb-component test-default-align:

val box = BoxSymbol(self, params = BoxSymbolParams(
show-grid = true
col-width = 10
row-width = 5))
min-col-width = 10
min-row-width = 5))
set-grid(box, [2,2])
set-alignment(N, self.rail.V+)
set-alignment(S, self.rail.V-)
Expand Down Expand Up @@ -332,8 +332,8 @@ pcb-component test-pad-ref:
[ADDR[1] | p[4] | Right | 1 | "A1" ]

val box = BoxSymbol(self, params = BoxSymbolParams(
col-width = 10
row-width = 5
min-col-width = 10
min-row-width = 5
pad-ref-size = 2.0))
set-grid(box, [2,2])
set-alignment(N, self.rail.V+)
Expand Down Expand Up @@ -407,8 +407,8 @@ pcb-component test-pin-pitch:

val box = BoxSymbol(self, params = BoxSymbolParams(
show-grid = true
col-width = 10
row-width = 5
min-col-width = 10
min-row-width = 5
pin-pitch = 5.0))
set-grid(box, [2,2])
set-alignment(N, self.rail.V+)
Expand Down Expand Up @@ -444,8 +444,8 @@ pcb-component test-up-column:

val box = BoxSymbol(self, params = BoxSymbolParams(
show-grid = true
col-width = 1
row-width = 5
min-col-width = 1
min-row-width = 5
))
set-grid(box, [3,3], Ref("test"))
set-alignment(N, self.rail.V+)
Expand Down Expand Up @@ -485,7 +485,7 @@ pcb-component test-even-row:
;col-width = 1
; line-width = 0.4
; pin-length = 4.4
row-width = 5
min-row-width = 5
))
set-grid(box, [2, 1])
set-alignment(N, self.rail.V+)
Expand Down Expand Up @@ -521,7 +521,7 @@ pcb-component test-group-margin:

val box = BoxSymbol(self, params = BoxSymbolParams(
show-grid = true
row-width = 5
min-row-width = 5
))
set-grid(box, [2, 2])

Expand Down

0 comments on commit 3b8dcc3

Please sign in to comment.