viral-viewer-2 6.2.8 → 6.3.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 (154) hide show
  1. package/dist/components/loader/viral-revit.loader.js +8 -3
  2. package/dist/components/loader/viral-revit.loader.js.map +1 -1
  3. package/dist/index.mjs +41153 -0
  4. package/package.json +1 -1
  5. package/dist/components/centralized-event-handler/viral-centralized-event-handler.d.ts +0 -7
  6. package/dist/components/centralized-event-handler/viral-centralized-event-handler.js +0 -47
  7. package/dist/components/centralized-event-handler/viral-centralized-event-handler.js.map +0 -1
  8. package/dist/components/compress/compress.processor.d.ts +0 -4
  9. package/dist/components/compress/compress.processor.js +0 -29
  10. package/dist/components/compress/compress.processor.js.map +0 -1
  11. package/dist/components/context-menu/viral-context-menu.d.ts +0 -17
  12. package/dist/components/context-menu/viral-context-menu.js +0 -74
  13. package/dist/components/context-menu/viral-context-menu.js.map +0 -1
  14. package/dist/components/keyboard/viral-keyboard.d.ts +0 -17
  15. package/dist/components/keyboard/viral-keyboard.js +0 -76
  16. package/dist/components/keyboard/viral-keyboard.js.map +0 -1
  17. package/dist/components/loader/viral-viewer-point-cloud.loader.d.ts +0 -16
  18. package/dist/components/loader/viral-viewer-point-cloud.loader.js +0 -33
  19. package/dist/components/loader/viral-viewer-point-cloud.loader.js.map +0 -1
  20. package/dist/components/loader/viral-viewer-revit.loader.d.ts +0 -13
  21. package/dist/components/loader/viral-viewer-revit.loader.js +0 -124
  22. package/dist/components/loader/viral-viewer-revit.loader.js.map +0 -1
  23. package/dist/components/mouse/viral-mouse.d.ts +0 -31
  24. package/dist/components/mouse/viral-mouse.js +0 -234
  25. package/dist/components/mouse/viral-mouse.js.map +0 -1
  26. package/dist/components/navigation-cube/components/cube-camera.d.ts +0 -15
  27. package/dist/components/navigation-cube/components/cube-camera.js +0 -74
  28. package/dist/components/navigation-cube/components/cube-camera.js.map +0 -1
  29. package/dist/components/navigation-cube/components/cube-renderer.d.ts +0 -9
  30. package/dist/components/navigation-cube/components/cube-renderer.js +0 -31
  31. package/dist/components/navigation-cube/components/cube-renderer.js.map +0 -1
  32. package/dist/components/navigation-cube/components/cube-scene.d.ts +0 -13
  33. package/dist/components/navigation-cube/components/cube-scene.js +0 -546
  34. package/dist/components/navigation-cube/components/cube-scene.js.map +0 -1
  35. package/dist/components/navigation-cube/components/cube.mouse.d.ts +0 -9
  36. package/dist/components/navigation-cube/components/cube.mouse.js +0 -109
  37. package/dist/components/navigation-cube/components/cube.mouse.js.map +0 -1
  38. package/dist/components/navigation-cube/viral-navigation-cube.d.ts +0 -16
  39. package/dist/components/navigation-cube/viral-navigation-cube.js +0 -50
  40. package/dist/components/navigation-cube/viral-navigation-cube.js.map +0 -1
  41. package/dist/components/post-processing/ambient-occlusion-effect.d.ts +0 -13
  42. package/dist/components/post-processing/ambient-occlusion-effect.js +0 -33
  43. package/dist/components/post-processing/ambient-occlusion-effect.js.map +0 -1
  44. package/dist/components/post-processing/bloom-effect.d.ts +0 -11
  45. package/dist/components/post-processing/bloom-effect.js +0 -29
  46. package/dist/components/post-processing/bloom-effect.js.map +0 -1
  47. package/dist/components/post-processing/outline-effect.d.ts +0 -13
  48. package/dist/components/post-processing/outline-effect.js +0 -33
  49. package/dist/components/post-processing/outline-effect.js.map +0 -1
  50. package/dist/components/spinner/viral-spinner.d.ts +0 -10
  51. package/dist/components/spinner/viral-spinner.js +0 -207
  52. package/dist/components/spinner/viral-spinner.js.map +0 -1
  53. package/dist/components/tools/tools/viral-tool-ambient-occlusion.d.ts +0 -7
  54. package/dist/components/tools/tools/viral-tool-ambient-occlusion.js +0 -16
  55. package/dist/components/tools/tools/viral-tool-ambient-occlusion.js.map +0 -1
  56. package/dist/components/tools/tools/viral-tool-dark-mode.d.ts +0 -7
  57. package/dist/components/tools/tools/viral-tool-dark-mode.js +0 -21
  58. package/dist/components/tools/tools/viral-tool-dark-mode.js.map +0 -1
  59. package/dist/components/tools/tools/viral-tool-elevation.d.ts +0 -11
  60. package/dist/components/tools/tools/viral-tool-elevation.js +0 -30
  61. package/dist/components/tools/tools/viral-tool-elevation.js.map +0 -1
  62. package/dist/components/tools/tools/viral-tool-measure.d.ts +0 -33
  63. package/dist/components/tools/tools/viral-tool-measure.js +0 -243
  64. package/dist/components/tools/tools/viral-tool-measure.js.map +0 -1
  65. package/dist/components/tools/tools/viral-tool-sunlight.d.ts +0 -7
  66. package/dist/components/tools/tools/viral-tool-sunlight.js +0 -46
  67. package/dist/components/tools/tools/viral-tool-sunlight.js.map +0 -1
  68. package/dist/components/tools/viral-tools.d.ts +0 -32
  69. package/dist/components/tools/viral-tools.js +0 -213
  70. package/dist/components/tools/viral-tools.js.map +0 -1
  71. package/dist/components/worker/load-model.d.ts +0 -126
  72. package/dist/components/worker/load-model.js +0 -1265
  73. package/dist/components/worker/load-model.js.map +0 -1
  74. package/dist/components/worker/test-worker-pool.d.ts +0 -6
  75. package/dist/components/worker/test-worker-pool.js +0 -21
  76. package/dist/components/worker/test-worker-pool.js.map +0 -1
  77. package/dist/components/worker/viral-viewer-4.worker.d.ts +0 -10
  78. package/dist/components/worker/viral-viewer-4.worker.js +0 -97
  79. package/dist/components/worker/viral-viewer-4.worker.js.map +0 -1
  80. package/dist/components/worker/viral-viewer.worker-pool.d.ts +0 -0
  81. package/dist/components/worker/viral-viewer.worker-pool.js +0 -61
  82. package/dist/components/worker/viral-viewer.worker-pool.js.map +0 -1
  83. package/dist/components/worker/worker-pool.d.ts +0 -21
  84. package/dist/components/worker/worker-pool.js +0 -47
  85. package/dist/components/worker/worker-pool.js.map +0 -1
  86. package/dist/components/worker/worker-thread.d.ts +0 -9
  87. package/dist/components/worker/worker-thread.js +0 -30
  88. package/dist/components/worker/worker-thread.js.map +0 -1
  89. package/dist/components/worker-script/load-model-worker-3.script.d.ts +0 -1
  90. package/dist/components/worker-script/load-model-worker-3.script.js +0 -34170
  91. package/dist/components/worker-script/load-model-worker-3.script.js.map +0 -1
  92. package/dist/components/worker-script/test-worker-pool.script.d.ts +0 -1
  93. package/dist/components/worker-script/test-worker-pool.script.js +0 -12
  94. package/dist/components/worker-script/test-worker-pool.script.js.map +0 -1
  95. package/dist/models/dictionary.model.d.ts +0 -10
  96. package/dist/models/dictionary.model.js +0 -42
  97. package/dist/models/dictionary.model.js.map +0 -1
  98. package/dist/threejs-addon/buffer-geometry-utils.d.ts +0 -64
  99. package/dist/threejs-addon/buffer-geometry-utils.js +0 -807
  100. package/dist/threejs-addon/buffer-geometry-utils.js.map +0 -1
  101. package/dist/threejs-addon/gltf-loader.d.ts +0 -17
  102. package/dist/threejs-addon/gltf-loader.js +0 -2796
  103. package/dist/threejs-addon/gltf-loader.js.map +0 -1
  104. package/dist/threejs-addon/post-processing/effect-composer.d.ts +0 -27
  105. package/dist/threejs-addon/post-processing/effect-composer.js +0 -134
  106. package/dist/threejs-addon/post-processing/effect-composer.js.map +0 -1
  107. package/dist/threejs-addon/post-processing/mask-pass.d.ts +0 -11
  108. package/dist/threejs-addon/post-processing/mask-pass.js +0 -69
  109. package/dist/threejs-addon/post-processing/mask-pass.js.map +0 -1
  110. package/dist/threejs-addon/post-processing/outline-pass.d.ts +0 -58
  111. package/dist/threejs-addon/post-processing/outline-pass.js +0 -484
  112. package/dist/threejs-addon/post-processing/outline-pass.js.map +0 -1
  113. package/dist/threejs-addon/post-processing/output-pass.d.ts +0 -11
  114. package/dist/threejs-addon/post-processing/output-pass.js +0 -61
  115. package/dist/threejs-addon/post-processing/output-pass.js.map +0 -1
  116. package/dist/threejs-addon/post-processing/pass.d.ts +0 -20
  117. package/dist/threejs-addon/post-processing/pass.js +0 -48
  118. package/dist/threejs-addon/post-processing/pass.js.map +0 -1
  119. package/dist/threejs-addon/post-processing/render-pass.d.ts +0 -13
  120. package/dist/threejs-addon/post-processing/render-pass.js +0 -50
  121. package/dist/threejs-addon/post-processing/render-pass.js.map +0 -1
  122. package/dist/threejs-addon/post-processing/sao-pass.d.ts +0 -62
  123. package/dist/threejs-addon/post-processing/sao-pass.js +0 -296
  124. package/dist/threejs-addon/post-processing/sao-pass.js.map +0 -1
  125. package/dist/threejs-addon/post-processing/shader-pass.d.ts +0 -11
  126. package/dist/threejs-addon/post-processing/shader-pass.js +0 -48
  127. package/dist/threejs-addon/post-processing/shader-pass.js.map +0 -1
  128. package/dist/threejs-addon/post-processing/unreal-bloom-pass.d.ts +0 -48
  129. package/dist/threejs-addon/post-processing/unreal-bloom-pass.js +0 -290
  130. package/dist/threejs-addon/post-processing/unreal-bloom-pass.js.map +0 -1
  131. package/dist/threejs-addon/shaders/copy-shader.d.ts +0 -13
  132. package/dist/threejs-addon/shaders/copy-shader.js +0 -39
  133. package/dist/threejs-addon/shaders/copy-shader.js.map +0 -1
  134. package/dist/threejs-addon/shaders/depth-limited-blur-shader.d.ts +0 -48
  135. package/dist/threejs-addon/shaders/depth-limited-blur-shader.js +0 -142
  136. package/dist/threejs-addon/shaders/depth-limited-blur-shader.js.map +0 -1
  137. package/dist/threejs-addon/shaders/luminosity-high-pass-shader.d.ts +0 -27
  138. package/dist/threejs-addon/shaders/luminosity-high-pass-shader.js +0 -56
  139. package/dist/threejs-addon/shaders/luminosity-high-pass-shader.js.map +0 -1
  140. package/dist/threejs-addon/shaders/output-shader.d.ts +0 -13
  141. package/dist/threejs-addon/shaders/output-shader.js +0 -72
  142. package/dist/threejs-addon/shaders/output-shader.js.map +0 -1
  143. package/dist/threejs-addon/shaders/sao-shader.d.ts +0 -71
  144. package/dist/threejs-addon/shaders/sao-shader.js +0 -180
  145. package/dist/threejs-addon/shaders/sao-shader.js.map +0 -1
  146. package/dist/threejs-addon/shaders/unpack-depth-rgba-shader.d.ts +0 -13
  147. package/dist/threejs-addon/shaders/unpack-depth-rgba-shader.js +0 -41
  148. package/dist/threejs-addon/shaders/unpack-depth-rgba-shader.js.map +0 -1
  149. package/dist/threejs-addon/simplify-modifier.d.ts +0 -4
  150. package/dist/threejs-addon/simplify-modifier.js +0 -325
  151. package/dist/threejs-addon/simplify-modifier.js.map +0 -1
  152. package/dist/threejs-addon/transform-control.d.ts +0 -74
  153. package/dist/threejs-addon/transform-control.js +0 -1033
  154. package/dist/threejs-addon/transform-control.js.map +0 -1
