angular-three-postprocessing 2.12.0 → 2.14.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 (37) hide show
  1. package/esm2022/lib/effect-composer.mjs +20 -11
  2. package/esm2022/lib/effect.mjs +1 -2
  3. package/esm2022/lib/effects/ascii.mjs +7 -3
  4. package/esm2022/lib/effects/bloom.mjs +3 -3
  5. package/esm2022/lib/effects/brightness-contrast.mjs +3 -3
  6. package/esm2022/lib/effects/chromatic-abberation.mjs +3 -3
  7. package/esm2022/lib/effects/color-depth.mjs +3 -3
  8. package/esm2022/lib/effects/depth.mjs +3 -3
  9. package/esm2022/lib/effects/dot-screen.mjs +3 -3
  10. package/esm2022/lib/effects/fxaa.mjs +3 -3
  11. package/esm2022/lib/effects/glitch.mjs +5 -5
  12. package/esm2022/lib/effects/god-rays.mjs +5 -1
  13. package/esm2022/lib/effects/grid.mjs +5 -1
  14. package/esm2022/lib/effects/hue-saturation.mjs +3 -3
  15. package/esm2022/lib/effects/lens-flare.mjs +5 -1
  16. package/esm2022/lib/effects/lut.mjs +5 -1
  17. package/esm2022/lib/effects/noise.mjs +3 -3
  18. package/esm2022/lib/effects/pixelation.mjs +7 -3
  19. package/esm2022/lib/effects/scanline.mjs +3 -3
  20. package/esm2022/lib/effects/sepia.mjs +3 -3
  21. package/esm2022/lib/effects/shock-wave.mjs +3 -3
  22. package/esm2022/lib/effects/smaa.mjs +3 -3
  23. package/esm2022/lib/effects/tilt-shift-2.mjs +3 -3
  24. package/esm2022/lib/effects/tilt-shift.mjs +3 -3
  25. package/esm2022/lib/effects/vignette.mjs +3 -3
  26. package/esm2022/lib/effects/water.mjs +3 -3
  27. package/esm2022/n8ao/lib/n8ao.mjs +5 -1
  28. package/fesm2022/angular-three-postprocessing-n8ao.mjs +4 -0
  29. package/fesm2022/angular-three-postprocessing-n8ao.mjs.map +1 -1
  30. package/fesm2022/angular-three-postprocessing.mjs +67 -35
  31. package/fesm2022/angular-three-postprocessing.mjs.map +1 -1
  32. package/lib/effect-composer.d.ts +12 -15
  33. package/lib/effect.d.ts +0 -4
  34. package/lib/effects/ascii.d.ts +1 -0
  35. package/lib/effects/pixelation.d.ts +1 -0
  36. package/lib/effects/tone-mapping.d.ts +1 -1
  37. package/package.json +4 -4
@@ -1,6 +1,4 @@
1
- import { ElementRef } from '@angular/core';
2
- import { DepthDownsamplingPass, EffectComposer, NormalPass } from 'postprocessing';
3
- import { Camera, Group, Scene, TextureDataType } from 'three';
1
+ import { Camera, Scene, TextureDataType } from 'three';
4
2
  import * as i0 from "@angular/core";
