viral-viewer-2 4.5.8 → 4.6.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 (53) hide show
  1. package/dist/components/camera/viral-camera.js +1 -1
  2. package/dist/components/camera/viral-camera.js.map +1 -1
  3. package/dist/components/compress/viral-compress.processor.d.ts +1 -3
  4. package/dist/components/compress/viral-compress.processor.js +5 -29
  5. package/dist/components/compress/viral-compress.processor.js.map +1 -1
  6. package/dist/components/post-processing/ambient-occlusion-effect.d.ts +0 -2
  7. package/dist/components/post-processing/ambient-occlusion-effect.js +1 -2
  8. package/dist/components/post-processing/ambient-occlusion-effect.js.map +1 -1
  9. package/dist/components/post-processing/post-processing-renderer.d.ts +8 -0
  10. package/dist/components/post-processing/post-processing-renderer.js +16 -0
  11. package/dist/components/post-processing/post-processing-renderer.js.map +1 -0
  12. package/dist/components/post-processing/viral-post-processing.d.ts +11 -0
  13. package/dist/components/post-processing/viral-post-processing.js +29 -0
  14. package/dist/components/post-processing/viral-post-processing.js.map +1 -0
  15. package/dist/components/renderer/viral-renderer.d.ts +3 -1
  16. package/dist/components/renderer/viral-renderer.js +11 -4
  17. package/dist/components/renderer/viral-renderer.js.map +1 -1
  18. package/dist/components/worker-script/load-model-worker-3.script.js +2 -2
  19. package/dist/components/worker-script/load-model-worker-3.script.js.map +1 -1
  20. package/dist/models/dictionary.model.d.ts +0 -10
  21. package/dist/models/dictionary.model.js +0 -41
  22. package/dist/models/dictionary.model.js.map +1 -1
  23. package/dist/threejs-addon/shaders/fxaa-shader.d.ts +14 -0
  24. package/dist/threejs-addon/shaders/fxaa-shader.js +279 -0
  25. package/dist/threejs-addon/shaders/fxaa-shader.js.map +1 -0
  26. package/package.json +1 -2
  27. package/dist/components/compress/compress.processor.d.ts +0 -4
  28. package/dist/components/compress/compress.processor.js +0 -29
  29. package/dist/components/compress/compress.processor.js.map +0 -1
  30. package/dist/components/loader/viral-viewer-point-cloud.loader.d.ts +0 -16
  31. package/dist/components/loader/viral-viewer-point-cloud.loader.js +0 -33
  32. package/dist/components/loader/viral-viewer-point-cloud.loader.js.map +0 -1
  33. package/dist/components/loader/viral-viewer-revit.loader.d.ts +0 -13
  34. package/dist/components/loader/viral-viewer-revit.loader.js +0 -124
  35. package/dist/components/loader/viral-viewer-revit.loader.js.map +0 -1
  36. package/dist/components/worker/load-model.d.ts +0 -126
  37. package/dist/components/worker/load-model.js +0 -1265
  38. package/dist/components/worker/load-model.js.map +0 -1
  39. package/dist/components/worker/test-worker-pool.d.ts +0 -6
  40. package/dist/components/worker/test-worker-pool.js +0 -21
  41. package/dist/components/worker/test-worker-pool.js.map +0 -1
  42. package/dist/components/worker/viral-viewer.worker-pool.d.ts +0 -0
  43. package/dist/components/worker/viral-viewer.worker-pool.js +0 -61
  44. package/dist/components/worker/viral-viewer.worker-pool.js.map +0 -1
  45. package/dist/components/worker/worker-pool.d.ts +0 -21
  46. package/dist/components/worker/worker-pool.js +0 -47
  47. package/dist/components/worker/worker-pool.js.map +0 -1
  48. package/dist/components/worker/worker-thread.d.ts +0 -9
  49. package/dist/components/worker/worker-thread.js +0 -30
  50. package/dist/components/worker/worker-thread.js.map +0 -1
  51. package/dist/components/worker-script/test-worker-pool.script.d.ts +0 -1
  52. package/dist/components/worker-script/test-worker-pool.script.js +0 -12
  53. package/dist/components/worker-script/test-worker-pool.script.js.map +0 -1
