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

CSS2DRenderer / CSS3DRenderer: allow usage of existing DOM element #22635

Merged
merged 5 commits into from
Oct 4, 2021
Merged

CSS2DRenderer / CSS3DRenderer: allow usage of existing DOM element #22635

merged 5 commits into from
Oct 4, 2021

Conversation

pimdewit
Copy link
Contributor

@pimdewit pimdewit commented Oct 4, 2021

Related issue: #22634

Description

Pass an optional element to CSS2DRenderer & CSS3DRenderer constructor to prevent creating additional DOM.

This allows for nicer usage with a plethora of frameworks.
@pimdewit pimdewit changed the title Add optional attribute to use existing element for CSS2DRenderer CSS2DRenderer: allow usage of existing DOM element Oct 4, 2021
@Mugen87 Mugen87 changed the base branch from master to dev October 4, 2021 13:15
@pimdewit pimdewit changed the title CSS2DRenderer: allow usage of existing DOM element CSS2DRenderer / CSS3DRenderer: allow usage of existing DOM element Oct 4, 2021
@pimdewit pimdewit marked this pull request as draft October 4, 2021 13:40
@pimdewit pimdewit marked this pull request as ready for review October 4, 2021 14:56
@mrdoob mrdoob added this to the r134 milestone Oct 4, 2021
@mrdoob mrdoob merged commit 29a7c71 into mrdoob:dev Oct 4, 2021
@mrdoob
Copy link
Owner

mrdoob commented Oct 4, 2021

Thanks!

@pimdewit pimdewit deleted the patch-1 branch October 24, 2021 16:55
@joshuaellis joshuaellis mentioned this pull request Nov 2, 2021
12 tasks
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.

None yet

2 participants