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

Enable to Set the Initial Zoom of Canva. #2122

Open
shoaibmarif opened this issue Oct 10, 2024 · 0 comments
Open

Enable to Set the Initial Zoom of Canva. #2122

shoaibmarif opened this issue Oct 10, 2024 · 0 comments
Labels
question Further information is requested

Comments

@shoaibmarif
Copy link

shoaibmarif commented Oct 10, 2024

This is my code I want to make to make initial zoom to fit the screen currently it is zoom to much is there any solution for that ?

<Canvas
       style={{ height: "500px", width: "100%" }}
       camera={{ position: [0, 0, 50], fov: 50 }}>
                   <ambientLight intensity={0.5} />
                   <directionalLight position={[5, 5, 5]} intensity={1} />
                   <Model url="/animateImages/sample.glb" />
                   <OrbitControls
                           enableZoom={true}
                           zoomSpeed={1}
                           maxDistance={1000}
                           minDistance={50} />
</Canvas> 
@shoaibmarif shoaibmarif added the question Further information is requested label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant