cassowary.js icon indicating copy to clipboard operation
cassowary.js copied to clipboard

Easier debugging support

Open slightlyoff opened this issue 13 years ago • 1 comments

It should be possible at every point to determine what constraints determined the value for a particular Variable once a solution is found. The API for this might be something like:

c.extend(c.Variable.prototype, {
   get constraininedBy() {
       return [ /*c.LinearExpression*/ ... ];
   },
   get unconstrainedBy() {
       return [ /*c.LinearExpression*/ ... ];
   },
});

slightlyoff avatar Jun 27 '12 15:06 slightlyoff

+1

infty- avatar Feb 22 '13 23:02 infty-