-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revisit "color" and "paint" #1135
Comments
Labelling as high priority for at least an initial discussion at iO meeting |
We brought this up in phet-io meeting today. It was suggested that things may get easier if we stop supporting string in ColorDef and to always use |
It was also mentioned that likely we will want a sub team to tackle this. |
Removed high priority in discussion at dev meeting |
Developer Meeting: We noticed that this is not scheduled as a quarterly goal for Q1 2021. When it becomes a quarterly goal, we will add it back to developer meeting to create a subteam to proceed. |
As noted in Slack today... It seems like this issue has gotten a tad worse since converting to TypeScript. None of the types listed in #1135 (comment) have gone away. And we've added
... and may be others that I'm not aware of. Also as noted in Slack by @marlitas, there's currently no support for converting an |
2708621 makes |
This issue caused my to pause and bail while working on phetsims/bamboo#16.
There are a bunch of related "color" issues, most of which are bogged down by the topic of this issue:
#1115,
#948,
phetsims/axon#221,
phetsims/joist#681
...
We have a confusing number of things that are considered "color" or "paint". The ones that I know about are:
null
CSS string
Color
ColorIO
Property(...) // roll your own
ColorProperty
PaintColorProperty
ColorDef
ColorDefIO
PaintDef
... with ColorValue, ColorValueIO, ColorValueProperty recently proposed in #1115 (comment).
And:
null
to "transparent", other fails withnull
value == null | value instanceof Color | ( typeof value === 'string' && Color.isCSSColorString( value )
, some variation of it is duplicated many timesIn light of scenery and PhET-iO changes, someone needs to revisit "color" (and perhaps "paint") and come up with a plan for revising and cleaning this up.
Assigning to @ariel-phet to prioritize and assign.
The text was updated successfully, but these errors were encountered: