@react-three/postprocessing 2.2.4 → 2.2.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/dist/index.cjs.js +3 -3
- package/dist/index.js +1 -2
- package/package.json +1 -2
package/dist/index.cjs.js
CHANGED
|
@@ -11,7 +11,6 @@ var _extends = require('@babel/runtime/helpers/extends');
|
|
|
11
11
|
var _construct = require('@babel/runtime/helpers/construct');
|
|
12
12
|
var threeStdlib = require('three-stdlib');
|
|
13
13
|
var mergeRefs = require('react-merge-refs');
|
|
14
|
-
var without = require('lodash-es/without');
|
|
15
14
|
|
|
16
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
16
|
|
|
@@ -39,7 +38,6 @@ var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
|
|
|
39
38
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
40
39
|
var _construct__default = /*#__PURE__*/_interopDefaultLegacy(_construct);
|
|
41
40
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultLegacy(mergeRefs);
|
|
42
|
-
var without__default = /*#__PURE__*/_interopDefaultLegacy(without);
|
|
43
41
|
|
|
44
42
|
var _excluded$7 = ["blendFunction", "opacity"];
|
|
45
43
|
|
|
@@ -375,7 +373,9 @@ function Select(_ref2) {
|
|
|
375
373
|
});
|
|
376
374
|
return function () {
|
|
377
375
|
api.select(function (state) {
|
|
378
|
-
return
|
|
376
|
+
return state.filter(function (selected) {
|
|
377
|
+
return !current.includes(selected);
|
|
378
|
+
});
|
|
379
379
|
});
|
|
380
380
|
};
|
|
381
381
|
}
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,6 @@ import { useThree, useFrame, useLoader } from '@react-three/fiber';
|
|
|
6
6
|
import { isWebGL2Available } from 'three-stdlib';
|
|
7
7
|
import mergeRefs from 'react-merge-refs';
|
|
8
8
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
9
|
-
import without from 'lodash-es/without';
|
|
10
9
|
|
|
11
10
|
const isRef = ref => !!ref.current;
|
|
12
11
|
|
|
@@ -288,7 +287,7 @@ function Select(_ref2) {
|
|
|
288
287
|
if (changed) {
|
|
289
288
|
api.select(state => [...state, ...current]);
|
|
290
289
|
return () => {
|
|
291
|
-
api.select(state =>
|
|
290
|
+
api.select(state => state.filter(selected => !current.includes(selected)));
|
|
292
291
|
};
|
|
293
292
|
}
|
|
294
293
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/postprocessing",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "postprocessing wrapper for React and @react-three/fiber",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postprocessing",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"typegen": "tsc --emitDeclarationOnly || true"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"lodash-es": "^4.17.21",
|
|
42
41
|
"postprocessing": "6.24.1",
|
|
43
42
|
"react-merge-refs": "^1.1.0",
|
|
44
43
|
"three-stdlib": "^2.8.6"
|