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

target size problrm #17

Open
kordou opened this issue Jul 2, 2023 · 0 comments
Open

target size problrm #17

kordou opened this issue Jul 2, 2023 · 0 comments
Assignees

Comments

@kordou
Copy link

kordou commented Jul 2, 2023

hi,
i am trying react-mind with drei an i just loaded an html element.
i see that your image target is 674X372 px

so i added an html od drei with the same image size but when it displayed it is huge.

how can we make it 1:1 on size with the target image ?

thank you

function App() {
const [show, setShow] = useState(false);
return (


<ARAnchor
target={0}
onAnchorFound={() => {
setShow(true);
}}
>
onAnchorLost=
{() => {
setShow(false);
}}
{show && (
<Html occlude="blending" transform style={{width:674, height:372}}>
<iframe width="674" height="372" src="https://www.youtube.com/embed/jx5hdo50a2M?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen ></iframe>

)}


);
}

@tommasoturchi tommasoturchi self-assigned this Jul 13, 2023
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

No branches or pull requests

2 participants