We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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> )} ); }
The text was updated successfully, but these errors were encountered:
tommasoturchi
No branches or pull requests
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>
)}
);
}
The text was updated successfully, but these errors were encountered: