angular-three-postprocessing 4.0.0-next.99 → 4.0.0

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.
Files changed (44) hide show
  1. package/README.md +80 -21
  2. package/fesm2022/angular-three-postprocessing-n8ao.mjs +42 -7
  3. package/fesm2022/angular-three-postprocessing-n8ao.mjs.map +1 -1
  4. package/fesm2022/angular-three-postprocessing.mjs +1185 -241
  5. package/fesm2022/angular-three-postprocessing.mjs.map +1 -1
  6. package/n8ao/README.md +143 -0
  7. package/package.json +7 -7
  8. package/types/angular-three-postprocessing-n8ao.d.ts +167 -0
  9. package/types/angular-three-postprocessing.d.ts +1887 -0
  10. package/index.d.ts +0 -3
  11. package/lib/effect-composer.d.ts +0 -38
  12. package/lib/effect.d.ts +0 -52
  13. package/lib/effects/ascii.d.ts +0 -24
  14. package/lib/effects/bloom.d.ts +0 -11
  15. package/lib/effects/brightness-contrast.d.ts +0 -16
  16. package/lib/effects/chromatic-abberation.d.ts +0 -17
  17. package/lib/effects/color-average.d.ts +0 -12
  18. package/lib/effects/color-depth.d.ts +0 -15
  19. package/lib/effects/depth-of-field.d.ts +0 -20
  20. package/lib/effects/depth.d.ts +0 -15
  21. package/lib/effects/dot-screen.d.ts +0 -16
  22. package/lib/effects/fxaa.d.ts +0 -14
  23. package/lib/effects/glitch.d.ts +0 -32
  24. package/lib/effects/god-rays.d.ts +0 -32
  25. package/lib/effects/grid.d.ts +0 -18
  26. package/lib/effects/hue-saturation.d.ts +0 -16
  27. package/lib/effects/index.d.ts +0 -29
  28. package/lib/effects/lens-flare.d.ts +0 -94
  29. package/lib/effects/lut.d.ts +0 -18
  30. package/lib/effects/noise.d.ts +0 -15
  31. package/lib/effects/outline.d.ts +0 -73
  32. package/lib/effects/pixelation.d.ts +0 -17
  33. package/lib/effects/scanline.d.ts +0 -18
  34. package/lib/effects/selective-bloom.d.ts +0 -42
  35. package/lib/effects/sepia.d.ts +0 -15
  36. package/lib/effects/shock-wave.d.ts +0 -12
  37. package/lib/effects/smaa.d.ts +0 -16
  38. package/lib/effects/tilt-shift-2.d.ts +0 -35
  39. package/lib/effects/tilt-shift.d.ts +0 -23
  40. package/lib/effects/tone-mapping.d.ts +0 -23
  41. package/lib/effects/vignette.d.ts +0 -18
  42. package/lib/effects/water.d.ts +0 -21
  43. package/n8ao/index.d.ts +0 -1
  44. package/n8ao/lib/n8ao.d.ts +0 -35
