angular-three-postprocessing 2.0.0-beta.260 → 2.0.0-beta.262

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 (46) hide show
  1. package/README.md +4 -4
  2. package/esm2022/lib/effect-composer.mjs +3 -3
  3. package/esm2022/lib/effect.mjs +6 -6
  4. package/esm2022/lib/effects/ascii.mjs +3 -3
  5. package/esm2022/lib/effects/bloom.mjs +3 -3
  6. package/esm2022/lib/effects/brightness-contrast.mjs +3 -3
  7. package/esm2022/lib/effects/chromatic-abberation.mjs +3 -3
  8. package/esm2022/lib/effects/color-average.mjs +3 -3
  9. package/esm2022/lib/effects/color-depth.mjs +3 -3
  10. package/esm2022/lib/effects/depth-of-field.mjs +3 -3
  11. package/esm2022/lib/effects/depth.mjs +3 -3
  12. package/esm2022/lib/effects/dot-screen.mjs +3 -3
  13. package/esm2022/lib/effects/fxaa.mjs +3 -3
  14. package/esm2022/lib/effects/glitch.mjs +3 -3
  15. package/esm2022/lib/effects/god-rays.mjs +3 -3
  16. package/esm2022/lib/effects/grid.mjs +3 -3
  17. package/esm2022/lib/effects/hue-saturation.mjs +3 -3
  18. package/esm2022/lib/effects/lens-flare.mjs +3 -3
  19. package/esm2022/lib/effects/lut.mjs +3 -3
  20. package/esm2022/lib/effects/noise.mjs +3 -3
  21. package/esm2022/lib/effects/pixelation.mjs +3 -3
  22. package/esm2022/lib/effects/scanline.mjs +3 -3
  23. package/esm2022/lib/effects/sepia.mjs +3 -3
  24. package/esm2022/lib/effects/shock-wave.mjs +3 -3
  25. package/esm2022/lib/effects/smaa.mjs +3 -3
  26. package/esm2022/lib/effects/tilt-shift-2.mjs +3 -3
  27. package/esm2022/lib/effects/tilt-shift.mjs +3 -3
  28. package/esm2022/lib/effects/vignette.mjs +3 -3
  29. package/esm2022/lib/effects/water.mjs +3 -3
  30. package/fesm2022/angular-three-postprocessing.mjs +87 -87
  31. package/lib/effect.d.ts +20 -20
  32. package/lib/effects/brightness-contrast.d.ts +3 -3
  33. package/lib/effects/chromatic-abberation.d.ts +2 -2
  34. package/lib/effects/color-depth.d.ts +2 -2
  35. package/lib/effects/depth.d.ts +2 -2
  36. package/lib/effects/dot-screen.d.ts +3 -3
  37. package/lib/effects/fxaa.d.ts +1 -1
  38. package/lib/effects/god-rays.d.ts +15 -15
  39. package/lib/effects/hue-saturation.d.ts +3 -3
  40. package/lib/effects/noise.d.ts +2 -2
  41. package/lib/effects/scanline.d.ts +4 -4
  42. package/lib/effects/sepia.d.ts +2 -2
  43. package/lib/effects/smaa.d.ts +3 -3
  44. package/lib/effects/tilt-shift.d.ts +10 -10
  45. package/lib/effects/vignette.d.ts +5 -5
  46. package/package.json +3 -4
