19 ms·
I looked at the first Employee example in Nucleic but didn't see anything that struck me. Actually I didn't see a way to adjust layout at all. What am I missing
by elcritch 4y ago
I looked at the first Employee example in Nucleic but didn't see anything that struck me. Actually I didn't see a way to adjust layout at all. What am I missing? Without reading the paper, what is Cassowary Constraints solving for? I'd guess a bin packing implementing, which could be handy for graph networks come to think of it.
Personally I've been writing a CSS Grid implementation because I find the "Grid" (aka Table) to provide most of what I want:
https://github.com/elcritch/cssgrid/blob/main/tests/tlayout.nim https://github.com/elcritch/cssgrid/blob/main/tests/tlayout....
Though I was running into issues when trying to add `min/max/minmax` functions with fracs, as they end up creating a constraints equation. It seems CSS Grid just gives up if you specify anything that'd require a constraint solver. At least on Chrome & Safari. Fair enough but I figure I'll add at least a 1-pass try for doing `minmax(1fr, 100px)` type of things.