forked from HEL/circuiteria
added horizontal zigzag wires
This commit is contained in:
parent
86d9122740
commit
e4194d0925
@ -22,7 +22,11 @@
|
|||||||
#let get-zigzag-wire(pts, ratio, dir) = {
|
#let get-zigzag-wire(pts, ratio, dir) = {
|
||||||
let start = pts.first()
|
let start = pts.first()
|
||||||
let end = pts.last()
|
let end = pts.last()
|
||||||
let mid = (start, ratio, end)
|
let mid = if dir == "vertical" {
|
||||||
|
(start, ratio, (horizontal: end, vertical: ()))
|
||||||
|
} else {
|
||||||
|
(start, ratio, (horizontal: (), vertical: end))
|
||||||
|
}
|
||||||
|
|
||||||
let points = if dir == "vertical" {
|
let points = if dir == "vertical" {
|
||||||
(
|
(
|
||||||
@ -235,8 +239,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if slice != none {
|
if slice != none {
|
||||||
let (start, end) = slice
|
let slice-txt = "[" + slice.map(b => str(b)).join(":") + "]"
|
||||||
let slice-txt = "[" + str(start) + ":" + str(end) + "]"
|
|
||||||
|
|
||||||
draw.content(
|
draw.content(
|
||||||
first-pt,
|
first-pt,
|
||||||
|
Loading…
Reference in New Issue
Block a user