@react-three/postprocessing 2.9.0 → 2.9.2
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/README.md +25 -96
- package/dist/effects/Pixelation.d.ts +2 -2
- package/dist/effects/ScanlineEffect.d.ts +1 -0
- package/dist/index.cjs +486 -677
- package/dist/index.js +397 -586
- package/dist/util.d.ts +1 -1
- package/package.json +15 -17
package/dist/util.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export type EffectProps<T extends EffectConstructor> = ReactThreeFiber.Node<T ex
|
|
|
9
9
|
blendFunction?: BlendFunction;
|
|
10
10
|
opacity?: number;
|
|
11
11
|
};
|
|
12
|
-
export declare const wrapEffect: <T extends EffectConstructor, P extends EffectProps<T>>(effect: T, defaults?: P | undefined) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
12
|
+
export declare const wrapEffect: <T extends EffectConstructor, P extends EffectProps<T> = EffectProps<T>>(effect: T, defaults?: P | undefined) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
13
13
|
export declare const useVector2: (props: Record<string, unknown>, key: string) => THREE.Vector2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/postprocessing",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"description": "postprocessing wrapper for React and @react-three/fiber",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postprocessing",
|
|
@@ -33,21 +33,27 @@
|
|
|
33
33
|
"eslint --fix"
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"prebuild": "rimraf dist && yarn typegen",
|
|
38
|
+
"build": "rollup -c",
|
|
39
|
+
"prepare": "yarn build",
|
|
40
|
+
"eslint": "eslint . --fix --ext=js,ts,jsx,tsx",
|
|
41
|
+
"eslint:ci": "eslint . --ext=js,ts,jsx,tsx",
|
|
42
|
+
"test": "echo no tests yet",
|
|
43
|
+
"typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react",
|
|
44
|
+
"typegen": "tsc --emitDeclarationOnly || true",
|
|
45
|
+
"release": "semantic-release"
|
|
46
|
+
},
|
|
36
47
|
"dependencies": {
|
|
37
48
|
"postprocessing": "^6.30.2",
|
|
38
49
|
"screen-space-reflections": "2.5.0",
|
|
39
50
|
"three-stdlib": "^2.21.10"
|
|
40
51
|
},
|
|
41
52
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "^7.21.4",
|
|
43
|
-
"@babel/plugin-transform-runtime": "7.21.4",
|
|
44
|
-
"@babel/preset-env": "^7.21.4",
|
|
45
|
-
"@babel/preset-react": "7.18.6",
|
|
46
|
-
"@babel/preset-typescript": "^7.21.4",
|
|
47
53
|
"@react-three/fiber": "^8.13.0",
|
|
48
|
-
"@rollup/plugin-babel": "^6.0.3",
|
|
49
54
|
"@rollup/plugin-commonjs": "^24.1.0",
|
|
50
55
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
56
|
+
"@rollup/plugin-typescript": "^11.1.0",
|
|
51
57
|
"@types/react": "^18.2.0",
|
|
52
58
|
"@types/react-dom": "^18.2.1",
|
|
53
59
|
"@types/three": "^0.150.2",
|
|
@@ -68,6 +74,7 @@
|
|
|
68
74
|
"rimraf": "^5.0.0",
|
|
69
75
|
"rollup": "^3.21.0",
|
|
70
76
|
"rollup-plugin-filesize": "^10.0.0",
|
|
77
|
+
"semantic-release": "^21.0.2",
|
|
71
78
|
"three": "^0.151.3",
|
|
72
79
|
"typescript": "^5.0.4"
|
|
73
80
|
},
|
|
@@ -75,14 +82,5 @@
|
|
|
75
82
|
"@react-three/fiber": ">=8.0",
|
|
76
83
|
"react": ">=18.0",
|
|
77
84
|
"three": ">= 0.138.0 < 0.152.0"
|
|
78
|
-
},
|
|
79
|
-
"scripts": {
|
|
80
|
-
"prebuild": "rimraf dist && yarn typegen",
|
|
81
|
-
"build": "rollup -c",
|
|
82
|
-
"eslint": "eslint . --fix --ext=js,ts,jsx,tsx",
|
|
83
|
-
"eslint:ci": "eslint . --ext=js,ts,jsx,tsx",
|
|
84
|
-
"test": "echo no tests yet",
|
|
85
|
-
"typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react",
|
|
86
|
-
"typegen": "tsc --emitDeclarationOnly || true"
|
|
87
85
|
}
|
|
88
|
-
}
|
|
86
|
+
}
|