viral-viewer-2 4.9.0 → 4.9.2
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/dist/components/camera/viral-camera.d.ts +1 -1
- package/dist/components/camera/viral-camera.js +1 -1
- package/dist/components/camera/viral-camera.js.map +1 -1
- package/dist/components/compress/compress.processor.d.ts +4 -0
- package/dist/components/compress/compress.processor.js +29 -0
- package/dist/components/compress/compress.processor.js.map +1 -0
- package/dist/components/loader/viral-three.loader.d.ts +1 -1
- package/dist/components/loader/viral-viewer-point-cloud.loader.d.ts +16 -0
- package/dist/components/loader/viral-viewer-point-cloud.loader.js +33 -0
- package/dist/components/loader/viral-viewer-point-cloud.loader.js.map +1 -0
- package/dist/components/loader/viral-viewer-revit.loader.d.ts +13 -0
- package/dist/components/loader/viral-viewer-revit.loader.js +124 -0
- package/dist/components/loader/viral-viewer-revit.loader.js.map +1 -0
- package/dist/components/post-processing/ambient-occlusion-effect.d.ts +2 -0
- package/dist/components/post-processing/ambient-occlusion-effect.js +2 -1
- package/dist/components/post-processing/ambient-occlusion-effect.js.map +1 -1
- package/dist/components/post-processing/post-processing-renderer.d.ts +2 -0
- package/dist/components/post-processing/post-processing-renderer.js +15 -10
- package/dist/components/post-processing/post-processing-renderer.js.map +1 -1
- package/dist/components/scene/viral-scene.d.ts +1 -1
- package/dist/components/worker/load-model.d.ts +126 -0
- package/dist/components/worker/load-model.js +1265 -0
- package/dist/components/worker/load-model.js.map +1 -0
- package/dist/components/worker/test-worker-pool.d.ts +6 -0
- package/dist/components/worker/test-worker-pool.js +21 -0
- package/dist/components/worker/test-worker-pool.js.map +1 -0
- package/dist/components/worker/viral-viewer.worker-pool.d.ts +0 -0
- package/dist/components/worker/viral-viewer.worker-pool.js +61 -0
- package/dist/components/worker/viral-viewer.worker-pool.js.map +1 -0
- package/dist/components/worker/worker-pool.d.ts +21 -0
- package/dist/components/worker/worker-pool.js +47 -0
- package/dist/components/worker/worker-pool.js.map +1 -0
- package/dist/components/worker/worker-thread.d.ts +9 -0
- package/dist/components/worker/worker-thread.js +30 -0
- package/dist/components/worker/worker-thread.js.map +1 -0
- package/dist/components/worker-script/load-model-worker-3.script.js +17 -29
- package/dist/components/worker-script/load-model-worker-3.script.js.map +1 -1
- package/dist/components/worker-script/test-worker-pool.script.d.ts +1 -0
- package/dist/components/worker-script/test-worker-pool.script.js +12 -0
- package/dist/components/worker-script/test-worker-pool.script.js.map +1 -0
- package/dist/models/dictionary.model.d.ts +10 -0
- package/dist/models/dictionary.model.js +41 -0
- package/dist/models/dictionary.model.js.map +1 -1
- package/dist/threejs-addon/gltf-loader.d.ts +1 -1
- package/dist/threejs-addon/n8ao/n8ao.d.ts +8 -8
- package/dist/threejs-addon/n8ao/post-processing.d.ts +1534 -3919
- package/dist/threejs-addon/post-processing/outline-pass.d.ts +7 -7
- package/dist/threejs-addon/post-processing/pass.d.ts +1 -1
- package/dist/threejs-addon/post-processing/sao-pass.d.ts +5 -5
- package/dist/threejs-addon/post-processing/unreal-bloom-pass.d.ts +3 -3
- package/dist/threejs-addon/transform-control.d.ts +3 -3
- package/package.json +1 -1
- package/dist/components/post-processing/viral-post-processing.d.ts +0 -11
- package/dist/components/post-processing/viral-post-processing.js +0 -29
- package/dist/components/post-processing/viral-post-processing.js.map +0 -1
- package/dist/threejs-addon/post-processing/ssaa-render-pass.d.ts +0 -30
- package/dist/threejs-addon/post-processing/ssaa-render-pass.js +0 -202
- package/dist/threejs-addon/post-processing/ssaa-render-pass.js.map +0 -1
- package/dist/threejs-addon/shaders/color-correction-shader.d.ts +0 -22
- package/dist/threejs-addon/shaders/color-correction-shader.js +0 -43
- package/dist/threejs-addon/shaders/color-correction-shader.js.map +0 -1
- package/dist/threejs-addon/shaders/fxaa-shader.d.ts +0 -14
- package/dist/threejs-addon/shaders/fxaa-shader.js +0 -279
- package/dist/threejs-addon/shaders/fxaa-shader.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const workerCode: any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.workerCode = void 0;
|
|
4
|
+
function workerFunction() {
|
|
5
|
+
self.addEventListener("message", (event) => {
|
|
6
|
+
setTimeout(() => {
|
|
7
|
+
self.postMessage(2);
|
|
8
|
+
}, Math.random() * 2000);
|
|
9
|
+
}, false);
|
|
10
|
+
}
|
|
11
|
+
exports.workerCode = workerFunction;
|
|
12
|
+
//# sourceMappingURL=test-worker-pool.script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-worker-pool.script.js","sourceRoot":"","sources":["../../../src/components/worker-script/test-worker-pool.script.ts"],"names":[],"mappings":";;;AAAA,SAAS,cAAc;IAEnB,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,KAA2B,EAAE,EAAE;QAC7D,UAAU,CAAC,GAAG,EAAE;YACZ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACxB,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;IAE7B,CAAC,EACG,KAAK,CACR,CAAC;AAIN,CAAC;AAEY,QAAA,UAAU,GAAQ,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class Dictionary<TKey, TValue> {
|
|
2
|
+
private items;
|
|
3
|
+
add(key: TKey, value: TValue): void;
|
|
4
|
+
get(key: TKey): TValue | undefined;
|
|
5
|
+
remove(key: TKey): void;
|
|
6
|
+
containsKey(key: TKey): boolean;
|
|
7
|
+
keys(): TKey[];
|
|
8
|
+
values(): TValue[];
|
|
9
|
+
count(): number;
|
|
10
|
+
}
|
|
@@ -1 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Dictionary = void 0;
|
|
4
|
+
class Dictionary {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.items = {};
|
|
7
|
+
}
|
|
8
|
+
// Add a key-value pair to the dictionary
|
|
9
|
+
add(key, value) {
|
|
10
|
+
const stringKey = key;
|
|
11
|
+
this.items[stringKey] = value;
|
|
12
|
+
}
|
|
13
|
+
// Retrieve a value from the dictionary by key
|
|
14
|
+
get(key) {
|
|
15
|
+
const stringKey = key;
|
|
16
|
+
return this.items[stringKey];
|
|
17
|
+
}
|
|
18
|
+
// Remove a key-value pair from the dictionary
|
|
19
|
+
remove(key) {
|
|
20
|
+
const stringKey = key;
|
|
21
|
+
delete this.items[stringKey];
|
|
22
|
+
}
|
|
23
|
+
// Check if the dictionary contains a key
|
|
24
|
+
containsKey(key) {
|
|
25
|
+
const stringKey = key;
|
|
26
|
+
return stringKey in this.items;
|
|
27
|
+
}
|
|
28
|
+
// Get all keys in the dictionary
|
|
29
|
+
keys() {
|
|
30
|
+
return Object.keys(this.items).map(key => key);
|
|
31
|
+
}
|
|
32
|
+
// Get all values in the dictionary
|
|
33
|
+
values() {
|
|
34
|
+
return Object.values(this.items);
|
|
35
|
+
}
|
|
36
|
+
// Get the number of key-value pairs in the dictionary
|
|
37
|
+
count() {
|
|
38
|
+
return Object.keys(this.items).length;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Dictionary = Dictionary;
|
|
1
42
|
//# sourceMappingURL=dictionary.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.model.js","sourceRoot":"","sources":["../../src/models/dictionary.model.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"dictionary.model.js","sourceRoot":"","sources":["../../src/models/dictionary.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IAAvB;QACY,UAAK,GAA8B,EAAE,CAAC;IAwChD,CAAC;IAtCC,yCAAyC;IACzC,GAAG,CAAC,GAAS,EAAE,KAAa;QAC1B,MAAM,SAAS,GAAI,GAAa,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;IAChC,CAAC;IAED,8CAA8C;IAC9C,GAAG,CAAC,GAAS;QACX,MAAM,SAAS,GAAG,GAAa,CAAC;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/B,CAAC;IAED,8CAA8C;IAC9C,MAAM,CAAC,GAAS;QACd,MAAM,SAAS,GAAG,GAAa,CAAC;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/B,CAAC;IAED,yCAAyC;IACzC,WAAW,CAAC,GAAS;QACnB,MAAM,SAAS,GAAG,GAAa,CAAC;QAChC,OAAO,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC;IACjC,CAAC;IAED,iCAAiC;IACjC,IAAI;QACF,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAW,CAAC,CAAC;IACzD,CAAC;IAED,mCAAmC;IACnC,MAAM;QACJ,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IAED,sDAAsD;IACtD,KAAK;QACH,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC;IACxC,CAAC;CACF;AAzCH,gCAyCG"}
|
|
@@ -60,9 +60,9 @@ declare class $05f6997e4b65da14$export$2d57db20b5eb5e0a extends $5Whe3$Pass {
|
|
|
60
60
|
samplesR: number[];
|
|
61
61
|
/** @type {THREE.Vector2[]} */
|
|
62
62
|
samplesDenoise: THREE.Vector2[];
|
|
63
|
-
beautyRenderTarget: $5Whe3$WebGLRenderTarget
|
|
64
|
-
writeTargetInternal: $5Whe3$WebGLRenderTarget
|
|
65
|
-
readTargetInternal: $5Whe3$WebGLRenderTarget
|
|
63
|
+
beautyRenderTarget: $5Whe3$WebGLRenderTarget;
|
|
64
|
+
writeTargetInternal: $5Whe3$WebGLRenderTarget;
|
|
65
|
+
readTargetInternal: $5Whe3$WebGLRenderTarget;
|
|
66
66
|
/** @type {THREE.DataTexture} */
|
|
67
67
|
bluenoise: THREE.DataTexture;
|
|
68
68
|
lastTime: number;
|
|
@@ -141,7 +141,7 @@ declare const $87431ee93b037844$export$2489f9981ab0fa82_base: {
|
|
|
141
141
|
setFullscreenMaterial(value: import("three").Material): void;
|
|
142
142
|
getDepthTexture(): import("three").Texture;
|
|
143
143
|
setDepthTexture(depthTexture: import("three").Texture, depthPacking?: any): void;
|
|
144
|
-
render(renderer: WebGLRenderer, inputBuffer: $5Whe3$WebGLRenderTarget
|
|
144
|
+
render(renderer: WebGLRenderer, inputBuffer: $5Whe3$WebGLRenderTarget, outputBuffer: $5Whe3$WebGLRenderTarget, deltaTime?: number | undefined, stencilTest?: boolean | undefined): void;
|
|
145
145
|
setSize(width: number, height: number): void;
|
|
146
146
|
initialize(renderer: WebGLRenderer, alpha: boolean, frameBufferType: number): void;
|
|
147
147
|
dispose(): void;
|
|
@@ -224,9 +224,9 @@ declare class $87431ee93b037844$export$2489f9981ab0fa82 extends $87431ee93b03784
|
|
|
224
224
|
/** @type {THREE.Vector2[]} */
|
|
225
225
|
samplesDenoise: THREE.Vector2[];
|
|
226
226
|
copyQuad: $e4ca8dcb0218f846$export$dcd670d73db751f5;
|
|
227
|
-
writeTargetInternal: $5Whe3$WebGLRenderTarget
|
|
228
|
-
readTargetInternal: $5Whe3$WebGLRenderTarget
|
|
229
|
-
outputTargetInternal: $5Whe3$WebGLRenderTarget
|
|
227
|
+
writeTargetInternal: $5Whe3$WebGLRenderTarget;
|
|
228
|
+
readTargetInternal: $5Whe3$WebGLRenderTarget;
|
|
229
|
+
outputTargetInternal: $5Whe3$WebGLRenderTarget;
|
|
230
230
|
/** @type {THREE.DataTexture} */
|
|
231
231
|
bluenoise: THREE.DataTexture;
|
|
232
232
|
lastTime: number;
|
|
@@ -292,7 +292,7 @@ import { Color as $5Whe3$Color } from "three";
|
|
|
292
292
|
import { WebGLMultipleRenderTargets as $5Whe3$WebGLMultipleRenderTargets } from "three";
|
|
293
293
|
declare class $e4ca8dcb0218f846$export$dcd670d73db751f5 {
|
|
294
294
|
constructor(material: any);
|
|
295
|
-
_mesh: $5Whe3$Mesh<$5Whe3$BufferGeometry<import("three").NormalBufferAttributes>, any
|
|
295
|
+
_mesh: $5Whe3$Mesh<$5Whe3$BufferGeometry<import("three").NormalBufferAttributes>, any>;
|
|
296
296
|
render(renderer: any): void;
|
|
297
297
|
set material(arg: any);
|
|
298
298
|
get material(): any;
|