Skip to content

Commit 8537dd1

Browse files
make transparent not none
1 parent 0bcfd8c commit 8537dd1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

schemascii/components_render.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def integrated_circuit(
215215
height=sz.imag,
216216
stroke__width=options["stroke_width"],
217217
stroke=options["stroke"],
218-
fill="none")
218+
fill="transparent")
219219
for term in terminals:
220220
out += bunch_o_lines([(
221221
term.pt,
@@ -269,7 +269,7 @@ def jack(
269269
r=scale / 4,
270270
stroke__width=options["stroke_width"],
271271
stroke=options["stroke"],
272-
fill="none")
272+
fill="transparent")
273273
+ id_text(box, bom_data, terminals, None, sc_text_pt, **options))
274274

275275

schemascii/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def polylinegon(points: list[complex], is_polygon: bool = False, **options):
120120
for x in points)
121121
if is_polygon:
122122
return XML.polygon(points=pts, fill=c)
123-
return XML.polyline(points=pts, fill="none", stroke__width=w, stroke=c)
123+
return XML.polyline(points=pts, fill="transparent", stroke__width=w, stroke=c)
124124

125125

126126
def bunch_o_lines(points: list[tuple[complex, complex]], **options):
@@ -217,7 +217,7 @@ def make_variable(
217217
return ""
218218
theta = theta % pi
219219
return bunch_o_lines(deep_transform([
220-
(-.75+.5j, .75-.5j),
220+
(-.6+.5j, .75-.5j),
221221
(.75-.5j, .5-.55j),
222222
(.75-.5j, .7-.25j),
223223
], center, theta), **options)

schemascii_example.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ svg.schemascii .component :is(polyline, path, line, polygon, rect, circle) {
2020
stroke-width: calc(0.15 * var(--sch-scale, 1));
2121
stroke-linecap: round;
2222
transition-duration: 0.2s;
23-
fill: none;
23+
fill: transparent;
2424
}
2525

2626
svg.schemascii .component .plus :is(polyline, path, line) {

0 commit comments

Comments
 (0)