-
Notifications
You must be signed in to change notification settings - Fork 2
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
What is happening in new DynamicProperty( this.leftBarrierViewPointProperty ).lazyLink( resizeBarrier );
?
#26
Comments
leftBarrierViewPointProperty/rightBarrierViewPointProperty are Properties of Properties, and we need to also listen to the secondary Property for updates. Should those fields be renamed to something with |
I don't understand why this.rightBarrierViewPointProperty.value = new DerivedProperty( [ this.rightBox.boundsProperty, this.visibleBoundsProperty ], ( boxBounds, visibleBounds ) => {
return new Vector2( boxBounds.left, visibleBounds.centerY );
} ) Why is this designed to be dynamic? |
It's easier/simpler to design it that way, in my opinion. No fragility of "when after super() have we properly setup the Property so that NOW we can start to listen to it". Is there a better way? |
It does eventually end up pointing to a specific Property depending on the screen, yes. |
I noticed some places use |
@jonathanolson and I discussed this, and thought the documentation was the best way to address this, closing. |
During code review #5, I noticed:
How is this different from
I saw a total of 3 DynamicProperty instantiations this applies to.
The text was updated successfully, but these errors were encountered: