@react-three/drei 9.109.2 → 9.109.3

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.
Files changed (162) hide show
  1. package/README.md +7 -0
  2. package/core/Svg.cjs.js +1 -1
  3. package/core/Svg.js +7 -2
  4. package/index.cjs.js +1 -1
  5. package/package.json +3 -2
  6. package/core/AccumulativeShadows.d.ts +0 -61
  7. package/core/AdaptiveDpr.d.ts +0 -3
  8. package/core/AdaptiveEvents.d.ts +0 -1
  9. package/core/ArcballControls.d.ts +0 -15
  10. package/core/AsciiRenderer.d.ts +0 -12
  11. package/core/BBAnchor.d.ts +0 -7
  12. package/core/Backdrop.d.ts +0 -14
  13. package/core/BakeShadows.d.ts +0 -1
  14. package/core/Billboard.d.ts +0 -9
  15. package/core/Bounds.d.ts +0 -35
  16. package/core/Bvh.d.ts +0 -18
  17. package/core/CameraControls.d.ts +0 -22
  18. package/core/CameraShake.d.ts +0 -17
  19. package/core/CatmullRomLine.d.ts +0 -11
  20. package/core/Caustics.d.ts +0 -35
  21. package/core/Center.d.ts +0 -31
  22. package/core/Clone.d.ts +0 -15
  23. package/core/Cloud.d.ts +0 -59
  24. package/core/ComputedAttribute.d.ts +0 -9
  25. package/core/ContactShadows.d.ts +0 -17
  26. package/core/CubeCamera.d.ts +0 -21
  27. package/core/CubeTexture.d.ts +0 -15
  28. package/core/CubicBezierLine.d.ts +0 -13
  29. package/core/CurveModifier.d.ts +0 -10
  30. package/core/Decal.d.ts +0 -16
  31. package/core/Detailed.d.ts +0 -10
  32. package/core/DetectGPU.d.ts +0 -8
  33. package/core/DeviceOrientationControls.d.ts +0 -10
  34. package/core/Edges.d.ts +0 -13
  35. package/core/Effects.d.ts +0 -29
  36. package/core/Environment.d.ts +0 -39
  37. package/core/Example.d.ts +0 -13
  38. package/core/Fbo.d.ts +0 -28
  39. package/core/Fbx.d.ts +0 -11
  40. package/core/FirstPersonControls.d.ts +0 -8
  41. package/core/Fisheye.d.ts +0 -9
  42. package/core/Float.d.ts +0 -13
  43. package/core/FlyControls.d.ts +0 -10
  44. package/core/GizmoHelper.d.ts +0 -15
  45. package/core/GizmoViewcube.d.ts +0 -14
  46. package/core/GizmoViewport.d.ts +0 -16
  47. package/core/Gltf.d.ts +0 -20
  48. package/core/GradientTexture.d.ts +0 -18
  49. package/core/Grid.d.ts +0 -27
  50. package/core/Helper.d.ts +0 -16
  51. package/core/Hud.d.ts +0 -7
  52. package/core/Image.d.ts +0 -40
  53. package/core/Instances.d.ts +0 -43
  54. package/core/Ktx2.d.ts +0 -14
  55. package/core/Lightformer.d.ts +0 -14
  56. package/core/Line.d.ts +0 -13
  57. package/core/MapControls.d.ts +0 -14
  58. package/core/MarchingCubes.d.ts +0 -24
  59. package/core/Mask.d.ts +0 -17
  60. package/core/MatcapTexture.d.ts +0 -9
  61. package/core/MeshDiscardMaterial.d.ts +0 -11
  62. package/core/MeshDistortMaterial.d.ts +0 -41
  63. package/core/MeshPortalMaterial.d.ts +0 -28
  64. package/core/MeshReflectorMaterial.d.ts +0 -27
  65. package/core/MeshRefractionMaterial.d.ts +0 -22
  66. package/core/MeshTransmissionMaterial.d.ts +0 -35
  67. package/core/MeshWobbleMaterial.d.ts +0 -38
  68. package/core/MotionPathControls.d.ts +0 -27
  69. package/core/NormalTexture.d.ts +0 -14
  70. package/core/OrbitControls.d.ts +0 -22
  71. package/core/OrthographicCamera.d.ts +0 -14
  72. package/core/Outlines.d.ts +0 -16
  73. package/core/PerformanceMonitor.d.ts +0 -36
  74. package/core/PerspectiveCamera.d.ts +0 -14
  75. package/core/PointMaterial.d.ts +0 -16
  76. package/core/PointerLockControls.d.ts +0 -15
  77. package/core/Points.d.ts +0 -34
  78. package/core/PositionalAudio.d.ts +0 -9
  79. package/core/Preload.d.ts +0 -8
  80. package/core/Progress.d.ts +0 -14
  81. package/core/QuadraticBezierLine.d.ts +0 -16
  82. package/core/Reflector.d.ts +0 -30
  83. package/core/RenderCubeTexture.d.ts +0 -30
  84. package/core/RenderTexture.d.ts +0 -18
  85. package/core/Resize.d.ts +0 -10
  86. package/core/RoundedBox.d.ts +0 -12
  87. package/core/Sampler.d.ts +0 -28
  88. package/core/ScreenQuad.d.ts +0 -5
  89. package/core/ScreenSizer.d.ts +0 -7
  90. package/core/ScreenSpace.d.ts +0 -6
  91. package/core/Segments.d.ts +0 -31
  92. package/core/Shadow.d.ts +0 -12
  93. package/core/ShadowAlpha.d.ts +0 -8
  94. package/core/Sky.d.ts +0 -17
  95. package/core/Sparkles.d.ts +0 -21
  96. package/core/Splat.d.ts +0 -58
  97. package/core/SpotLight.d.ts +0 -26
  98. package/core/SpriteAnimator.d.ts +0 -38
  99. package/core/Stage.d.ts +0 -26
  100. package/core/Stars.d.ts +0 -24
  101. package/core/Stats.d.ts +0 -8
  102. package/core/StatsGl.d.ts +0 -9
  103. package/core/Svg.d.ts +0 -13
  104. package/core/Text.d.ts +0 -38
  105. package/core/Text3D.d.ts +0 -23
  106. package/core/Texture.d.ts +0 -20
  107. package/core/TrackballControls.d.ts +0 -15
  108. package/core/Trail.d.ts +0 -21
  109. package/core/TrailTexture.d.ts +0 -18
  110. package/core/TransformControls.d.ts +0 -28
  111. package/core/VideoTexture.d.ts +0 -14
  112. package/core/Wireframe.d.ts +0 -17
  113. package/core/calculateScaleFactor.d.ts +0 -3
  114. package/core/index.d.ts +0 -122
  115. package/core/meshBounds.d.ts +0 -2
  116. package/core/shaderMaterial.d.ts +0 -7
  117. package/core/shapes.d.ts +0 -25
  118. package/core/softShadows.d.ts +0 -7
  119. package/core/useAnimations.d.ts +0 -13
  120. package/core/useAspect.d.ts +0 -1
  121. package/core/useBoxProjectedEnv.d.ts +0 -19
  122. package/core/useCamera.d.ts +0 -3
  123. package/core/useContextBridge.d.ts +0 -4
  124. package/core/useDepthBuffer.d.ts +0 -6
  125. package/core/useEnvironment.d.ts +0 -11
  126. package/core/useFont.d.ts +0 -24
  127. package/core/useIntersect.d.ts +0 -3
  128. package/core/useSpriteLoader.d.ts +0 -10
  129. package/helpers/constants.d.ts +0 -1
  130. package/helpers/deprecated.d.ts +0 -8
  131. package/helpers/environment-assets.d.ts +0 -13
  132. package/helpers/ts-utils.d.ts +0 -3
  133. package/helpers/useEffectfulState.d.ts +0 -4
  134. package/index.d.ts +0 -1
  135. package/materials/BlurPass.d.ts +0 -23
  136. package/materials/ConvolutionMaterial.d.ts +0 -7
  137. package/materials/DiscardMaterial.d.ts +0 -3
  138. package/materials/MeshReflectorMaterial.d.ts +0 -66
  139. package/materials/MeshRefractionMaterial.d.ts +0 -7
  140. package/materials/SpotLightMaterial.d.ts +0 -4
  141. package/materials/WireframeMaterial.d.ts +0 -48
  142. package/native/index.d.ts +0 -1
  143. package/web/CycleRaycast.d.ts +0 -10
  144. package/web/DragControls.d.ts +0 -17
  145. package/web/FaceControls.d.ts +0 -42
  146. package/web/FaceLandmarker.d.ts +0 -15
  147. package/web/Facemesh.d.ts +0 -150
  148. package/web/Html.d.ts +0 -34
  149. package/web/KeyboardControls.d.ts +0 -37
  150. package/web/Loader.d.ts +0 -12
  151. package/web/PresentationControls.d.ts +0 -17
  152. package/web/ScrollControls.d.ts +0 -45
  153. package/web/Select.d.ts +0 -14
  154. package/web/View.d.ts +0 -36
  155. package/web/index.d.ts +0 -15
  156. package/web/pivotControls/AxisArrow.d.ts +0 -7
  157. package/web/pivotControls/AxisRotator.d.ts +0 -7
  158. package/web/pivotControls/PlaneSlider.d.ts +0 -7
  159. package/web/pivotControls/ScalingSphere.d.ts +0 -7
  160. package/web/pivotControls/context.d.ts +0 -32
  161. package/web/pivotControls/index.d.ts +0 -39
  162. package/web/useCursor.d.ts +0 -1
