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

HTMLMesh: create canvas in its original position instead of (0,0) #27091

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

Elettrotecnica
Copy link
Contributor

Related issue: AdaRoseCannon/aframe-htmlmesh/pull/19 and #25916

Similar to what has been done for images, this change introduces that canvas elements are also rendered in position rather than 0,0

All the best

@Mugen87
Copy link
Collaborator

Mugen87 commented Oct 30, 2023

Does this change also needs to honor the fix from #25930?

@Elettrotecnica
Copy link
Contributor Author

Good question. In my use case the offset does not seem to be necessary (e.g. "it works for me"), but to be honest I do not fully understand why this hardcoded 0.5 is needed in the first place...

I will be happy to introduce it in case.

@Elettrotecnica Elettrotecnica changed the title Create canvas in its original position instead of (0,0) HTMLMesh: create canvas in its original position instead of (0,0) Oct 30, 2023
@Mugen87 Mugen87 added this to the r159 milestone Oct 30, 2023
@Mugen87
Copy link
Collaborator

Mugen87 commented Oct 30, 2023

When reading the code again, it's seems okay as it is. Canvas and images are processed in the same way with this PR.

@Mugen87 Mugen87 merged commit f70e4bf into mrdoob:dev Oct 31, 2023
18 checks passed
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.

2 participants