@xperimntl/vue-threejs-postprocessing 1.1.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @bluera/vue-threejs-postprocessing
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7e10ae1: Add .npmignore to exclude source files from tarballs and add repository metadata
8
+
3
9
  ## 1.1.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,60 @@
1
+ export declare const EffectComposer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ enabled: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ multisampling: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ autoClear: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ resolutionScale: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ depthBuffer: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ stencilBuffer: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
+ enabled: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ multisampling: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ autoClear: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ resolutionScale: {
42
+ type: NumberConstructor;
43
+ default: number;
44
+ };
45
+ depthBuffer: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ stencilBuffer: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ }>> & Readonly<{}>, {
54
+ autoClear: boolean;
55
+ enabled: boolean;
56
+ multisampling: number;
57
+ resolutionScale: number;
58
+ depthBuffer: boolean;
59
+ stencilBuffer: boolean;
60
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,19 @@
1
+ import type { InjectionKey, ShallowRef } from 'vue';
2
+ import type { EffectComposer, Effect } from 'postprocessing';
3
+ export interface ComposerContext {
4
+ /** Register an effect with the composer. Returns a removal function. */
5
+ addEffect(effect: Effect, priority: number): () => void;
6
+ /** Remove a previously registered effect from the composer. */
7
+ removeEffect(effect: Effect): void;
8
+ /** The underlying EffectComposer instance. */
9
+ composer: ShallowRef<EffectComposer | null>;
10
+ }
11
+ /** Injection key for the EffectComposer context. */
12
+ export declare const COMPOSER_CONTEXT: InjectionKey<ComposerContext>;
13
+ export interface PostprocessingDefaults {
14
+ multisampling?: number;
15
+ resolutionScale?: number;
16
+ enabled?: boolean;
17
+ }
18
+ /** Injection key for plugin-level defaults. */
19
+ export declare const POSTPROCESSING_DEFAULTS: InjectionKey<PostprocessingDefaults>;
@@ -0,0 +1,40 @@
1
+ export declare const Bloom: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ intensity: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ luminanceThreshold: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ luminanceSmoothing: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ mipmapBlur: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ intensity: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ luminanceThreshold: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ luminanceSmoothing: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ mipmapBlur: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ intensity: number;
37
+ luminanceThreshold: number;
38
+ luminanceSmoothing: number;
39
+ mipmapBlur: boolean;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,22 @@
1
+ export declare const BrightnessContrast: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ brightness: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ contrast: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ brightness: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ contrast: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ brightness: number;
21
+ contrast: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,31 @@
1
+ export declare const DepthOfField: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ focusDistance: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ focalLength: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ bokehScale: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ focusDistance: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ focalLength: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ bokehScale: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ }>> & Readonly<{}>, {
28
+ focusDistance: number;
29
+ focalLength: number;
30
+ bokehScale: number;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,22 @@
1
+ export declare const HueSaturation: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ hue: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ saturation: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ hue: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ saturation: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ hue: number;
21
+ saturation: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,23 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Texture } from 'three';
3
+ export declare const LUT: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ lut: {
5
+ type: PropType<Texture>;
6
+ required: true;
7
+ };
8
+ tetrahedralInterpolation: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ lut: {
14
+ type: PropType<Texture>;
15
+ required: true;
16
+ };
17
+ tetrahedralInterpolation: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }>> & Readonly<{}>, {
22
+ tetrahedralInterpolation: boolean;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,24 @@
1
+ import { type PropType } from 'vue';
2
+ import { BlendFunction } from 'postprocessing';
3
+ export declare const Noise: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ premultiply: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ blendFunction: {
9
+ type: PropType<BlendFunction>;
10
+ default: BlendFunction;
11
+ };
12
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ premultiply: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ blendFunction: {
18
+ type: PropType<BlendFunction>;
19
+ default: BlendFunction;
20
+ };
21
+ }>> & Readonly<{}>, {
22
+ premultiply: boolean;
23
+ blendFunction: BlendFunction;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,42 @@
1
+ import { type PropType } from 'vue';
2
+ import { ToneMappingMode } from 'postprocessing';
3
+ export declare const ToneMapping: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ mode: {
5
+ type: PropType<ToneMappingMode>;
6
+ default: ToneMappingMode;
7
+ };
8
+ resolution: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ whitePoint: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ middleGrey: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ mode: {
22
+ type: PropType<ToneMappingMode>;
23
+ default: ToneMappingMode;
24
+ };
25
+ resolution: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ whitePoint: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ middleGrey: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ }>> & Readonly<{}>, {
38
+ mode: ToneMappingMode;
39
+ resolution: number;
40
+ whitePoint: number;
41
+ middleGrey: number;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,22 @@
1
+ export declare const Vignette: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ offset: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ darkness: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ offset: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ darkness: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ offset: number;
21
+ darkness: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,8 @@
1
+ export { Bloom } from "./Bloom.js";
2
+ export { BrightnessContrast } from "./BrightnessContrast.js";
3
+ export { HueSaturation } from "./HueSaturation.js";
4
+ export { LUT } from "./LUT.js";
5
+ export { ToneMapping } from "./ToneMapping.js";
6
+ export { DepthOfField } from "./DepthOfField.js";
7
+ export { Noise } from "./Noise.js";
8
+ export { Vignette } from "./Vignette.js";
@@ -0,0 +1,6 @@
1
+ export { EffectComposer } from "./EffectComposer.js";
2
+ export { Bloom, BrightnessContrast, HueSaturation, LUT, ToneMapping, DepthOfField, Noise, Vignette } from "./effects/index.js";
3
+ export { postprocessingFiberPlugin, createPostprocessingPlugin } from "./plugin.js";
4
+ export type { PostprocessingPluginOptions } from "./plugin.js";
5
+ export { COMPOSER_CONTEXT, POSTPROCESSING_DEFAULTS } from "./context.js";
6
+ export type { ComposerContext, PostprocessingDefaults } from "./context.js";
@@ -0,0 +1,7 @@
1
+ export interface PostprocessingPluginOptions {
2
+ multisampling?: number;
3
+ resolutionScale?: number;
4
+ enabled?: boolean;
5
+ }
6
+ export declare const postprocessingFiberPlugin: import("@xperimntl/vue-threejs").FiberPluginDefinition<void | PostprocessingPluginOptions>;
7
+ export declare function createPostprocessingPlugin(options?: PostprocessingPluginOptions): import("@xperimntl/vue-threejs").ObjectEntry<PostprocessingPluginOptions | undefined>;
@@ -1,2 +1,2 @@
1
- export * from "../src/index.js";
2
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieHBlcmltbnRsLXZ1ZS10aHJlZWpzLXBvc3Rwcm9jZXNzaW5nLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
1
+ export * from "./declarations/src/index.js";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieHBlcmltbnRsLXZ1ZS10aHJlZWpzLXBvc3Rwcm9jZXNzaW5nLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==