@@ -1,32 +0,0 @@
1
- import * as THREE from 'three';
2
- import * as React from 'react';
3
- export type OnDragStartProps = {
4
- component: 'Arrow' | 'Slider' | 'Rotator' | 'Sphere';
5
- axis: 0 | 1 | 2;
6
- origin: THREE.Vector3;
7
- directions: THREE.Vector3[];
8
- };
9
- export type PivotContext = {
10
- onDragStart: (props: OnDragStartProps) => void;
11
- onDrag: (mdW: THREE.Matrix4) => void;
12
- onDragEnd: () => void;
13
- translation: {
14
- current: [number, number, number];
15
- };
16
- translationLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
17
- rotationLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
18
- scaleLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
19
- axisColors: [string | number, string | number, string | number];
20
- hoveredColor: string | number;
21
- opacity: number;
22
- scale: number;
23
- lineWidth: number;
24
- fixed: boolean;
25
- depthTest: boolean;
26
- userData?: {
27
- [key: string]: any;
28
- };
29
- annotations?: boolean;
30
- annotationsClass?: string;
31
- };
32
- export declare const context: React.Context<PivotContext>;
@@ -1,39 +0,0 @@
1
- import * as React from 'react';
2
- import * as THREE from 'three';
3
- import { ForwardRefComponent } from '../../helpers/ts-utils';
4
- import { OnDragStartProps } from './context';
5
- type PivotControlsProps = {
6
- enabled?: boolean;
7
- scale?: number;
8
- lineWidth?: number;
9
- fixed?: boolean;
10
- offset?: [number, number, number];
11
- rotation?: [number, number, number];
12
- matrix?: THREE.Matrix4;
13
- anchor?: [number, number, number];
14
- autoTransform?: boolean;
15
- activeAxes?: [boolean, boolean, boolean];
16
- disableAxes?: boolean;
17
- disableSliders?: boolean;
18
- disableRotations?: boolean;
19
- disableScaling?: boolean;
20
- translationLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
21
- rotationLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
22
- scaleLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
23
- axisColors?: [string | number, string | number, string | number];
24
- hoveredColor?: string | number;
25
- annotations?: boolean;
26
- annotationsClass?: string;
27
- onDragStart?: (props: OnDragStartProps) => void;
28
- onDrag?: (l: THREE.Matrix4, deltaL: THREE.Matrix4, w: THREE.Matrix4, deltaW: THREE.Matrix4) => void;
29
- onDragEnd?: () => void;
30
- depthTest?: boolean;
31
- opacity?: number;
32
- visible?: boolean;
33
- userData?: {
34
- [key: string]: any;
35
- };
36
- children?: React.ReactNode;
37
- };
38
- export declare const PivotControls: ForwardRefComponent<PivotControlsProps, THREE.Group>;
39
- export {};
@@ -1 +0,0 @@
1
- export declare function useCursor(hovered: boolean, onPointerOver?: string, onPointerOut?: string, container?: HTMLElement): void;