@xviewer.js/postprocessing 1.0.0-alpha.6 → 1.0.0-alpha.61

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/package.json CHANGED
@@ -1,26 +1,24 @@
1
1
  {
2
- "name": "@xviewer.js/postprocessing",
3
- "version": "1.0.0-alpha.6",
4
- "publishConfig": {
5
- "access": "public",
6
- "registry": "https://registry.npmjs.org"
7
- },
8
- "license": "MIT",
9
- "main": "dist/main.js",
10
- "module": "dist/module.js",
11
- "types": "types/index.d.ts",
12
- "debug": "src/index.ts",
13
- "scripts": {
14
- "b:types": "tsc"
15
- },
16
- "files": [
17
- "dist/**/*",
18
- "types/**/*"
19
- ],
20
- "dependencies": {
21
- "@xviewer.js/core": "1.0.0-alpha.6"
22
- },
23
- "peerDependencies": {
24
- "postprocessing": ">= 6.35.4"
25
- }
2
+ "name": "@xviewer.js/postprocessing",
3
+ "version": "1.0.0-alpha.61",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "dist/main.js",
8
+ "module": "dist/module.js",
9
+ "types": "types/index.d.ts",
10
+ "debug": "src/index.ts",
11
+ "files": [
12
+ "dist/**/*",
13
+ "types/**/*"
14
+ ],
15
+ "dependencies": {
16
+ "@xviewer.js/core": "1.0.0-alpha.61"
17
+ },
18
+ "peerDependencies": {
19
+ "postprocessing": ">= 6.35.4"
20
+ },
21
+ "scripts": {
22
+ "b:types": "tsc"
23
+ }
26
24
  }
@@ -1,6 +1,7 @@
1
1
  import { BloomEffect, EffectPass } from "postprocessing";
2
2
  import { PassPlugin } from "./PassPlugin";
3
3
  export declare class BloomPlugin extends PassPlugin<EffectPass> {
4
+ type: string;
4
5
  get intensity(): number;
5
6
  set intensity(v: number);
6
7
  get luminanceThreshold(): number;
@@ -1,6 +1,7 @@
1
1
  import { Plugin, Viewer } from "@xviewer.js/core";
2
2
  import { EffectComposer, Pass } from "postprocessing";
3
3
  export declare class EffectComposerPlugin extends Plugin {
4
+ type: string;
4
5
  static Instance(viewer: Viewer): EffectComposerPlugin;
5
6
  get multisampling(): number;
6
7
  set multisampling(v: number);
@@ -12,7 +13,6 @@ export declare class EffectComposerPlugin extends Plugin {
12
13
  addPass<T extends Pass>(pass: T): T;
13
14
  removePass(pass: Pass): void;
14
15
  activePass(pass: Pass, v: boolean): Pass;
15
- getVelocityDepthNormalPass(autoAdd?: boolean): Pass;
16
16
  private _checkOutputPass;
17
17
  private _setRenderToScreen;
18
18
  }
@@ -1,5 +1,6 @@
1
1
  import { Effect, EffectPass } from "postprocessing";
2
2
  import { PassPlugin } from "./PassPlugin";
3
3
  export declare class EffectPassPlugin extends PassPlugin<EffectPass> {
4
+ type: string;
4
5
  constructor(...effects: Effect[]);
5
6
  }
@@ -1,5 +1,6 @@
1
1
  import { EffectPass } from "postprocessing";
2
2
  import { PassPlugin } from "./PassPlugin";
3
3
  export declare class FXAAPlugin extends PassPlugin<EffectPass> {
4
+ type: string;
4
5
  constructor();
5
6
  }
@@ -1,6 +1,7 @@
1
1
  import { Plugin } from "@xviewer.js/core";
2
2
  import { EffectComposerPlugin } from "./EffectComposerPlugin";
3
3
  export declare class MSAAPlugin extends Plugin {
4
+ type: string;
4
5
  get enable(): boolean;
5
6
  set enable(v: boolean);
6
7
  get composer(): EffectComposerPlugin;
@@ -1,6 +1,7 @@
1
1
  import { EdgeDetectionMode, EffectPass, PredicationMode, SMAAEffect, SMAAPreset } from "postprocessing";
2
2
  import { PassPlugin } from "./PassPlugin";
3
3
  export declare class SMAAPlugin extends PassPlugin<EffectPass> {
4
+ type: string;
4
5
  private _preset;
5
6
  get preset(): SMAAPreset;
6
7
  set preset(v: SMAAPreset);
@@ -1,6 +1,7 @@
1
1
  import { EffectPass } from "postprocessing";
2
2
  import { PassPlugin } from "./PassPlugin";
3
3
  export declare class TRAAPlugin extends PassPlugin<EffectPass> {
4
+ type: string;
4
5
  private _effect;
5
6
  constructor(props?: {
6
7
  dilation?: boolean;
@@ -1,6 +1,7 @@
1
1
  import { EffectPass, ToneMappingEffect, ToneMappingMode } from "postprocessing";
2
2
  import { PassPlugin } from "./PassPlugin";
3
3
  export declare class ToneMappingPlugin extends PassPlugin<EffectPass> {
4
+ type: string;
4
5
  get mode(): ToneMappingMode;
5
6
  set mode(v: ToneMappingMode);
6
7
  effect: ToneMappingEffect;
@@ -0,0 +1,3 @@
1
+ /// <reference types="postprocessing" />
2
+ import { Viewer } from "@xviewer.js/core";
3
+ export declare function getVelocityDepthNormalPass(viewer: Viewer, autoAdd?: boolean): import("postprocessing").Pass;
package/types/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export { EffectComposerPlugin } from "./EffectComposerPlugin";
2
2
  export { ToneMappingPlugin } from "./ToneMappingPlugin";
3
- export { MotionBlurPlugin } from "./MotionBlurPlugin";
4
3
  export { BloomPlugin } from "./BloomPlugin";
5
4
  export { FXAAPlugin } from "./FXAAPlugin";
6
5
  export { SMAAPlugin } from "./SMAAPlugin";
@@ -1,5 +0,0 @@
1
- import { EffectPass } from "postprocessing";
2
- import { PassPlugin } from "./PassPlugin";
3
- export declare class MotionBlurPlugin extends PassPlugin<EffectPass> {
4
- constructor();
5
- }