package/lib/effect.d.ts CHANGED
@@ -2,35 +2,35 @@ import { BlendFunction } from 'postprocessing';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare const injectDefaultEffectOptions: {
4
4
  (): {
5
- blendFunction?: BlendFunction | undefined;
6
- opacity?: number | undefined;
5
+ blendFunction?: BlendFunction;
6
+ opacity?: number;
7
7
  };
8
8
  (injectOptions: import("@angular/core").InjectOptions & {
9
- optional?: false | undefined;
9
+ optional?: false;
10
10
  } & {
11
- injector?: import("@angular/core").Injector | undefined;
11
+ injector?: import("@angular/core").Injector;
12
12
  }): {
13
- blendFunction?: BlendFunction | undefined;
14
- opacity?: number | undefined;
13
+ blendFunction?: BlendFunction;
14
+ opacity?: number;
15
15
  };
16
16
  (injectOptions: import("@angular/core").InjectOptions & {
17
- injector?: import("@angular/core").Injector | undefined;
17
+ injector?: import("@angular/core").Injector;
18
18
  }): {
19
- blendFunction?: BlendFunction | undefined;
20
- opacity?: number | undefined;
19
+ blendFunction?: BlendFunction;
20
+ opacity?: number;
21
21
  } | null;
22
22
  }, provideDefaultEffectOptions: ((value: {
23
- blendFunction?: BlendFunction | undefined;
24
- opacity?: number | undefined;
23
+ blendFunction?: BlendFunction;
24
+ opacity?: number;
25
25
  } | (() => {
26
- blendFunction?: BlendFunction | undefined;
27
- opacity?: number | undefined;
26
+ blendFunction?: BlendFunction;
27
+ opacity?: number;
28
28
  })) => import("@angular/core").Provider) & ((value: {
29
- blendFunction?: BlendFunction | undefined;
30
- opacity?: number | undefined;
29
+ blendFunction?: BlendFunction;
30
+ opacity?: number;
31
31
  } | (() => {
32
- blendFunction?: BlendFunction | undefined;
33
- opacity?: number | undefined;
32
+ blendFunction?: BlendFunction;
33
+ opacity?: number;
34
34
  })) => import("@angular/core").Provider);