@@ -1,10 +0,0 @@
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,42 +1 @@
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;
42
1
  //# sourceMappingURL=dictionary.model.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"dictionary.model.js","sourceRoot":"","sources":["../../src/models/dictionary.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export namespace FXAAShader {
2
+ namespace uniforms {
3
+ namespace tDiffuse {
4
+ const value: null;
5
+ }
6
+ namespace resolution {
7
+ const value_1: Vector2;
8
+ export { value_1 as value };
9
+ }
10
+ }
11
+ const vertexShader: string;
12
+ const fragmentShader: string;
13
+ }
14
+ import { Vector2 } from 'three';
@@ -0,0 +1,279 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FXAAShader = void 0;
4
+ const three_1 = require("three");
5
+ /**
6
+ * NVIDIA FXAA by Timothy Lottes
7
+ * https://developer.download.nvidia.com/assets/gamedev/files/sdk/11/FXAA_WhitePaper.pdf
8
+ * - WebGL port by @supereggbert
9
+ * http://www.glge.org/demos/fxaa/
10
+ * Further improved by Daniel Sturk
11
+ */
12
+ const FXAAShader = {
13
+ uniforms: {
14
+ 'tDiffuse': { value: null },
15
+ 'resolution': { value: new three_1.Vector2(1 / 1024, 1 / 512) }
16
+ },
17
+ vertexShader: /* glsl */ `
18
+
19
+ varying vec2 vUv;
20
+
21
+ void main() {
22
+
23
+ vUv = uv;
24
+ gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
25
+
26
+ }`,
27
+ fragmentShader: `
28
+ precision highp float;
29
+
30
+ uniform sampler2D tDiffuse;
31
+
32
+ uniform vec2 resolution;
33
+
34
+ varying vec2 vUv;
35
+
36
+ // FXAA 3.11 implementation by NVIDIA, ported to WebGL by Agost Biro (biro@archilogic.com)
37
+
38
+ //----------------------------------------------------------------------------------
39
+ // File: es3-kepler\FXAA\assets\shaders/FXAA_DefaultES.frag
40
+ // SDK Version: v3.00
41
+ // Email: gameworks@nvidia.com
42
+ // Site: http://developer.nvidia.com/
43
+ //
44
+ // Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
45
+ //
46
+ // Redistribution and use in source and binary forms, with or without
47
+ // modification, are permitted provided that the following conditions
48
+ // are met:
49
+ // * Redistributions of source code must retain the above copyright
50
+ // notice, this list of conditions and the following disclaimer.
51
+ // * Redistributions in binary form must reproduce the above copyright
52
+ // notice, this list of conditions and the following disclaimer in the
53
+ // documentation and/or other materials provided with the distribution.
54
+ // * Neither the name of NVIDIA CORPORATION nor the names of its
55
+ // contributors may be used to endorse or promote products derived
56
+ // from this software without specific prior written permission.
57
+ //
58
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
59
+ // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
60
+ // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
61
+ // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
62
+ // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
63
+ // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
64
+ // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
65
+ // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
66
+ // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
67
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
68
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
69
+ //
70
+ //----------------------------------------------------------------------------------
71
+
72
+ #ifndef FXAA_DISCARD
73
+ //
74
+ // Only valid for PC OpenGL currently.
75
+ // Probably will not work when FXAA_GREEN_AS_LUMA = 1.
76
+ //
77
+ // 1 = Use discard on pixels which don't need AA.
78
+ // For APIs which enable concurrent TEX+ROP from same surface.
79
+ // 0 = Return unchanged color on pixels which don't need AA.
80
+ //
81
+ #define FXAA_DISCARD 0
82
+ #endif
83
+
84
+ /*--------------------------------------------------------------------------*/
85
+ #define FxaaTexTop(t, p) texture2D(t, p, -100.0)
86
+ #define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r), -100.0)
87
+ /*--------------------------------------------------------------------------*/
88
+
89
+ #define NUM_SAMPLES 5
90
+
91
+ // assumes colors have premultipliedAlpha, so that the calculated color contrast is scaled by alpha
92
+ float contrast( vec4 a, vec4 b ) {
93
+ vec4 diff = abs( a - b );
94
+ return max( max( max( diff.r, diff.g ), diff.b ), diff.a );
95
+ }
96
+
97
+ /*============================================================================
98
+
99
+ FXAA3 QUALITY - PC
100
+
101
+ ============================================================================*/
102
+
103
+ /*--------------------------------------------------------------------------*/
104
+ vec4 FxaaPixelShader(
105
+ vec2 posM,
106
+ sampler2D tex,
107
+ vec2 fxaaQualityRcpFrame,
108
+ float fxaaQualityEdgeThreshold,
109
+ float fxaaQualityinvEdgeThreshold
110
+ ) {
111
+ vec4 rgbaM = FxaaTexTop(tex, posM);
112
+ vec4 rgbaS = FxaaTexOff(tex, posM, vec2( 0.0, 1.0), fxaaQualityRcpFrame.xy);
113
+ vec4 rgbaE = FxaaTexOff(tex, posM, vec2( 1.0, 0.0), fxaaQualityRcpFrame.xy);
114
+ vec4 rgbaN = FxaaTexOff(tex, posM, vec2( 0.0,-1.0), fxaaQualityRcpFrame.xy);
115
+ vec4 rgbaW = FxaaTexOff(tex, posM, vec2(-1.0, 0.0), fxaaQualityRcpFrame.xy);
116
+ // . S .
117
+ // W M E
118
+ // . N .
119
+
120
+ bool earlyExit = max( max( max(
121
+ contrast( rgbaM, rgbaN ),
122
+ contrast( rgbaM, rgbaS ) ),
123
+ contrast( rgbaM, rgbaE ) ),
124
+ contrast( rgbaM, rgbaW ) )
125
+ < fxaaQualityEdgeThreshold;
126
+ // . 0 .
127
+ // 0 0 0
128
+ // . 0 .
129
+
130
+ #if (FXAA_DISCARD == 1)
131
+ if(earlyExit) FxaaDiscard;
132
+ #else
133
+ if(earlyExit) return rgbaM;
134
+ #endif
135
+
136
+ float contrastN = contrast( rgbaM, rgbaN );
137
+ float contrastS = contrast( rgbaM, rgbaS );
138
+ float contrastE = contrast( rgbaM, rgbaE );
139
+ float contrastW = contrast( rgbaM, rgbaW );
140
+
141
+ float relativeVContrast = ( contrastN + contrastS ) - ( contrastE + contrastW );
142
+ relativeVContrast *= fxaaQualityinvEdgeThreshold;
143
+
144
+ bool horzSpan = relativeVContrast > 0.;
145
+ // . 1 .
146
+ // 0 0 0
147
+ // . 1 .
148
+
149
+ // 45 deg edge detection and corners of objects, aka V/H contrast is too similar
150
+ if( abs( relativeVContrast ) < .3 ) {
151
+ // locate the edge
152
+ vec2 dirToEdge;
153
+ dirToEdge.x = contrastE > contrastW ? 1. : -1.;
154
+ dirToEdge.y = contrastS > contrastN ? 1. : -1.;
155
+ // . 2 . . 1 .
156
+ // 1 0 2 ~= 0 0 1
157
+ // . 1 . . 0 .
158
+
159
+ // tap 2 pixels and see which ones are "outside" the edge, to
160
+ // determine if the edge is vertical or horizontal
161
+
162
+ vec4 rgbaAlongH = FxaaTexOff(tex, posM, vec2( dirToEdge.x, -dirToEdge.y ), fxaaQualityRcpFrame.xy);
163
+ float matchAlongH = contrast( rgbaM, rgbaAlongH );
164
+ // . 1 .
165
+ // 0 0 1
166
+ // . 0 H
167
+
168
+ vec4 rgbaAlongV = FxaaTexOff(tex, posM, vec2( -dirToEdge.x, dirToEdge.y ), fxaaQualityRcpFrame.xy);
169
+ float matchAlongV = contrast( rgbaM, rgbaAlongV );
170
+ // V 1 .
171
+ // 0 0 1
172
+ // . 0 .
173
+
174
+ relativeVContrast = matchAlongV - matchAlongH;
175
+ relativeVContrast *= fxaaQualityinvEdgeThreshold;
176
+
177
+ if( abs( relativeVContrast ) < .3 ) { // 45 deg edge
178
+ // 1 1 .
179
+ // 0 0 1
180
+ // . 0 1
181
+
182
+ // do a simple blur
183
+ return mix(
184
+ rgbaM,
185
+ (rgbaN + rgbaS + rgbaE + rgbaW) * .25,
186
+ .4
187
+ );
188
+ }
189
+
190
+ horzSpan = relativeVContrast > 0.;
191
+ }
192
+
193
+ if(!horzSpan) rgbaN = rgbaW;
194
+ if(!horzSpan) rgbaS = rgbaE;
195
+ // . 0 . 1
196
+ // 1 0 1 -> 0
197
+ // . 0 . 1
198
+
199
+ bool pairN = contrast( rgbaM, rgbaN ) > contrast( rgbaM, rgbaS );
200
+ if(!pairN) rgbaN = rgbaS;
201
+
202
+ vec2 offNP;
203
+ offNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x;
204
+ offNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y;
205
+
206
+ bool doneN = false;
207
+ bool doneP = false;
208
+
209
+ float nDist = 0.;
210
+ float pDist = 0.;
211
+
212
+ vec2 posN = posM;
213
+ vec2 posP = posM;
214
+
215
+ int iterationsUsed = 0;
216
+ int iterationsUsedN = 0;
217
+ int iterationsUsedP = 0;
218
+ for( int i = 0; i < NUM_SAMPLES; i++ ) {
219
+ iterationsUsed = i;
220
+
221
+ float increment = float(i + 1);
222
+
223
+ if(!doneN) {
224
+ nDist += increment;
225
+ posN = posM + offNP * nDist;
226
+ vec4 rgbaEndN = FxaaTexTop(tex, posN.xy);
227
+ doneN = contrast( rgbaEndN, rgbaM ) > contrast( rgbaEndN, rgbaN );
228
+ iterationsUsedN = i;
229
+ }
230
+
231
+ if(!doneP) {
232
+ pDist += increment;
233
+ posP = posM - offNP * pDist;
234
+ vec4 rgbaEndP = FxaaTexTop(tex, posP.xy);
235
+ doneP = contrast( rgbaEndP, rgbaM ) > contrast( rgbaEndP, rgbaN );
236
+ iterationsUsedP = i;
237
+ }
238
+
239
+ if(doneN || doneP) break;
240
+ }
241
+
242
+
243
+ if ( !doneP && !doneN ) return rgbaM; // failed to find end of edge
244
+
245
+ float dist = min(
246
+ doneN ? float( iterationsUsedN ) / float( NUM_SAMPLES - 1 ) : 1.,
247
+ doneP ? float( iterationsUsedP ) / float( NUM_SAMPLES - 1 ) : 1.
248
+ );
249
+
250
+ // hacky way of reduces blurriness of mostly diagonal edges
251
+ // but reduces AA quality
252
+ dist = pow(dist, .5);
253
+
254
+ dist = 1. - dist;
255
+
256
+ return mix(
257
+ rgbaM,
258
+ rgbaN,
259
+ dist * .5
260
+ );
261
+ }
262
+
263
+ void main() {
264
+ const float edgeDetectionQuality = .2;
265
+ const float invEdgeDetectionQuality = 1. / edgeDetectionQuality;
266
+
267
+ gl_FragColor = FxaaPixelShader(
268
+ vUv,
269
+ tDiffuse,
270
+ resolution,
271
+ edgeDetectionQuality, // [0,1] contrast needed, otherwise early discard
272
+ invEdgeDetectionQuality
273
+ );
274
+
275
+ }
276
+ `
277
+ };
278
+ exports.FXAAShader = FXAAShader;
279
+ //# sourceMappingURL=fxaa-shader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fxaa-shader.js","sourceRoot":"","sources":["../../../src/threejs-addon/shaders/fxaa-shader.js"],"names":[],"mappings":";;;AAAA,iCAEe;AAEf;;;;;;GAMG;AAEH,MAAM,UAAU,GAAG;IAEf,QAAQ,EAAE;QAEN,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;QAC3B,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,eAAO,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE;KAE1D;IAED,YAAY,EAAE,UAAU,CAAC;;;;;;;;;IASzB;IAEA,cAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyPlB;CAED,CAAC;AAEO,gCAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "4.5.8",
3
+ "version": "4.6.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "camera-controls": "^2.3.7",
27
- "lz-string": "^1.5.0",
28
27
  "pako": "^2.1.0",
