Skip to content

Commit a0fbb2e

Browse files
committed
fix: Add gap behind launcher when not rounding
1 parent 3104ead commit a0fbb2e

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ The format of this changelog is based on
44
[Keep a Changelog](https://keepachangelog.com/), and this project adheres to
55
[Semantic Versioning](https://semver.org/).
66

7+
## Upcoming
8+
9+
### Fixed
10+
11+
- `launch!` without rounding now has the correct gap behind the pad
12+
713
## 1.0.0 (2025-02-27)
814

915
Initial release.

src/paths/paths.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,9 +1159,8 @@ function _launch!(p::Path{T}; kwargs...) where {T <: Coordinate}
11591159
for (a, b) in zip(args, styles)
11601160
!iszero(a) && straight!(p, a, b)
11611161
end
1162-
if !iszero(extround)
1163-
terminate!(p; rounding=extround, initial=y)
1164-
end
1162+
1163+
terminate!(p; rounding=extround, initial=y)
11651164

11661165
return CPW(trace1, gap1)
11671166
end

test/tests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,10 @@ end
629629
launch!(pa) # terminate path with launcher
630630

631631
pa = Path(nm)
632-
sty = launch!(pa)
632+
sty = launch!(pa; rounding=0nm)
633633
@test Paths.gap(sty) === 6000.0nm
634634
@test Paths.trace(sty) === 10000.0nm
635+
@test pa[1].sty isa Paths.CPWOpenTermination
635636

636637
pa = Path(μm)
637638
sty = launch!(pa, trace1=4.2μm, gap1=3801nm)

0 commit comments

Comments
 (0)