35
35
  export declare class NgtpEffectBlendMode {
36
36
  effect: NgtpEffect | null;
@@ -39,14 +39,14 @@ export declare class NgtpEffectBlendMode {
39
39
  }
40
40
  export declare class NgtpEffect {
41
41
  defaultEffectOptions: {
42
- blendFunction?: BlendFunction | undefined;
43
- opacity?: number | undefined;
42
+ blendFunction?: BlendFunction;
43
+ opacity?: number;
44
44
  } | null;
45
45
  blendFunction: import("@angular/core").InputSignal<BlendFunction | undefined>;
46
46
  opacity: import("@angular/core").InputSignal<number | undefined>;
47
47
  private store;
48
48
  camera: import("@angular/core").Signal<import("angular-three").NgtCameraManual>;
49
- invalidate: import("@angular/core").Signal<(frames?: number | undefined) => void>;
49
+ invalidate: import("@angular/core").Signal<(frames?: number) => void>;
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
  }
@@ -6,9 +6,9 @@ export type BrightnessEffectOptions = NonNullable<ConstructorParameters<typeof B
6
6
  export declare class NgtpBrightnessContrast {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- brightness?: number | undefined;
11
- contrast?: number | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ brightness?: number;
11
+ contrast?: number;
12
12
  }, "blendFunction">>;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpBrightnessContrast, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpBrightnessContrast, "ngtp-brightness-contrast", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
@@ -6,8 +6,8 @@ export type ChromaticAberrationEffectOptions = Partial<NonNullable<ConstructorPa
6
6
  export declare class NgtpChromaticAberration {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- offset?: import("three").Vector2 | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ offset?: import("three").Vector2;
11
11
  radialModulation: boolean;
12
12
  modulationOffset: number;
13
13
  }>, "blendFunction">>;
@@ -6,8 +6,8 @@ export type ColorDepthEffectOptions = Partial<NonNullable<ConstructorParameters<
6
6
  export declare class NgtpColorDepth {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- bits?: number | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ bits?: number;
11
11
  }>, "blendFunction">>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpColorDepth, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpColorDepth, "ngtp-color-depth", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
@@ -6,8 +6,8 @@ export type DepthEffectOptions = Partial<NonNullable<ConstructorParameters<typeo
6
6
  export declare class NgtpDepth {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- inverted?: boolean | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ inverted?: boolean;
11
11
  }>, "blendFunction">>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpDepth, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpDepth, "ngtp-depth", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
@@ -6,9 +6,9 @@ export type DotScreenEffectOptions = Partial<NonNullable<ConstructorParameters<t
6
6
  export declare class NgtpDotScreen {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- angle?: number | undefined;
11
- scale?: number | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ angle?: number;
11
+ scale?: number;
12
12
  }>, "blendFunction">>;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpDotScreen, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpDotScreen, "ngtp-dot-screen", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
@@ -6,7 +6,7 @@ export type FXAAEffectOptions = Partial<NonNullable<ConstructorParameters<typeof
6
6
  export declare class NgtpFXAA {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
10
  }>, "blendFunction">>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpFXAA, never>;
12
12
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpFXAA, "ngtp-fxaa", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
@@ -6,22 +6,22 @@ export declare class NgtpGodRays {
6
6
  private autoEffect;
7
7
  private effectComposer;
8
8
  options: import("@angular/core").InputSignal<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- samples?: number | undefined;
11
- density?: number | undefined;
12
- decay?: number | undefined;
13
- weight?: number | undefined;
14
- exposure?: number | undefined;
15
- clampMax?: number | undefined;
16
- resolutionScale?: number | undefined;
17
- resolutionX?: number | undefined;
18
- resolutionY?: number | undefined;
19
- width?: number | undefined;
20
- height?: number | undefined;
21
- kernelSize?: import("postprocessing").KernelSize | undefined;
22
- blur?: boolean | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ samples?: number;
11
+ density?: number;
12
+ decay?: number;
13
+ weight?: number;
14
+ exposure?: number;
15
+ clampMax?: number;
16
+ resolutionScale?: number;
17
+ resolutionX?: number;
18
+ resolutionY?: number;
19
+ width?: number;
20
+ height?: number;
21
+ kernelSize?: import("postprocessing").KernelSize;
22
+ blur?: boolean;
23
23
  } & {
24
- sun: Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> | Points<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> | ElementRef<Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> | Points<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>>;
24
+ sun: Mesh | Points | ElementRef<Mesh | Points>;
25
25
  }>;
26
26
  effect: import("@angular/core").Signal<GodRaysEffect>;
27
27
  constructor();
@@ -6,9 +6,9 @@ export type HueSaturationEffectOptions = Partial<NonNullable<ConstructorParamete
6
6
  export declare class NgtpHueSaturation {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- hue?: number | undefined;
11
- saturation?: number | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ hue?: number;
11
+ saturation?: number;
12
12
  }>, "blendFunction">>;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpHueSaturation, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpHueSaturation, "ngtp-hue-saturation", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
@@ -6,8 +6,8 @@ export type NoiseEffectOptions = Partial<NonNullable<ConstructorParameters<typeo
6
6
  export declare class NgtpNoise {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: BlendFunction | undefined;
10
- premultiply?: boolean | undefined;
9
+ blendFunction?: BlendFunction;
10
+ premultiply?: boolean;
11
11
  }>, "blendFunction">>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpNoise, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpNoise, "ngtp-noise", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
@@ -6,11 +6,11 @@ export type ScanlineEffectOptions = Partial<NonNullable<ConstructorParameters<ty
6
6
  export declare class NgtpScanline {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignalWithTransform<Omit<Partial<{
9
- blendFunction?: BlendFunction | undefined;
10
- density?: number | undefined;
9
+ blendFunction?: BlendFunction;
10
+ density?: number;
11
11
  }>, "blendFunction">, "" | Partial<Omit<Partial<{
12
- blendFunction?: BlendFunction | undefined;
13
- density?: number | undefined;
12
+ blendFunction?: BlendFunction;
13
+ density?: number;
14
14
  }>, "blendFunction">>>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpScanline, never>;
16
16
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtpScanline, "ngtp-scanline", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgtpEffect; inputs: { "blendFunction": "blendFunction"; "opacity": "opacity"; }; outputs: {}; }]>;
@@ -6,8 +6,8 @@ export type SepiaEffectOptions = Partial<NonNullable<ConstructorParameters<typeo
6
6
  export declare class NgtpSepia {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- intensity?: number | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ intensity?: number;
11
11
  }>, "blendFunction">>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpSepia, never>;
