Skip to content

Commit

Permalink
Fix blampe issue blampe#25: "Rendering in close corners"
Browse files Browse the repository at this point in the history
For result, see examples/small-grids.svg

blampe#25
  • Loading branch information
dmullis committed Feb 20, 2024
1 parent 9344653 commit 496b38b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/complicated.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions examples/small-grids.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions parse-graphics.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,12 @@ func (c *Canvas) getLines(
currentLine = snip(currentLine)
}

// Don't connect o to o, + to o, etc. This character is a new pass-through
// Don't connect o to o, + to o, "'" to ".". This character is a new pass-through
// so we still want to respect shouldKeep; we just don't want to draw
// the existing line through this cell.
if justPassedThrough && (isDot || isTriangle) {
//
// XX The "'" to "." issue arises with o==S, only: split out as such?
if justPassedThrough && (isDot || isTriangle || r == '.') {
currentLine = snip(currentLine)
}

Expand Down

0 comments on commit 496b38b

Please sign in to comment.