@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.
- package/README.md +59 -1
- package/core/AccumulativeShadows.cjs.js +1 -1
- package/core/AccumulativeShadows.js +7 -8
- package/core/ArcballControls.js +1 -1
- package/core/BBAnchor.js +2 -2
- package/core/Billboard.js +1 -1
- package/core/Bounds.js +1 -1
- package/core/CameraControls.js +1 -1
- package/core/CameraShake.js +1 -1
- package/core/CatmullRomLine.js +1 -1
- package/core/Caustics.cjs.js +1 -1
- package/core/Caustics.js +12 -13
- package/core/Center.js +1 -1
- package/core/Clone.js +1 -1
- package/core/Cloud.js +10 -28
- package/core/ContactShadows.js +1 -1
- package/core/CubicBezierLine.js +1 -1
- package/core/CurveModifier.js +1 -1
- package/core/Decal.js +1 -1
- package/core/Detailed.js +1 -1
- package/core/DeviceOrientationControls.js +1 -1
- package/core/Edges.js +1 -1
- package/core/Effects.js +1 -1
- package/core/Example.js +1 -1
- package/core/FaceControls.js +4 -4
- package/core/FaceLandmarker.js +1 -1
- package/core/Facemesh.d.ts +3 -3
- package/core/Facemesh.js +4 -4
- package/core/FirstPersonControls.js +1 -1
- package/core/Float.js +1 -1
- package/core/FlyControls.js +1 -1
- package/core/GizmoHelper.js +7 -7
- package/core/GizmoViewcube.js +3 -3
- package/core/Gltf.js +1 -1
- package/core/GradientTexture.js +1 -4
- package/core/Grid.cjs.js +1 -1
- package/core/Grid.js +7 -8
- package/core/Image.cjs.js +1 -1
- package/core/Image.js +7 -8
- package/core/Instances.js +3 -3
- package/core/Lightformer.js +1 -1
- package/core/Line.js +1 -1
- package/core/MapControls.js +1 -1
- package/core/MarchingCubes.js +4 -4
- package/core/Mask.js +1 -1
- package/core/MeshDiscardMaterial.js +1 -1
- package/core/MeshDistortMaterial.js +1 -1
- package/core/MeshPortalMaterial.cjs.js +1 -1
- package/core/MeshPortalMaterial.js +5 -6
- package/core/MeshReflectorMaterial.cjs.js +1 -1
- package/core/MeshReflectorMaterial.js +2 -2
- package/core/MeshRefractionMaterial.cjs.js +1 -1
- package/core/MeshTransmissionMaterial.js +1 -1
- package/core/MeshWobbleMaterial.js +1 -1
- package/core/MotionPathControls.js +2 -2
- package/core/OrbitControls.js +1 -1
- package/core/OrthographicCamera.js +1 -1
- package/core/Outlines.cjs.js +1 -1
- package/core/Outlines.js +4 -5
- package/core/PerformanceMonitor.js +1 -1
- package/core/PerspectiveCamera.js +1 -1
- package/core/PointMaterial.cjs.js +1 -1
- package/core/PointMaterial.js +3 -4
- package/core/PointerLockControls.js +1 -1
- package/core/Points.js +4 -4
- package/core/PositionalAudio.js +1 -1
- package/core/QuadraticBezierLine.js +3 -3
- package/core/Reflector.cjs.js +1 -1
- package/core/Reflector.js +2 -2
- package/core/RenderCubeTexture.cjs.js +1 -0
- package/core/RenderCubeTexture.d.ts +30 -0
- package/core/RenderCubeTexture.js +102 -0
- package/core/RenderTexture.js +1 -1
- package/core/Resize.js +1 -1
- package/core/RoundedBox.js +1 -1
- package/core/ScreenQuad.js +1 -1
- package/core/ScreenSpace.js +1 -1
- package/core/Segments.js +3 -3
- package/core/Shadow.js +1 -1
- package/core/Sky.js +1 -1
- package/core/Sparkles.cjs.js +1 -1
- package/core/Sparkles.js +3 -4
- package/core/SpotLight.cjs.js +1 -1
- package/core/SpotLight.js +1 -1
- package/core/Stage.cjs.js +1 -1
- package/core/Stars.cjs.js +1 -1
- package/core/Stars.js +4 -4
- package/core/Svg.js +1 -1
- package/core/Text.js +1 -1
- package/core/Text3D.js +1 -1
- package/core/TrackballControls.js +1 -1
- package/core/Trail.js +1 -1
- package/core/TransformControls.js +1 -1
- package/core/Wireframe.cjs.js +1 -1
- package/core/Wireframe.js +1 -1
- package/core/index.cjs.js +1 -1
- package/core/index.d.ts +1 -0
- package/core/index.js +2 -1
- package/core/meshBounds.js +4 -4
- package/core/shapes.js +19 -19
- package/core/useBVH.js +1 -1
- package/core/useProgress.js +1 -1
- package/index.cjs.js +1 -1
- package/index.js +1 -0
- package/materials/BlurPass.cjs.js +1 -1
- package/materials/ConvolutionMaterial.cjs.js +1 -1
- package/materials/ConvolutionMaterial.js +1 -2
- package/materials/DiscardMaterial.js +1 -1
- package/materials/MeshRefractionMaterial.cjs.js +1 -1
- package/materials/MeshRefractionMaterial.js +7 -8
- package/materials/SpotLightMaterial.cjs.js +1 -1
- package/materials/SpotLightMaterial.js +1 -2
- package/materials/WireframeMaterial.js +4 -4
- package/native/index.cjs.js +1 -1
- package/native/index.js +2 -1
- package/package.json +1 -1
- package/react-three-drei-0.0.0-semantic-release.tgz +0 -0
- package/web/Html.cjs.js +1 -1
- package/web/Html.js +6 -6
- package/web/ScrollControls.js +4 -4
- package/web/Select.js +1 -1
- package/web/View.js +1 -1
- package/web/index.cjs.js +1 -1
- package/web/index.js +2 -1
- package/web/pivotControls/AxisArrow.js +4 -4
- package/web/pivotControls/AxisRotator.js +6 -6
- package/web/pivotControls/PlaneSlider.js +3 -3
- package/web/pivotControls/context.js +1 -1
- package/web/pivotControls/index.js +21 -21
- package/helpers/constants.cjs.js +0 -1
- package/helpers/constants.d.ts +0 -1
- 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 =
|
|
11
|
-
const tV1 =
|
|
12
|
-
const tV2 =
|
|
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 =
|
|
38
|
-
const mW0 =
|
|
39
|
-
const mP =
|
|
40
|
-
const mPInv =
|
|
41
|
-
const mW =
|
|
42
|
-
const mL =
|
|
43
|
-
const mL0Inv =
|
|
44
|
-
const mdL =
|
|
45
|
-
const bb =
|
|
46
|
-
const bbObj =
|
|
47
|
-
const vCenter =
|
|
48
|
-
const vSize =
|
|
49
|
-
const vAnchorOffset =
|
|
50
|
-
const vPosition =
|
|
51
|
-
const xDir =
|
|
52
|
-
const yDir =
|
|
53
|
-
const zDir =
|
|
54
|
-
const PivotControls =
|
|
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,
|
package/helpers/constants.cjs.js
DELETED
|
@@ -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;
|
package/helpers/constants.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const version: number;
|