A Go implementation of the Cassowary constraint solving algorithm.
Stars
80
Forks
9
Watchers
80
Open Issues
0
Overall repository health assessment
No package.json found
This might not be a Node.js project
20
commits
solver, error: remove dependency on 'fmt', and expose error constants
827f689View on GitHubsolver, math: fix artificial variable expr terms sharing the same memory as the term being optimized away, add clone methods to Expr and Constraint, speed up solveFor() by not performing any operations if the coefficient is 1
1f9f4b9View on GitHubmath, readme: update symbols to unsigned 64-bit integers, and update remark in readme
3fba220View on GitHubsolver: if a variable is already marked as an edit variable, ignore it
f19113fView on GitHubsolver, math, math/test: have symbols be uint32s instead of pointers that are bit-masked with their kind, rename symbolType to SymbolKind, rename zero to eqz, reduce bit size of some data types, update benchmarks
e118c7fView on GitHubmath, solver, solver/test, readme: use pointers for symbols instead of integers to allow gc to dispose of unused symbols, allow for variables to created detached from a solver, and update tests and readme to reflect new method for instantiating symbols
3cb671bView on GitHubmath, solver, solver/test: allow for constraints to be deleted (supported with tests), delete zero-coefficient terms in addSymbol, remove Row and move priority to Tag, internally rename rows to tabs to represent the solvers tableau
4cec8a0View on GitHubsolver: add cassowary test for the use case of padding a ui
281c874View on GitHubsolver: remove old refactoring comments, rename priority to prio for Row
51171cfView on GitHubmath, solver, readme: modify tests to demonstrate api usage, update readme with more complex example, rename pkg to casso
4c3d760View on GitHub