5
3
  export interface NgtpEffectComposerOptions {
6
4
  enabled: boolean;
@@ -24,20 +22,19 @@ export declare class NgtpEffectComposer {
24
22
  private gl;
25
23
  private defaultScene;
26
24
  private defaultCamera;
27
- depthBuffer: import("@angular/core").Signal<boolean | undefined>;
28
- stencilBuffer: import("@angular/core").Signal<boolean | undefined>;
29
- multisampling: import("@angular/core").Signal<number>;
30
- frameBufferType: import("@angular/core").Signal<TextureDataType>;
25
+ private depthBuffer;
26
+ private stencilBuffer;
27
+ private multisampling;
28
+ private frameBufferType;
29
+ private enableNormalPass;
30
+ private resolutionScale;
31
+ private enabled;
32
+ private renderPriority;
31
33
  scene: import("@angular/core").Signal<Scene>;
32
34
  camera: import("@angular/core").Signal<Camera>;
33
- enableNormalPass: import("@angular/core").Signal<boolean | undefined>;
34
- resolutionScale: import("@angular/core").Signal<number | undefined>;
35
- groupRef: import("@angular/core").Signal<ElementRef<Group<import("three").Object3DEventMap>>>;
36
- composerData: import("@angular/core").Signal<{
37
- composer: EffectComposer;
38
- normalPass: NormalPass | null;
39
- downSamplingPass: DepthDownsamplingPass | null;
40
- }>;
35
+ private groupRef;
36
+ private priority;
37
+ private composerData;
41
38
  constructor();
42
39
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpEffectComposer, never>;
43
40
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpEffectComposer, "ngtp-effect-composer", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
package/lib/effect.d.ts CHANGED
@@ -50,7 +50,3 @@ export declare class NgtpEffect {
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpEffect, never>;
51
51
  static ɵdir: i0.ɵɵDirectiveDeclaration<NgtpEffect, never, never, { "blendFunction": { "alias": "blendFunction"; "required": false; "isSignal": true; }; "opacity": { "alias": "opacity"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
52
52
  }
53
- export declare const NgtpEffectHostDirective: {
54
- directive: typeof NgtpEffect;
55
- inputs: string[];
56
- };
@@ -17,6 +17,7 @@ export declare class ASCIIEffect extends Effect {
17
17
  export declare class NgtpASCII {
18
18
  options: import("@angular/core").InputSignalWithTransform<ASCIIEffectOptions, "" | Partial<ASCIIEffectOptions>>;
19
19
  effect: import("@angular/core").Signal<ASCIIEffect>;
20
+ constructor();
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpASCII, never>;
21
22
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpASCII, "ngtp-ascii", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
22
23
  }
@@ -11,6 +11,7 @@ export declare class NgtpPixelation {
11
11
  }>>;
12
12
  private granularity;
13
13
  effect: import("@angular/core").Signal<PixelationEffect>;
14
+ constructor();
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpPixelation, never>;
15
16
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpPixelation, "ngtp-pixelation", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
17
  }
@@ -25,7 +25,7 @@ export declare class NgtpToneMapping {
25
25
  minLuminance?: number;
26
26
  averageLuminance?: number;
27
27
  adaptationRate?: number;
28
- }>, "blendFunction" | "mode" | "adaptive" | "resolution" | "maxLuminance" | "whitePoint" | "middleGrey" | "minLuminance" | "averageLuminance" | "adaptationRate">>;
28
+ }>, "blendFunction" | "adaptive" | "mode" | "resolution" | "maxLuminance" | "whitePoint" | "middleGrey" | "minLuminance" | "averageLuminance" | "adaptationRate">>;
29
29
  private blendFunction;
30
30
  private adaptive;
31
31
  private mode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three-postprocessing",
3
- "version": "2.12.0",
3
+ "version": "2.14.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,12 +22,12 @@
22
22
  ],
23
23
  "license": "MIT",
24
24
  "peerDependencies": {
25
- "@angular/common": ">=18.0.0 <19.0.0",
26
- "@angular/core": ">=18.0.0 <19.0.0",
25
+ "@angular/common": ">=18.0.0 <20.0.0",
26
+ "@angular/core": ">=18.0.0 <20.0.0",
27
27
  "maath": ">=0.10.0 <0.11.0",
28
28
  "n8ao": "^1.9.0",
29
29
  "postprocessing": "^6.0.0",
30
- "three": ">=0.148.0 <0.171.0",
30
+ "three": ">=0.148.0 <0.172.0",
31
31
  "three-stdlib": "^2.0.0"
32
32
  },
33
33
  "peerDependenciesMeta": {