angular-three-postprocessing 4.0.0-next.2 → 4.0.0-next.21
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/fesm2022/angular-three-postprocessing-n8ao.mjs +3 -3
- package/fesm2022/angular-three-postprocessing.mjs +269 -132
- package/fesm2022/angular-three-postprocessing.mjs.map +1 -1
- package/lib/effect-composer.d.ts +2 -1
- package/lib/effects/index.d.ts +1 -0
- package/lib/effects/selective-bloom.d.ts +42 -0
- package/package.json +60 -60
- package/LICENSE +0 -21
package/lib/effect-composer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EffectComposer } from 'postprocessing';
|
|
1
2
|
import * as THREE from 'three';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface NgtpEffectComposerOptions {
|
|
@@ -16,7 +17,6 @@ export interface NgtpEffectComposerOptions {
|
|
|
16
17
|
}
|
|
17
18
|
export declare class NgtpEffectComposer {
|
|
18
19
|
options: import("@angular/core").InputSignalWithTransform<NgtpEffectComposerOptions, "" | Partial<NgtpEffectComposerOptions>>;
|
|
19
|
-
private injector;
|
|
20
20
|
private store;
|
|
21
21
|
private depthBuffer;
|
|
22
22
|
private stencilBuffer;
|
|
@@ -31,6 +31,7 @@ export declare class NgtpEffectComposer {
|
|
|
31
31
|
private groupRef;
|
|
32
32
|
private priority;
|
|
33
33
|
private composerData;
|
|
34
|
+
effectComposer: import("@angular/core").Signal<EffectComposer>;
|
|
34
35
|
constructor();
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtpEffectComposer, never>;
|
|
36
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtpEffectComposer, "ngtp-effect-composer", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
package/lib/effects/index.d.ts
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { BloomEffectOptions, SelectiveBloomEffect } from 'postprocessing';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type SelectiveBloomOptions = BloomEffectOptions & {
|
|
6
|
+
selectionLayer: number;
|
|
7
|
+
inverted: boolean;
|
|
8
|
+
ignoreBackground: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare class NgtpSelectiveBloom {
|
|
11
|
+
lights: import("@angular/core").InputSignal<THREE.Object3D<THREE.Object3DEventMap>[] | ElementRef<THREE.Object3D<THREE.Object3DEventMap> | undefined>[]>;
|
|
12
|
+
selection: import("@angular/core").InputSignal<THREE.Object3D<THREE.Object3DEventMap> | ElementRef<THREE.Object3D<THREE.Object3DEventMap> | undefined> | THREE.Object3D<THREE.Object3DEventMap>[] | ElementRef<THREE.Object3D<THREE.Object3DEventMap> | undefined>[]>;
|
|
13
|
+
options: import("@angular/core").InputSignalWithTransform<SelectiveBloomOptions, "" | Partial<SelectiveBloomOptions>>;
|
|
14
|
+
private blendFunction;
|
|
15
|
+
private luminanceThreshold;
|
|
16
|
+
private luminanceSmoothing;
|
|
17
|
+
private mipmapBlur;
|
|
18
|
+
private intensity;
|
|
19
|
+
private radius;
|
|
20
|
+
private levels;
|
|
21
|
+
private kernelSize;
|
|
22
|
+
private resolutionScale;
|
|
23
|
+
private width;
|
|
24
|
+
private height;
|
|
25
|
+
private resolutionX;
|
|
26
|
+
private resolutionY;
|
|
27
|
+
private inverted;
|
|
28
|
+
private ignoreBackground;
|
|
29
|
+
private selectionLayer;
|
|
30
|
+
private store;
|
|
31
|
+
private effectComposer;
|
|
32
|
+
private ngtSelection;
|
|
33
|
+
private resolvedLights;
|
|
34
|
+
private resolvedSelected;
|
|
35
|
+
private resolvedNgtSelected;
|
|
36
|
+
protected effect: import("@angular/core").Signal<SelectiveBloomEffect>;
|
|
37
|
+
constructor();
|
|
38
|
+
private addLight;
|
|
39
|
+
private removeLight;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtpSelectiveBloom, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtpSelectiveBloom, "ngtp-selective-bloom", never, { "lights": { "alias": "lights"; "required": true; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
2
|
+
"name": "angular-three-postprocessing",
|
|
3
|
+
"version": "4.0.0-next.21",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/angular-threejs/angular-three/tree/main/libs/postprocessing"
|
|
10
|
+
},
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Chau Tran",
|
|
13
|
+
"email": "nartc7789@gmail.com",
|
|
14
|
+
"url": "https://nartc.me"
|
|
15
|
+
},
|
|
16
|
+
"description": "Postprocessing for Angular Three",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"angular",
|
|
19
|
+
"threejs",
|
|
20
|
+
"renderer",
|
|
21
|
+
"postprocessing"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@angular/common": ">=19.0.0 <20.0.0",
|
|
26
|
+
"@angular/core": ">=19.0.0 <20.0.0",
|
|
27
|
+
"maath": ">=0.10.0 <0.11.0",
|
|
28
|
+
"n8ao": ">=1.9.4 <2.0.0",
|
|
29
|
+
"postprocessing": "^6.0.0",
|
|
30
|
+
"three": ">=0.148.0 <0.174.0",
|
|
31
|
+
"three-stdlib": "^2.0.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependenciesMeta": {
|
|
34
|
+
"n8ao": {
|
|
35
|
+
"optional": true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"tslib": "^2.7.0"
|
|
40
|
+
},
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"web-types": [
|
|
43
|
+
"../../node_modules/angular-three/web-types.json",
|
|
44
|
+
"node_modules/angular-three/web-types.json"
|
|
45
|
+
],
|
|
46
|
+
"module": "fesm2022/angular-three-postprocessing.mjs",
|
|
47
|
+
"typings": "index.d.ts",
|
|
48
|
+
"exports": {
|
|
49
|
+
"./package.json": {
|
|
50
|
+
"default": "./package.json"
|
|
51
|
+
},
|
|
52
|
+
".": {
|
|
53
|
+
"types": "./index.d.ts",
|
|
54
|
+
"default": "./fesm2022/angular-three-postprocessing.mjs"
|
|
55
|
+
},
|
|
56
|
+
"./n8ao": {
|
|
57
|
+
"types": "./n8ao/index.d.ts",
|
|
58
|
+
"default": "./fesm2022/angular-three-postprocessing-n8ao.mjs"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Angular Three
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|