cassowary.js
cassowary.js copied to clipboard
making it easier to debug
trafficstars
I was trying to figure out how to update the value of a stay so I thought I'd require the ../cassowary/src/c.js or ../cassowary/index.js. I added cassowary.js as a submodule and the paths are working fine. The only problem is that webpack doesn't understand the module pattern that's being used. I was thinking of refactoring the modules and using browserify or webpack as the build system. Thoughts?
Also, how does one update the value of a stay?
Answering my own question about the stay, you do the following:
solver.addEditVar(stayVar);
solver.suggestValue(stayVar, newValue);
solver.resolve();