-
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
Get rid of VoicingManager.mainWindowVoicingEnabledProperty #1343
Comments
I hope that work in #1300 will make |
#1300 is ready, no longer on hold. |
There is a TODO in FocusManager that I don't fully understand // TODO: perhaps remove once reading blocks are set up to listen instead to Node.canSpeakProperty (voicingVisible), https://github.com/phetsims/scenery/issues/1343
voicingManager.voicingFullyEnabledProperty.link( enabled => {
this.readingBlockHighlightsVisibleProperty.value = enabled;
} ); EDIT: This can be moved out of FocusManager and into joist, but I don't think it can be removed entirely. We don't want to display reading block highlights at all when "Sim Voicing" is not enabled. |
@zepumph and I reviewed this together and we are excited to remove The only Property that seemed challenging to move out of scenery was |
Patched a memory leak above (related to this issue?), can you verify? It was leaking on every new |
Looks great. Thanks! Did this cause trouble somewhere? I'm curious if there is a use case where we are creating that many Displays? |
Yes, a memory leak in Density (there are a number of 3d sims that create Displays often, since they need to contain, size and rasterize content and update the content's rasterization when needed). |
While trying to consolidate voicing-control Properties into a more solid structure over in phetsims/joist#743, @jessegreenberg and I realized that we can get rid of the purposes of the mainWindow Property and instead of voicingVisible. This will need to wait until that feature is complete in #1300.
Once that is ready, we can toggle voicingVisible when turning sim voicing on/off in joist. On hold until that is complete.
The text was updated successfully, but these errors were encountered: