IjzerenHein/kiwi.js

Get the list of constraints

mourad1081 opened this issue · 1 comments

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 instance, something like this:

[
    "variable A - variable B >= 10",
    "variable A + variable B <= 20",
    Etc.
]

Or do you have any hints on how I can implement that please apart from maintening a list each time a constraint is added?

@mourad1081 shameless plug for my own project, but I wrote a higher level constraint syntax on top of kiwi.js. I think this provides what you're talking about: https://github.com/mreinstein/constraint-solver