Skip to content

Commit

Permalink
ta
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Feb 3, 2025
1 parent b27235a commit bc14842
Show file tree
Hide file tree
Showing 19 changed files with 915 additions and 915 deletions.
8 changes: 4 additions & 4 deletions d2layouts/d2near/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ func boundingBox(g *d2graph.Graph) (tl, br *geo.Point) {
for _, edge := range g.Edges {
if edge.Route != nil {
for _, point := range edge.Route {
x1 = math.Min(x1, point.X-pad/2)
y1 = math.Min(y1, point.Y-pad/2)
x2 = math.Max(x2, point.X+pad/2)
y2 = math.Max(y2, point.Y+pad/2)
x1 = math.Min(x1, point.X)
y1 = math.Min(y1, point.Y)
x2 = math.Max(x2, point.X)
y2 = math.Max(y2, point.Y)
}
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bc14842

Please sign in to comment.