4 ms·
How does this work with changing style from Javascript? Can I change constraints at runtime and have the entire page be recalculated? I'm not familiar with the
by chton 12y ago
How does this work with changing style from Javascript? Can I change constraints at runtime and have the entire page be recalculated? I'm not familiar with the Cassowary solver, can it do partial invalidation? or would it need to recalculate the entire layout if only a minor part changes?
- d4tocchini 12y agoIt keeps things up to date with DOM changes using Mutation Observers & it does so intelligently so it won't redisplay whole page. Cassowary is an incremental solver & is optimized for adjusting constraints in runtime.
- chton 12y agoAwesome, that's what I hoped to hear. I'll definitely be trying it out then, anything over CSS :p