@react-three/fiber 10.0.0-canary.ea31ccd → 10.0.0-canary.ee5a08a
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/dist/chunks/webgl.cjs +27 -0
- package/dist/chunks/webgl.mjs +11 -0
- package/dist/chunks/webgpu.cjs +37 -0
- package/dist/chunks/webgpu.mjs +21 -0
- package/dist/extension.cjs +13 -0
- package/dist/extension.d.cts +19 -0
- package/dist/extension.d.mts +19 -0
- package/dist/extension.d.ts +19 -0
- package/dist/extension.mjs +1 -0
- package/dist/index.cjs +97 -15371
- package/dist/index.d.cts +123 -3873
- package/dist/index.d.mts +123 -3873
- package/dist/index.d.ts +122 -3844
- package/dist/index.mjs +10 -15272
- package/dist/legacy.cjs +97 -15326
- package/dist/legacy.d.cts +114 -3874
- package/dist/legacy.d.mts +114 -3874
- package/dist/legacy.d.ts +115 -3849
- package/dist/legacy.mjs +14 -15230
- package/dist/shared/fiber.B0oukOFO.mjs +364 -0
- package/dist/shared/fiber.BDWBTuAk.d.mts +2797 -0
- package/dist/shared/fiber.BU0vBHc9.d.mts +48 -0
- package/dist/shared/fiber.Cx-UAmMb.d.ts +48 -0
- package/dist/shared/fiber.DAl4H27x.d.cts +48 -0
- package/dist/shared/fiber.DNgUv56V.d.ts +2797 -0
- package/dist/shared/fiber.DlTSmVjz.d.cts +2797 -0
- package/dist/shared/fiber.I5Q4dVvl.d.cts +778 -0
- package/dist/shared/fiber.I5Q4dVvl.d.mts +778 -0
- package/dist/shared/fiber.I5Q4dVvl.d.ts +778 -0
- package/dist/shared/fiber.khFlPHPf.cjs +397 -0
- package/dist/shared/fiber.oKEFddXj.cjs +16059 -0
- package/dist/shared/fiber.tsM9NKZ9.mjs +15961 -0
- package/dist/webgpu/index.cjs +100 -16211
- package/dist/webgpu/index.d.cts +112 -4190
- package/dist/webgpu/index.d.mts +112 -4190
- package/dist/webgpu/index.d.ts +112 -4162
- package/dist/webgpu/index.mjs +15 -16095
- package/package.json +11 -8
- package/readme.md +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const THREE = require('three');
|
|
4
|
+
|
|
5
|
+
function _interopNamespaceCompat(e) {
|
|
6
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
7
|
+
const n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
n[k] = e[k];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
n.default = e;
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const THREE__namespace = /*#__PURE__*/_interopNamespaceCompat(THREE);
|
|
18
|
+
|
|
19
|
+
const webglSupport = {
|
|
20
|
+
kind: "webgl",
|
|
21
|
+
three: THREE__namespace,
|
|
22
|
+
Renderer: THREE__namespace.WebGLRenderer,
|
|
23
|
+
RenderTarget: THREE__namespace.WebGLRenderTarget,
|
|
24
|
+
CubeRenderTarget: THREE__namespace.WebGLCubeRenderTarget
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.webglSupport = webglSupport;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const THREE = require('three/webgpu');
|
|
4
|
+
const tsl = require('three/tsl');
|
|
5
|
+
|
|
6
|
+
function _interopNamespaceCompat(e) {
|
|
7
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
8
|
+
const n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
n[k] = e[k];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
n.default = e;
|
|
15
|
+
return n;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const THREE__namespace = /*#__PURE__*/_interopNamespaceCompat(THREE);
|
|
19
|
+
|
|
20
|
+
const webgpuSupport = {
|
|
21
|
+
kind: "webgpu",
|
|
22
|
+
three: THREE__namespace,
|
|
23
|
+
Renderer: THREE__namespace.WebGPURenderer,
|
|
24
|
+
RenderTarget: THREE__namespace.RenderTarget,
|
|
25
|
+
CubeRenderTarget: THREE__namespace.CubeRenderTarget,
|
|
26
|
+
CanvasTarget: THREE__namespace.CanvasTarget,
|
|
27
|
+
// What the occlusion observer (core/visibility.ts) is built from
|
|
28
|
+
occlusion: {
|
|
29
|
+
Node: THREE__namespace.Node,
|
|
30
|
+
NodeUpdateType: THREE__namespace.NodeUpdateType,
|
|
31
|
+
MeshBasicNodeMaterial: THREE__namespace.MeshBasicNodeMaterial,
|
|
32
|
+
uniform: tsl.uniform,
|
|
33
|
+
nodeObject: tsl.nodeObject
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports.webgpuSupport = webgpuSupport;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { nodeObject, uniform } from 'three/tsl';
|
|
3
|
+
|
|
4
|
+
const webgpuSupport = {
|
|
5
|
+
kind: "webgpu",
|
|
6
|
+
three: THREE,
|
|
7
|
+
Renderer: THREE.WebGPURenderer,
|
|
8
|
+
RenderTarget: THREE.RenderTarget,
|
|
9
|
+
CubeRenderTarget: THREE.CubeRenderTarget,
|
|
10
|
+
CanvasTarget: THREE.CanvasTarget,
|
|
11
|
+
// What the occlusion observer (core/visibility.ts) is built from
|
|
12
|
+
occlusion: {
|
|
13
|
+
Node: THREE.Node,
|
|
14
|
+
NodeUpdateType: THREE.NodeUpdateType,
|
|
15
|
+
MeshBasicNodeMaterial: THREE.MeshBasicNodeMaterial,
|
|
16
|
+
uniform,
|
|
17
|
+
nodeObject
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { webgpuSupport };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const extensions = require('./shared/fiber.khFlPHPf.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.context = extensions.context;
|
|
8
|
+
exports.getTextureView = extensions.getTextureView;
|
|
9
|
+
exports.registerRootExtension = extensions.registerRootExtension;
|
|
10
|
+
exports.setRenderOverride = extensions.setRenderOverride;
|
|
11
|
+
exports.useFrame = extensions.useFrame;
|
|
12
|
+
exports.useStore = extensions.useStore;
|
|
13
|
+
exports.useThree = extensions.useThree;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { g as RootStore } from './shared/fiber.I5Q4dVvl.cjs';
|
|
2
|
+
export { U as Act, W as Bridge, i as Camera, n as ComputeFunction, a0 as Disposable, k as DomEvent, D as Dpr, $ as EquConfig, l as EventHandlers, p as EventManager, E as Events, m as FilterFunction, a4 as FrameCallback, a3 as FrameNextCallback, a1 as FrameNextState, a2 as FrameState, F as Frameloop, I as InternalState, h as Intersection, j as IntersectionEvent, L as IsAllOptional, K as IsOptional, M as Mutable, N as NonFunctionKeys, _ as ObjectMap, O as Overwrite, e as Performance, q as PointerCaptureTarget, P as PointerState, J as Properties, b as R3FRenderer, d as RenderCallback, a as RootExtension, f as RootState, Y as SetBlock, c as Size, S as Subscription, Q as ThreeCamera, T as ThreeEvent, Z as UnblockProps, V as Viewport, t as VisibilityEntry, X as XRManager, o as XRPointerConfig, ai as context, r as registerRootExtension, s as setRenderOverride, ag as useStore, ah as useThree } from './shared/fiber.I5Q4dVvl.cjs';
|
|
3
|
+
export { u as useFrame } from './shared/fiber.DAl4H27x.cjs';
|
|
4
|
+
import { Texture } from 'three';
|
|
5
|
+
export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'three/webgpu';
|
|
8
|
+
import 'zustand';
|
|
9
|
+
import 'zustand/traditional';
|
|
10
|
+
import 'three/tsl';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The texture registry as a reader during render should see it: registered textures, plus those a
|
|
14
|
+
* `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
|
|
15
|
+
* itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
|
|
16
|
+
*/
|
|
17
|
+
declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
|
|
18
|
+
|
|
19
|
+
export { RootStore, getTextureView };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { g as RootStore } from './shared/fiber.I5Q4dVvl.mjs';
|
|
2
|
+
export { U as Act, W as Bridge, i as Camera, n as ComputeFunction, a0 as Disposable, k as DomEvent, D as Dpr, $ as EquConfig, l as EventHandlers, p as EventManager, E as Events, m as FilterFunction, a4 as FrameCallback, a3 as FrameNextCallback, a1 as FrameNextState, a2 as FrameState, F as Frameloop, I as InternalState, h as Intersection, j as IntersectionEvent, L as IsAllOptional, K as IsOptional, M as Mutable, N as NonFunctionKeys, _ as ObjectMap, O as Overwrite, e as Performance, q as PointerCaptureTarget, P as PointerState, J as Properties, b as R3FRenderer, d as RenderCallback, a as RootExtension, f as RootState, Y as SetBlock, c as Size, S as Subscription, Q as ThreeCamera, T as ThreeEvent, Z as UnblockProps, V as Viewport, t as VisibilityEntry, X as XRManager, o as XRPointerConfig, ai as context, r as registerRootExtension, s as setRenderOverride, ag as useStore, ah as useThree } from './shared/fiber.I5Q4dVvl.mjs';
|
|
3
|
+
export { u as useFrame } from './shared/fiber.BU0vBHc9.mjs';
|
|
4
|
+
import { Texture } from 'three';
|
|
5
|
+
export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'three/webgpu';
|
|
8
|
+
import 'zustand';
|
|
9
|
+
import 'zustand/traditional';
|
|
10
|
+
import 'three/tsl';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The texture registry as a reader during render should see it: registered textures, plus those a
|
|
14
|
+
* `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
|
|
15
|
+
* itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
|
|
16
|
+
*/
|
|
17
|
+
declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
|
|
18
|
+
|
|
19
|
+
export { RootStore, getTextureView };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { g as RootStore } from './shared/fiber.I5Q4dVvl.js';
|
|
2
|
+
export { U as Act, W as Bridge, i as Camera, n as ComputeFunction, a0 as Disposable, k as DomEvent, D as Dpr, $ as EquConfig, l as EventHandlers, p as EventManager, E as Events, m as FilterFunction, a4 as FrameCallback, a3 as FrameNextCallback, a1 as FrameNextState, a2 as FrameState, F as Frameloop, I as InternalState, h as Intersection, j as IntersectionEvent, L as IsAllOptional, K as IsOptional, M as Mutable, N as NonFunctionKeys, _ as ObjectMap, O as Overwrite, e as Performance, q as PointerCaptureTarget, P as PointerState, J as Properties, b as R3FRenderer, d as RenderCallback, a as RootExtension, f as RootState, Y as SetBlock, c as Size, S as Subscription, Q as ThreeCamera, T as ThreeEvent, Z as UnblockProps, V as Viewport, t as VisibilityEntry, X as XRManager, o as XRPointerConfig, ai as context, r as registerRootExtension, s as setRenderOverride, ag as useStore, ah as useThree } from './shared/fiber.I5Q4dVvl.js';
|
|
3
|
+
export { u as useFrame } from './shared/fiber.Cx-UAmMb.js';
|
|
4
|
+
import { Texture } from 'three';
|
|
5
|
+
export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'three/webgpu';
|
|
8
|
+
import 'zustand';
|
|
9
|
+
import 'zustand/traditional';
|
|
10
|
+
import 'three/tsl';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The texture registry as a reader during render should see it: registered textures, plus those a
|
|
14
|
+
* `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
|
|
15
|
+
* itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
|
|
16
|
+
*/
|
|
17
|
+
declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
|
|
18
|
+
|
|
19
|
+
export { RootStore, getTextureView };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as context, g as getTextureView, r as registerRootExtension, s as setRenderOverride, b as useFrame, u as useStore, a as useThree } from './shared/fiber.B0oukOFO.mjs';
|