@react-three/drei 9.112.0 → 9.112.1

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 CHANGED
@@ -779,24 +779,6 @@ https://pmndrs.github.io/drei
779
779
 
780
780
  [Documentation has moved here](https://pmndrs.github.io/drei/staging/use-environment)
781
781
 
782
- In order to preload you do this:
783
-
784
- ```jsx
785
- useEnvironment.preload({ preset: 'city' })
786
- useEnvironment.preload({ files: 'model.hdr' })
787
- useEnvironment.preload({ files: ['px', 'nx', 'py', 'ny', 'pz', 'nz'].map((n) => `${n}.png`) })
788
- ```
789
-
790
- Keep in mind that preloading [gainmaps](https://github.com/MONOGRID/gainmap-js) is not possible, because their loader requires access to the renderer.
791
-
792
- You can also clear your environment map from the cache:
793
-
794
- ```jsx
795
- useEnvironment.clear({ preset: 'city' })
796
- useEnvironment.clear({ files: 'model.hdr' })
797
- useEnvironment.clear({ files: ['px', 'nx', 'py', 'ny', 'pz', 'nz'].map((n) => `${n}.png`) })
798
- ```
799
-
800
782
  #### MatcapTexture / useMatcapTexture
801
783
 
802
784
  [Documentation has moved here](https://pmndrs.github.io/drei/staging/matcap-texture-use-matcap-texture)
package/core/Line.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { Vector2, Vector3, Color, ColorRepresentation } from 'three';
2
- import { ReactThreeFiber } from '@react-three/fiber';
1
+ import { Color, ColorRepresentation } from 'three';
2
+ import { ReactThreeFiber, Vector2 as FiberVector2, Vector3 as FiberVector3 } from '@react-three/fiber';
3
3
  import { LineMaterial, LineMaterialParameters, Line2, LineSegments2 } from 'three-stdlib';
4
4
  import { ForwardRefComponent } from '../helpers/ts-utils';
5
5
  export type LineProps = {
6
- points: Array<Vector3 | Vector2 | [number, number, number] | [number, number] | number>;
7
- vertexColors?: Array<Color | [number, number, number] | [number, number, number, number]>;
6
+ points: ReadonlyArray<FiberVector2 | FiberVector3>;
7
+ vertexColors?: ReadonlyArray<Color | [number, number, number] | [number, number, number, number]>;
8
8
  lineWidth?: number;
9
9
  segments?: boolean;
10
10
  } & Omit<LineMaterialParameters, 'vertexColors' | 'color'> & Omit<ReactThreeFiber.Object3DNode<Line2, typeof Line2>, 'args'> & Omit<ReactThreeFiber.Object3DNode<LineMaterial, [LineMaterialParameters]>, 'color' | 'vertexColors' | 'args'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/drei",
3
- "version": "9.112.0",
3
+ "version": "9.112.1",
4
4
  "private": false,
5
5
  "description": "useful add-ons for react-three-fiber",
6
6
  "keywords": [