@react-three/drei 9.86.3 → 9.87.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.
Files changed (132) hide show
  1. package/README.md +59 -1
  2. package/core/AccumulativeShadows.cjs.js +1 -1
  3. package/core/AccumulativeShadows.js +7 -8
  4. package/core/ArcballControls.js +1 -1
  5. package/core/BBAnchor.js +2 -2
  6. package/core/Billboard.js +1 -1
  7. package/core/Bounds.js +1 -1
  8. package/core/CameraControls.js +1 -1
  9. package/core/CameraShake.js +1 -1
  10. package/core/CatmullRomLine.js +1 -1
  11. package/core/Caustics.cjs.js +1 -1
  12. package/core/Caustics.js +12 -13
  13. package/core/Center.js +1 -1
  14. package/core/Clone.js +1 -1
  15. package/core/Cloud.js +10 -28
  16. package/core/ContactShadows.js +1 -1
  17. package/core/CubicBezierLine.js +1 -1
  18. package/core/CurveModifier.js +1 -1
  19. package/core/Decal.js +1 -1
  20. package/core/Detailed.js +1 -1
  21. package/core/DeviceOrientationControls.js +1 -1
  22. package/core/Edges.js +1 -1
  23. package/core/Effects.js +1 -1
  24. package/core/Example.js +1 -1
  25. package/core/FaceControls.js +4 -4
  26. package/core/FaceLandmarker.js +1 -1
  27. package/core/Facemesh.d.ts +3 -3
  28. package/core/Facemesh.js +4 -4
  29. package/core/FirstPersonControls.js +1 -1
  30. package/core/Float.js +1 -1
  31. package/core/FlyControls.js +1 -1
  32. package/core/GizmoHelper.js +7 -7
  33. package/core/GizmoViewcube.js +3 -3
  34. package/core/Gltf.js +1 -1
  35. package/core/GradientTexture.js +1 -4
  36. package/core/Grid.cjs.js +1 -1
  37. package/core/Grid.js +7 -8
  38. package/core/Image.cjs.js +1 -1
  39. package/core/Image.js +7 -8
  40. package/core/Instances.js +3 -3
  41. package/core/Lightformer.js +1 -1
  42. package/core/Line.js +1 -1
  43. package/core/MapControls.js +1 -1
  44. package/core/MarchingCubes.js +4 -4
  45. package/core/Mask.js +1 -1
  46. package/core/MeshDiscardMaterial.js +1 -1
  47. package/core/MeshDistortMaterial.js +1 -1
  48. package/core/MeshPortalMaterial.cjs.js +1 -1
  49. package/core/MeshPortalMaterial.js +5 -6
  50. package/core/MeshReflectorMaterial.cjs.js +1 -1
  51. package/core/MeshReflectorMaterial.js +2 -2
  52. package/core/MeshRefractionMaterial.cjs.js +1 -1
  53. package/core/MeshTransmissionMaterial.js +1 -1
  54. package/core/MeshWobbleMaterial.js +1 -1
  55. package/core/MotionPathControls.js +2 -2
  56. package/core/OrbitControls.js +1 -1
  57. package/core/OrthographicCamera.js +1 -1
  58. package/core/Outlines.cjs.js +1 -1
  59. package/core/Outlines.js +4 -5
  60. package/core/PerformanceMonitor.js +1 -1
  61. package/core/PerspectiveCamera.js +1 -1
  62. package/core/PointMaterial.cjs.js +1 -1
  63. package/core/PointMaterial.js +3 -4
  64. package/core/PointerLockControls.js +1 -1
  65. package/core/Points.js +4 -4
  66. package/core/PositionalAudio.js +1 -1
  67. package/core/QuadraticBezierLine.js +3 -3
  68. package/core/Reflector.cjs.js +1 -1
  69. package/core/Reflector.js +2 -2
  70. package/core/RenderCubeTexture.cjs.js +1 -0
  71. package/core/RenderCubeTexture.d.ts +30 -0
  72. package/core/RenderCubeTexture.js +102 -0
  73. package/core/RenderTexture.js +1 -1
  74. package/core/Resize.js +1 -1
  75. package/core/RoundedBox.js +1 -1
  76. package/core/ScreenQuad.js +1 -1
  77. package/core/ScreenSpace.js +1 -1
  78. package/core/Segments.js +3 -3
  79. package/core/Shadow.js +1 -1
  80. package/core/Sky.js +1 -1
  81. package/core/Sparkles.cjs.js +1 -1
  82. package/core/Sparkles.js +3 -4
  83. package/core/SpotLight.cjs.js +1 -1
  84. package/core/SpotLight.js +1 -1
  85. package/core/Stage.cjs.js +1 -1
  86. package/core/Stars.cjs.js +1 -1
  87. package/core/Stars.js +4 -4
  88. package/core/Svg.js +1 -1
  89. package/core/Text.js +1 -1
  90. package/core/Text3D.js +1 -1
  91. package/core/TrackballControls.js +1 -1
  92. package/core/Trail.js +1 -1
  93. package/core/TransformControls.js +1 -1
  94. package/core/Wireframe.cjs.js +1 -1
  95. package/core/Wireframe.js +1 -1
  96. package/core/index.cjs.js +1 -1
  97. package/core/index.d.ts +1 -0
  98. package/core/index.js +2 -1
  99. package/core/meshBounds.js +4 -4
  100. package/core/shapes.js +19 -19
  101. package/core/useBVH.js +1 -1
  102. package/core/useProgress.js +1 -1
  103. package/index.cjs.js +1 -1
  104. package/index.js +1 -0
  105. package/materials/BlurPass.cjs.js +1 -1
  106. package/materials/ConvolutionMaterial.cjs.js +1 -1
  107. package/materials/ConvolutionMaterial.js +1 -2
  108. package/materials/DiscardMaterial.js +1 -1
  109. package/materials/MeshRefractionMaterial.cjs.js +1 -1
  110. package/materials/MeshRefractionMaterial.js +7 -8
  111. package/materials/SpotLightMaterial.cjs.js +1 -1
  112. package/materials/SpotLightMaterial.js +1 -2
  113. package/materials/WireframeMaterial.js +4 -4
  114. package/native/index.cjs.js +1 -1
  115. package/native/index.js +2 -1
  116. package/package.json +1 -1
  117. package/react-three-drei-0.0.0-semantic-release.tgz +0 -0
  118. package/web/Html.cjs.js +1 -1
  119. package/web/Html.js +6 -6
  120. package/web/ScrollControls.js +4 -4
  121. package/web/Select.js +1 -1
  122. package/web/View.js +1 -1
  123. package/web/index.cjs.js +1 -1
  124. package/web/index.js +2 -1
  125. package/web/pivotControls/AxisArrow.js +4 -4
  126. package/web/pivotControls/AxisRotator.js +6 -6
  127. package/web/pivotControls/PlaneSlider.js +3 -3
  128. package/web/pivotControls/context.js +1 -1
  129. package/web/pivotControls/index.js +21 -21
  130. package/helpers/constants.cjs.js +0 -1
  131. package/helpers/constants.d.ts +0 -1
  132. package/helpers/constants.js +0 -5
