@react-three/fiber 8.14.7 → 8.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/declarations/src/core/index.d.ts +2 -2
- package/dist/{index-d1f17345.cjs.dev.js → index-34a45f4c.cjs.dev.js} +4 -1
- package/dist/{index-c4d1c86e.esm.js → index-5918012a.esm.js} +4 -2
- package/dist/{index-ce1a9f04.cjs.prod.js → index-f4d4539a.cjs.prod.js} +4 -1
- package/dist/react-three-fiber.cjs.dev.js +2 -1
- package/dist/react-three-fiber.cjs.prod.js +2 -1
- package/dist/react-three-fiber.esm.js +2 -2
- package/native/dist/react-three-fiber-native.cjs.dev.js +2 -1
- package/native/dist/react-three-fiber-native.cjs.prod.js +2 -1
- package/native/dist/react-three-fiber-native.esm.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ import { Renderer, context, RootState, Size, Dpr, Performance, PrivateKeys } fro
|
|
|
7
7
|
import { extend, Root } from './renderer';
|
|
8
8
|
import { addEffect, addAfterEffect, addTail, flushGlobalEffects } from './loop';
|
|
9
9
|
import { EventManager, ComputeFunction } from './events';
|
|
10
|
-
import { dispose, getRootState, Camera } from './utils';
|
|
10
|
+
import { dispose, getRootState, Camera, buildGraph } from './utils';
|
|
11
11
|
import type { Properties } from '../three-types';
|
|
12
12
|
declare type Canvas = HTMLCanvasElement | OffscreenCanvas;
|
|
13
13
|
declare const roots: Map<Canvas, Root>;
|
|
@@ -54,4 +54,4 @@ export declare type InjectState = Partial<Omit<RootState, PrivateKeys> & {
|
|
|
54
54
|
declare function createPortal(children: React.ReactNode, container: THREE.Object3D, state?: InjectState): JSX.Element;
|
|
55
55
|
declare const act: any;
|
|
56
56
|
export * from './hooks';
|
|
57
|
-
export { context, render, createRoot, unmountComponentAtNode, createPortal, reconciler, applyProps, dispose, invalidate, advance, extend, addEffect, addAfterEffect, addTail, flushGlobalEffects, getRootState, act, roots as _roots, };
|
|
57
|
+
export { context, render, createRoot, unmountComponentAtNode, createPortal, reconciler, applyProps, dispose, invalidate, advance, extend, addEffect, addAfterEffect, addTail, flushGlobalEffects, getRootState, act, buildGraph, roots as _roots, };
|
|
@@ -497,7 +497,9 @@ const is = {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
|
|
500
|
+
/**
|
|
501
|
+
* Collects nodes and materials from a THREE.Object3D.
|
|
502
|
+
*/
|
|
501
503
|
function buildGraph(object) {
|
|
502
504
|
const data = {
|
|
503
505
|
nodes: {},
|
|
@@ -2211,6 +2213,7 @@ exports.addEffect = addEffect;
|
|
|
2211
2213
|
exports.addTail = addTail;
|
|
2212
2214
|
exports.advance = advance;
|
|
2213
2215
|
exports.applyProps = applyProps;
|
|
2216
|
+
exports.buildGraph = buildGraph;
|
|
2214
2217
|
exports.context = context;
|
|
2215
2218
|
exports.createEvents = createEvents;
|
|
2216
2219
|
exports.createPortal = createPortal;
|
|
@@ -470,7 +470,9 @@ const is = {
|
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
|
|
473
|
+
/**
|
|
474
|
+
* Collects nodes and materials from a THREE.Object3D.
|
|
475
|
+
*/
|
|
474
476
|
function buildGraph(object) {
|
|
475
477
|
const data = {
|
|
476
478
|
nodes: {},
|
|
@@ -2176,4 +2178,4 @@ reconciler.injectIntoDevTools({
|
|
|
2176
2178
|
});
|
|
2177
2179
|
const act = React.unstable_act;
|
|
2178
2180
|
|
|
2179
|
-
export {
|
|
2181
|
+
export { useThree as A, Block as B, useFrame as C, useGraph as D, ErrorBoundary as E, useLoader as F, useIsomorphicLayoutEffect as a, createRoot as b, createEvents as c, unmountComponentAtNode as d, extend as e, context as f, createPortal as g, reconciler as h, isRef as i, applyProps as j, dispose as k, invalidate as l, advance as m, addEffect as n, addAfterEffect as o, addTail as p, flushGlobalEffects as q, render as r, getRootState as s, threeTypes as t, useMutableCallback as u, act as v, buildGraph as w, roots as x, useInstanceHandle as y, useStore as z };
|
|
@@ -497,7 +497,9 @@ const is = {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
|
|
500
|
+
/**
|
|
501
|
+
* Collects nodes and materials from a THREE.Object3D.
|
|
502
|
+
*/
|
|
501
503
|
function buildGraph(object) {
|
|
502
504
|
const data = {
|
|
503
505
|
nodes: {},
|
|
@@ -2211,6 +2213,7 @@ exports.addEffect = addEffect;
|
|
|
2211
2213
|
exports.addTail = addTail;
|
|
2212
2214
|
exports.advance = advance;
|
|
2213
2215
|
exports.applyProps = applyProps;
|
|
2216
|
+
exports.buildGraph = buildGraph;
|
|
2214
2217
|
exports.context = context;
|
|
2215
2218
|
exports.createEvents = createEvents;
|
|
2216
2219
|
exports.createPortal = createPortal;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-34a45f4c.cjs.dev.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -269,6 +269,7 @@ exports.addEffect = index.addEffect;
|
|
|
269
269
|
exports.addTail = index.addTail;
|
|
270
270
|
exports.advance = index.advance;
|
|
271
271
|
exports.applyProps = index.applyProps;
|
|
272
|
+
exports.buildGraph = index.buildGraph;
|
|
272
273
|
exports.context = index.context;
|
|
273
274
|
exports.createEvents = index.createEvents;
|
|
274
275
|
exports.createPortal = index.createPortal;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-f4d4539a.cjs.prod.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -269,6 +269,7 @@ exports.addEffect = index.addEffect;
|
|
|
269
269
|
exports.addTail = index.addTail;
|
|
270
270
|
exports.advance = index.advance;
|
|
271
271
|
exports.applyProps = index.applyProps;
|
|
272
|
+
exports.buildGraph = index.buildGraph;
|
|
272
273
|
exports.context = index.context;
|
|
273
274
|
exports.createEvents = index.createEvents;
|
|
274
275
|
exports.createPortal = index.createPortal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createEvents, e as extend, u as useMutableCallback, a as useIsomorphicLayoutEffect, b as createRoot, i as isRef, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from './index-
|
|
2
|
-
export { t as ReactThreeFiber,
|
|
1
|
+
import { c as createEvents, e as extend, u as useMutableCallback, a as useIsomorphicLayoutEffect, b as createRoot, i as isRef, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from './index-5918012a.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from './index-5918012a.esm.js';
|
|
3
3
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as THREE from 'three';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('../../dist/index-
|
|
5
|
+
var index = require('../../dist/index-34a45f4c.cjs.dev.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -456,6 +456,7 @@ exports.addEffect = index.addEffect;
|
|
|
456
456
|
exports.addTail = index.addTail;
|
|
457
457
|
exports.advance = index.advance;
|
|
458
458
|
exports.applyProps = index.applyProps;
|
|
459
|
+
exports.buildGraph = index.buildGraph;
|
|
459
460
|
exports.context = index.context;
|
|
460
461
|
exports.createEvents = index.createEvents;
|
|
461
462
|
exports.createPortal = index.createPortal;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('../../dist/index-
|
|
5
|
+
var index = require('../../dist/index-f4d4539a.cjs.prod.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -456,6 +456,7 @@ exports.addEffect = index.addEffect;
|
|
|
456
456
|
exports.addTail = index.addTail;
|
|
457
457
|
exports.advance = index.advance;
|
|
458
458
|
exports.applyProps = index.applyProps;
|
|
459
|
+
exports.buildGraph = index.buildGraph;
|
|
459
460
|
exports.context = index.context;
|
|
460
461
|
exports.createEvents = index.createEvents;
|
|
461
462
|
exports.createPortal = index.createPortal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createEvents, e as extend, u as useMutableCallback, b as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-
|
|
2
|
-
export { t as ReactThreeFiber,
|
|
1
|
+
import { c as createEvents, e as extend, u as useMutableCallback, b as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-5918012a.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from '../../dist/index-5918012a.esm.js';
|
|
3
3
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as THREE from 'three';
|