@react-three/drei 9.65.3 → 9.65.4
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/index.cjs.js +1 -1
- package/package.json +1 -1
- package/web/pivotControls/AxisArrow.cjs.js +1 -1
- package/web/pivotControls/AxisArrow.js +4 -2
- package/web/pivotControls/AxisRotator.cjs.js +1 -1
- package/web/pivotControls/AxisRotator.js +2 -1
- package/web/pivotControls/PlaneSlider.cjs.js +1 -1
- package/web/pivotControls/PlaneSlider.js +4 -2
package/README.md
CHANGED
|
@@ -363,7 +363,7 @@ PointerLockControls additionally supports a `selector` prop, which enables the b
|
|
|
363
363
|
#### CameraControls
|
|
364
364
|
|
|
365
365
|
<p>
|
|
366
|
-
<a href="https://codesandbox.io/s/
|
|
366
|
+
<a href="https://codesandbox.io/s/us6ipl"><img width="20%" src="https://codesandbox.io/api/v1/sandboxes/us6ipl/screenshot.png" alt="CameraControls"/></a>
|
|
367
367
|
</p>
|
|
368
368
|
|
|
369
369
|
This is an implementation of the [camera-controls](https://github.com/yomotsu/camera-controls) library.
|
|
@@ -2441,13 +2441,13 @@ return (
|
|
|
2441
2441
|
<meshBasicMaterial map={texture} toneMapped={false} />
|
|
2442
2442
|
```
|
|
2443
2443
|
|
|
2444
|
-
It also accepts a [`MediaStream`](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream) from eg. [`.getDisplayMedia()`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia):
|
|
2444
|
+
It also accepts a [`MediaStream`](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream) from eg. [`.getDisplayMedia()`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) or [`.getUserMedia()`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia):
|
|
2445
2445
|
|
|
2446
2446
|
```jsx
|
|
2447
2447
|
const [stream, setStream] = useState()
|
|
2448
2448
|
|
|
2449
2449
|
return (
|
|
2450
|
-
<mesh onClick={() => setStream(await navigator.mediaDevices.getDisplayMedia({ video: true })}>
|
|
2450
|
+
<mesh onClick={async () => setStream(await navigator.mediaDevices.getDisplayMedia({ video: true }))}>
|
|
2451
2451
|
<React.Suspense fallback={<meshBasicMaterial wireframe />}>
|
|
2452
2452
|
<VideoMaterial src={stream} />
|
|
2453
2453
|
</React.Suspense>
|