13
13
  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: {}; }]>;
@@ -6,9 +6,9 @@ export type SMAAEffectOptions = Partial<NonNullable<ConstructorParameters<typeof
6
6
  export declare class NgtpSMAA {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- preset?: import("postprocessing").SMAAPreset | undefined;
10
- edgeDetectionMode?: import("postprocessing").EdgeDetectionMode | undefined;
11
- predicationMode?: import("postprocessing").PredicationMode | undefined;
9
+ preset?: import("postprocessing").SMAAPreset;
10
+ edgeDetectionMode?: import("postprocessing").EdgeDetectionMode;
11
+ predicationMode?: import("postprocessing").PredicationMode;
12
12
  }>, "blendFunction">>;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpSMAA, never>;
14
14
  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: {}; }]>;
@@ -6,16 +6,16 @@ export type TiltShiftEffectOptions = Partial<NonNullable<ConstructorParameters<t
6
6
  export declare class NgtpTiltShift {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: BlendFunction | undefined;
10
- offset?: number | undefined;
11
- rotation?: number | undefined;
12
- focusArea?: number | undefined;
13
- feather?: number | undefined;
14
- bias?: number | undefined;
15
- kernelSize?: import("postprocessing").KernelSize | undefined;
16
- resolutionScale?: number | undefined;
17
- resolutionX?: number | undefined;
18
- resolutionY?: number | undefined;
9
+ blendFunction?: BlendFunction;
10
+ offset?: number;
11
+ rotation?: number;
12
+ focusArea?: number;
13
+ feather?: number;
14
+ bias?: number;
15
+ kernelSize?: import("postprocessing").KernelSize;
16
+ resolutionScale?: number;
17
+ resolutionX?: number;
18
+ resolutionY?: number;
19
19
  }>, "blendFunction">>;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpTiltShift, never>;
21
21
  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: {}; }]>;
@@ -6,11 +6,11 @@ export type VignetteEffectOptions = Partial<NonNullable<ConstructorParameters<ty
6
6
  export declare class NgtpVignette {
7
7
  effect: NgtpEffect;
8
8
  options: import("@angular/core").InputSignal<Omit<Partial<{
9
- blendFunction?: import("postprocessing").BlendFunction | undefined;
10
- technique?: import("postprocessing").VignetteTechnique | undefined;
11
- eskil?: boolean | undefined;
12
- offset?: number | undefined;
13
- darkness?: number | undefined;
9
+ blendFunction?: import("postprocessing").BlendFunction;
10
+ technique?: import("postprocessing").VignetteTechnique;
11
+ eskil?: boolean;
12
+ offset?: number;
13
+ darkness?: number;
14
14
  }>, "blendFunction">>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtpVignette, never>;
16
16
  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: {}; }]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three-postprocessing",
3
- "version": "2.0.0-beta.260",
3
+ "version": "2.0.0-beta.262",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,10 +22,9 @@
22
22
  ],
23
23
  "license": "MIT",
24
24
  "peerDependencies": {
25
- "@angular/common": "^18.0.0",
26
- "@angular/core": "^18.0.0",
25
+ "@angular/common": ">=18.0.0",
26
+ "@angular/core": ">=18.0.0",
27
27
  "maath": "^0.10.0",
28
- "ngxtension": "^3.0.0",
29
28
  "postprocessing": "^6.0.0",
30
29
  "three": ">=0.148.0",
31
30
  "three-stdlib": "^2.0.0"