@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.
- package/README.md +7 -0
- package/core/Svg.cjs.js +1 -1
- package/core/Svg.js +7 -2
- package/index.cjs.js +1 -1
- package/package.json +3 -2
- package/core/AccumulativeShadows.d.ts +0 -61
- package/core/AdaptiveDpr.d.ts +0 -3
- package/core/AdaptiveEvents.d.ts +0 -1
- package/core/ArcballControls.d.ts +0 -15
- package/core/AsciiRenderer.d.ts +0 -12
- package/core/BBAnchor.d.ts +0 -7
- package/core/Backdrop.d.ts +0 -14
- package/core/BakeShadows.d.ts +0 -1
- package/core/Billboard.d.ts +0 -9
- package/core/Bounds.d.ts +0 -35
- package/core/Bvh.d.ts +0 -18
- package/core/CameraControls.d.ts +0 -22
- package/core/CameraShake.d.ts +0 -17
- package/core/CatmullRomLine.d.ts +0 -11
- package/core/Caustics.d.ts +0 -35
- package/core/Center.d.ts +0 -31
- package/core/Clone.d.ts +0 -15
- package/core/Cloud.d.ts +0 -59
- package/core/ComputedAttribute.d.ts +0 -9
- package/core/ContactShadows.d.ts +0 -17
- package/core/CubeCamera.d.ts +0 -21
- package/core/CubeTexture.d.ts +0 -15
- package/core/CubicBezierLine.d.ts +0 -13
- package/core/CurveModifier.d.ts +0 -10
- package/core/Decal.d.ts +0 -16
- package/core/Detailed.d.ts +0 -10
- package/core/DetectGPU.d.ts +0 -8
- package/core/DeviceOrientationControls.d.ts +0 -10
- package/core/Edges.d.ts +0 -13
- package/core/Effects.d.ts +0 -29
- package/core/Environment.d.ts +0 -39
- package/core/Example.d.ts +0 -13
- package/core/Fbo.d.ts +0 -28
- package/core/Fbx.d.ts +0 -11
- package/core/FirstPersonControls.d.ts +0 -8
- package/core/Fisheye.d.ts +0 -9
- package/core/Float.d.ts +0 -13
- package/core/FlyControls.d.ts +0 -10
- package/core/GizmoHelper.d.ts +0 -15
- package/core/GizmoViewcube.d.ts +0 -14
- package/core/GizmoViewport.d.ts +0 -16
- package/core/Gltf.d.ts +0 -20
- package/core/GradientTexture.d.ts +0 -18
- package/core/Grid.d.ts +0 -27
- package/core/Helper.d.ts +0 -16
- package/core/Hud.d.ts +0 -7
- package/core/Image.d.ts +0 -40
- package/core/Instances.d.ts +0 -43
- package/core/Ktx2.d.ts +0 -14
- package/core/Lightformer.d.ts +0 -14
- package/core/Line.d.ts +0 -13
- package/core/MapControls.d.ts +0 -14
- package/core/MarchingCubes.d.ts +0 -24
- package/core/Mask.d.ts +0 -17
- package/core/MatcapTexture.d.ts +0 -9
- package/core/MeshDiscardMaterial.d.ts +0 -11
- package/core/MeshDistortMaterial.d.ts +0 -41
- package/core/MeshPortalMaterial.d.ts +0 -28
- package/core/MeshReflectorMaterial.d.ts +0 -27
- package/core/MeshRefractionMaterial.d.ts +0 -22
- package/core/MeshTransmissionMaterial.d.ts +0 -35
- package/core/MeshWobbleMaterial.d.ts +0 -38
- package/core/MotionPathControls.d.ts +0 -27
- package/core/NormalTexture.d.ts +0 -14
- package/core/OrbitControls.d.ts +0 -22
- package/core/OrthographicCamera.d.ts +0 -14
- package/core/Outlines.d.ts +0 -16
- package/core/PerformanceMonitor.d.ts +0 -36
- package/core/PerspectiveCamera.d.ts +0 -14
- package/core/PointMaterial.d.ts +0 -16
- package/core/PointerLockControls.d.ts +0 -15
- package/core/Points.d.ts +0 -34
- package/core/PositionalAudio.d.ts +0 -9
- package/core/Preload.d.ts +0 -8
- package/core/Progress.d.ts +0 -14
- package/core/QuadraticBezierLine.d.ts +0 -16
- package/core/Reflector.d.ts +0 -30
- package/core/RenderCubeTexture.d.ts +0 -30
- package/core/RenderTexture.d.ts +0 -18
- package/core/Resize.d.ts +0 -10
- package/core/RoundedBox.d.ts +0 -12
- package/core/Sampler.d.ts +0 -28
- package/core/ScreenQuad.d.ts +0 -5
- package/core/ScreenSizer.d.ts +0 -7
- package/core/ScreenSpace.d.ts +0 -6
- package/core/Segments.d.ts +0 -31
- package/core/Shadow.d.ts +0 -12
- package/core/ShadowAlpha.d.ts +0 -8
- package/core/Sky.d.ts +0 -17
- package/core/Sparkles.d.ts +0 -21
- package/core/Splat.d.ts +0 -58
- package/core/SpotLight.d.ts +0 -26
- package/core/SpriteAnimator.d.ts +0 -38
- package/core/Stage.d.ts +0 -26
- package/core/Stars.d.ts +0 -24
- package/core/Stats.d.ts +0 -8
- package/core/StatsGl.d.ts +0 -9
- package/core/Svg.d.ts +0 -13
- package/core/Text.d.ts +0 -38
- package/core/Text3D.d.ts +0 -23
- package/core/Texture.d.ts +0 -20
- package/core/TrackballControls.d.ts +0 -15
- package/core/Trail.d.ts +0 -21
- package/core/TrailTexture.d.ts +0 -18
- package/core/TransformControls.d.ts +0 -28
- package/core/VideoTexture.d.ts +0 -14
- package/core/Wireframe.d.ts +0 -17
- package/core/calculateScaleFactor.d.ts +0 -3
- package/core/index.d.ts +0 -122
- package/core/meshBounds.d.ts +0 -2
- package/core/shaderMaterial.d.ts +0 -7
- package/core/shapes.d.ts +0 -25
- package/core/softShadows.d.ts +0 -7
- package/core/useAnimations.d.ts +0 -13
- package/core/useAspect.d.ts +0 -1
- package/core/useBoxProjectedEnv.d.ts +0 -19
- package/core/useCamera.d.ts +0 -3
- package/core/useContextBridge.d.ts +0 -4
- package/core/useDepthBuffer.d.ts +0 -6
- package/core/useEnvironment.d.ts +0 -11
- package/core/useFont.d.ts +0 -24
- package/core/useIntersect.d.ts +0 -3
- package/core/useSpriteLoader.d.ts +0 -10
- package/helpers/constants.d.ts +0 -1
- package/helpers/deprecated.d.ts +0 -8
- package/helpers/environment-assets.d.ts +0 -13
- package/helpers/ts-utils.d.ts +0 -3
- package/helpers/useEffectfulState.d.ts +0 -4
- package/index.d.ts +0 -1
- package/materials/BlurPass.d.ts +0 -23
- package/materials/ConvolutionMaterial.d.ts +0 -7
- package/materials/DiscardMaterial.d.ts +0 -3
- package/materials/MeshReflectorMaterial.d.ts +0 -66
- package/materials/MeshRefractionMaterial.d.ts +0 -7
- package/materials/SpotLightMaterial.d.ts +0 -4
- package/materials/WireframeMaterial.d.ts +0 -48
- package/native/index.d.ts +0 -1
- package/web/CycleRaycast.d.ts +0 -10
- package/web/DragControls.d.ts +0 -17
- package/web/FaceControls.d.ts +0 -42
- package/web/FaceLandmarker.d.ts +0 -15
- package/web/Facemesh.d.ts +0 -150
- package/web/Html.d.ts +0 -34
- package/web/KeyboardControls.d.ts +0 -37
- package/web/Loader.d.ts +0 -12
- package/web/PresentationControls.d.ts +0 -17
- package/web/ScrollControls.d.ts +0 -45
- package/web/Select.d.ts +0 -14
- package/web/View.d.ts +0 -36
- package/web/index.d.ts +0 -15
- package/web/pivotControls/AxisArrow.d.ts +0 -7
- package/web/pivotControls/AxisRotator.d.ts +0 -7
- package/web/pivotControls/PlaneSlider.d.ts +0 -7
- package/web/pivotControls/ScalingSphere.d.ts +0 -7
- package/web/pivotControls/context.d.ts +0 -32
- package/web/pivotControls/index.d.ts +0 -39
- 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 {};
|
package/web/useCursor.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useCursor(hovered: boolean, onPointerOver?: string, onPointerOut?: string, container?: HTMLElement): void;
|