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

making it easier to debug

Open kevinbarabash opened this issue 10 years ago • 1 comments
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?

kevinbarabash avatar Jun 03 '15 03:06 kevinbarabash

Answering my own question about the stay, you do the following:

solver.addEditVar(stayVar);
solver.suggestValue(stayVar, newValue);
solver.resolve();

kevinbarabash avatar Jun 03 '15 03:06 kevinbarabash