Open eonarheim opened 2 months ago
Sounds like a really useful feature!
The name wordWrap
is probably clear enough for most people, but did you consider that it could potentially confuse people used to writing css? Because word-wrap does something else in css, where white-space is used for the effect you're describing.
@Autsider666 Good point, I do like sticking to the CSS/webby way of referring to things. The fact that it does something completely different CSS makes me thing we should use whiteSpace
instead and align with CSS.
Perhaps we should implement both the CSS wordWrap
and whiteSpace
?
The CSS spec is very helpful here it details all the rules https://drafts.csswg.org/css-text/#white-space-property
Perhaps we should implement both the CSS
wordWrap
andwhiteSpace
?
This is probably the best course of action if you want to stick to the same phrasing as css.
I really dislike the word choice for this specific feature in css though. I've to google it every time, because using whiteSpace
feels so unintuitive for something that, to me, fits better with wordWrap
(or even better: lineBreak
)
I really dislike the word choice for this specific feature in css though. I've to google it every time, because using
whiteSpace
feels so unintuitive for something that, to me, fits better withwordWrap
(or even better:lineBreak
)
I have the same feelings, it throws me every time. But I agree it's probably best to be consistent with CSS even if I don't agree with their name choices.
This issue hasn't had any recent activity lately and is being marked as stale automatically.
Discussed in https://github.com/excaliburjs/Excalibur/discussions/3178