diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-03-03 16:43:56 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-03-03 16:43:56 -0500 |
| commit | 483236742ddcd7883b5f9cff92244129274aa79c (patch) | |
| tree | 2ba1613b9b8b6f84264ce0cc3df497a0bfe893fb /lay/strain/sym.go | |
| parent | 3ae1a7330b0eaab02fafd1f857c60fad1cd4fe19 (diff) | |
| download | gui-483236742ddcd7883b5f9cff92244129274aa79c.zip | |
lay/strain: simplify Solver internal synchronization
Replaced the AddConstraint() and Solve() methods' request/reply
channels, used a mutex instread.
Solver now closes the fieldConstrs channel automatically; removed the
Close() method.
Generally tidied up.
Diffstat (limited to 'lay/strain/sym.go')
| -rw-r--r-- | lay/strain/sym.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lay/strain/sym.go b/lay/strain/sym.go index 9d2a0bf..63f4f11 100644 --- a/lay/strain/sym.go +++ b/lay/strain/sym.go @@ -15,7 +15,7 @@ type SymPt struct { // image.Rectangle. type SymRect struct { Origin SymPt // top-left corner position - Size SymPt // Dx() and Dy() + Size SymPt // Dx() and Dy() } func NewSymPt() SymPt { |