@@ -1,42 +0,0 @@
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> | THREE.Object3D<THREE.Object3DEventMap>[] | ElementRef<THREE.Object3D<THREE.Object3DEventMap> | undefined> | 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 selectionApi;
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
- }
@@ -1,15 +0,0 @@
1
- import { SepiaEffect } from 'postprocessing';
2
- import { NgtpEffect } from '../effect';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../effect";
5
- export type SepiaEffectOptions = Partial<NonNullable<ConstructorParameters<typeof SepiaEffect>[0]>>;
6
- export declare class NgtpSepia {
7
- options: import("@angular/core").InputSignal<Omit<Partial<{
8
- blendFunction?: import("postprocessing").BlendFunction;
9
- intensity?: number;
10
- }>, "blendFunction">>;
11
- protected effect: NgtpEffect;
12
- constructor();
13
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpSepia, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpSepia, "ngtp-sepia", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
15
- }
@@ -1,12 +0,0 @@
1
- import { ShockWaveEffect } from 'postprocessing';
2
- import { NgtpEffect } from '../effect';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../effect";
5
- export type ShockWaveEffectOptions = Partial<NonNullable<ConstructorParameters<typeof ShockWaveEffect>[0]>>;
6
- export declare class NgtpShockWave {
7
- options: import("@angular/core").InputSignal<Omit<Partial<import("three").Camera>, "blendFunction">>;
8
- protected effect: NgtpEffect;
9
- constructor();
10
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpShockWave, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpShockWave, "ngtp-shock-wave", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
12
- }
@@ -1,16 +0,0 @@
1
- import { SMAAEffect } from 'postprocessing';
2
- import { NgtpEffect } from '../effect';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../effect";
5
- export type SMAAEffectOptions = Partial<NonNullable<ConstructorParameters<typeof SMAAEffect>[0]>>;
6
- export declare class NgtpSMAA {
7
- options: import("@angular/core").InputSignal<Omit<Partial<{
8
- preset?: import("postprocessing").SMAAPreset;
9
- edgeDetectionMode?: import("postprocessing").EdgeDetectionMode;
10
- predicationMode?: import("postprocessing").PredicationMode;
11
- }>, "blendFunction">>;
12
- protected effect: NgtpEffect;
13
- constructor();
14
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpSMAA, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpSMAA, "ngtp-smaa", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
16
- }
@@ -1,35 +0,0 @@
1
- import { BlendFunction, Effect } from 'postprocessing';
2
- import { NgtpEffect } from '../effect';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../effect";
5
- export declare class TiltShift2Effect extends Effect {
6
- constructor({ blendFunction, blur, // [0, 1], can go beyond 1 for extra
7
- taper, // [0, 1], can go beyond 1 for extra
8
- start, // [0,1] percentage x,y of screenspace
9
- end, // [0,1] percentage x,y of screenspace
10
- samples, // number of blur samples
11
- direction, }?: {
12
- blendFunction?: BlendFunction | undefined;
13
- blur?: number | undefined;
14
- taper?: number | undefined;
15
- start?: number[] | undefined;
16
- end?: number[] | undefined;
17
- samples?: number | undefined;
18
- direction?: number[] | undefined;
19
- });
20
- }
21
- export type TiltShift2EffectOptions = Partial<NonNullable<ConstructorParameters<typeof TiltShift2Effect>[0]>>;
22
- export declare class NgtpTiltShift2 {
23
- options: import("@angular/core").InputSignal<Omit<Partial<{
24
- blendFunction?: BlendFunction | undefined;
25
- blur?: number | undefined;
26
- taper?: number | undefined;
27
- start?: number[] | undefined;
28
- end?: number[] | undefined;
29
- samples?: number | undefined;
30
- direction?: number[] | undefined;
31
- }>, "blendFunction">>;
32
- protected effect: NgtpEffect;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpTiltShift2, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpTiltShift2, "ngtp-tilt-shift2", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
35
- }
@@ -1,23 +0,0 @@
1
- import { BlendFunction, TiltShiftEffect } from 'postprocessing';
2
- import { NgtpEffect } from '../effect';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../effect";
5
- export type TiltShiftEffectOptions = Partial<NonNullable<ConstructorParameters<typeof TiltShiftEffect>[0]>>;
6
- export declare class NgtpTiltShift {
7
- options: import("@angular/core").InputSignal<Omit<Partial<{
8
- blendFunction?: BlendFunction;
9
- offset?: number;
10
- rotation?: number;
11
- focusArea?: number;
12
- feather?: number;
13
- bias?: number;
14
- kernelSize?: import("postprocessing").KernelSize;
15
- resolutionScale?: number;
16
- resolutionX?: number;
17
- resolutionY?: number;
18
- }>, "blendFunction">>;
19
- protected effect: NgtpEffect;
20
- constructor();
21
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpTiltShift, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpTiltShift, "ngtp-tilt-shift", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
23
- }
@@ -1,23 +0,0 @@
1
- import { ToneMappingEffect } from 'postprocessing';
2
- import { NgtpEffect } from '../effect';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../effect";
5
- export type ToneMappingEffectOptions = NonNullable<ConstructorParameters<typeof ToneMappingEffect>[0]>;
6
- export declare class NgtpToneMapping {
7
- options: import("@angular/core").InputSignal<Omit<{
8
- blendFunction?: import("postprocessing").BlendFunction;
9
- adaptive?: boolean;
10
- mode?: import("postprocessing").ToneMappingMode;
11
- resolution?: number;
12
- maxLuminance?: number;
13
- whitePoint?: number;
14
- middleGrey?: number;
15
- minLuminance?: number;
16
- averageLuminance?: number;
17
- adaptationRate?: number;
18
- }, "blendFunction">>;
19
- protected effect: NgtpEffect;
20
- constructor();
21
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpToneMapping, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpToneMapping, "ngtp-tone-mapping", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
23
- }
@@ -1,18 +0,0 @@
1
- import { VignetteEffect } from 'postprocessing';
2
- import { NgtpEffect } from '../effect';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../effect";
5
- export type VignetteEffectOptions = Partial<NonNullable<ConstructorParameters<typeof VignetteEffect>[0]>>;
6
- export declare class NgtpVignette {
7
- options: import("@angular/core").InputSignal<Omit<Partial<{
8
- blendFunction?: import("postprocessing").BlendFunction;
9
- technique?: import("postprocessing").VignetteTechnique;
10
- eskil?: boolean;
11
- offset?: number;
12
- darkness?: number;
13
- }>, "blendFunction">>;
14
- protected effect: NgtpEffect;
15
- constructor();
16
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpVignette, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpVignette, "ngtp-vignette", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
18
- }
@@ -1,21 +0,0 @@
1
- import { BlendFunction, Effect } from 'postprocessing';
2
- import { NgtpEffect } from '../effect';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../effect";
5
- export declare class WaterEffect extends Effect {
6
- constructor({ blendFunction, factor }?: {
7
- blendFunction?: BlendFunction | undefined;
8
- factor?: number | undefined;
9
- });
10
- }
11
- export type WaterEffectOptions = Partial<NonNullable<ConstructorParameters<typeof WaterEffect>[0]>>;
12
- export declare class NgtpWater {
13
- options: import("@angular/core").InputSignal<Omit<Partial<{
14
- blendFunction?: BlendFunction | undefined;
15
- factor?: number | undefined;
16
- }>, "blendFunction">>;
17
- protected effect: NgtpEffect;
18
- constructor();
19
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpWater, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpWater, "ngtp-water", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
21
- }
package/n8ao/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib/n8ao';
@@ -1,35 +0,0 @@
1
- import * as THREE from 'three';
2
- import * as i0 from "@angular/core";
3
- export interface NgtpN8AOOptions {
4
- aoRadius: number;
5
- aoTones: number;
6
- distanceFalloff: number;
7
- intensity: number;
8
- biasOffset: number;
9
- biasMultiplier: number;
10
- aoSamples: number;
11
- denoiseSamples: number;
12
- denoiseRadius: number;
13
- color: THREE.ColorRepresentation;
14
- halfRes: boolean;
15
- depthAwareUpsampling: boolean;
16
- screenSpaceRadius: boolean;
17
- renderMode: 0 | 1 | 2 | 3 | 4;
18
- denoiseIterations: number;
19
- transparencyAware: boolean;
20
- gammaCorrection: boolean;
21
- logarithmicDepthBuffer: boolean;
22
- colorMultiply: boolean;
23
- accumulate: boolean;
24
- quality?: 'performance' | 'low' | 'medium' | 'high' | 'ultra';
25
- }
26
- export declare class NgtpN8AO {
27
- options: import("@angular/core").InputSignalWithTransform<NgtpN8AOOptions, "" | Partial<NgtpN8AOOptions>>;
28
- private quality;
29
- private effectComposer;
30
- protected effect: import("@angular/core").Signal<any>;
31
- constructor();
32
- private setQualityEffect;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtpN8AO, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtpN8AO, "ngtp-n8ao", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
35
- }