Skip to content
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

Fix breaking viewHelper while changing camera #469

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

arjxn-py
Copy link
Member

@arjxn-py arjxn-py commented Oct 11, 2024

Fixes #463

vh.mov

Copy link
Contributor

github-actions bot commented Oct 11, 2024

Integration tests repot: appsharing.space

Copy link
Contributor

github-actions bot commented Oct 11, 2024

Preview PR at appsharing.space

);
}
};
this.divRef.current?.appendChild(this._viewHelperDiv);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question, how are we removing the old one now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not removing it now as it was not necessary, just updating it with updateCamera works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I mean is that you re-create a new this._viewHelperDiv in updateCamera, that you append to this.divRef.current.

Don't we need to remove the old this._viewHelperDiv that was created before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Yes you're right, I just verified. Sorry that I overlooked, I'll be omw to fix it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 4602e00

Thank You for pointing this out :)

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! 🚀

Failed UI tests are not related #471

@martinRenou martinRenou merged commit 8ad1651 into jupytercad:main Oct 15, 2024
8 of 9 checks passed
@arjxn-py arjxn-py deleted the fix-viewhelper branch October 16, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing the camera projection type breaks the view helper
3 participants