From c6d132bcb0abdb9310a6a262ce936b758a56f3d9 Mon Sep 17 00:00:00 2001 From: Mc-Zen Date: Sat, 14 Sep 2024 17:53:08 +0200 Subject: [PATCH] [add] `stroke` parameter to `gate` and `mqgate` --- src/draw-functions.typ | 2 +- src/gates.typ | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/draw-functions.typ b/src/draw-functions.typ index f15f18e..ab54883 100644 --- a/src/draw-functions.typ +++ b/src/draw-functions.typ @@ -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, diff --git a/src/gates.typ b/src/gates.typ index 2668a08..9405124 100644 --- a/src/gates.typ +++ b/src/gates.typ @@ -46,6 +46,7 @@ x: auto, y: auto, fill: auto, + stroke: auto, radius: 0pt, width: auto, box: true, @@ -61,6 +62,7 @@ x: x, y: y, fill: fill, + stroke: stroke, radius: radius, width: width, box: box, @@ -120,6 +122,7 @@ n: 1, target: none, fill: auto, + stroke: auto, radius: 0pt, width: auto, box: true, @@ -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,