29
28
  "potree-core-viral": "^0.2.3",
30
29
  "three": "^0.152.2",
@@ -1,4 +0,0 @@
1
- import { ViralViewerRevitProject } from "../../types";
2
- export declare class CompressProcessor {
3
- decompressed(path: string): Promise<ViralViewerRevitProject | null>;
4
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CompressProcessor = void 0;
13
- const lzstring = require("lz-string");
14
- class CompressProcessor {
15
- decompressed(path) {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- let result = null;
18
- let res = yield fetch(path);
19
- if (res) {
20
- let text = yield res.text();
21
- let decompress = lzstring.decompressFromEncodedURIComponent(text);
22
- result = JSON.parse(decompress);
23
- }
24
- return result;
25
- });
26
- }
27
- }
28
- exports.CompressProcessor = CompressProcessor;
29
- //# sourceMappingURL=compress.processor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compress.processor.js","sourceRoot":"","sources":["../../../src/components/compress/compress.processor.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,sCAAsC;AAEtC,MAAa,iBAAiB;IACb,YAAY,CAAC,IAAY;;YAClC,IAAI,MAAM,GAAmC,IAAI,CAAC;YAClD,IAAI,GAAG,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;YAC5B,IAAI,GAAG,EAAE;gBACL,IAAI,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;gBAC5B,IAAI,UAAU,GAAG,QAAQ,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;gBAElE,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;aACnC;YACD,OAAO,MAAM,CAAC;QAClB,CAAC;KAAA;CACJ;AAZD,8CAYC"}
@@ -1,16 +0,0 @@
1
- import { Potree, PointCloudOctree } from "potree-core-viral";
2
- import { ViralViewerApi } from "../../viral-viewer-api";
3
- export declare class ViralViewerPointCloudLoader {
4
- viralViewerApi: ViralViewerApi;
5
- potree: Potree;
6
- pointClouds: PointCloudOctree[];
7
- constructor(viralViewerApi: ViralViewerApi);
8
- /**
9
- *
10
- * @param metadataUrl endpoint to download metadata.json
11
- * @param urlOcbinTree endpoint to download octree.bin
12
- * @param urlHierarchy endpoint to download hierarchy.bin
13
- * @param pointBudget
14
- */
15
- load(metadataUrl: string, urlOcbinTree: string, urlHierarchy: string, pointBudget?: number, callbackOnSuccess?: (pco: PointCloudOctree) => void): void;
16
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViralViewerPointCloudLoader = void 0;
4
- const potree_core_viral_1 = require("potree-core-viral");
5
- class ViralViewerPointCloudLoader {
6
- constructor(viralViewerApi) {
7
- this.viralViewerApi = viralViewerApi;
8
- this.potree = new potree_core_viral_1.Potree();
9
- this.pointClouds = [];
10
- }
11
- /**
12
- *
13
- * @param metadataUrl endpoint to download metadata.json
14
- * @param urlOcbinTree endpoint to download octree.bin
15
- * @param urlHierarchy endpoint to download hierarchy.bin
16
- * @param pointBudget
17
- */
18
- load(metadataUrl, urlOcbinTree, urlHierarchy, pointBudget = 2000000, callbackOnSuccess = (pco) => { }) {
19
- this.potree.pointBudget = pointBudget;
20
- this.potree.loadPointCloudCustom(metadataUrl, urlOcbinTree, urlHierarchy).then((pco) => {
21
- let material = pco.material;
22
- material.size = 1;
23
- material.pointSizeType = potree_core_viral_1.PointSizeType.ADAPTIVE;
24
- material.shape = potree_core_viral_1.PointShape.CIRCLE;
25
- material.pointColorType = potree_core_viral_1.PointColorType.RGB;
26
- this.viralViewerApi.viralScene.addObject(pco);
27
- this.pointClouds.push(pco);
28
- callbackOnSuccess(pco);
29
- });
30
- }
31
- }
32
- exports.ViralViewerPointCloudLoader = ViralViewerPointCloudLoader;
33
- //# sourceMappingURL=viral-viewer-point-cloud.loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viral-viewer-point-cloud.loader.js","sourceRoot":"","sources":["../../../src/components/loader/viral-viewer-point-cloud.loader.ts"],"names":[],"mappings":";;;AAAA,yDAAwG;AAGxG,MAAa,2BAA2B;IAGpC,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAFjD,WAAM,GAAW,IAAI,0BAAM,EAAE,CAAC;QAC9B,gBAAW,GAAuB,EAAE,CAAC;IAErC,CAAC;IACD;;;;;;OAMG;IACI,IAAI,CAAC,WAAmB,EAAE,YAAoB,EAAE,YAAoB,EAAE,cAAsB,OAAO,EAAE,oBAAoB,CAAC,GAAqB,EAAE,EAAE,GAAG,CAAC;QAC1J,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;QACtC,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAC5B,WAAW,EACX,YAAY,EACZ,YAAY,CACf,CAAC,IAAI,CAAC,CAAC,GAAqB,EAAE,EAAE;YAC7B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;YAC5B,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC;YAClB,QAAQ,CAAC,aAAa,GAAG,iCAAa,CAAC,QAAQ,CAAC;YAChD,QAAQ,CAAC,KAAK,GAAG,8BAAU,CAAC,MAAM,CAAC;YACnC,QAAQ,CAAC,cAAc,GAAG,kCAAc,CAAC,GAAG,CAAC;YAE7C,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YAC9C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC3B,iBAAiB,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AA9BD,kEA8BC"}
@@ -1,13 +0,0 @@
1
- import { ViralViewerRevitProject } from "../../types";
2
- import { ViralViewerApi } from "../../viral-viewer-api";
3
- export declare class ViralViewerRevitLoader {
4
- viralViewerApi: ViralViewerApi;
5
- constructor(viralViewerApi: ViralViewerApi);
6
- loadRevit(model: ViralViewerRevitProject): void;
7
- private progressStructuralGeometries;
8
- private progressNoneStructuralGeometries;
9
- private addCustomMesh3;
10
- private addCustomMesh4;
11
- private rgbToHex;
12
- private componentToHex;
13
- }
@@ -1,124 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViralViewerRevitLoader = void 0;
4
- const THREE = require("three");
5
- class ViralViewerRevitLoader {
6
- constructor(viralViewerApi) {
7
- this.viralViewerApi = viralViewerApi;
8
- }
9
- loadRevit(model) {
10
- this.progressNoneStructuralGeometries(model);
11
- this.progressStructuralGeometries(model);
12
- }
13
- progressStructuralGeometries(model) {
14
- const modelMesh = new THREE.Mesh();
15
- for (let index = 0; index < model.StructuralGeometries.length; index++) {
16
- // if(index==0) continue;
17
- const geometry = model.StructuralGeometries[index];
18
- const material = model.Materials[geometry.MaterialIndex];
19
- this.addCustomMesh3(modelMesh, geometry.Indices, geometry.Vertices, material);
20
- }
21
- modelMesh.castShadow = true;
22
- modelMesh.receiveShadow = true;
23
- this.viralViewerApi.viralScene.addObject(modelMesh);
24
- }
25
- progressNoneStructuralGeometries(model) {
26
- const modelMesh = new THREE.Mesh();
27
- modelMesh.castShadow = true;
28
- modelMesh.receiveShadow = true;
29
- for (let index = 0; index < model.NoneStructuralGeometries.length; index++) {
30
- const geometry = model.NoneStructuralGeometries[index];
31
- const material = model.Materials[geometry.MaterialIndex];
32
- this.addCustomMesh4(modelMesh, geometry.Indices, geometry.Vertices, material, geometry.Instances);
33
- }
34
- this.viralViewerApi.viralScene.addObject(modelMesh);
35
- }
36
- addCustomMesh3(mesh, indices, vertices, material) {
37
- const geometry = new THREE.BufferGeometry();
38
- let verticePoints = [];
39
- for (let i = 0; i < indices.length; i++) {
40
- const index = indices[i];
41
- const point = vertices[index];
42
- verticePoints.push(-point.X);
43
- verticePoints.push(point.Z);
44
- verticePoints.push(point.Y);
45
- }
46
- const buffer = new Float32Array(verticePoints);
47
- let colorString = this.rgbToHex(material.Red, material.Green, material.Blue);
48
- geometry.setAttribute("position", new THREE.BufferAttribute(buffer, 3));
49
- let newMaterial = new THREE.MeshPhongMaterial({
50
- color: colorString,
51
- opacity: material.Opacity,
52
- transparent: true,
53
- flatShading: true,
54
- });
55
- const edges = new THREE.EdgesGeometry(geometry, 90);
56
- const line = new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: "#202020" }));
57
- const childMesh = new THREE.Mesh(geometry, newMaterial);
58
- childMesh.castShadow = true;
59
- childMesh.receiveShadow = true;
60
- childMesh.add(line);
61
- mesh.add(childMesh);
62
- }
63
- addCustomMesh4(mesh, indices, vertices, material, instances) {
64
- const geometry = new THREE.BufferGeometry();
65
- let verticePoints = [];
66
- for (let i = 0; i < indices.length; i++) {
67
- const index = indices[i];
68
- const point = vertices[index];
69
- verticePoints.push(-point.X);
70
- verticePoints.push(point.Z);
71
- verticePoints.push(point.Y);
72
- }
73
- const buffer = new Float32Array(verticePoints);
74
- let colorString = this.rgbToHex(material.Red, material.Green, material.Blue);
75
- geometry.setAttribute("position", new THREE.BufferAttribute(buffer, 3));
76
- let newMaterial = new THREE.MeshPhongMaterial({
77
- color: colorString,
78
- opacity: material.Opacity,
79
- transparent: true,
80
- flatShading: true
81
- });
82
- for (let index = 0; index < instances.length; index++) {
83
- const instance = instances[index];
84
- let cloneGeometry = geometry.clone();
85
- const childMesh = new THREE.Mesh(cloneGeometry, newMaterial);
86
- childMesh.castShadow = true;
87
- childMesh.receiveShadow = true;
88
- let numbers = [
89
- instance.BasisX.X,
90
- -instance.BasisX.Z,
91
- -instance.BasisX.Y,
92
- 0,
93
- -instance.BasisZ.X,
94
- instance.BasisZ.Z,
95
- instance.BasisZ.Y,
96
- 0,
97
- -instance.BasisY.X,
98
- instance.BasisY.Z,
99
- instance.BasisY.Y,
100
- 0,
101
- -instance.Offset.X,
102
- instance.Offset.Z,
103
- instance.Offset.Y,
104
- 1,
105
- ];
106
- let matrix4 = new THREE.Matrix4();
107
- matrix4.fromArray(numbers);
108
- childMesh.applyMatrix4(matrix4);
109
- const edges = new THREE.EdgesGeometry(childMesh.geometry);
110
- const line = new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: "#202020" }));
111
- childMesh.add(line);
112
- mesh.add(childMesh);
113
- }
114
- }
115
- rgbToHex(r, g, b) {
116
- return "#" + this.componentToHex(r) + this.componentToHex(g) + this.componentToHex(b);
117
- }
118
- componentToHex(c) {
119
- var hex = c.toString(16);
120
- return hex.length == 1 ? "0" + hex : hex;
121
- }
122
- }
123
- exports.ViralViewerRevitLoader = ViralViewerRevitLoader;
124
- //# sourceMappingURL=viral-viewer-revit.loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viral-viewer-revit.loader.js","sourceRoot":"","sources":["../../../src/components/loader/viral-viewer-revit.loader.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAI/B,MAAa,sBAAsB;IAE/B,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAEjD,CAAC;IACM,SAAS,CAAC,KAA8B;QAC3C,IAAI,CAAC,gCAAgC,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IACO,4BAA4B,CAAC,KAA8B;QAC/D,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QACnC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACpE,yBAAyB;YACzB,MAAM,QAAQ,GAAG,KAAK,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;YACnD,MAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;YAEzD,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACjF;QACD,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC;QAC5B,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC;QAC/B,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;IACO,gCAAgC,CAAC,KAA8B;QACnE,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QACnC,S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