-
Notifications
You must be signed in to change notification settings - Fork 11
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
Is the circuit element tool visible property working correctly? #858
Comments
I noticed that if I follow the same steps as above, but with the ammeter ( When I return the meters to the panel, they disappear. metersvisible.mp4 |
I tested all the functionality described above and it now seems to be working properly (transmitted to preview sim correctly). But I observed the following issues:
Those labels cannot be hidden but they can get their strings set to the empty string: |
I improved the tandem name for the voltmeter so it is consistent with the rest of the sim. |
Anyways, I don't think I should work on that tree much more until checking in about the design of that part. Do we still need |
I'll review this with @matthew-blackman in #917 |
@matthew-blackman and I verified that the labels in the sensor toolbox disappear when hiding the corresponding ToolNode. The "Ammeters" text will disappear if both @samreid There isn't a reason to keep the |
I removed the iconWithLabel and regenerated APIs. Tested in Studio. Closing. |
Test device
Dell
Operating System
Win10
Browser
Chrome
Problem description
For phetsims/qa#774:
In Studio, when a circuit element that there is multiple of, such as a battery, is placed in the play area and then its visible property is set to false (view.circuitElementToolbox.circuitElementTools.rightBatteryToolNode.visibleProperty), it's value will be true when the sim is launched. If that item was not in the play area, its value stays false.
This seems like a bug to me, but I first wanted to make sure that this was not by design.
Steps to reproduce
Visuals
visibleproperty.mp4
The text was updated successfully, but these errors were encountered: