kiwi.js
kiwi.js copied to clipboard
Fast TypeScript implementation of the Cassowary constraint solving algorithm 🖖
Does someone know how to implement constraints on 2d or 3d geometries. I have a problem on how to implement a distance constraint between two 3d vectors. Imagine 2 points...
I'd hoped to be able to constrain two lines to be parallel by rewriting the equation for the slope. m1 == (p1.y - q1.y) / (p1.x - q1.x) m2 ==...
having a kiwi.js build that simply `export`s stuff would be really nice.
Hi, thanks for this project. It is small and easy to work with. I have found what appears to be a bug in the handling of certain state changes. As...
Hello, Is it possible to force variable values to be integers? For example, I want the value to be either 0 or 1 (nothing in between). Thanks!
I'd think leveraging web assembly/wasm could see some nice performance gains, since this library is inherently cpu bound.
For debugging purposes, I am trying to get the list of all the constrains I have created. Is there a way to get them in a human readable format? For...
Currently, the only way to change the constant of an active constraint is to remove it and add a modified one. There should be a more efficient way to do...
As seen in [this issue thread](https://github.com/wasdk/WebAssemblyStudio/issues/184) at the WebAssemblyStudio repo, one of the contributors was unable to find an equivalent to the following functions of cassorwary: - [solver.addStay(...)](https://github.com/slightlyoff/cassowary.js/blob/master/src/SimplexSolver.js#L177) - [Cassorwary.Equation(...)](https://github.com/slightlyoff/cassowary.js/blob/master/src/Constraint.js#L172)...