Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 206f814

Browse files
committed
feat(circle-inverter-style): move inverter circle east by stroke width
To match the style widely adopted in the industry, this commit moves the circle representing the inverter east by the stroke width. This change enhances the visual consistency of the circuit diagrams and aligns with depictions commonly found in technical documentation by manufacturers.
1 parent 2f9a875 commit 206f814

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/logic.typ

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
if invert {
2626
if style.invert-style == "circle" {
2727
let radius = style.invert-width * 0.4
28-
circle((style.width / 2 + radius, 0), radius: radius, fill: style.fill, stroke: style.stroke)
29-
anchor("out", (style.width / 2 + 2 * radius, 0))
28+
let spacing = style.invert-width * 0.05
29+
circle((style.width / 2 + radius + spacing, 0), radius: radius, fill: style.fill, stroke: style.stroke)
30+
anchor("out", (style.width / 2 + 2 * radius + spacing, 0))
3031
} else {
3132
line((style.width / 2, style.invert-height), (rel: (style.invert-width, -style.invert-height)))
3233
line((style.width / 2, 0), (rel: (style.invert-width, 0)))

0 commit comments

Comments
 (0)