lume / kiwi

Fast TypeScript implementation of the Cassowary constraint solving algorithm (soon for AssemblyScript / WebAssembly).
https://codepen.io/trusktr/pen/abMLVxa
Other
154 stars 8 forks source link

Add getConstraints to solver #7

Closed theSherwood closed 8 months ago

theSherwood commented 9 months ago

This is a first swing at adding to the public api of the Solver to get a list of all the constraints. Pretty simple, but do you have any thoughts on this?

(I separately created a branch that gets rid of the maptype.ts file and replaces all its uses with js Maps but the benchmarks slipped.)

trusktr commented 9 months ago

This looks good. Thanks for adding a test too! I can publish a release in a little while.

trusktr commented 8 months ago

Out in v0.4.2!