-
Notifications
You must be signed in to change notification settings - Fork 7
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
Some nodes not instrumented #78
Comments
I am able to instrument everything in the sim easily because they are all nodes. There is one exception. There is hacky behavior with the coils to get the left "front" half to be on top of the wires and the "back" half behind the wires. Here is the trouble in the screen view: // move coils to front
bottomCoilNode.frontImage.detach();
this.addChild( bottomCoilNode.frontImage );
bottomCoilNode.frontImage.center = model.bottomCoil.position.plus( new Vector2( CoilNode.xOffset, 0 ) );
topCoilNode.frontImage.detach();
this.addChild( topCoilNode.frontImage );
topCoilNode.frontImage.center = model.topCoil.position.plus( new Vector2( CoilNode.xOffset + CoilNode.twoOffset, 0 ) );
model.showSecondCoilProperty.linkAttribute( topCoilNode.frontImage, 'visible' ); After top and Here is a diff of my changes, I will stash them locally until we figure this out:
|
I have seen a similar pattern in other places where we need to deal with z-ordering. This may be a good one to collaborate on. |
If we decide to proceed with this, we should create a TType with a method that lets the client hide the node (both parts). But we are on hold until we have design goals for the PhET-iO version in #79 |
Unassigning until #79 is complete. |
We are intentionally not instrumenting all nodes, the reinstrumentation will proceed in #79, closing. |
From https://github.com/phetsims/phet-io/issues/754
@samreid, can you investigate what isn't instrumented with just a screenshot? Everything I could make invisible via the instance proxies is hidden, and these were left over:
For phetsims/tasks/issues/718.
Edit: now also for phetsims/tasks/issues/724.
@zepumph can you please investigate?
The text was updated successfully, but these errors were encountered: