@react-three/drei 7.27.3 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/assets/cloud.base64.cjs.js +1 -1
- package/assets/cloud.base64.d.ts +1 -2
- package/assets/cloud.base64.js +2 -3
- package/core/AdaptiveDpr.js +2 -2
- package/core/AdaptiveEvents.js +2 -3
- package/core/ArcballControls.js +2 -3
- package/core/Billboard.d.ts +1 -1
- package/core/Bounds.cjs.js +1 -1
- package/core/Bounds.js +11 -2
- package/core/CameraShake.js +1 -1
- package/core/Center.d.ts +1 -1
- package/core/Center.js +1 -1
- package/core/Cloud.cjs.js +1 -1
- package/core/Cloud.js +1 -1
- package/core/ContactShadows.d.ts +1 -1
- package/core/CubeCamera.js +1 -2
- package/core/Detailed.d.ts +1 -1
- package/core/Environment.js +1 -1
- package/core/GizmoHelper.js +1 -1
- package/core/Image.d.ts +1 -1
- package/core/Instances.d.ts +2 -2
- package/core/Line.d.ts +1 -1
- package/core/MeshDistortMaterial.d.ts +1 -1
- package/core/MeshReflectorMaterial.d.ts +1 -1
- package/core/MeshReflectorMaterial.js +1 -1
- package/core/MeshWobbleMaterial.d.ts +1 -1
- package/core/OrbitControls.js +2 -3
- package/core/OrthographicCamera.cjs.js +1 -1
- package/core/OrthographicCamera.d.ts +1 -1
- package/core/OrthographicCamera.js +1 -2
- package/core/PerspectiveCamera.cjs.js +1 -1
- package/core/PerspectiveCamera.d.ts +1 -1
- package/core/PerspectiveCamera.js +1 -2
- package/core/Points.d.ts +2 -2
- package/core/PositionalAudio.d.ts +1 -1
- package/core/Preload.js +1 -1
- package/core/Reflector.d.ts +1 -1
- package/core/Reflector.js +1 -1
- package/core/RoundedBox.d.ts +1 -1
- package/core/ScreenQuad.d.ts +1 -1
- package/core/Shadow.d.ts +1 -1
- package/core/SpotLight.d.ts +1 -1
- package/core/Stage.js +1 -2
- package/core/Stats.cjs.js +1 -1
- package/core/Stats.js +1 -1
- package/core/Text.d.ts +1 -1
- package/core/TrackballControls.js +2 -3
- package/core/TransformControls.d.ts +1 -1
- package/core/index.cjs.js +1 -1
- package/core/index.d.ts +0 -1
- package/core/index.js +1 -2
- package/core/shaderMaterial.d.ts +6 -11
- package/core/shapes.cjs.js +1 -1
- package/core/shapes.d.ts +21 -25
- package/core/shapes.js +1 -2
- package/core/useAnimations.js +1 -1
- package/core/useFBO.js +2 -2
- package/helpers/useEffectfulState.cjs.js +1 -1
- package/helpers/useEffectfulState.d.ts +1 -1
- package/helpers/useEffectfulState.js +2 -2
- package/index.cjs.js +1 -1
- package/index.js +1 -2
- package/native/index.cjs.js +1 -1
- package/native/index.js +1 -2
- package/package.json +2 -2
- package/web/Html.cjs.js +1 -1
- package/web/Html.d.ts +1 -0
- package/web/Html.js +5 -2
- package/web/index.cjs.js +1 -1
- package/web/index.js +1 -2
- package/core/DepthBuffer.cjs.js +0 -1
- package/core/DepthBuffer.d.ts +0 -5
- package/core/DepthBuffer.js +0 -36
package/README.md
CHANGED
|
@@ -147,7 +147,6 @@ The `native` route of the library **does not** export `Html` or `Loader`. The de
|
|
|
147
147
|
<li><a href="#shapes">Dodecahedron</a></li>
|
|
148
148
|
<li><a href="#shapes">Extrude</a></li>
|
|
149
149
|
<li><a href="#shapes">Lathe</a></li>
|
|
150
|
-
<li><a href="#shapes">Parametric</a></li>
|
|
151
150
|
<li><a href="#roundedbox">RoundedBox</a></li>
|
|
152
151
|
<li><a href="#screenquad">Screenquad</a></li>
|
|
153
152
|
</ul>
|
|
@@ -279,7 +278,7 @@ If you are using other controls (Orbit, Trackball, etc), you will notice how the
|
|
|
279
278
|

|
|
280
279
|
|
|
281
280
|
<p align="center">
|
|
282
|
-
<a href="https://codesandbox.io/s/l4klb"><img width="16%" src="https://codesandbox.io/api/v1/sandboxes/l4klb/screenshot.png" alt="
|
|
281
|
+
<a href="https://codesandbox.io/s/l4klb"><img width="16%" src="https://codesandbox.io/api/v1/sandboxes/l4klb/screenshot.png" alt="Horizontal tiles"/></a>
|
|
283
282
|
<a href="https://codesandbox.io/s/4m0d0"><img width="16%" src="https://codesandbox.io/api/v1/sandboxes/4m0d0/screenshot.png" alt="M1 scroll"/></a>
|
|
284
283
|
<a href="https://codesandbox.io/s/gsm1y"><img width="16%" src="https://codesandbox.io/api/v1/sandboxes/gsm1y/screenshot.png" alt="useIntersect"/></a>
|
|
285
284
|
<a href="https://codesandbox.io/s/x8gvs"><img width="16%" src="https://codesandbox.io/api/v1/sandboxes/x8gvs/screenshot.png" alt="Infinite scroll"/></a>
|
|
@@ -363,7 +362,7 @@ Semi-OrbitControls with spring-physics, polar zoom and snap-back, for presentati
|
|
|
363
362
|
|
|
364
363
|
# Shapes
|
|
365
364
|
|
|
366
|
-
[Buffer-geometry](https://threejs.org/docs/index.html#api/en/core/BufferGeometry) short-cuts for Plane, Box, Sphere, Circle, Cone, Cylinder, Tube, Torus, TorusKnot, Ring, Tetrahedron, Polyhedron, Icosahedron, Octahedron, Dodecahedron, Extrude, Lathe
|
|
365
|
+
[Buffer-geometry](https://threejs.org/docs/index.html#api/en/core/BufferGeometry) short-cuts for Plane, Box, Sphere, Circle, Cone, Cylinder, Tube, Torus, TorusKnot, Ring, Tetrahedron, Polyhedron, Icosahedron, Octahedron, Dodecahedron, Extrude, Lathe.
|
|
367
366
|
|
|
368
367
|
```jsx
|
|
369
368
|
<Plane args={[2, 2]} />
|
|
@@ -843,6 +842,7 @@ Allows you to tie HTML content to any object of your scene. It will be projected
|
|
|
843
842
|
```jsx
|
|
844
843
|
<Html
|
|
845
844
|
as='div' // Wrapping element (default: 'div')
|
|
845
|
+
wrapperClass // The className of the wrapping element (default: undefined)
|
|
846
846
|
prepend // Project content behind the canvas (default: false)
|
|
847
847
|
center // Adds a -50%/-50% css transform (default: false) [ignored in transform mode]
|
|
848
848
|
fullscreen // Aligns to the upper-left corner, fills the screen (default:false) [ignored in transform mode]
|