eeeeaaii / vodka

Creative Coding Environment
GNU General Public License v3.0
126 stars 3 forks source link

make some kind of on-contents-changed handler #126

Closed eeeeaaii closed 2 years ago

eeeeaaii commented 3 years ago

There are potentially situations where you might want the css style of a word or something to recalculate when its contents change.

For example, CSS scaling takes items out of the flow. If you want the text to behave naturally so that text after or before the scaled text flow correctly, then you need to recalculate the left or right margin when the text size changes.

To do this there would have to be some kind of expectation that fires when the contents of the word change.

this would be another "set" function I guess.

eeeeaaii commented 3 years ago

not fully resolved because it needs to fire if contents-of-contents is changed (eh, or not)