Expose dirtied func in Javascript bindings #842
Reference in New Issue
Block a user
No description provided.
Delete Branch "js-dirtied-func"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Yoga currently has the concept of a 'dirtied func', which is called when a Node becomes dirty, which can be useful to trigger a repaint. This PR exposes that functionality in the Javascript bindings.
Hello @davidaurelio I see that you've been actively working on some things in this project, do you think you could have a look at this? CI is failing, but that's unrelated (fixed in #843). Let me know if it's not okay to tag you like this and if there is a better way to get some eyes on these PRs 😄
ok, let’s merge it. Which way did you test this?
@davidaurelio has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
I ported the
YGDirtiedTest
to JavaScript, but had not included in the PR for some reason, my apologies. It replicates the bahaviour of theYGDirtiedTest.cpp
.@davidaurelio has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Noticed that the
m_dirtiedFunc
should also be cleaned up when the node is reset, same as the measure function, added those changes to the branch.@davidaurelio has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Pull request closed