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