Comments (3)
Here's the example, with root having a fixed size: https://codesandbox.io/s/rrppl0y8l4 I'll mention this in the GH front.
from react-three-fiber.
Ah, that's the auto-resize, you must put the containing div to relative or absolute and give it a size, otherwise it will be pushed out of bounds. I'm still figuring out how to either do this better or communicate it. That's been a known issue with auto-measuring tools. I could also not measure, like a generic canvas and leave that up to you, but that wouldn't be convenient. Any ideas?
from react-three-fiber.
Ah, having a working codesandbox for that is even better. Thanks!
from react-three-fiber.
Related Issues (20)
- When I install and use, I get an error HOT 1
- Allow passing loader instances to `useLoader` HOT 2
- deprecated three js import HOT 1
- Vite rollup not working with images
- OrthographicCamera left, right, top, bottom settings do not work when set from <Canvas>
- Documentation update to use "three/addons" rather than "three/examples" HOT 3
- GLTF is not solid?
- Typescript Error: 'Canvas' cannot be used as a JSX component. HOT 3
- Support translation of geometries HOT 2
- Support some type of `addEventListener` on native `Canvas`
- Any guide on how to migrate to the new ThreeJS lighting model? HOT 2
- Cannot read property 'GLView' at react-native
- THREE.WebGLRenderer context lost when I route to another page HOT 1
- Allow pass custom store by props
- How to animate material during rendering
- Can't catch all useGLTF errors with React Error Boundaries HOT 7
- How to render text on top of material from list of materials? HOT 1
- Invalidate is not behaving as expected HOT 5
- Can we modify useLoader to accept an empty string or null? HOT 1
- XRFrame type resolving incorrectly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-three-fiber.