@@ -1,109 +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.CubeMouse = void 0;
13
- const three_1 = require("three");
14
- class CubeMouse {
15
- constructor(viralNavigationCube) {
16
- this.viralNavigationCube = viralNavigationCube;
17
- this.handleClick = (_event) => __awaiter(this, void 0, void 0, function* () {
18
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
19
- if (!((_a = this.viralNavigationCube.cubeScene) === null || _a === void 0 ? void 0 : _a.activePlane) || ((_b = this.viralNavigationCube.cubeCamera) === null || _b === void 0 ? void 0 : _b.cameraControlHasMoved)) {
20
- console.log("false");
21
- return false;
22
- }
23
- let planePosition = new three_1.Vector3((_c = this.viralNavigationCube.cubeScene) === null || _c === void 0 ? void 0 : _c.activePlane.position.x, (_d = this.viralNavigationCube.cubeScene) === null || _d === void 0 ? void 0 : _d.activePlane.position.y, (_e = this.viralNavigationCube.cubeScene) === null || _e === void 0 ? void 0 : _e.activePlane.position.z);
24
- //have children mean edge or corner
25
- if (((_f = this.viralNavigationCube.cubeScene) === null || _f === void 0 ? void 0 : _f.activePlane.children.length) > 0) {
26
- let combineX = 0;
27
- let combineY = 0;
28
- let combineZ = 0;
29
- for (let index = 0; index < ((_g = this.viralNavigationCube.cubeScene) === null || _g === void 0 ? void 0 : _g.activePlane.children.length); index++) {
30
- const element = (_h = this.viralNavigationCube.cubeScene) === null || _h === void 0 ? void 0 : _h.activePlane.children[index];
31
- combineX += element.position.x;
32
- combineY += element.position.y;
33
- combineZ += element.position.z;
34
- }
35
- planePosition = new three_1.Vector3(combineX / ((_j = this.viralNavigationCube.cubeScene) === null || _j === void 0 ? void 0 : _j.activePlane.children.length), combineY / ((_k = this.viralNavigationCube.cubeScene) === null || _k === void 0 ? void 0 : _k.activePlane.children.length), combineZ / ((_l = this.viralNavigationCube.cubeScene) === null || _l === void 0 ? void 0 : _l.activePlane.children.length));
36
- }
37
- let cubeCameraTargetPoint = new three_1.Vector3();
38
- (_m = this.viralNavigationCube.cubeCamera) === null || _m === void 0 ? void 0 : _m.cameraControls.getTarget(cubeCameraTargetPoint);
39
- let directionVector = planePosition.clone().sub(cubeCameraTargetPoint).normalize();
40
- (_o = this.viralNavigationCube.cubeCamera) === null || _o === void 0 ? void 0 : _o.cameraControlOldPosition.copy((_q = (_p = this.viralNavigationCube.cubeCamera) === null || _p === void 0 ? void 0 : _p.camera) === null || _q === void 0 ? void 0 : _q.position);
41
- let targetPoint = new three_1.Vector3();
42
- (_r = this.viralNavigationCube.viralViewerApi.viralCamera) === null || _r === void 0 ? void 0 : _r.cameraControls.getTarget(targetPoint);
43
- let currentPosition = new three_1.Vector3();
44
- (_s = this.viralNavigationCube.viralViewerApi.viralCamera) === null || _s === void 0 ? void 0 : _s.cameraControls.getPosition(currentPosition);
45
- let distance = currentPosition
46
- .clone()
47
- .sub(targetPoint)
48
- .length();
49
- let newVector = new three_1.Vector3(Math.round(directionVector.x), Math.round(directionVector.y), Math.round(directionVector.z));
50
- newVector.multiplyScalar(distance);
51
- (_t = this.viralNavigationCube.viralViewerApi.viralCamera.camera) === null || _t === void 0 ? void 0 : _t.updateMatrixWorld();
52
- (_u = this.viralNavigationCube.viralViewerApi.viralCamera.cameraControls) === null || _u === void 0 ? void 0 : _u.setTarget(0, 0, 0);
53
- directionVector.multiplyScalar(2);
54
- (_v = this.viralNavigationCube.cubeCamera) === null || _v === void 0 ? void 0 : _v.cameraControls.setPosition(directionVector.x, directionVector.y, directionVector.z, true);
55
- (_w = this.viralNavigationCube.viralViewerApi.viralCamera.cameraControls) === null || _w === void 0 ? void 0 : _w.setPosition(newVector.x, newVector.y, newVector.z, true);
56
- });
57
- this.handleMove = (_event) => __awaiter(this, void 0, void 0, function* () {
58
- var _x, _y, _z, _0, _1, _2;
59
- if ((_x = this.viralNavigationCube.cubeScene) === null || _x === void 0 ? void 0 : _x.activePlane) {
60
- this.viralNavigationCube.cubeScene.activePlane.material.opacity = 0;
61
- this.viralNavigationCube.cubeScene.activePlane.material.needsUpdate = true;
62
- for (let index = 0; index < this.viralNavigationCube.cubeScene.activePlane.children.length; index++) {
63
- let element = this.viralNavigationCube.cubeScene.activePlane.children[index];
64
- element.material.opacity = 0;
65
- element.needsUpdate = true;
66
- }
67
- this.viralNavigationCube.cubeScene.activePlane = null;
68
- }
69
- let x = _event.offsetX;
70
- let y = _event.offsetY;
71
- let size = (_y = this.viralNavigationCube.cubeRenderer) === null || _y === void 0 ? void 0 : _y.renderer.getSize(new three_1.Vector2());
72
- let mouse = new three_1.Vector2(x / size.width * 2 - 1, -y / size.height * 2 + 1);
73
- let raycaster = new three_1.Raycaster();
74
- raycaster.setFromCamera(mouse, (_z = this.viralNavigationCube.cubeCamera) === null || _z === void 0 ? void 0 : _z.camera);
75
- let intersects = raycaster.intersectObjects((_0 = this.viralNavigationCube.cubeScene) === null || _0 === void 0 ? void 0 : _0.objects);
76
- if (intersects.length > 0 && intersects[0].object != ((_1 = this.viralNavigationCube.cubeScene) === null || _1 === void 0 ? void 0 : _1.cube)) {
77
- if (intersects[0].object.parent && intersects[0].object.parent.name != '' && (intersects[0].object.parent.children.length == 2 || intersects[0].object.parent.children.length == 3)) {
78
- this.viralNavigationCube.cubeScene.activePlane = intersects[0].object.parent;
79
- for (let index = 0; index < this.viralNavigationCube.cubeScene.activePlane.children.length; index++) {
80
- let element = this.viralNavigationCube.cubeScene.activePlane.children[index];
81
- element.material.opacity = 0.2;
82
- element.needsUpdate = true;
83
- }
84
- }
85
- else {
86
- this.viralNavigationCube.cubeScene.activePlane = intersects[0].object;
87
- this.viralNavigationCube.cubeScene.activePlane.material.opacity = 0.2;
88
- this.viralNavigationCube.cubeScene.activePlane.material.needsUpdate = true;
89
- }
90
- (_2 = this.viralNavigationCube.cubeRenderer) === null || _2 === void 0 ? void 0 : _2.render();
91
- }
92
- });
93
- if (this.viralNavigationCube.cubeRenderer) {
94
- this.setupMouseClick(this.viralNavigationCube.cubeRenderer.renderer.domElement);
95
- this.setupMouseMove(this.viralNavigationCube.cubeRenderer.renderer.domElement);
96
- }
97
- }
98
- //#region Mouse Click
99
- setupMouseClick(domElement) {
100
- domElement.onclick = this.handleClick;
101
- }
102
- //#endregion
103
- //#region Mouse Move
104
- setupMouseMove(domElement) {
105
- domElement.onmousemove = this.handleMove;
106
- }
107
- }
108
- exports.CubeMouse = CubeMouse;
109
- //# sourceMappingURL=cube.mouse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cube.mouse.js","sourceRoot":"","sources":["../../../../src/components/navigation-cube/components/cube.mouse.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAae;AACf,MAAa,SAAS;IAElB,YAAmB,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;QAanD,gBAAW,GAAG,CAAO,MAAkB,EAAE,EAAE;;YAC/C,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,mBAAmB,CAAC,SAAS,0CAAE,WAAW,CAAA,KAAI,MAAA,IAAI,CAAC,mBAAmB,CAAC,UAAU,0CAAE,qBAAqB,CAAA,EAAE;gBAChH,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACrB,OAAO,KAAK,CAAC;aAChB;YACD,IAAI,aAAa,GA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,eAAe,CAAC,UAA6B;QACjD,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC;IAE1C,CAAC;IAgDD,YAAY;IAEZ,oBAAoB;IACZ,cAAc,CAAC,UAA6B;QAChD,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC;IAE7C,CAAC;CAyCJ;AA7GD,8BA6GC"}
@@ -1,16 +0,0 @@
1
- import { ViralViewerApi } from "../../viral-viewer-api";
2
- import { CubeCamera } from "./components/cube-camera";
3
- import { CubeRenderer } from "./components/cube-renderer";
4
- import { CubeScene } from "./components/cube-scene";
5
- import { CubeMouse } from "./components/cube.mouse";
6
- export declare class ViralNavigationCube {
7
- viralViewerApi: ViralViewerApi;
8
- targetElement: HTMLElement | null;
9
- cubeScene: CubeScene | null;
10
- cubeRenderer: CubeRenderer | null;
11
- cubeCamera: CubeCamera | null;
12
- cubeMouse: CubeMouse | null;
13
- constructor(viralViewerApi: ViralViewerApi);
14
- private injectCubeWrapperElement;
15
- private handleClick;
16
- }
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViralNavigationCube = void 0;
4
- const types_1 = require("../../types");
5
- const cube_camera_1 = require("./components/cube-camera");
6
- const cube_renderer_1 = require("./components/cube-renderer");
7
- const cube_scene_1 = require("./components/cube-scene");
8
- const cube_mouse_1 = require("./components/cube.mouse");
9
- class ViralNavigationCube {
10
- constructor(viralViewerApi) {
11
- this.viralViewerApi = viralViewerApi;
12
- this.targetElement = null;
13
- this.cubeScene = null;
14
- this.cubeRenderer = null;
15
- this.cubeCamera = null;
16
- this.cubeMouse = null;
17
- this.injectCubeWrapperElement();
18
- this.targetElement = document.getElementById('orientCubeWrapper');
19
- if (this.targetElement) {
20
- this.cubeScene = new cube_scene_1.CubeScene(this);
21
- this.cubeRenderer = new cube_renderer_1.CubeRenderer(this);
22
- this.cubeCamera = new cube_camera_1.CubeCamera(this);
23
- this.cubeMouse = new cube_mouse_1.CubeMouse(this);
24
- // this.cubeRenderer.anim();
25
- }
26
- this.viralViewerApi.lifeCycleEvent.emit(types_1.ViralutionEvent.LOADED_CUBE);
27
- }
28
- injectCubeWrapperElement() {
29
- if (this.viralViewerApi.targetElement) {
30
- const wrapperDiv = document.createElement('div');
31
- wrapperDiv.setAttribute("style", 'position:absolute; right:10px; top:10px; display:flex');
32
- //home button
33
- const button = document.createElement('div');
34
- button.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" style="fill:#e2e6dc;cursor: pointer; filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));" height="20px" viewBox="0 0 576 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"/></svg>`;
35
- button.addEventListener('click', (ev) => { this.handleClick(); });
36
- wrapperDiv.appendChild(button);
37
- //cube div
38
- const cubeDiv = document.createElement('div');
39
- cubeDiv.setAttribute('style', 'height:130px; width:130px');
40
- cubeDiv.id = 'orientCubeWrapper';
41
- wrapperDiv.appendChild(cubeDiv);
42
- this.viralViewerApi.targetElement.appendChild(wrapperDiv);
43
- }
44
- }
45
- handleClick() {
46
- this.viralViewerApi.viralCamera.focusModelByName();
47
- }
48
- }
49
- exports.ViralNavigationCube = ViralNavigationCube;
50
- //# sourceMappingURL=viral-navigation-cube.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viral-navigation-cube.js","sourceRoot":"","sources":["../../../src/components/navigation-cube/viral-navigation-cube.ts"],"names":[],"mappings":";;;AAAA,uCAA8C;AAE9C,0DAAsD;AACtD,8DAA0D;AAC1D,wDAAoD;AACpD,wDAAoD;AAEpD,MAAa,mBAAmB;IAM5B,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QALjD,kBAAa,GAAuB,IAAI,CAAC;QACzC,cAAS,GAAqB,IAAI,CAAC;QACnC,iBAAY,GAAwB,IAAI,CAAC;QACzC,eAAU,GAAsB,IAAI,CAAC;QACrC,cAAS,GAAqB,IAAI,CAAC;QAE/B,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAChC,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;QAClE,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,CAAC;YACrC,IAAI,CAAC,YAAY,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC;YAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,CAAC;YACrC,4BAA4B;SAC/B;QACD,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,uBAAe,CAAC,WAAW,CAAC,CAAC;IAEzE,CAAC;IACO,wBAAwB;QAC5B,IAAI,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE;YACnC,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YACjD,UAAU,CAAC,YAAY,CAAC,OAAO,EAAE,uDAAuD,CAAC,CAAC;YAE1F,aAAa;YACb,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC7C,MAAM,CAAC,SAAS,GAAG,y0BAAy0B,CAAC;YAE71B,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAc,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA,CAAC,CAAC,CAAC,CAAC;YAE7E,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAE/B,UAAU;YACV,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC9C,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,2BAA2B,CAAC,CAAC;YAC3D,OAAO,CAAC,EAAE,GAAG,mBAAmB,CAAA;YAEhC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAChC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;SAC7D;IAGL,CAAC;IACO,WAAW;QACf,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC;IACvD,CAAC;CACJ;AA9CD,kDA8CC"}
@@ -1,13 +0,0 @@
1
- import { EffectComposer } from "../../threejs-addon/post-processing/effect-composer";
2
- import { OutputPass } from "../../threejs-addon/post-processing/output-pass";
3
- import { RenderPass } from "../../threejs-addon/post-processing/render-pass";
4
- import { SAOPass } from "../../threejs-addon/post-processing/sao-pass";
5
- import { ViralViewerApi } from "../../viral-viewer-api";
6
- export declare class AmbientOcclusionEffect {
7
- private viralViewerApi;
8
- composer: EffectComposer | null;
9
- renderPass: RenderPass | null;
10
- saoPass: SAOPass | null;
11
- outputPass: OutputPass | null;
12
- constructor(viralViewerApi: ViralViewerApi);
13
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AmbientOcclusionEffect = void 0;
4
- const effect_composer_1 = require("../../threejs-addon/post-processing/effect-composer");
5
- const render_pass_1 = require("../../threejs-addon/post-processing/render-pass");
6
- const sao_pass_1 = require("../../threejs-addon/post-processing/sao-pass");
7
- class AmbientOcclusionEffect {
8
- constructor(viralViewerApi) {
9
- this.viralViewerApi = viralViewerApi;
10
- this.composer = null;
11
- //effect
12
- this.renderPass = null;
13
- this.saoPass = null;
14
- this.outputPass = null;
15
- if (this.viralViewerApi.viralScene) {
16
- this.composer = new effect_composer_1.EffectComposer(this.viralViewerApi.viralRenderer.renderer);
17
- this.composer.setSize(this.viralViewerApi.targetElement.offsetWidth, this.viralViewerApi.targetElement.offsetHeight);
18
- this.renderPass = new render_pass_1.RenderPass(this.viralViewerApi.viralScene.scene, this.viralViewerApi.viralCamera.camera);
19
- this.saoPass = new sao_pass_1.SAOPass(this.viralViewerApi.viralScene.scene, this.viralViewerApi.viralCamera.camera, true, true);
20
- this.saoPass.resolution.set(8192, 8192);
21
- this.saoPass.params.saoBias = 0.01;
22
- this.saoPass.params.saoIntensity = 0.0012;
23
- this.saoPass.params.saoScale = 0.3;
24
- this.saoPass.params.saoKernelRadius = 40;
25
- this.saoPass.params.saoBlurRadius = 4;
26
- this.saoPass.params.saoMinResolution = 0;
27
- this.composer.addPass(this.renderPass);
28
- this.composer.addPass(this.saoPass);
29
- }
30
- }
31
- }
32
- exports.AmbientOcclusionEffect = AmbientOcclusionEffect;
33
- //# sourceMappingURL=ambient-occlusion-effect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ambient-occlusion-effect.js","sourceRoot":"","sources":["../../../src/components/post-processing/ambient-occlusion-effect.ts"],"names":[],"mappings":";;;AAAA,yFAAqF;AAErF,iFAA6E;AAC7E,2EAAuE;AAGvE,MAAa,sBAAsB;IAOjC,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QANlD,aAAQ,GAA0B,IAAI,CAAC;QACvC,QAAQ;QACR,eAAU,GAAsB,IAAI,CAAC;QACrC,YAAO,GAAmB,IAAI,CAAC;QAC/B,eAAU,GAAsB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C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACrC;IACH,CAAC;CACF;AAzCD,wDAyCC"}
@@ -1,11 +0,0 @@
1
- import { EffectComposer } from "../../threejs-addon/post-processing/effect-composer";
2
- import { RenderPass } from "../../threejs-addon/post-processing/render-pass";
3
- import { UnrealBloomPass } from "../../threejs-addon/post-processing/unreal-bloom-pass";
4
- import { ViralViewerApi } from "../../viral-viewer-api";
5
- export declare class BloomEffect {
6
- private viralViewerApi;
7
- bloomComposer: EffectComposer | null;
8
- renderPass: RenderPass | null;
9
- bloomPass: UnrealBloomPass | null;
10
- constructor(viralViewerApi: ViralViewerApi);
11
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BloomEffect = void 0;
4
- const three_1 = require("three");
5
- const effect_composer_1 = require("../../threejs-addon/post-processing/effect-composer");
6
- const render_pass_1 = require("../../threejs-addon/post-processing/render-pass");
7
- const unreal_bloom_pass_1 = require("../../threejs-addon/post-processing/unreal-bloom-pass");
8
- class BloomEffect {
9
- constructor(viralViewerApi) {
10
- this.viralViewerApi = viralViewerApi;
11
- this.bloomComposer = null;
12
- //effect
13
- this.renderPass = null;
14
- this.bloomPass = null;
15
- if (this.viralViewerApi.viralScene) {
16
- this.bloomComposer = new effect_composer_1.EffectComposer(this.viralViewerApi.viralRenderer.renderer);
17
- this.renderPass = new render_pass_1.RenderPass(this.viralViewerApi.viralScene.scene, this.viralViewerApi.viralCamera.camera);
18
- this.bloomPass = new unreal_bloom_pass_1.UnrealBloomPass(new three_1.Vector2(window.innerWidth, window.innerHeight), 1.5, 0.4, 0.85);
19
- this.bloomPass.threshold = 0;
20
- this.bloomPass.strength = 1;
21
- this.bloomPass.radius = 0.5;
22
- this.bloomComposer.addPass(this.renderPass);
23
- this.bloomComposer.addPass(this.bloomPass);
24
- this.bloomComposer.renderToScreen = false;
25
- }
26
- }
27
- }
28
- exports.BloomEffect = BloomEffect;
29
- //# sourceMappingURL=bloom-effect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bloom-effect.js","sourceRoot":"","sources":["../../../src/components/post-processing/bloom-effect.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,yFAAqF;AACrF,iFAA6E;AAC7E,6FAAwF;AAGxF,MAAa,WAAW;IAMtB,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QALlD,kBAAa,GAA0B,IAAI,CAAC;QAC5C,QAAQ;QACR,eAAU,GAAsB,IAAI,CAAC;QACrC,cAAS,GAA2B,IAAI,CAAC;QAGvC,IAAI,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE;YAClC,IAAI,CAAC,aAAa,GAAG,IAAI,gCAAc,CACrC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,QAAQ,CAC3C,CAAC;YAEF,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAC9B,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,EACpC,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CACvC,CAAC;YAEF,IAAI,CAAC,SAAS,GAAG,IAAI,mCAAe,CAClC,IAAI,eAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,EAClD,GAAG,EACH,GAAG,EACH,IAAI,CACL,CAAC;YACF,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,CAAC,CAAC;YAC5B,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,GAAG,CAAC;YAE5B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC5C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC3C,IAAI,CAAC,aAAa,CAAC,cAAc,GAAG,KAAK,CAAC;SAC3C;IACH,CAAC;CACF;AAhCD,kCAgCC"}
@@ -1,13 +0,0 @@
1
- import { EffectComposer } from "../../threejs-addon/post-processing/effect-composer";
2
- import { OutlinePass } from "../../threejs-addon/post-processing/outline-pass";
3
- import { RenderPass } from "../../threejs-addon/post-processing/render-pass";
4
- import { ViralViewerApi } from "../../viral-viewer-api";
5
- import { OutputPass } from "../../threejs-addon/post-processing/output-pass";
6
- export declare class OutlineEffect {
7
- private viralViewerApi;
8
- composer: EffectComposer | null;
9
- renderPass: RenderPass | null;
10
- outlinePass: OutlinePass | null;
11
- outputPass: OutputPass | null;
12
- constructor(viralViewerApi: ViralViewerApi);
13
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OutlineEffect = void 0;
4
- const three_1 = require("three");
5
- const effect_composer_1 = require("../../threejs-addon/post-processing/effect-composer");
6
- const outline_pass_1 = require("../../threejs-addon/post-processing/outline-pass");
7
- const render_pass_1 = require("../../threejs-addon/post-processing/render-pass");
8
- const output_pass_1 = require("../../threejs-addon/post-processing/output-pass");
9
- class OutlineEffect {
10
- constructor(viralViewerApi) {
11
- this.viralViewerApi = viralViewerApi;
12
- this.composer = null;
13
- //effect
14
- this.renderPass = null;
15
- this.outlinePass = null;
16
- this.outputPass = null;
17
- if (this.viralViewerApi.viralScene) {
18
- this.composer = new effect_composer_1.EffectComposer(this.viralViewerApi.viralRenderer.renderer);
19
- this.renderPass = new render_pass_1.RenderPass(this.viralViewerApi.viralScene.scene, this.viralViewerApi.viralCamera.camera);
20
- this.outlinePass = new outline_pass_1.OutlinePass(new three_1.Vector2(window.innerWidth, window.innerHeight), this.viralViewerApi.viralScene.scene, this.viralViewerApi.viralCamera.camera);
21
- this.outlinePass.visibleEdgeColor.set("#ffffff");
22
- this.outlinePass.hiddenEdgeColor.set("#ff5b24");
23
- this.outlinePass.edgeThickness = 1;
24
- this.outlinePass.usePatternTexture = false;
25
- this.outputPass = new output_pass_1.OutputPass();
26
- this.composer.addPass(this.renderPass);
27
- this.composer.addPass(this.outlinePass);
28
- this.composer.addPass(this.outputPass);
29
- }
30
- }
31
- }
32
- exports.OutlineEffect = OutlineEffect;
33
- //# sourceMappingURL=outline-effect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outline-effect.js","sourceRoot":"","sources":["../../../src/components/post-processing/outline-effect.ts"],"names":[],"mappings":";;;AAAA,iCAA+D;AAC/D,yFAAqF;AACrF,mFAA+E;AAC/E,iFAA6E;AAE7E,iFAA6E;AAE7E,MAAa,aAAa;IAMxB,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QALlD,aAAQ,GAA0B,IAAI,CAAC;QACvC,QAAQ;QACR,eAAU,GAAsB,IAAI,CAAC;QACrC,gBAAW,GAAuB,IAAI,CAAC;QACvC,eAAU,GAAsB,IAAI,CAAC;QAEnC,IAAI,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE;YAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,gCAAc,CAChC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,QAAQ,CAC3C,CAAC;YAEF,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAC9B,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,EACpC,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CACvC,CAAC;YAEF,IAAI,CAAC,WAAW,GAAG,IAAI,0BAAW,CAChC,IAAI,eAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,EAClD,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,EACpC,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CACvC,CAAC;YACF,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACjD,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAChD,IAAI,CAAC,WAAW,CAAC,aAAa,GAAG,CAAC,CAAC;YACnC,IAAI,CAAC,WAAW,CAAC,iBAAiB,GAAG,KAAK,CAAC;YAE3C,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,EAAE,CAAC;YAEnC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACvC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACxC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACxC;IACH,CAAC;CACF;AAlCD,sCAkCC"}
@@ -1,10 +0,0 @@
1
- import { ViralViewerApi } from "../../viral-viewer-api";
2
- export declare class ViralSpinner {
3
- viralViewerApi: ViralViewerApi;
4
- private spinner;
5
- private logo;
6
- constructor(viralViewerApi: ViralViewerApi);
7
- private injectSpinner;
8
- showSpinner(): void;
9
- hideSpinner(): void;
10
- }
@@ -1,207 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViralSpinner = void 0;
4
- const colors_1 = require("../../const/colors");
5
- const html_1 = require("../../utils/html");
6
- class ViralSpinner {
7
- constructor(viralViewerApi) {
8
- this.viralViewerApi = viralViewerApi;
9
- this.spinner = null;
10
- this.logo = `<svg
11
- viewBox="0 0 135.46667 135.46667"
12
- version="1.1"
13
- id="svg7238"
14
- sodipodi:docname="viral2-green.svg"
15
- inkscape:export-filename="viral2-512.png"
16
- inkscape:export-xdpi="96"
17
- inkscape:export-ydpi="96"
18
- inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
19
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
20
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
21
- xmlns:xlink="http://www.w3.org/1999/xlink"
22
- xmlns="http://www.w3.org/2000/svg"
23
- xmlns:svg="http://www.w3.org/2000/svg">
24
- <sodipodi:namedview
25
- id="namedview7240"
26
- pagecolor="#ffffff"
27
- bordercolor="#000000"
28
- borderopacity="0.25"
29
- inkscape:showpageshadow="2"
30
- inkscape:pageopacity="0.0"
31
- inkscape:pagecheckerboard="0"
32
- inkscape:deskcolor="#d1d1d1"
33
- inkscape:document-units="px"
34
- showgrid="false"
35
- showborder="false"
36
- inkscape:zoom="0.99327643"
37
- inkscape:cx="-5.53723"
38
- inkscape:cy="208.4012"
39
- inkscape:window-width="1920"
40
- inkscape:window-height="1025"
41
- inkscape:window-x="-8"
42
- inkscape:window-y="-8"
43
- inkscape:window-maximized="1"
44
- inkscape:current-layer="layer1" />
45
- <defs
46
- id="defs7235">
47
- <linearGradient
48
- inkscape:collect="always"
49
- id="linearGradient1616">
50
- <stop
51
- style="stop-color:#56674d;stop-opacity:1;"
52
- offset="0"
53
- id="stop1612" />
54
- <stop
55
- style="stop-color:#ffffff;stop-opacity:0;"
56
- offset="1"
57
- id="stop1614" />
58
- </linearGradient>
59
- <linearGradient
60
- inkscape:collect="always"
61
- xlink:href="#linearGradient15690"
62
- id="linearGradient18609"
63
- gradientUnits="userSpaceOnUse"
64
- gradientTransform="translate(-166.15654,32.013661)"
65
- x1="307.17484"
66
- y1="52.350281"
67
- x2="326.05994"
68
- y2="54.673866" />
69
- <linearGradient
70
- inkscape:collect="always"
71
- id="linearGradient15690">
72
- <stop
73
- style="stop-color:#56674d;stop-opacity:1;"
74
- offset="0"
75
- id="stop15686" />
76
- <stop
77
- style="stop-color:#496e7c;stop-opacity:0;"
78
- offset="1"
79
- id="stop15688" />
80
- </linearGradient>
81
- <linearGradient
82
- inkscape:collect="always"
83
- xlink:href="#linearGradient15766"
84
- id="linearGradient16111-2"
85
- gradientUnits="userSpaceOnUse"
86
- x1="94.716965"
87
- y1="77.459938"
88
- x2="120.0867"
89
- y2="65.915489" />
90
- <linearGradient
91
- inkscape:collect="always"
92
- id="linearGradient15766">
93
- <stop
94
- style="stop-color:#56674d;stop-opacity:1;"
95
- offset="0"
96
- id="stop15762" />
97
- <stop
98
- style="stop-color:#496e7c;stop-opacity:0;"
99
- offset="1"
100
- id="stop15764" />
101
- </linearGradient>
102
- <linearGradient
103
- inkscape:collect="always"
104
- xlink:href="#linearGradient15924"
105
- id="linearGradient18611"
106
- gradientUnits="userSpaceOnUse"
107
- gradientTransform="translate(-166.15654,32.013661)"
108
- x1="252.87965"
109
- y1="104.78405"
110
- x2="305.49805"
111
- y2="61.56583" />
112
- <linearGradient
113
- inkscape:collect="always"
114
- id="linearGradient15924">
115
- <stop
116
- style="stop-color:#56674d;stop-opacity:1;"
117
- offset="0"
118
- id="stop15920" />
119
- <stop
120
- style="stop-color:#ffffff;stop-opacity:0;"
121
- offset="1"
122
- id="stop15922" />
123
- </linearGradient>
124
- <linearGradient
125
- inkscape:collect="always"
126
- xlink:href="#linearGradient1616"
127
- id="linearGradient18613"
128
- gradientUnits="userSpaceOnUse"
129
- gradientTransform="translate(-166.15654,32.013661)"
130
- x1="262.83365"
131
- y1="98.616089"
132
- x2="303.40704"
133
- y2="56.86591" />
134
- </defs>
135
- <g
136
- inkscape:label="Layer 1"
137
- inkscape:groupmode="layer"
138
- id="layer1"
139
- transform="translate(-81.132986,-92.575601)">
140
- <g
141
- id="g489"
142
- transform="matrix(1.5365255,0,0,1.474116,-14.471343,-5.8524295)">
143
- <path
144
- id="path11327-0-0-0"
145
- style="fill:url(#linearGradient18609);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
146
- d="m 130.56075,85.04143 c 0.52476,0.26239 -18.03983,28.95537 -21.66379,32.11329 -3.42113,2.98116 -7.7736,3.69559 -11.21431,3.82302 -3.4407,0.12743 -10.95953,-1.27434 -10.95953,-1.27434 l 9.53171,15.82074 c 10.00038,14.90295 18.17614,-1.81278 29.33516,-18.06246 3.96568,-5.77479 7.78809,-12.47359 12.92015,-21.46123 4.04139,-7.0776 -7.96539,-10.97224 -7.94939,-10.95902 z" />
147
- <path
148
- style="fill:url(#linearGradient16111-2);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
149
- d="m 95.83013,56.198256 16.05664,29.946913 c 0,0 -10.06725,0.637171 -12.870796,-1.019467 L 87.652946,64.863746 c 0,0 -2.527248,-8.028321 8.177184,-8.66549 z"
150
- id="path11425-3-4-8"
151
- sodipodi:nodetypes="ccccc"
152
- class="UnoptimicedTransforms"
153
- transform="translate(-14.07671,30.372343)" />
154
- <path
155
- id="path11327-0-5-6-6-4-3"
156
- style="fill:url(#linearGradient18611);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
157
- d="m 130.56075,85.04143 c -1.47647,3.17228 -18.24916,29.13777 -21.66379,32.11329 -3.42112,2.98116 -7.7736,3.69559 -11.2143,3.82302 -3.4407,0.12743 -10.95954,-1.27434 -10.95954,-1.27434 l 4.7656,7.91063 h 5.2e-4 c 0.002,0.001 10.85017,15.99897 19.37348,5.76286 2.99574,-3.59774 5.15135,-6.65533 6.98187,-9.54746 2.95629,-4.67075 5.06469,-8.90995 8.4947,-14.29586 14.90527,-23.40477 3.86084,-23.27687 4.22146,-24.49214 z"
158
- sodipodi:nodetypes="csscccsssc" />
159
- <path
160
- id="path11327-0-5-6-6-7-5-9"
161
- style="fill:url(#linearGradient18613);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
162
- d="m 130.56075,85.04143 c -1.47647,3.17228 -18.24916,29.13777 -21.66379,32.11329 -3.42112,2.98116 -7.7736,3.69559 -11.2143,3.82302 -3.4407,0.12743 -10.95954,-1.27434 -10.95954,-1.27434 l 4.7656,7.91063 h 5.2e-4 c 0.002,0.001 12.41225,10.17869 19.50733,-1.0945 10.41305,-16.54503 3.05221,-4.8499 9.84606,-15.81454 14.04378,-22.66534 9.3575,-24.44829 9.71812,-25.66356 z"
163
- sodipodi:nodetypes="csscccssc" />
164
- </g>
165
- </g>
166
- </svg>`;
167
- this.injectSpinner();
168
- }
169
- injectSpinner() {
170
- // Create the @keyframes animation
171
- const keyframes = `@keyframes spin {
172
- 0% { transform: rotate(0deg); }
173
- 100% { transform: rotate(360deg); }
174
- }`;
175
- // Create a style element and append the keyframes animation
176
- const style = document.createElement('style');
177
- style.innerHTML = keyframes;
178
- // Append the style element to the document head
179
- document.head.appendChild(style);
180
- if (this.viralViewerApi.targetElement) {
181
- this.spinner = document.createElement('div');
182
- this.spinner.setAttribute('style', `position: absolute;top:0px;left:0px;right:0px;bottom:0px;background-color: ${colors_1.LightTheme.background};justify-content: center;align-items: center;display:none; z-index: 100`);
183
- const divWrapperDiv = document.createElement('div');
184
- const spinnerCircle = document.createElement('div');
185
- spinnerCircle.setAttribute('style', `width: 200px; height: 200px; border-radius: 50%; border: 2px solid #ccc; border-top: 2px solid ${colors_1.LightTheme.primary}; animation: spin 1.5s linear infinite;`);
186
- //logo
187
- const logo = html_1.HTMLUtil.createElementFromHTML(this.logo);
188
- logo.setAttribute('style', "height:150px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)");
189
- divWrapperDiv.appendChild(spinnerCircle);
190
- divWrapperDiv.appendChild(logo);
191
- this.spinner.appendChild(divWrapperDiv);
192
- this.viralViewerApi.targetElement.appendChild(this.spinner);
193
- }
194
- }
195
- showSpinner() {
196
- if (this.spinner) {
197
- this.spinner.style.setProperty("display", 'flex');
198
- }
199
- }
200
- hideSpinner() {
201
- if (this.spinner) {
202
- this.spinner.style.setProperty("display", 'none');
203
- }
204
- }
205
- }
206
- exports.ViralSpinner = ViralSpinner;
207
- //# sourceMappingURL=viral-spinner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viral-spinner.js","sourceRoot":"","sources":["../../../src/components/sp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AAI,CAAC,CAAC;YACvD,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,gFAAgF,CAAC,CAAC;YAE7G,aAAa,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;YACzC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAEhC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;YACxC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC9D;IACJ,CAAC;IACM,WAAW;QACf,IAAI,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAC,MAAM,CAAC,CAAC;SACnD;IACJ,CAAC;IACM,WAAW;QACf,IAAI,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAC,MAAM,CAAC,CAAC;SACnD;IACJ,CAAC;CACH;AA3MD,oCA2MC"}
@@ -1,7 +0,0 @@
1
- import { ViralViewerTool } from "../../../types";
2
- import { ViralTools } from "../viral-tools";
3
- export declare class ViralToolAmbientOcclusion {
4
- viralTools: ViralTools;
5
- constructor(viralTools: ViralTools);
6
- activate(input: ViralViewerTool): void;
7
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViralToolAmbientOcclusion = void 0;
4
- class ViralToolAmbientOcclusion {
5
- constructor(viralTools) {
6
- this.viralTools = viralTools;
7
- }
8
- activate(input) {
9
- if (input.activate) {
10
- }
11
- else {
12
- }
13
- }
14
- }
15
- exports.ViralToolAmbientOcclusion = ViralToolAmbientOcclusion;
16
- //# sourceMappingURL=viral-tool-ambient-occlusion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viral-tool-ambient-occlusion.js","sourceRoot":"","sources":["../../../../src/components/tools/tools/viral-tool-ambient-occlusion.ts"],"names":[],"mappings":";;;AAGA,MAAa,yBAAyB;IACpC,YAAmB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IACtC,QAAQ,CAAC,KAAsB;QACpC,IAAI,KAAK,CAAC,QAAQ,EAAE;SACnB;aAAM;SACN;IACH,CAAC;CACF;AAPD,8DAOC"}
@@ -1,7 +0,0 @@
1
- import { ViralViewerTool } from "../../../types";
2
- import { ViralTools } from "../viral-tools";
3
- export declare class ViralToolDarkMode {
4
- viralTools: ViralTools;
5
- constructor(viralTools: ViralTools);
6
- activate(input: ViralViewerTool): void;
7
- }