@react-three/fiber 8.14.4 → 8.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{index-a401adf5.cjs.prod.js → index-0ed4bbca.cjs.prod.js} +7 -1
- package/dist/{index-dc6125bc.esm.js → index-563322db.esm.js} +7 -1
- package/dist/{index-2f978f7b.cjs.dev.js → index-886811f8.cjs.dev.js} +7 -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
|
@@ -643,6 +643,7 @@ function diffProps(instance, {
|
|
|
643
643
|
changes
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
+
const __DEV__ = typeof process !== 'undefined' && "production" !== 'production';
|
|
646
647
|
|
|
647
648
|
// This function applies a set of changes to the instance
|
|
648
649
|
function applyProps$1(instance, data) {
|
|
@@ -723,7 +724,12 @@ function applyProps$1(instance, data) {
|
|
|
723
724
|
if (targetProp.fromArray) targetProp.fromArray(value);else targetProp.set(...value);
|
|
724
725
|
}
|
|
725
726
|
// Test again target.copy(class) next ...
|
|
726
|
-
else if (targetProp.copy && value && value.constructor &&
|
|
727
|
+
else if (targetProp.copy && value && value.constructor && (
|
|
728
|
+
// Some environments may break strict identity checks by duplicating versions of three.js.
|
|
729
|
+
// Loosen to unminified names, ignoring descendents.
|
|
730
|
+
// https://github.com/pmndrs/react-three-fiber/issues/2856
|
|
731
|
+
// TODO: fix upstream and remove in v9
|
|
732
|
+
__DEV__ ? targetProp.constructor.name === value.constructor.name : targetProp.constructor === value.constructor)) {
|
|
727
733
|
targetProp.copy(value);
|
|
728
734
|
}
|
|
729
735
|
// If nothing else fits, just set the single value, ignore undefined
|
|
@@ -616,6 +616,7 @@ function diffProps(instance, {
|
|
|
616
616
|
changes
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
+
const __DEV__ = typeof process !== 'undefined' && process.env.NODE_ENV !== 'production';
|
|
619
620
|
|
|
620
621
|
// This function applies a set of changes to the instance
|
|
621
622
|
function applyProps$1(instance, data) {
|
|
@@ -696,7 +697,12 @@ function applyProps$1(instance, data) {
|
|
|
696
697
|
if (targetProp.fromArray) targetProp.fromArray(value);else targetProp.set(...value);
|
|
697
698
|
}
|
|
698
699
|
// Test again target.copy(class) next ...
|
|
699
|
-
else if (targetProp.copy && value && value.constructor &&
|
|
700
|
+
else if (targetProp.copy && value && value.constructor && (
|
|
701
|
+
// Some environments may break strict identity checks by duplicating versions of three.js.
|
|
702
|
+
// Loosen to unminified names, ignoring descendents.
|
|
703
|
+
// https://github.com/pmndrs/react-three-fiber/issues/2856
|
|
704
|
+
// TODO: fix upstream and remove in v9
|
|
705
|
+
__DEV__ ? targetProp.constructor.name === value.constructor.name : targetProp.constructor === value.constructor)) {
|
|
700
706
|
targetProp.copy(value);
|
|
701
707
|
}
|
|
702
708
|
// If nothing else fits, just set the single value, ignore undefined
|
|
@@ -643,6 +643,7 @@ function diffProps(instance, {
|
|
|
643
643
|
changes
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
+
const __DEV__ = typeof process !== 'undefined' && process.env.NODE_ENV !== 'production';
|
|
646
647
|
|
|
647
648
|
// This function applies a set of changes to the instance
|
|
648
649
|
function applyProps$1(instance, data) {
|
|
@@ -723,7 +724,12 @@ function applyProps$1(instance, data) {
|
|
|
723
724
|
if (targetProp.fromArray) targetProp.fromArray(value);else targetProp.set(...value);
|
|
724
725
|
}
|
|
725
726
|
// Test again target.copy(class) next ...
|
|
726
|
-
else if (targetProp.copy && value && value.constructor &&
|
|
727
|
+
else if (targetProp.copy && value && value.constructor && (
|
|
728
|
+
// Some environments may break strict identity checks by duplicating versions of three.js.
|
|
729
|
+
// Loosen to unminified names, ignoring descendents.
|
|
730
|
+
// https://github.com/pmndrs/react-three-fiber/issues/2856
|
|
731
|
+
// TODO: fix upstream and remove in v9
|
|
732
|
+
__DEV__ ? targetProp.constructor.name === value.constructor.name : targetProp.constructor === value.constructor)) {
|
|
727
733
|
targetProp.copy(value);
|
|
728
734
|
}
|
|
729
735
|
// If nothing else fits, just set the single value, ignore undefined
|
|
@@ -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-886811f8.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-0ed4bbca.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 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, w as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, 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, A as useFrame, C as useGraph, x as useInstanceHandle, D as useLoader, y as useStore, z as useThree } from './index-
|
|
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-563322db.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, w as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, 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, A as useFrame, C as useGraph, x as useInstanceHandle, D as useLoader, y as useStore, z as useThree } from './index-563322db.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-886811f8.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('../../dist/index-
|
|
5
|
+
var index = require('../../dist/index-0ed4bbca.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 useMutableCallback, b as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-
|
|
2
|
-
export { t as ReactThreeFiber, w as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, 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, A as useFrame, C as useGraph, x as useInstanceHandle, D as useLoader, y as useStore, z as useThree } from '../../dist/index-
|
|
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-563322db.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, w as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, 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, A as useFrame, C as useGraph, x as useInstanceHandle, D as useLoader, y as useStore, z as useThree } from '../../dist/index-563322db.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';
|