-
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
Allow Path/Image to take TReadOnlyProperty with shapeProperty/imageProperty #1613
Comments
Additionally in phetsims/beers-law-lab@7c794ec, I had to add strictAxonDependencies:false to something (otherwise... reading Node bounds inside of a DerivedProperty would be prohibited?). @samreid thoughts on whether this issue (related to phetsims/axon#441) qualifies as a good catch (hey, should we listen to the bodyNode/probeNode bounds?) or as noise? |
@zepumph, available to review? |
It seems unfortunate that the framework cannot figure out that listening to |
Signed-off-by: Michael Kauzmann <[email protected]>
From review:
Thus far I have only completed the Path and Imageable files review. |
A lot of code is needed to support a null value there. It would take more plumbing to adjust (SVG path with empty path info is fine, SVG image with empty src seems to have issues). I realize there is a discrepancy, but I would resolve that discrepancy by not letting Path take null (and instead use an empty Shape). |
The cases of drawableMarkFlags don't actually include 'shapeProperty', so there is no need to remove them. |
Created an issue for potential chip-away to refactor using the new patterns as noted above: #1651 |
Created an issue for the highlight overlay shapeProperty in #1652. |
@zepumph thoughts on the above? Is everything handled? |
I think this all looks great. Thanks for handling this. |
It looks like these will need to take a slightly more unhooked approach, due to:
TinyForwardingProperty.setTargetProperty
has a lot of assumptions about Node/NodeLike. SpriteImage is not Node-like. @zepumph I'm curious about review, I wasn't expecting the setTargetProperty implementation (... it looks safe to me to pass null in?)Finishing testing and adding some implementations in sims (where we were clearly linking something that could be a Property/DerivedProperty).
The text was updated successfully, but these errors were encountered: