@react-three/drei 11.0.0-alpha.3 → 11.0.0-alpha.4
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/index.d.mts +12 -12
- package/core/index.d.ts +12 -12
- package/core/index.mjs +18 -18
- package/experimental/index.d.mts +4 -4
- package/experimental/index.d.ts +4 -4
- package/experimental/index.mjs +2 -2
- package/external/index.d.mts +3 -3
- package/external/index.d.ts +3 -3
- package/index.d.mts +12 -12
- package/index.d.ts +12 -12
- package/index.mjs +19 -19
- package/legacy/index.d.mts +11 -11
- package/legacy/index.d.ts +11 -11
- package/legacy/index.mjs +26 -27
- package/native/index.d.mts +9 -9
- package/native/index.d.ts +9 -9
- package/native/index.mjs +16 -16
- package/package.json +1 -1
- package/webgpu/index.d.mts +9 -9
- package/webgpu/index.d.ts +9 -9
- package/webgpu/index.mjs +16 -16
package/core/index.d.mts
CHANGED
|
@@ -4,13 +4,13 @@ import * as _react_three_fiber from '@react-three/fiber';
|
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement, Vector2, Vector3, ThreeEvent, Color as Color$1, ObjectMap, ComputeFunction, Euler } from '@react-three/fiber';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
6
|
import { MeshStandardMaterial, Texture as Texture$1, Matrix4, Color, ColorRepresentation, Fog, FogExp2, WebGLCubeRenderTarget, CubeCamera as CubeCamera$1, OrthographicCamera as OrthographicCamera$1, PerspectiveCamera as PerspectiveCamera$1, Event, Camera, Material, Vector3 as Vector3$1, Group, Object3D, LOD, Mesh, ExtrudeGeometry, PositionalAudio as PositionalAudio$1, AnimationClip, AnimationMixer, AnimationAction, BufferGeometry, BufferAttribute, InstancedMesh as InstancedMesh$1, InstancedBufferAttribute, DepthTexture, CubeTexture as CubeTexture$1, Raycaster, Intersection, RenderTargetOptions, Box3, Sphere as Sphere$1, Loader as Loader$1, ColorSpace, Scene, PlaneGeometry, MeshBasicMaterial } from 'three';
|
|
7
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
8
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
9
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
10
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
11
11
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
12
12
|
import { DragConfig } from '@use-gesture/react';
|
|
13
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
13
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
14
14
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
15
15
|
import * as zustand from 'zustand';
|
|
16
16
|
import { StoreApi } from 'zustand';
|
|
@@ -20,18 +20,18 @@ import { PointerLockControls as PointerLockControls$1 } from 'three/examples/jsm
|
|
|
20
20
|
import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/controls/TrackballControls.js';
|
|
21
21
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
22
|
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
23
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
24
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
25
|
-
import * as
|
|
26
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
27
|
import { Falsey, Assign } from 'utility-types';
|
|
28
28
|
import * as hls_js from 'hls.js';
|
|
29
29
|
import hls_js__default from 'hls.js';
|
|
30
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
31
|
import * as detect_gpu from 'detect-gpu';
|
|
32
32
|
import { GetGPUTier } from 'detect-gpu';
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
36
|
|
|
37
37
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
@@ -750,7 +750,7 @@ type FontData = {
|
|
|
750
750
|
original_font_information?: Record<string, unknown>;
|
|
751
751
|
};
|
|
752
752
|
type FontInput = string | FontData;
|
|
753
|
-
declare function useFont(font: FontInput):
|
|
753
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
754
754
|
declare namespace useFont {
|
|
755
755
|
var preload: (font: FontInput) => undefined;
|
|
756
756
|
var clear: (font: FontInput) => void;
|
|
@@ -1652,7 +1652,7 @@ type EnvironmentLoaderProps = {
|
|
|
1652
1652
|
extensions?: (loader: Loader$1) => void;
|
|
1653
1653
|
colorSpace?: ColorSpace;
|
|
1654
1654
|
};
|
|
1655
|
-
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>):
|
|
1655
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture$1<unknown>;
|
|
1656
1656
|
declare namespace useEnvironment {
|
|
1657
1657
|
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1658
1658
|
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
package/core/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import * as _react_three_fiber from '@react-three/fiber';
|
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement, Vector2, Vector3, ThreeEvent, Color as Color$1, ObjectMap, ComputeFunction, Euler } from '@react-three/fiber';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
6
|
import { MeshStandardMaterial, Texture as Texture$1, Matrix4, Color, ColorRepresentation, Fog, FogExp2, WebGLCubeRenderTarget, CubeCamera as CubeCamera$1, OrthographicCamera as OrthographicCamera$1, PerspectiveCamera as PerspectiveCamera$1, Event, Camera, Material, Vector3 as Vector3$1, Group, Object3D, LOD, Mesh, ExtrudeGeometry, PositionalAudio as PositionalAudio$1, AnimationClip, AnimationMixer, AnimationAction, BufferGeometry, BufferAttribute, InstancedMesh as InstancedMesh$1, InstancedBufferAttribute, DepthTexture, CubeTexture as CubeTexture$1, Raycaster, Intersection, RenderTargetOptions, Box3, Sphere as Sphere$1, Loader as Loader$1, ColorSpace, Scene, PlaneGeometry, MeshBasicMaterial } from 'three';
|
|
7
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
8
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
9
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
10
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
11
11
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
12
12
|
import { DragConfig } from '@use-gesture/react';
|
|
13
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
13
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
14
14
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
15
15
|
import * as zustand from 'zustand';
|
|
16
16
|
import { StoreApi } from 'zustand';
|
|
@@ -20,18 +20,18 @@ import { PointerLockControls as PointerLockControls$1 } from 'three/examples/jsm
|
|
|
20
20
|
import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/controls/TrackballControls.js';
|
|
21
21
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
22
|
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
23
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
24
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
25
|
-
import * as
|
|
26
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
27
|
import { Falsey, Assign } from 'utility-types';
|
|
28
28
|
import * as hls_js from 'hls.js';
|
|
29
29
|
import hls_js__default from 'hls.js';
|
|
30
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
31
|
import * as detect_gpu from 'detect-gpu';
|
|
32
32
|
import { GetGPUTier } from 'detect-gpu';
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
36
|
|
|
37
37
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
@@ -750,7 +750,7 @@ type FontData = {
|
|
|
750
750
|
original_font_information?: Record<string, unknown>;
|
|
751
751
|
};
|
|
752
752
|
type FontInput = string | FontData;
|
|
753
|
-
declare function useFont(font: FontInput):
|
|
753
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
754
754
|
declare namespace useFont {
|
|
755
755
|
var preload: (font: FontInput) => undefined;
|
|
756
756
|
var clear: (font: FontInput) => void;
|
|
@@ -1652,7 +1652,7 @@ type EnvironmentLoaderProps = {
|
|
|
1652
1652
|
extensions?: (loader: Loader$1) => void;
|
|
1653
1653
|
colorSpace?: ColorSpace;
|
|
1654
1654
|
};
|
|
1655
|
-
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>):
|
|
1655
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture$1<unknown>;
|
|
1656
1656
|
declare namespace useEnvironment {
|
|
1657
1657
|
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1658
1658
|
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
package/core/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { REVISION, WebGLRenderTarget, Frustum, Matrix4, Vector3, Vector4, Vector
|
|
|
6
6
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
7
7
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
8
8
|
import { useGesture } from '@use-gesture/react';
|
|
9
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
9
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
10
10
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
11
11
|
import { create as create$1 } from 'zustand';
|
|
12
12
|
import { subscribeWithSelector } from 'zustand/middleware';
|
|
@@ -22,35 +22,35 @@ import { LineSegments2 } from 'three/examples/jsm/lines/LineSegments2.js';
|
|
|
22
22
|
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry.js';
|
|
23
23
|
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
24
24
|
import { LineSegmentsGeometry } from 'three/examples/jsm/lines/LineSegmentsGeometry.js';
|
|
25
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
25
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
26
26
|
import { DecalGeometry } from 'three/examples/jsm/geometries/DecalGeometry.js';
|
|
27
|
-
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils';
|
|
28
|
-
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry';
|
|
29
|
-
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader';
|
|
27
|
+
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
|
|
28
|
+
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
29
|
+
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
30
30
|
import { suspend, preload, clear as clear$1 } from 'suspend-react';
|
|
31
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
32
|
-
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils';
|
|
31
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
32
|
+
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils.js';
|
|
33
33
|
import { MeshSurfaceSampler } from 'three/examples/jsm/math/MeshSurfaceSampler.js';
|
|
34
|
-
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader';
|
|
34
|
+
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader.js';
|
|
35
35
|
import { Events } from 'hls.js';
|
|
36
|
-
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
|
|
37
|
-
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
38
|
-
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
|
|
36
|
+
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader.js';
|
|
37
|
+
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
38
|
+
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
|
|
39
39
|
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
|
40
|
-
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader';
|
|
40
|
+
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
|
|
41
41
|
import { getGPUTier } from 'detect-gpu';
|
|
42
42
|
import StatsImpl from 'stats.js';
|
|
43
43
|
import Stats$1 from 'stats-gl';
|
|
44
44
|
import tunnel from 'tunnel-rat';
|
|
45
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
46
|
-
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
|
|
47
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader';
|
|
45
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
46
|
+
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader.js';
|
|
47
|
+
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js';
|
|
48
48
|
import { HDRJPGLoader, GainMapLoader } from '@monogrid/gainmap-js';
|
|
49
49
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
50
50
|
import { SkyMesh } from 'three/examples/jsm/objects/SkyMesh.js';
|
|
51
|
-
import { HorizontalBlurShader } from 'three/examples/jsm/shaders/HorizontalBlurShader';
|
|
52
|
-
import { VerticalBlurShader } from 'three/examples/jsm/shaders/VerticalBlurShader';
|
|
53
|
-
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox';
|
|
51
|
+
import { HorizontalBlurShader } from 'three/examples/jsm/shaders/HorizontalBlurShader.js';
|
|
52
|
+
import { VerticalBlurShader } from 'three/examples/jsm/shaders/VerticalBlurShader.js';
|
|
53
|
+
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox.js';
|
|
54
54
|
import { shallow } from 'zustand/shallow';
|
|
55
55
|
|
|
56
56
|
const ContactShadows = /* @__PURE__ */ React.forwardRef(
|
package/experimental/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Color, MeshStandardMaterial, Texture, Matrix4, ColorRepresentation, Object3D } from 'three';
|
|
3
|
-
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes';
|
|
3
|
+
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes.js';
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement } from '@react-three/fiber';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
7
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
8
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
9
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
10
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
11
11
|
|
|
12
12
|
type ForwardRefComponent<P, T> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
package/experimental/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Color, MeshStandardMaterial, Texture, Matrix4, ColorRepresentation, Object3D } from 'three';
|
|
3
|
-
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes';
|
|
3
|
+
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes.js';
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement } from '@react-three/fiber';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
7
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
8
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
9
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
10
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
11
11
|
|
|
12
12
|
type ForwardRefComponent<P, T> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
package/experimental/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { REVISION, Object3D, Vector2, Vector3 } from 'three';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes';
|
|
4
|
+
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes.js';
|
|
5
5
|
import { useFrame, useThree, extend, applyProps, createPortal } from '@react-three/fiber';
|
|
6
|
-
import { toCreasedNormals } from 'three/examples/jsm/utils/BufferGeometryUtils';
|
|
6
|
+
import { toCreasedNormals } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
|
|
7
7
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
8
8
|
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry.js';
|
|
9
9
|
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
package/external/index.d.mts
CHANGED
|
@@ -8,9 +8,9 @@ import CameraControlsImpl from 'camera-controls';
|
|
|
8
8
|
export { default as CameraControlsImpl } from 'camera-controls';
|
|
9
9
|
import { FaceLandmarkerResult, FaceLandmarkerOptions, FaceLandmarker as FaceLandmarker$1 } from '@mediapipe/tasks-vision';
|
|
10
10
|
import Hls from 'hls.js';
|
|
11
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
12
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
13
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
11
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
12
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
13
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
14
14
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
15
15
|
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
16
16
|
|
package/external/index.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ import CameraControlsImpl from 'camera-controls';
|
|
|
8
8
|
export { default as CameraControlsImpl } from 'camera-controls';
|
|
9
9
|
import { FaceLandmarkerResult, FaceLandmarkerOptions, FaceLandmarker as FaceLandmarker$1 } from '@mediapipe/tasks-vision';
|
|
10
10
|
import Hls from 'hls.js';
|
|
11
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
12
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
13
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
11
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
12
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
13
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
14
14
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
15
15
|
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
16
16
|
|
package/index.d.mts
CHANGED
|
@@ -4,13 +4,13 @@ import * as _react_three_fiber from '@react-three/fiber';
|
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement, Vector2, Vector3, ThreeEvent, Color as Color$1, ObjectMap, ComputeFunction, Euler } from '@react-three/fiber';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
6
|
import { MeshStandardMaterial, Texture as Texture$1, Matrix4, Color, ColorRepresentation, Object3D, Fog, FogExp2, WebGLCubeRenderTarget, CubeCamera as CubeCamera$1, OrthographicCamera as OrthographicCamera$1, PerspectiveCamera as PerspectiveCamera$1, Event, Camera, Material, Vector3 as Vector3$1, Group, LOD, Mesh, ExtrudeGeometry, PositionalAudio as PositionalAudio$1, AnimationClip, AnimationMixer, AnimationAction, BufferGeometry, BufferAttribute, InstancedMesh as InstancedMesh$1, InstancedBufferAttribute, DepthTexture, CubeTexture as CubeTexture$1, Raycaster, Intersection, RenderTargetOptions, Box3, Sphere as Sphere$1, Loader as Loader$1, ColorSpace, Scene, PlaneGeometry, MeshBasicMaterial, EventDispatcher } from 'three';
|
|
7
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
8
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
9
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
10
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
11
11
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
12
12
|
import { DragConfig } from '@use-gesture/react';
|
|
13
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
13
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
14
14
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
15
15
|
import * as zustand from 'zustand';
|
|
16
16
|
import { StoreApi } from 'zustand';
|
|
@@ -20,24 +20,24 @@ import { PointerLockControls as PointerLockControls$1 } from 'three/examples/jsm
|
|
|
20
20
|
import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/controls/TrackballControls.js';
|
|
21
21
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
22
|
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
23
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
24
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
25
|
-
import * as
|
|
26
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
27
|
import { Falsey, Assign } from 'utility-types';
|
|
28
28
|
import * as hls_js from 'hls.js';
|
|
29
29
|
import hls_js__default from 'hls.js';
|
|
30
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
31
|
import * as detect_gpu from 'detect-gpu';
|
|
32
32
|
import { GetGPUTier } from 'detect-gpu';
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
36
|
import { SplitStrategy } from 'three-mesh-bvh';
|
|
37
37
|
import CameraControlsImpl from 'camera-controls';
|
|
38
38
|
export { default as CameraControlsImpl } from 'camera-controls';
|
|
39
39
|
import { FaceLandmarkerResult, FaceLandmarkerOptions, FaceLandmarker as FaceLandmarker$1 } from '@mediapipe/tasks-vision';
|
|
40
|
-
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes';
|
|
40
|
+
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes.js';
|
|
41
41
|
|
|
42
42
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
43
43
|
type ForwardRefComponent<P, T> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
|
@@ -786,7 +786,7 @@ type FontData = {
|
|
|
786
786
|
original_font_information?: Record<string, unknown>;
|
|
787
787
|
};
|
|
788
788
|
type FontInput = string | FontData;
|
|
789
|
-
declare function useFont(font: FontInput):
|
|
789
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
790
790
|
declare namespace useFont {
|
|
791
791
|
var preload: (font: FontInput) => undefined;
|
|
792
792
|
var clear: (font: FontInput) => void;
|
package/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import * as _react_three_fiber from '@react-three/fiber';
|
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement, Vector2, Vector3, ThreeEvent, Color as Color$1, ObjectMap, ComputeFunction, Euler } from '@react-three/fiber';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
6
|
import { MeshStandardMaterial, Texture as Texture$1, Matrix4, Color, ColorRepresentation, Object3D, Fog, FogExp2, WebGLCubeRenderTarget, CubeCamera as CubeCamera$1, OrthographicCamera as OrthographicCamera$1, PerspectiveCamera as PerspectiveCamera$1, Event, Camera, Material, Vector3 as Vector3$1, Group, LOD, Mesh, ExtrudeGeometry, PositionalAudio as PositionalAudio$1, AnimationClip, AnimationMixer, AnimationAction, BufferGeometry, BufferAttribute, InstancedMesh as InstancedMesh$1, InstancedBufferAttribute, DepthTexture, CubeTexture as CubeTexture$1, Raycaster, Intersection, RenderTargetOptions, Box3, Sphere as Sphere$1, Loader as Loader$1, ColorSpace, Scene, PlaneGeometry, MeshBasicMaterial, EventDispatcher } from 'three';
|
|
7
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
8
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
9
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
10
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
11
11
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
12
12
|
import { DragConfig } from '@use-gesture/react';
|
|
13
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
13
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
14
14
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
15
15
|
import * as zustand from 'zustand';
|
|
16
16
|
import { StoreApi } from 'zustand';
|
|
@@ -20,24 +20,24 @@ import { PointerLockControls as PointerLockControls$1 } from 'three/examples/jsm
|
|
|
20
20
|
import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/controls/TrackballControls.js';
|
|
21
21
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
22
|
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
23
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
24
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
25
|
-
import * as
|
|
26
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
27
|
import { Falsey, Assign } from 'utility-types';
|
|
28
28
|
import * as hls_js from 'hls.js';
|
|
29
29
|
import hls_js__default from 'hls.js';
|
|
30
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
31
|
import * as detect_gpu from 'detect-gpu';
|
|
32
32
|
import { GetGPUTier } from 'detect-gpu';
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
36
|
import { SplitStrategy } from 'three-mesh-bvh';
|
|
37
37
|
import CameraControlsImpl from 'camera-controls';
|
|
38
38
|
export { default as CameraControlsImpl } from 'camera-controls';
|
|
39
39
|
import { FaceLandmarkerResult, FaceLandmarkerOptions, FaceLandmarker as FaceLandmarker$1 } from '@mediapipe/tasks-vision';
|
|
40
|
-
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes';
|
|
40
|
+
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes.js';
|
|
41
41
|
|
|
42
42
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
43
43
|
type ForwardRefComponent<P, T> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
|
@@ -786,7 +786,7 @@ type FontData = {
|
|
|
786
786
|
original_font_information?: Record<string, unknown>;
|
|
787
787
|
};
|
|
788
788
|
type FontInput = string | FontData;
|
|
789
|
-
declare function useFont(font: FontInput):
|
|
789
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
790
790
|
declare namespace useFont {
|
|
791
791
|
var preload: (font: FontInput) => undefined;
|
|
792
792
|
var clear: (font: FontInput) => void;
|
package/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { REVISION, WebGLRenderTarget, Frustum, Matrix4, Vector3, Vector4, Vector
|
|
|
6
6
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
7
7
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
8
8
|
import { useGesture } from '@use-gesture/react';
|
|
9
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
9
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
10
10
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
11
11
|
import { create as create$1 } from 'zustand';
|
|
12
12
|
import { subscribeWithSelector } from 'zustand/middleware';
|
|
@@ -22,40 +22,40 @@ import { LineSegments2 } from 'three/examples/jsm/lines/LineSegments2.js';
|
|
|
22
22
|
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry.js';
|
|
23
23
|
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
24
24
|
import { LineSegmentsGeometry } from 'three/examples/jsm/lines/LineSegmentsGeometry.js';
|
|
25
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
25
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
26
26
|
import { DecalGeometry } from 'three/examples/jsm/geometries/DecalGeometry.js';
|
|
27
|
-
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils';
|
|
28
|
-
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry';
|
|
29
|
-
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader';
|
|
27
|
+
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
|
|
28
|
+
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
29
|
+
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
30
30
|
import { suspend, preload, clear as clear$1 } from 'suspend-react';
|
|
31
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
32
|
-
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils';
|
|
31
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
32
|
+
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils.js';
|
|
33
33
|
import { MeshSurfaceSampler } from 'three/examples/jsm/math/MeshSurfaceSampler.js';
|
|
34
|
-
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader';
|
|
34
|
+
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader.js';
|
|
35
35
|
import { Events } from 'hls.js';
|
|
36
|
-
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
|
|
37
|
-
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
38
|
-
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
|
|
36
|
+
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader.js';
|
|
37
|
+
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
38
|
+
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
|
|
39
39
|
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
|
40
|
-
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader';
|
|
40
|
+
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
|
|
41
41
|
import { getGPUTier } from 'detect-gpu';
|
|
42
42
|
import StatsImpl from 'stats.js';
|
|
43
43
|
import Stats$1 from 'stats-gl';
|
|
44
44
|
import tunnel from 'tunnel-rat';
|
|
45
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
46
|
-
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
|
|
47
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader';
|
|
45
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
46
|
+
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader.js';
|
|
47
|
+
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js';
|
|
48
48
|
import { HDRJPGLoader, GainMapLoader } from '@monogrid/gainmap-js';
|
|
49
49
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
50
50
|
import { SkyMesh } from 'three/examples/jsm/objects/SkyMesh.js';
|
|
51
|
-
import { HorizontalBlurShader } from 'three/examples/jsm/shaders/HorizontalBlurShader';
|
|
52
|
-
import { VerticalBlurShader } from 'three/examples/jsm/shaders/VerticalBlurShader';
|
|
53
|
-
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox';
|
|
51
|
+
import { HorizontalBlurShader } from 'three/examples/jsm/shaders/HorizontalBlurShader.js';
|
|
52
|
+
import { VerticalBlurShader } from 'three/examples/jsm/shaders/VerticalBlurShader.js';
|
|
53
|
+
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox.js';
|
|
54
54
|
import { shallow } from 'zustand/shallow';
|
|
55
55
|
import { SAH, acceleratedRaycast, computeBoundsTree, disposeBoundsTree } from 'three-mesh-bvh';
|
|
56
56
|
import CameraControlsImpl from 'camera-controls';
|
|
57
57
|
export { default as CameraControlsImpl } from 'camera-controls';
|
|
58
|
-
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes';
|
|
58
|
+
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes.js';
|
|
59
59
|
|
|
60
60
|
const ContactShadows = /* @__PURE__ */ React.forwardRef(
|
|
61
61
|
({
|
package/legacy/index.d.mts
CHANGED
|
@@ -4,15 +4,15 @@ import * as _react_three_fiber from '@react-three/fiber';
|
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement, Vector2, Vector3, ThreeEvent, Color as Color$1, ObjectMap, ComputeFunction, Euler, ConstructorRepresentation } from '@react-three/fiber';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
6
|
import { MeshStandardMaterial, Texture as Texture$1, Matrix4, MeshPhysicalMaterial, MeshPhysicalMaterialParameters, IUniform, MeshStandardMaterialParameters, Material, ColorSpace, TextureDataType, Color, ColorRepresentation, Object3D, Fog, FogExp2, WebGLCubeRenderTarget, CubeCamera as CubeCamera$1, OrthographicCamera as OrthographicCamera$1, PerspectiveCamera as PerspectiveCamera$1, Event, Camera, Vector3 as Vector3$1, Group, LOD, Mesh, ExtrudeGeometry, PositionalAudio as PositionalAudio$1, AnimationClip, AnimationMixer, AnimationAction, BufferGeometry, BufferAttribute, InstancedMesh as InstancedMesh$1, InstancedBufferAttribute, DepthTexture, CubeTexture as CubeTexture$1, Raycaster, Intersection, RenderTargetOptions, Box3, Sphere as Sphere$1, Loader as Loader$1, Scene, PlaneGeometry, MeshBasicMaterial, WebGLRenderer, WebGLRenderTarget, ShaderMaterial, Uniform as Uniform$2, SpotLight as SpotLight$1, Points as Points$1 } from 'three';
|
|
7
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
8
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
9
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
10
|
import { LineSegments2 } from 'three/examples/jsm/lines/LineSegments2.js';
|
|
11
11
|
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
12
12
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
13
13
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
14
14
|
import { DragConfig } from '@use-gesture/react';
|
|
15
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
15
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
16
16
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
17
17
|
import * as zustand from 'zustand';
|
|
18
18
|
import { StoreApi } from 'zustand';
|
|
@@ -21,18 +21,18 @@ import { OrbitControls as OrbitControls$1 } from 'three/addons/controls/OrbitCon
|
|
|
21
21
|
import { PointerLockControls as PointerLockControls$1 } from 'three/examples/jsm/controls/PointerLockControls.js';
|
|
22
22
|
import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/controls/TrackballControls.js';
|
|
23
23
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
24
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
25
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
26
|
-
import * as
|
|
27
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
24
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
25
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
26
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
27
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
28
28
|
import { Falsey, Assign } from 'utility-types';
|
|
29
29
|
import * as hls_js from 'hls.js';
|
|
30
30
|
import hls_js__default from 'hls.js';
|
|
31
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
31
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
32
32
|
import * as detect_gpu from 'detect-gpu';
|
|
33
33
|
import { GetGPUTier } from 'detect-gpu';
|
|
34
34
|
import Stats$1 from 'stats-gl';
|
|
35
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
35
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
36
36
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
37
37
|
import { MeshBVHUniformStruct } from 'three-mesh-bvh';
|
|
38
38
|
|
|
@@ -937,7 +937,7 @@ type FontData = {
|
|
|
937
937
|
original_font_information?: Record<string, unknown>;
|
|
938
938
|
};
|
|
939
939
|
type FontInput = string | FontData;
|
|
940
|
-
declare function useFont(font: FontInput):
|
|
940
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
941
941
|
declare namespace useFont {
|
|
942
942
|
var preload: (font: FontInput) => undefined;
|
|
943
943
|
var clear: (font: FontInput) => void;
|
package/legacy/index.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ import * as _react_three_fiber from '@react-three/fiber';
|
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement, Vector2, Vector3, ThreeEvent, Color as Color$1, ObjectMap, ComputeFunction, Euler, ConstructorRepresentation } from '@react-three/fiber';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
6
|
import { MeshStandardMaterial, Texture as Texture$1, Matrix4, MeshPhysicalMaterial, MeshPhysicalMaterialParameters, IUniform, MeshStandardMaterialParameters, Material, ColorSpace, TextureDataType, Color, ColorRepresentation, Object3D, Fog, FogExp2, WebGLCubeRenderTarget, CubeCamera as CubeCamera$1, OrthographicCamera as OrthographicCamera$1, PerspectiveCamera as PerspectiveCamera$1, Event, Camera, Vector3 as Vector3$1, Group, LOD, Mesh, ExtrudeGeometry, PositionalAudio as PositionalAudio$1, AnimationClip, AnimationMixer, AnimationAction, BufferGeometry, BufferAttribute, InstancedMesh as InstancedMesh$1, InstancedBufferAttribute, DepthTexture, CubeTexture as CubeTexture$1, Raycaster, Intersection, RenderTargetOptions, Box3, Sphere as Sphere$1, Loader as Loader$1, Scene, PlaneGeometry, MeshBasicMaterial, WebGLRenderer, WebGLRenderTarget, ShaderMaterial, Uniform as Uniform$2, SpotLight as SpotLight$1, Points as Points$1 } from 'three';
|
|
7
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
8
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
9
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
10
|
import { LineSegments2 } from 'three/examples/jsm/lines/LineSegments2.js';
|
|
11
11
|
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
12
12
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
13
13
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
14
14
|
import { DragConfig } from '@use-gesture/react';
|
|
15
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
15
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
16
16
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
17
17
|
import * as zustand from 'zustand';
|
|
18
18
|
import { StoreApi } from 'zustand';
|
|
@@ -21,18 +21,18 @@ import { OrbitControls as OrbitControls$1 } from 'three/addons/controls/OrbitCon
|
|
|
21
21
|
import { PointerLockControls as PointerLockControls$1 } from 'three/examples/jsm/controls/PointerLockControls.js';
|
|
22
22
|
import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/controls/TrackballControls.js';
|
|
23
23
|
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
24
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
25
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
26
|
-
import * as
|
|
27
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
24
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
25
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
26
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
27
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
28
28
|
import { Falsey, Assign } from 'utility-types';
|
|
29
29
|
import * as hls_js from 'hls.js';
|
|
30
30
|
import hls_js__default from 'hls.js';
|
|
31
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
31
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
32
32
|
import * as detect_gpu from 'detect-gpu';
|
|
33
33
|
import { GetGPUTier } from 'detect-gpu';
|
|
34
34
|
import Stats$1 from 'stats-gl';
|
|
35
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
35
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
36
36
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
37
37
|
import { MeshBVHUniformStruct } from 'three-mesh-bvh';
|
|
38
38
|
|
|
@@ -937,7 +937,7 @@ type FontData = {
|
|
|
937
937
|
original_font_information?: Record<string, unknown>;
|
|
938
938
|
};
|
|
939
939
|
type FontInput = string | FontData;
|
|
940
|
-
declare function useFont(font: FontInput):
|
|
940
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
941
941
|
declare namespace useFont {
|
|
942
942
|
var preload: (font: FontInput) => undefined;
|
|
943
943
|
var clear: (font: FontInput) => void;
|
package/legacy/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { REVISION, WebGLRenderTarget, HalfFloatType, LinearFilter, Vector2, Scen
|
|
|
6
6
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
7
7
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
8
8
|
import { useGesture } from '@use-gesture/react';
|
|
9
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
9
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
10
10
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
11
11
|
import { create as create$1 } from 'zustand';
|
|
12
12
|
import { subscribeWithSelector } from 'zustand/middleware';
|
|
@@ -22,44 +22,43 @@ import { LineSegments2 } from 'three/examples/jsm/lines/LineSegments2.js';
|
|
|
22
22
|
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry.js';
|
|
23
23
|
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
24
24
|
import { LineSegmentsGeometry } from 'three/examples/jsm/lines/LineSegmentsGeometry.js';
|
|
25
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
25
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
26
26
|
import { DecalGeometry } from 'three/examples/jsm/geometries/DecalGeometry.js';
|
|
27
|
-
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils';
|
|
28
|
-
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry';
|
|
29
|
-
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader';
|
|
27
|
+
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
|
|
28
|
+
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
29
|
+
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
30
30
|
import { suspend, preload, clear as clear$1 } from 'suspend-react';
|
|
31
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
32
|
-
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils';
|
|
31
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
32
|
+
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils.js';
|
|
33
33
|
import { MeshSurfaceSampler } from 'three/examples/jsm/math/MeshSurfaceSampler.js';
|
|
34
|
-
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader';
|
|
34
|
+
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader.js';
|
|
35
35
|
import { Events } from 'hls.js';
|
|
36
|
-
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
|
|
37
|
-
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
38
|
-
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
|
|
36
|
+
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader.js';
|
|
37
|
+
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
38
|
+
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
|
|
39
39
|
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
|
40
|
-
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader';
|
|
40
|
+
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
|
|
41
41
|
import { getGPUTier } from 'detect-gpu';
|
|
42
42
|
import StatsImpl from 'stats.js';
|
|
43
43
|
import Stats$1 from 'stats-gl';
|
|
44
44
|
import tunnel from 'tunnel-rat';
|
|
45
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
46
|
-
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
|
|
47
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader';
|
|
45
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
46
|
+
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader.js';
|
|
47
|
+
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js';
|
|
48
48
|
import { HDRJPGLoader, GainMapLoader } from '@monogrid/gainmap-js';
|
|
49
49
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
50
50
|
import { SkyMesh } from 'three/examples/jsm/objects/SkyMesh.js';
|
|
51
|
-
import { HorizontalBlurShader } from 'three/examples/jsm/shaders/HorizontalBlurShader';
|
|
52
|
-
import { VerticalBlurShader } from 'three/examples/jsm/shaders/VerticalBlurShader';
|
|
53
|
-
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox';
|
|
51
|
+
import { HorizontalBlurShader } from 'three/examples/jsm/shaders/HorizontalBlurShader.js';
|
|
52
|
+
import { VerticalBlurShader } from 'three/examples/jsm/shaders/VerticalBlurShader.js';
|
|
53
|
+
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox.js';
|
|
54
54
|
import { shallow } from 'zustand/shallow';
|
|
55
|
-
import { GammaCorrectionShader } from 'three/examples/jsm/shaders/GammaCorrectionShader';
|
|
56
|
-
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
57
|
-
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
58
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
59
|
-
import { AsciiEffect } from 'three/examples/jsm/effects/AsciiEffect';
|
|
60
|
-
import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass';
|
|
55
|
+
import { GammaCorrectionShader } from 'three/examples/jsm/shaders/GammaCorrectionShader.js';
|
|
56
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
57
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
58
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
59
|
+
import { AsciiEffect } from 'three/examples/jsm/effects/AsciiEffect.js';
|
|
60
|
+
import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass.js';
|
|
61
61
|
import { shaderStructs, shaderIntersectFunction, MeshBVHUniformStruct } from 'three-mesh-bvh';
|
|
62
|
-
import { FullScreenQuad as FullScreenQuad$1 } from 'three/examples/jsm/postprocessing/Pass.js';
|
|
63
62
|
import { Text as Text$1, preloadFont } from 'troika-three-text';
|
|
64
63
|
|
|
65
64
|
const ContactShadows = /* @__PURE__ */ React.forwardRef(
|
|
@@ -11850,7 +11849,7 @@ function VolumetricMesh({
|
|
|
11850
11849
|
depthWrite: true,
|
|
11851
11850
|
depthTest: false
|
|
11852
11851
|
});
|
|
11853
|
-
const copyQuad = new FullScreenQuad
|
|
11852
|
+
const copyQuad = new FullScreenQuad(copyMaterial);
|
|
11854
11853
|
return { depthCopyTarget, copyMaterial, copyQuad };
|
|
11855
11854
|
}, [depthBuffer]);
|
|
11856
11855
|
React.useEffect(() => {
|
|
@@ -11964,7 +11963,7 @@ function SpotlightShadowWithShader({
|
|
|
11964
11963
|
});
|
|
11965
11964
|
React.useEffect(() => void (uniforms.current.uShadowMap.value = map), [map]);
|
|
11966
11965
|
const fsQuad = React.useMemo(
|
|
11967
|
-
() => new FullScreenQuad
|
|
11966
|
+
() => new FullScreenQuad(
|
|
11968
11967
|
new ShaderMaterial({
|
|
11969
11968
|
uniforms: uniforms.current,
|
|
11970
11969
|
vertexShader: (
|
package/native/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ import { LineSegments2 } from 'three/examples/jsm/lines/webgpu/LineSegments2.js'
|
|
|
9
9
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
10
10
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
11
11
|
import { DragConfig } from '@use-gesture/react';
|
|
12
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
12
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
13
13
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
14
14
|
import * as zustand from 'zustand';
|
|
15
15
|
import { StoreApi } from 'zustand';
|
|
@@ -20,18 +20,18 @@ import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/con
|
|
|
20
20
|
import * as three from 'three';
|
|
21
21
|
import { Line2 as Line2$1 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
22
|
import { Line2 } from 'three/examples/jsm/lines/webgpu/Line2.js';
|
|
23
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
24
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
25
|
-
import * as
|
|
26
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
27
|
import { Falsey, Assign } from 'utility-types';
|
|
28
28
|
import * as hls_js from 'hls.js';
|
|
29
29
|
import hls_js__default from 'hls.js';
|
|
30
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
31
|
import * as detect_gpu from 'detect-gpu';
|
|
32
32
|
import { GetGPUTier } from 'detect-gpu';
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
36
|
|
|
37
37
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
@@ -1086,7 +1086,7 @@ type FontData = {
|
|
|
1086
1086
|
original_font_information?: Record<string, unknown>;
|
|
1087
1087
|
};
|
|
1088
1088
|
type FontInput = string | FontData;
|
|
1089
|
-
declare function useFont(font: FontInput):
|
|
1089
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
1090
1090
|
declare namespace useFont {
|
|
1091
1091
|
var preload: (font: FontInput) => undefined;
|
|
1092
1092
|
var clear: (font: FontInput) => void;
|
|
@@ -1955,7 +1955,7 @@ type EnvironmentLoaderProps = {
|
|
|
1955
1955
|
extensions?: (loader: Loader$1) => void;
|
|
1956
1956
|
colorSpace?: ColorSpace;
|
|
1957
1957
|
};
|
|
1958
|
-
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>):
|
|
1958
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture$1<unknown>;
|
|
1959
1959
|
declare namespace useEnvironment {
|
|
1960
1960
|
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1961
1961
|
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
package/native/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { LineSegments2 } from 'three/examples/jsm/lines/webgpu/LineSegments2.js'
|
|
|
9
9
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
10
10
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
11
11
|
import { DragConfig } from '@use-gesture/react';
|
|
12
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
12
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
13
13
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
14
14
|
import * as zustand from 'zustand';
|
|
15
15
|
import { StoreApi } from 'zustand';
|
|
@@ -20,18 +20,18 @@ import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/con
|
|
|
20
20
|
import * as three from 'three';
|
|
21
21
|
import { Line2 as Line2$1 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
22
|
import { Line2 } from 'three/examples/jsm/lines/webgpu/Line2.js';
|
|
23
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
24
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
25
|
-
import * as
|
|
26
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
27
|
import { Falsey, Assign } from 'utility-types';
|
|
28
28
|
import * as hls_js from 'hls.js';
|
|
29
29
|
import hls_js__default from 'hls.js';
|
|
30
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
31
|
import * as detect_gpu from 'detect-gpu';
|
|
32
32
|
import { GetGPUTier } from 'detect-gpu';
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
36
|
|
|
37
37
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
@@ -1086,7 +1086,7 @@ type FontData = {
|
|
|
1086
1086
|
original_font_information?: Record<string, unknown>;
|
|
1087
1087
|
};
|
|
1088
1088
|
type FontInput = string | FontData;
|
|
1089
|
-
declare function useFont(font: FontInput):
|
|
1089
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
1090
1090
|
declare namespace useFont {
|
|
1091
1091
|
var preload: (font: FontInput) => undefined;
|
|
1092
1092
|
var clear: (font: FontInput) => void;
|
|
@@ -1955,7 +1955,7 @@ type EnvironmentLoaderProps = {
|
|
|
1955
1955
|
extensions?: (loader: Loader$1) => void;
|
|
1956
1956
|
colorSpace?: ColorSpace;
|
|
1957
1957
|
};
|
|
1958
|
-
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>):
|
|
1958
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture$1<unknown>;
|
|
1959
1959
|
declare namespace useEnvironment {
|
|
1960
1960
|
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1961
1961
|
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
package/native/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { MeshBasicNodeMaterial, REVISION, RenderTarget, MeshNormalNodeMaterial,
|
|
|
6
6
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
7
7
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
8
8
|
import { useGesture } from '@use-gesture/react';
|
|
9
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
9
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
10
10
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
11
11
|
import { create as create$1 } from 'zustand';
|
|
12
12
|
import { subscribeWithSelector } from 'zustand/middleware';
|
|
@@ -22,33 +22,33 @@ import { Line2 } from 'three/examples/jsm/lines/webgpu/Line2.js';
|
|
|
22
22
|
import { LineSegments2 } from 'three/examples/jsm/lines/webgpu/LineSegments2.js';
|
|
23
23
|
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry.js';
|
|
24
24
|
import { LineSegmentsGeometry } from 'three/examples/jsm/lines/LineSegmentsGeometry.js';
|
|
25
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
25
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
26
26
|
import { DecalGeometry } from 'three/examples/jsm/geometries/DecalGeometry.js';
|
|
27
|
-
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils';
|
|
28
|
-
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry';
|
|
29
|
-
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader';
|
|
27
|
+
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
|
|
28
|
+
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
29
|
+
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
30
30
|
import { suspend, preload, clear as clear$1 } from 'suspend-react';
|
|
31
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
32
|
-
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils';
|
|
31
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
32
|
+
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils.js';
|
|
33
33
|
import { MeshSurfaceSampler } from 'three/examples/jsm/math/MeshSurfaceSampler.js';
|
|
34
|
-
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader';
|
|
34
|
+
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader.js';
|
|
35
35
|
import { Events } from 'hls.js';
|
|
36
|
-
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
|
|
37
|
-
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
38
|
-
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
|
|
36
|
+
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader.js';
|
|
37
|
+
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
38
|
+
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
|
|
39
39
|
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
|
40
|
-
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader';
|
|
40
|
+
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
|
|
41
41
|
import { getGPUTier } from 'detect-gpu';
|
|
42
42
|
import StatsImpl from 'stats.js';
|
|
43
43
|
import Stats$1 from 'stats-gl';
|
|
44
44
|
import tunnel from 'tunnel-rat';
|
|
45
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
46
|
-
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
|
|
47
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader';
|
|
45
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
46
|
+
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader.js';
|
|
47
|
+
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js';
|
|
48
48
|
import { HDRJPGLoader, GainMapLoader } from '@monogrid/gainmap-js';
|
|
49
49
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
50
50
|
import { SkyMesh } from 'three/examples/jsm/objects/SkyMesh.js';
|
|
51
|
-
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox';
|
|
51
|
+
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox.js';
|
|
52
52
|
import { shallow } from 'zustand/shallow';
|
|
53
53
|
import { hashBlur } from 'three/examples/jsm/tsl/display/hashBlur.js';
|
|
54
54
|
|
package/package.json
CHANGED
package/webgpu/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ import { LineSegments2 } from 'three/examples/jsm/lines/webgpu/LineSegments2.js'
|
|
|
9
9
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
10
10
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
11
11
|
import { DragConfig } from '@use-gesture/react';
|
|
12
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
12
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
13
13
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
14
14
|
import * as zustand from 'zustand';
|
|
15
15
|
import { StoreApi } from 'zustand';
|
|
@@ -20,18 +20,18 @@ import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/con
|
|
|
20
20
|
import * as three from 'three';
|
|
21
21
|
import { Line2 as Line2$1 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
22
|
import { Line2 } from 'three/examples/jsm/lines/webgpu/Line2.js';
|
|
23
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
24
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
25
|
-
import * as
|
|
26
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
27
|
import { Falsey, Assign } from 'utility-types';
|
|
28
28
|
import * as hls_js from 'hls.js';
|
|
29
29
|
import hls_js__default from 'hls.js';
|
|
30
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
31
|
import * as detect_gpu from 'detect-gpu';
|
|
32
32
|
import { GetGPUTier } from 'detect-gpu';
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
36
|
|
|
37
37
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
@@ -1087,7 +1087,7 @@ type FontData = {
|
|
|
1087
1087
|
original_font_information?: Record<string, unknown>;
|
|
1088
1088
|
};
|
|
1089
1089
|
type FontInput = string | FontData;
|
|
1090
|
-
declare function useFont(font: FontInput):
|
|
1090
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
1091
1091
|
declare namespace useFont {
|
|
1092
1092
|
var preload: (font: FontInput) => undefined;
|
|
1093
1093
|
var clear: (font: FontInput) => void;
|
|
@@ -1803,7 +1803,7 @@ declare const Mask: ForwardRefComponent<MaskProps, THREE.Mesh>;
|
|
|
1803
1803
|
declare function useMask(id: number, inverse?: boolean): {
|
|
1804
1804
|
stencilWrite: boolean;
|
|
1805
1805
|
stencilRef: number;
|
|
1806
|
-
stencilFunc:
|
|
1806
|
+
stencilFunc: 517 | 514;
|
|
1807
1807
|
stencilFail: 7680;
|
|
1808
1808
|
stencilZFail: 7680;
|
|
1809
1809
|
stencilZPass: 7680;
|
package/webgpu/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { LineSegments2 } from 'three/examples/jsm/lines/webgpu/LineSegments2.js'
|
|
|
9
9
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
10
10
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
11
11
|
import { DragConfig } from '@use-gesture/react';
|
|
12
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
12
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
13
13
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
14
14
|
import * as zustand from 'zustand';
|
|
15
15
|
import { StoreApi } from 'zustand';
|
|
@@ -20,18 +20,18 @@ import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/con
|
|
|
20
20
|
import * as three from 'three';
|
|
21
21
|
import { Line2 as Line2$1 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
22
|
import { Line2 } from 'three/examples/jsm/lines/webgpu/Line2.js';
|
|
23
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
24
|
-
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry';
|
|
25
|
-
import * as
|
|
26
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
27
|
import { Falsey, Assign } from 'utility-types';
|
|
28
28
|
import * as hls_js from 'hls.js';
|
|
29
29
|
import hls_js__default from 'hls.js';
|
|
30
|
-
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
31
|
import * as detect_gpu from 'detect-gpu';
|
|
32
32
|
import { GetGPUTier } from 'detect-gpu';
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
36
|
|
|
37
37
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
@@ -1087,7 +1087,7 @@ type FontData = {
|
|
|
1087
1087
|
original_font_information?: Record<string, unknown>;
|
|
1088
1088
|
};
|
|
1089
1089
|
type FontInput = string | FontData;
|
|
1090
|
-
declare function useFont(font: FontInput):
|
|
1090
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
1091
1091
|
declare namespace useFont {
|
|
1092
1092
|
var preload: (font: FontInput) => undefined;
|
|
1093
1093
|
var clear: (font: FontInput) => void;
|
|
@@ -1803,7 +1803,7 @@ declare const Mask: ForwardRefComponent<MaskProps, THREE.Mesh>;
|
|
|
1803
1803
|
declare function useMask(id: number, inverse?: boolean): {
|
|
1804
1804
|
stencilWrite: boolean;
|
|
1805
1805
|
stencilRef: number;
|
|
1806
|
-
stencilFunc:
|
|
1806
|
+
stencilFunc: 517 | 514;
|
|
1807
1807
|
stencilFail: 7680;
|
|
1808
1808
|
stencilZFail: 7680;
|
|
1809
1809
|
stencilZPass: 7680;
|
package/webgpu/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { MeshBasicNodeMaterial, REVISION, RenderTarget, MeshNormalNodeMaterial,
|
|
|
6
6
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
7
7
|
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
8
8
|
import { useGesture } from '@use-gesture/react';
|
|
9
|
-
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls';
|
|
9
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
10
10
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
11
11
|
import { create as create$1 } from 'zustand';
|
|
12
12
|
import { subscribeWithSelector } from 'zustand/middleware';
|
|
@@ -22,33 +22,33 @@ import { Line2 } from 'three/examples/jsm/lines/webgpu/Line2.js';
|
|
|
22
22
|
import { LineSegments2 } from 'three/examples/jsm/lines/webgpu/LineSegments2.js';
|
|
23
23
|
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry.js';
|
|
24
24
|
import { LineSegmentsGeometry } from 'three/examples/jsm/lines/LineSegmentsGeometry.js';
|
|
25
|
-
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
25
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
26
26
|
import { DecalGeometry } from 'three/examples/jsm/geometries/DecalGeometry.js';
|
|
27
|
-
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils';
|
|
28
|
-
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry';
|
|
29
|
-
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader';
|
|
27
|
+
import { toCreasedNormals, mergeVertices } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
|
|
28
|
+
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
29
|
+
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
30
30
|
import { suspend, preload, clear as clear$1 } from 'suspend-react';
|
|
31
|
-
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls';
|
|
32
|
-
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils';
|
|
31
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
32
|
+
import * as SkeletonUtils from 'three/examples/jsm/utils/SkeletonUtils.js';
|
|
33
33
|
import { MeshSurfaceSampler } from 'three/examples/jsm/math/MeshSurfaceSampler.js';
|
|
34
|
-
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader';
|
|
34
|
+
import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader.js';
|
|
35
35
|
import { Events } from 'hls.js';
|
|
36
|
-
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
|
|
37
|
-
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
38
|
-
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
|
|
36
|
+
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader.js';
|
|
37
|
+
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
38
|
+
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
|
|
39
39
|
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
|
40
|
-
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader';
|
|
40
|
+
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
|
|
41
41
|
import { getGPUTier } from 'detect-gpu';
|
|
42
42
|
import StatsImpl from 'stats.js';
|
|
43
43
|
import Stats$1 from 'stats-gl';
|
|
44
44
|
import tunnel from 'tunnel-rat';
|
|
45
|
-
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox';
|
|
46
|
-
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
|
|
47
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader';
|
|
45
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
46
|
+
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader.js';
|
|
47
|
+
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js';
|
|
48
48
|
import { HDRJPGLoader, GainMapLoader } from '@monogrid/gainmap-js';
|
|
49
49
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
50
50
|
import { SkyMesh } from 'three/examples/jsm/objects/SkyMesh.js';
|
|
51
|
-
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox';
|
|
51
|
+
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox.js';
|
|
52
52
|
import { shallow } from 'zustand/shallow';
|
|
53
53
|
import { hashBlur } from 'three/examples/jsm/tsl/display/hashBlur.js';
|
|
54
54
|
|