@react-three/fiber 8.0.0 → 8.0.1
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/store.d.ts +1 -0
- package/dist/{index-56b68682.esm.js → index-2de459e5.esm.js} +5 -1
- package/dist/{index-012f96fe.cjs.dev.js → index-56f220df.cjs.dev.js} +5 -1
- package/dist/{index-8d2b9a82.cjs.prod.js → index-a8a84b79.cjs.prod.js} +5 -1
- package/dist/react-three-fiber.cjs.dev.js +1 -1
- package/dist/react-three-fiber.cjs.prod.js +1 -1
- package/dist/react-three-fiber.esm.js +2 -2
- package/native/dist/react-three-fiber-native.cjs.dev.js +1 -1
- package/native/dist/react-three-fiber-native.cjs.prod.js +1 -1
- package/native/dist/react-three-fiber-native.esm.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -91,6 +91,7 @@ export declare type StoreProps = {
|
|
|
91
91
|
shadows?: boolean | Partial<THREE.WebGLShadowMap>;
|
|
92
92
|
linear?: boolean;
|
|
93
93
|
flat?: boolean;
|
|
94
|
+
legacy?: boolean;
|
|
94
95
|
orthographic?: boolean;
|
|
95
96
|
frameloop?: 'always' | 'demand' | 'never';
|
|
96
97
|
performance?: Partial<Omit<Performance, 'regress'>>;
|
|
@@ -1550,6 +1550,7 @@ function createRoot(canvas) {
|
|
|
1550
1550
|
shadows = false,
|
|
1551
1551
|
linear = false,
|
|
1552
1552
|
flat = false,
|
|
1553
|
+
legacy = false,
|
|
1553
1554
|
orthographic = false,
|
|
1554
1555
|
frameloop = 'always',
|
|
1555
1556
|
dpr = [1, 2],
|
|
@@ -1652,7 +1653,10 @@ function createRoot(canvas) {
|
|
|
1652
1653
|
} // Set color management
|
|
1653
1654
|
|
|
1654
1655
|
|
|
1655
|
-
if (THREE.ColorManagement)
|
|
1656
|
+
if (THREE.ColorManagement) {
|
|
1657
|
+
THREE.ColorManagement.legacyMode = !legacy;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1656
1660
|
const outputEncoding = linear ? THREE.LinearEncoding : THREE.sRGBEncoding;
|
|
1657
1661
|
const toneMapping = flat ? THREE.NoToneMapping : THREE.ACESFilmicToneMapping;
|
|
1658
1662
|
if (gl.outputEncoding !== outputEncoding) gl.outputEncoding = outputEncoding;
|
|
@@ -1579,6 +1579,7 @@ function createRoot(canvas) {
|
|
|
1579
1579
|
shadows = false,
|
|
1580
1580
|
linear = false,
|
|
1581
1581
|
flat = false,
|
|
1582
|
+
legacy = false,
|
|
1582
1583
|
orthographic = false,
|
|
1583
1584
|
frameloop = 'always',
|
|
1584
1585
|
dpr = [1, 2],
|
|
@@ -1681,7 +1682,10 @@ function createRoot(canvas) {
|
|
|
1681
1682
|
} // Set color management
|
|
1682
1683
|
|
|
1683
1684
|
|
|
1684
|
-
if (THREE__namespace.ColorManagement)
|
|
1685
|
+
if (THREE__namespace.ColorManagement) {
|
|
1686
|
+
THREE__namespace.ColorManagement.legacyMode = !legacy;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1685
1689
|
const outputEncoding = linear ? THREE__namespace.LinearEncoding : THREE__namespace.sRGBEncoding;
|
|
1686
1690
|
const toneMapping = flat ? THREE__namespace.NoToneMapping : THREE__namespace.ACESFilmicToneMapping;
|
|
1687
1691
|
if (gl.outputEncoding !== outputEncoding) gl.outputEncoding = outputEncoding;
|
|
@@ -1579,6 +1579,7 @@ function createRoot(canvas) {
|
|
|
1579
1579
|
shadows = false,
|
|
1580
1580
|
linear = false,
|
|
1581
1581
|
flat = false,
|
|
1582
|
+
legacy = false,
|
|
1582
1583
|
orthographic = false,
|
|
1583
1584
|
frameloop = 'always',
|
|
1584
1585
|
dpr = [1, 2],
|
|
@@ -1681,7 +1682,10 @@ function createRoot(canvas) {
|
|
|
1681
1682
|
} // Set color management
|
|
1682
1683
|
|
|
1683
1684
|
|
|
1684
|
-
if (THREE__namespace.ColorManagement)
|
|
1685
|
+
if (THREE__namespace.ColorManagement) {
|
|
1686
|
+
THREE__namespace.ColorManagement.legacyMode = !legacy;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1685
1689
|
const outputEncoding = linear ? THREE__namespace.LinearEncoding : THREE__namespace.sRGBEncoding;
|
|
1686
1690
|
const toneMapping = flat ? THREE__namespace.NoToneMapping : THREE__namespace.ACESFilmicToneMapping;
|
|
1687
1691
|
if (gl.outputEncoding !== outputEncoding) gl.outputEncoding = outputEncoding;
|
|
@@ -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-56f220df.cjs.dev.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -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-a8a84b79.cjs.prod.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createEvents, e as extend, u as useMemoizedFn, p as pick, o as omit, a as createRoot, b as unmountComponentAtNode } from './index-
|
|
2
|
-
export { t as ReactThreeFiber, v as _roots, s as act, m as addAfterEffect, l as addEffect, n as addTail, k as advance, h as applyProps, d as context, f as createPortal, a as createRoot, i as dispose, e as extend, q as getRootState, j as invalidate, g as reconciler, r as render, b as unmountComponentAtNode, y as useFrame, z as useGraph, A as useLoader, u as useMemoizedFn, w as useStore, x as useThree } from './index-
|
|
1
|
+
import { c as createEvents, e as extend, u as useMemoizedFn, p as pick, o as omit, a as createRoot, b as unmountComponentAtNode } from './index-2de459e5.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, v as _roots, s as act, m as addAfterEffect, l as addEffect, n as addTail, k as advance, h as applyProps, d as context, f as createPortal, a as createRoot, i as dispose, e as extend, q as getRootState, j as invalidate, g as reconciler, r as render, b as unmountComponentAtNode, y as useFrame, z as useGraph, A as useLoader, u as useMemoizedFn, w as useStore, x as useThree } from './index-2de459e5.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';
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var THREE = require('three');
|
|
6
6
|
var expoAsset = require('expo-asset');
|
|
7
|
-
var index = require('../../dist/index-
|
|
7
|
+
var index = require('../../dist/index-56f220df.cjs.dev.js');
|
|
8
8
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
9
9
|
var React = require('react');
|
|
10
10
|
var mergeRefs = require('react-merge-refs');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var THREE = require('three');
|
|
6
6
|
var expoAsset = require('expo-asset');
|
|
7
|
-
var index = require('../../dist/index-
|
|
7
|
+
var index = require('../../dist/index-a8a84b79.cjs.prod.js');
|
|
8
8
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
9
9
|
var React = require('react');
|
|
10
10
|
var mergeRefs = require('react-merge-refs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Asset } from 'expo-asset';
|
|
3
|
-
import { c as createEvents, e as extend, u as useMemoizedFn, p as pick, o as omit, a as createRoot, b as unmountComponentAtNode } from '../../dist/index-
|
|
4
|
-
export { t as ReactThreeFiber, v as _roots, s as act, m as addAfterEffect, l as addEffect, n as addTail, k as advance, h as applyProps, d as context, f as createPortal, a as createRoot, i as dispose, e as extend, q as getRootState, j as invalidate, g as reconciler, r as render, b as unmountComponentAtNode, y as useFrame, z as useGraph, A as useLoader, u as useMemoizedFn, w as useStore, x as useThree } from '../../dist/index-
|
|
3
|
+
import { c as createEvents, e as extend, u as useMemoizedFn, p as pick, o as omit, a as createRoot, b as unmountComponentAtNode } from '../../dist/index-2de459e5.esm.js';
|
|
4
|
+
export { t as ReactThreeFiber, v as _roots, s as act, m as addAfterEffect, l as addEffect, n as addTail, k as advance, h as applyProps, d as context, f as createPortal, a as createRoot, i as dispose, e as extend, q as getRootState, j as invalidate, g as reconciler, r as render, b as unmountComponentAtNode, y as useFrame, z as useGraph, A as useLoader, u as useMemoizedFn, w as useStore, x as useThree } from '../../dist/index-2de459e5.esm.js';
|
|
5
5
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import mergeRefs from 'react-merge-refs';
|