@@ -7,9 +7,9 @@ import { PlaneSlider } from './PlaneSlider.js';
7
7
  import { AxisRotator } from './AxisRotator.js';
8
8
  import { context } from './context.js';
9
9
 
10
- const tV0 = /*@__PURE__*/new THREE.Vector3();
11
- const tV1 = /*@__PURE__*/new THREE.Vector3();
12
- const tV2 = /*@__PURE__*/new THREE.Vector3();
10
+ const tV0 = new THREE.Vector3();
11
+ const tV1 = new THREE.Vector3();
12
+ const tV2 = new THREE.Vector3();
13
13
  const getPoint2 = (point3, camera, size) => {
14
14
  const widthHalf = size.width / 2;
15
15
  const heightHalf = size.height / 2;
@@ -34,24 +34,24 @@ const calculateScaleFactor = (point3, radiusPx, camera, size) => {
34
34
  }
35
35
  return scale;
36
36
  };
37
- const mL0 = /*@__PURE__*/new THREE.Matrix4();
38
- const mW0 = /*@__PURE__*/new THREE.Matrix4();
39
- const mP = /*@__PURE__*/new THREE.Matrix4();
40
- const mPInv = /*@__PURE__*/new THREE.Matrix4();
41
- const mW = /*@__PURE__*/new THREE.Matrix4();
42
- const mL = /*@__PURE__*/new THREE.Matrix4();
43
- const mL0Inv = /*@__PURE__*/new THREE.Matrix4();
44
- const mdL = /*@__PURE__*/new THREE.Matrix4();
45
- const bb = /*@__PURE__*/new THREE.Box3();
46
- const bbObj = /*@__PURE__*/new THREE.Box3();
47
- const vCenter = /*@__PURE__*/new THREE.Vector3();
48
- const vSize = /*@__PURE__*/new THREE.Vector3();
49
- const vAnchorOffset = /*@__PURE__*/new THREE.Vector3();
50
- const vPosition = /*@__PURE__*/new THREE.Vector3();
51
- const xDir = /*@__PURE__*/new THREE.Vector3(1, 0, 0);
52
- const yDir = /*@__PURE__*/new THREE.Vector3(0, 1, 0);
53
- const zDir = /*@__PURE__*/new THREE.Vector3(0, 0, 1);
54
- const PivotControls = /*@__PURE__*/React.forwardRef(({
37
+ const mL0 = new THREE.Matrix4();
38
+ const mW0 = new THREE.Matrix4();
39
+ const mP = new THREE.Matrix4();
40
+ const mPInv = new THREE.Matrix4();
41
+ const mW = new THREE.Matrix4();
42
+ const mL = new THREE.Matrix4();
43
+ const mL0Inv = new THREE.Matrix4();
44
+ const mdL = new THREE.Matrix4();
45
+ const bb = new THREE.Box3();
46
+ const bbObj = new THREE.Box3();
47
+ const vCenter = new THREE.Vector3();
48
+ const vSize = new THREE.Vector3();
49
+ const vAnchorOffset = new THREE.Vector3();
50
+ const vPosition = new THREE.Vector3();
51
+ const xDir = new THREE.Vector3(1, 0, 0);
52
+ const yDir = new THREE.Vector3(0, 1, 0);
53
+ const zDir = new THREE.Vector3(0, 0, 1);
54
+ const PivotControls = /*#__PURE__*/React.forwardRef(({
55
55
  matrix,
56
56
  onDragStart,
57
57
  onDrag,
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("three");const r=parseInt(e.REVISION.replace(/\D+/g,""));exports.version=r;
@@ -1 +0,0 @@
1
- export declare const version: number;
@@ -1,5 +0,0 @@
1
- import { REVISION } from 'three';
2
-
3
- const version = /*@__PURE__*/parseInt( /*@__PURE__*/REVISION.replace(/\D+/g, ''));
4
-
5
- export { version };