-
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
Should we create CardContainerModel? #314
Comments
@samreid, @matthew-blackman, and I chatted about this, and decided that we want to do this correctly. There are a lot of muddled aspects right now, but believe that starting in baby steps is the way to go with this. A good place to start may be with separating out the positionProperty and animation in CardNode out to the model. This is not a high priority for @samreid before his vacation time. |
Let's double check that the API call here still works as expected after these changes. |
This issue is ready for review. Over to you @matthew-blackman |
Reviewed the code changes and things are looking really good here. Nice work @marlitas! The API call for .getData works great, and it's much easier to get to on the CardContainerModel. Behavior looks good, and these changes fixed #336 and #337 as well. Nice! I did run into an error when setting a card's cellPositionProperty. It looks like setting it didn't impact the card's position, and then trying to drag a card caused the following: I haven't looked into what could be causing this yet but it should be fixed before closing this issue. Lastly, I have a couple questions about PhET-IO instrumentation:
Overall this is looking really great and the refactor is a big improvement! Once we clear up a few more things we should be good to go here. Let me know if you have any questions or want to discuss the above further @marlitas. |
Mmm good catch. I think the cellPositionProperty should be readonly. I'll update that.
|
Can you help me understand what the question is? I see a comment about the cellPositionProperty, but then another comment about the dragIndicator. I agree the cellPositionProperty should be readOnly. Can you help me understand how these two are connected? Thanks! |
They are just connected because of a code refactor. The two big questions for you are:
|
|
I see. Thanks! I also noticed the Set Value didn't do anything. I was trying to figure out why nothing happened.
I don't think I provided any clarity. I'll keep thinking on it and contribute again soon. |
Turns out totalDragDistanceProperty is not needed for state. I removed it's instrumentation and all seems to be working well. @matthew-blackman, want to double check it? |
During a check-in we decided:
|
The above commit addresses all the review comments that are left. I believe this is now ready to close, but please feel free to re-open if there is something else. Thanks @matthew-blackman! |
From #284 and related to #283
The text was updated successfully, but these errors were encountered: