Skip to content

Commit

Permalink
[add] stroke parameter to gate and mqgate
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Zen committed Sep 14, 2024
1 parent 15adaef commit c6d132b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/draw-functions.typ
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

let style-params = (
width: gate.width,
stroke: draw-params.wire,
stroke: utility.if-auto(gate.stroke, draw-params.wire),
radius: gate.radius,
fill: utility.if-auto(gate.fill, draw-params.background),
inset: draw-params.padding,
Expand Down
7 changes: 6 additions & 1 deletion src/gates.typ
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
x: auto,
y: auto,
fill: auto,
stroke: auto,
radius: 0pt,
width: auto,
box: true,
Expand All @@ -61,6 +62,7 @@
x: x,
y: y,
fill: fill,
stroke: stroke,
radius: radius,
width: width,
box: box,
Expand Down Expand Up @@ -120,6 +122,7 @@
n: 1,
target: none,
fill: auto,
stroke: auto,
radius: 0pt,
width: auto,
box: true,
Expand All @@ -136,7 +139,9 @@
content,
x: x,
y: y,
fill: fill, box: box,
fill: fill,
stroke: stroke,
box: box,
width: width,
radius: radius,
draw-function: draw-function,
Expand Down

0 comments on commit c6d132b

Please sign in to comment.