slightlyoff / cassowary.js

Cassowary/JS, better, faster, future-ready
Other
1.69k stars 107 forks source link

Allow restricted external variables #49

Open cacaodev opened 10 years ago

cacaodev commented 10 years ago

Currently, restricted variables (non negative) are only allowed internally but not when using the api. In a UI environment, elements are generally defined by 4 variables and half of them are expected to be non negative (width and height). It would be easier for developers to just declare these variables as restricted rather than adding v>=0 constraints for all the variables.