viral-viewer-2 3.2.1 → 3.2.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.
Files changed (29) hide show
  1. package/LICENSE +57 -57
  2. package/dist/components/mouse/viral-mouse.d.ts +13 -0
  3. package/dist/components/mouse/viral-mouse.js +78 -2
  4. package/dist/components/mouse/viral-mouse.js.map +1 -1
  5. package/dist/components/spinner/viral-spinner.js +159 -159
  6. package/dist/components/worker/test-worker.worker.d.ts +6 -0
  7. package/dist/components/worker/test-worker.worker.js +21 -0
  8. package/dist/components/worker/test-worker.worker.js.map +1 -0
  9. package/dist/components/worker/viral-viewer-3.worker.js +2 -0
  10. package/dist/components/worker/viral-viewer-3.worker.js.map +1 -1
  11. package/dist/components/worker-script/threejs.script.js +16 -0
  12. package/dist/components/worker-script/threejs.script.js.map +1 -0
  13. package/dist/components/worker-script/threejs.types.js +185 -185
  14. package/dist/types.d.ts +5 -0
  15. package/dist/types.js +7 -1
  16. package/dist/types.js.map +1 -1
  17. package/package.json +29 -29
  18. package/dist/components/worker/load-model.d.ts +0 -126
  19. package/dist/components/worker/load-model.js +0 -1265
  20. package/dist/components/worker/load-model.js.map +0 -1
  21. package/dist/components/worker/test-worker-pool.d.ts +0 -6
  22. package/dist/components/worker/test-worker-pool.js +0 -21
  23. package/dist/components/worker/test-worker-pool.js.map +0 -1
  24. package/dist/components/worker-script/load-model-worker-3.script.d.ts +0 -0
  25. package/dist/components/worker-script/load-model-worker-3.script.js +0 -170
  26. package/dist/components/worker-script/load-model-worker-3.script.js.map +0 -1
  27. package/dist/components/worker-script/test-worker-pool.script.js +0 -12
  28. package/dist/components/worker-script/test-worker-pool.script.js.map +0 -1
  29. /package/dist/components/worker-script/{test-worker-pool.script.d.ts → threejs.script.d.ts} +0 -0
package/LICENSE CHANGED
@@ -1,57 +1,57 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Viral
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
23
- ============
24
- == VIRAL ==
25
- ============
26
-
27
-
28
- Copyright (c) 2023, Viral
29
- All rights reserved.
30
-
31
- Redistribution and use in source and binary forms, with or without
32
- modification, are permitted provided that the following conditions are met:
33
-
34
- 1. Redistributions of source code must retain the above copyright notice, this
35
- list of conditions and the following disclaimer.
36
- 2. Redistributions in binary form must reproduce the above copyright notice,
37
- this list of conditions and the following disclaimer in the documentation
38
- and/or other materials provided with the distribution.
39
-
40
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
41
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
42
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
43
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
44
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
45
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
47
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
48
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
49
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50
-
51
- The views and conclusions contained in the software and documentation are those
52
- of the authors and should not be interpreted as representing official policies,
53
- either expressed or implied, of the FreeBSD Project.
54
-
55
-
56
- The MIT License (MIT)
57
-
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Viral
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ============
24
+ == VIRAL ==
25
+ ============
26
+
27
+
28
+ Copyright (c) 2023, Viral
29
+ All rights reserved.
30
+
31
+ Redistribution and use in source and binary forms, with or without
32
+ modification, are permitted provided that the following conditions are met:
33
+
34
+ 1. Redistributions of source code must retain the above copyright notice, this
35
+ list of conditions and the following disclaimer.
36
+ 2. Redistributions in binary form must reproduce the above copyright notice,
37
+ this list of conditions and the following disclaimer in the documentation
38
+ and/or other materials provided with the distribution.
39
+
40
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
41
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
42
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
43
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
44
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
45
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
47
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
48
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
49
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50
+
51
+ The views and conclusions contained in the software and documentation are those
52
+ of the authors and should not be interpreted as representing official policies,
53
+ either expressed or implied, of the FreeBSD Project.
54
+
55
+
56
+ The MIT License (MIT)
57
+
@@ -1,11 +1,24 @@
1
1
  import { Vector2 } from "three";
2
2
  import { ViralViewerApi } from "../../viral-viewer-api";
3
+ import { ViralMouseEventType } from "../../types";
3
4
  export declare class ViralMouse {
4
5
  viralViewerApi: ViralViewerApi;
5
6
  position: Vector2;
6
7
  rawPosition: Vector2;
8
+ private mouseMoveQueuedEvents;
9
+ private mouseDownQueuedEvents;
10
+ private mouseUpQueuedEvents;
7
11
  constructor(viralViewerApi: ViralViewerApi);
8
12
  private setupMousePositionUpdate;
13
+ /**
14
+ *
15
+ * @param type Mouse type event
16
+ * @param key key of action
17
+ * @param resolve callback
18
+ */
19
+ addEventListener(type: ViralMouseEventType, key: string, resolve: (result: any) => void): void;
20
+ removeEventListener(type: ViralMouseEventType, key: string): void;
21
+ getAllEventListener(): void;
9
22
  private hoverMeshes;
10
23
  private hover;
11
24
  private reverseColor;
@@ -11,11 +11,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ViralMouse = void 0;
13
13
  const three_1 = require("three");
14
+ const types_1 = require("../../types");
14
15
  class ViralMouse {
15
16
  constructor(viralViewerApi) {
16
17
  this.viralViewerApi = viralViewerApi;
17
18
  this.position = new three_1.Vector2();
18
19
  this.rawPosition = new three_1.Vector2();
20
+ this.mouseMoveQueuedEvents = [];
21
+ this.mouseDownQueuedEvents = [];
22
+ this.mouseUpQueuedEvents = [];
23
+ //#endregion
19
24
  //#region Hover
20
25
  this.hoverMeshes = [];
21
26
  this.handleClick = (_event) => __awaiter(this, void 0, void 0, function* () {
@@ -31,6 +36,12 @@ class ViralMouse {
31
36
  this.viralViewerApi.viralRenderer.render();
32
37
  (_a = this.viralViewerApi.viralCamera.camera) === null || _a === void 0 ? void 0 : _a.updateMatrixWorld();
33
38
  (_b = this.viralViewerApi.viralCamera.cameraControls) === null || _b === void 0 ? void 0 : _b.setOrbitPoint(result[0].point.x, result[0].point.y, result[0].point.z);
39
+ while (this.mouseDownQueuedEvents.length > 0) {
40
+ this.mouseDownQueuedEvents.forEach(element => {
41
+ const [actionKey, callbackResolve] = element;
42
+ callbackResolve(this.position);
43
+ });
44
+ }
34
45
  //#region Tools
35
46
  if (this.viralViewerApi.viralTools.viralToolMeasure.isActivated) {
36
47
  this.viralViewerApi.viralTools.viralToolMeasure.onMouseClick(this.position);
@@ -48,6 +59,12 @@ class ViralMouse {
48
59
  if (object) {
49
60
  object.visible = false;
50
61
  }
62
+ while (this.mouseUpQueuedEvents.length > 0) {
63
+ this.mouseUpQueuedEvents.forEach(element => {
64
+ const [actionKey, callbackResolve] = element;
65
+ callbackResolve(this.position);
66
+ });
67
+ }
51
68
  }
52
69
  });
53
70
  this.setupMousePositionUpdate(this.viralViewerApi.viralRenderer.renderer.domElement);
@@ -61,7 +78,13 @@ class ViralMouse {
61
78
  const bounds = domElement.getBoundingClientRect();
62
79
  this.position.x = ((event.clientX - bounds.left) / (bounds.right - bounds.left)) * 2 - 1;
63
80
  this.position.y = -((event.clientY - bounds.top) / (bounds.bottom - bounds.top)) * 2 + 1;
64
- this.hover();
81
+ // this.hover();
82
+ while (this.mouseMoveQueuedEvents.length > 0) {
83
+ this.mouseMoveQueuedEvents.forEach(element => {
84
+ const [actionKey, callbackResolve] = element;
85
+ callbackResolve(this.position);
86
+ });
87
+ }
65
88
  //#region Tools
66
89
  if (this.viralViewerApi.viralTools.viralToolElevation.isActivated) {
67
90
  this.viralViewerApi.viralTools.viralToolElevation.onMouseMove(this.position);
@@ -72,15 +95,67 @@ class ViralMouse {
72
95
  //#endregion
73
96
  };
74
97
  }
98
+ //#region Mouse Event Handler
99
+ /**
100
+ *
101
+ * @param type Mouse type event
102
+ * @param key key of action
103
+ * @param resolve callback
104
+ */
105
+ addEventListener(type, key, resolve) {
106
+ switch (type) {
107
+ case types_1.ViralMouseEventType.ON_HOVER:
108
+ this.mouseMoveQueuedEvents.push([key, resolve]);
109
+ break;
110
+ case types_1.ViralMouseEventType.ON_MOUSE_DOWN:
111
+ this.mouseDownQueuedEvents.push([key, resolve]);
112
+ break;
113
+ case types_1.ViralMouseEventType.ON_MOUSE_UP:
114
+ this.mouseUpQueuedEvents.push([key, resolve]);
115
+ break;
116
+ default:
117
+ break;
118
+ }
119
+ }
120
+ removeEventListener(type, key) {
121
+ switch (type) {
122
+ case types_1.ViralMouseEventType.ON_HOVER:
123
+ {
124
+ let index = this.mouseMoveQueuedEvents.findIndex(x => x[0] == key);
125
+ this.mouseMoveQueuedEvents.splice(index, 1);
126
+ }
127
+ break;
128
+ case types_1.ViralMouseEventType.ON_MOUSE_DOWN:
129
+ {
130
+ let index = this.mouseDownQueuedEvents.findIndex(x => x[0] == key);
131
+ this.mouseDownQueuedEvents.splice(index, 1);
132
+ }
133
+ break;
134
+ case types_1.ViralMouseEventType.ON_MOUSE_UP:
135
+ {
136
+ let index = this.mouseUpQueuedEvents.findIndex(x => x[0] == key);
137
+ this.mouseUpQueuedEvents.splice(index, 1);
138
+ }
139
+ break;
140
+ default:
141
+ break;
142
+ }
143
+ }
144
+ getAllEventListener() {
145
+ console.log(this.mouseMoveQueuedEvents);
146
+ console.log(this.mouseUpQueuedEvents);
147
+ console.log(this.mouseDownQueuedEvents);
148
+ }
75
149
  hover() {
76
150
  if (this.viralViewerApi) {
77
151
  let result = this.viralViewerApi.viralCamera.clientToWorld();
78
152
  if (result && result.length > 0) {
79
153
  let mesh = result[0];
80
154
  if (mesh.object instanceof three_1.Mesh) {
81
- mesh.object.material.userData.oldColor = mesh.object.material.color.getHex();
155
+ mesh.object.material.userData.oldColor = mesh.object.material.color;
82
156
  mesh.object.material.color.set(Math.random() * 0xffffff);
83
157
  this.hoverMeshes.push(mesh.object);
158
+ this.viralViewerApi.viralRenderer.render();
84
159
  return;
85
160
  }
86
161
  }
@@ -95,6 +170,7 @@ class ViralMouse {
95
170
  element.material.color.set(element.material.userData.oldColor);
96
171
  }
97
172
  this.hoverMeshes = [];
173
+ this.viralViewerApi.viralRenderer.render();
98
174
  }
99
175
  //#endregion
100
176
  //#region Mouse Down
@@ -1 +1 @@
1
- {"version":3,"file":"viral-mouse.js","sourceRoot":"","sources":["../../../src/components/mouse/viral-mouse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAsC;AAGtC,MAAa,UAAU;IAInB,YAAmB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M,EAAE,CAAC;oBAC3C,OAAO;iBACV;aACJ;YACD,IAAI,CAAC,YAAY,EAAE,CAAC;SACvB;IACL,CAAC;IAEO,YAAY;QAChB,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,IAAI,CAAC;YAAE,OAAO;QACzC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;SAElE;QACD,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;IAC/C,CAAC;IAED,YAAY;IAEZ,oBAAoB;IACZ,cAAc,CAAC,UAAuB;QAC1C,UAAW,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;IAE/C,CAAC;IAkCD,YAAY;IAEZ,kBAAkB;IACV,YAAY,CAAC,UAAuB;QACxC,UAAW,CAAC,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC;IAE/C,CAAC;CAiBJ;AAlMD,gCAkMC"}
@@ -6,170 +6,170 @@ class ViralSpinner {
6
6
  constructor(viralViewerApi) {
7
7
  this.viralViewerApi = viralViewerApi;
8
8
  this.spinner = null;
9
- this.logo = `<svg
10
- viewBox="0 0 135.46667 135.46667"
11
- version="1.1"
12
- id="svg7238"
13
- sodipodi:docname="viral2-green.svg"
14
- inkscape:export-filename="viral2-512.png"
15
- inkscape:export-xdpi="96"
16
- inkscape:export-ydpi="96"
17
- inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
18
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
19
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
20
- xmlns:xlink="http://www.w3.org/1999/xlink"
21
- xmlns="http://www.w3.org/2000/svg"
22
- xmlns:svg="http://www.w3.org/2000/svg">
23
- <sodipodi:namedview
24
- id="namedview7240"
25
- pagecolor="#ffffff"
26
- bordercolor="#000000"
27
- borderopacity="0.25"
28
- inkscape:showpageshadow="2"
29
- inkscape:pageopacity="0.0"
30
- inkscape:pagecheckerboard="0"
31
- inkscape:deskcolor="#d1d1d1"
32
- inkscape:document-units="px"
33
- showgrid="false"
34
- showborder="false"
35
- inkscape:zoom="0.99327643"
36
- inkscape:cx="-5.53723"
37
- inkscape:cy="208.4012"
38
- inkscape:window-width="1920"
39
- inkscape:window-height="1025"
40
- inkscape:window-x="-8"
41
- inkscape:window-y="-8"
42
- inkscape:window-maximized="1"
43
- inkscape:current-layer="layer1" />
44
- <defs
45
- id="defs7235">
46
- <linearGradient
47
- inkscape:collect="always"
48
- id="linearGradient1616">
49
- <stop
50
- style="stop-color:#56674d;stop-opacity:1;"
51
- offset="0"
52
- id="stop1612" />
53
- <stop
54
- style="stop-color:#ffffff;stop-opacity:0;"
55
- offset="1"
56
- id="stop1614" />
57
- </linearGradient>
58
- <linearGradient
59
- inkscape:collect="always"
60
- xlink:href="#linearGradient15690"
61
- id="linearGradient18609"
62
- gradientUnits="userSpaceOnUse"
63
- gradientTransform="translate(-166.15654,32.013661)"
64
- x1="307.17484"
65
- y1="52.350281"
66
- x2="326.05994"
67
- y2="54.673866" />
68
- <linearGradient
69
- inkscape:collect="always"
70
- id="linearGradient15690">
71
- <stop
72
- style="stop-color:#56674d;stop-opacity:1;"
73
- offset="0"
74
- id="stop15686" />
75
- <stop
76
- style="stop-color:#496e7c;stop-opacity:0;"
77
- offset="1"
78
- id="stop15688" />
79
- </linearGradient>
80
- <linearGradient
81
- inkscape:collect="always"
82
- xlink:href="#linearGradient15766"
83
- id="linearGradient16111-2"
84
- gradientUnits="userSpaceOnUse"
85
- x1="94.716965"
86
- y1="77.459938"
87
- x2="120.0867"
88
- y2="65.915489" />
89
- <linearGradient
90
- inkscape:collect="always"
91
- id="linearGradient15766">
92
- <stop
93
- style="stop-color:#56674d;stop-opacity:1;"
94
- offset="0"
95
- id="stop15762" />
96
- <stop
97
- style="stop-color:#496e7c;stop-opacity:0;"
98
- offset="1"
99
- id="stop15764" />
100
- </linearGradient>
101
- <linearGradient
102
- inkscape:collect="always"
103
- xlink:href="#linearGradient15924"
104
- id="linearGradient18611"
105
- gradientUnits="userSpaceOnUse"
106
- gradientTransform="translate(-166.15654,32.013661)"
107
- x1="252.87965"
108
- y1="104.78405"
109
- x2="305.49805"
110
- y2="61.56583" />
111
- <linearGradient
112
- inkscape:collect="always"
113
- id="linearGradient15924">
114
- <stop
115
- style="stop-color:#56674d;stop-opacity:1;"
116
- offset="0"
117
- id="stop15920" />
118
- <stop
119
- style="stop-color:#ffffff;stop-opacity:0;"
120
- offset="1"
121
- id="stop15922" />
122
- </linearGradient>
123
- <linearGradient
124
- inkscape:collect="always"
125
- xlink:href="#linearGradient1616"
126
- id="linearGradient18613"
127
- gradientUnits="userSpaceOnUse"
128
- gradientTransform="translate(-166.15654,32.013661)"
129
- x1="262.83365"
130
- y1="98.616089"
131
- x2="303.40704"
132
- y2="56.86591" />
133
- </defs>
134
- <g
135
- inkscape:label="Layer 1"
136
- inkscape:groupmode="layer"
137
- id="layer1"
138
- transform="translate(-81.132986,-92.575601)">
139
- <g
140
- id="g489"
141
- transform="matrix(1.5365255,0,0,1.474116,-14.471343,-5.8524295)">
142
- <path
143
- id="path11327-0-0-0"
144
- 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"
145
- 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" />
146
- <path
147
- 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"
148
- 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"
149
- id="path11425-3-4-8"
150
- sodipodi:nodetypes="ccccc"
151
- class="UnoptimicedTransforms"
152
- transform="translate(-14.07671,30.372343)" />
153
- <path
154
- id="path11327-0-5-6-6-4-3"
155
- 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"
156
- 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"
157
- sodipodi:nodetypes="csscccsssc" />
158
- <path
159
- id="path11327-0-5-6-6-7-5-9"
160
- 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"
161
- 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"
162
- sodipodi:nodetypes="csscccssc" />
163
- </g>
164
- </g>
9
+ this.logo = `<svg
10
+ viewBox="0 0 135.46667 135.46667"
11
+ version="1.1"
12
+ id="svg7238"
13
+ sodipodi:docname="viral2-green.svg"
14
+ inkscape:export-filename="viral2-512.png"
15
+ inkscape:export-xdpi="96"
16
+ inkscape:export-ydpi="96"
17
+ inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
18
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
19
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
20
+ xmlns:xlink="http://www.w3.org/1999/xlink"
21
+ xmlns="http://www.w3.org/2000/svg"
22
+ xmlns:svg="http://www.w3.org/2000/svg">
23
+ <sodipodi:namedview
24
+ id="namedview7240"
25
+ pagecolor="#ffffff"
26
+ bordercolor="#000000"
27
+ borderopacity="0.25"
28
+ inkscape:showpageshadow="2"
29
+ inkscape:pageopacity="0.0"
30
+ inkscape:pagecheckerboard="0"
31
+ inkscape:deskcolor="#d1d1d1"
32
+ inkscape:document-units="px"
33
+ showgrid="false"
34
+ showborder="false"
35
+ inkscape:zoom="0.99327643"
36
+ inkscape:cx="-5.53723"
37
+ inkscape:cy="208.4012"
38
+ inkscape:window-width="1920"
39
+ inkscape:window-height="1025"
40
+ inkscape:window-x="-8"
41
+ inkscape:window-y="-8"
42
+ inkscape:window-maximized="1"
43
+ inkscape:current-layer="layer1" />
44
+ <defs
45
+ id="defs7235">
46
+ <linearGradient
47
+ inkscape:collect="always"
48
+ id="linearGradient1616">
49
+ <stop
50
+ style="stop-color:#56674d;stop-opacity:1;"
51
+ offset="0"
52
+ id="stop1612" />
53
+ <stop
54
+ style="stop-color:#ffffff;stop-opacity:0;"
55
+ offset="1"
56
+ id="stop1614" />
57
+ </linearGradient>
58
+ <linearGradient
59
+ inkscape:collect="always"
60
+ xlink:href="#linearGradient15690"
61
+ id="linearGradient18609"
62
+ gradientUnits="userSpaceOnUse"
63
+ gradientTransform="translate(-166.15654,32.013661)"
64
+ x1="307.17484"
65
+ y1="52.350281"
66
+ x2="326.05994"
67
+ y2="54.673866" />
68
+ <linearGradient
69
+ inkscape:collect="always"
70
+ id="linearGradient15690">
71
+ <stop
72
+ style="stop-color:#56674d;stop-opacity:1;"
73
+ offset="0"
74
+ id="stop15686" />
75
+ <stop
76
+ style="stop-color:#496e7c;stop-opacity:0;"
77
+ offset="1"
78
+ id="stop15688" />
79
+ </linearGradient>
80
+ <linearGradient
81
+ inkscape:collect="always"
82
+ xlink:href="#linearGradient15766"
83
+ id="linearGradient16111-2"
84
+ gradientUnits="userSpaceOnUse"
85
+ x1="94.716965"
86
+ y1="77.459938"
87
+ x2="120.0867"
88
+ y2="65.915489" />
89
+ <linearGradient
90
+ inkscape:collect="always"
91
+ id="linearGradient15766">
92
+ <stop
93
+ style="stop-color:#56674d;stop-opacity:1;"
94
+ offset="0"
95
+ id="stop15762" />
96
+ <stop
97
+ style="stop-color:#496e7c;stop-opacity:0;"
98
+ offset="1"
99
+ id="stop15764" />
100
+ </linearGradient>
101
+ <linearGradient
102
+ inkscape:collect="always"
103
+ xlink:href="#linearGradient15924"
104
+ id="linearGradient18611"
105
+ gradientUnits="userSpaceOnUse"
106
+ gradientTransform="translate(-166.15654,32.013661)"
107
+ x1="252.87965"
108
+ y1="104.78405"
109
+ x2="305.49805"
110
+ y2="61.56583" />
111
+ <linearGradient
112
+ inkscape:collect="always"
113
+ id="linearGradient15924">
114
+ <stop
115
+ style="stop-color:#56674d;stop-opacity:1;"
116
+ offset="0"
117
+ id="stop15920" />
118
+ <stop
119
+ style="stop-color:#ffffff;stop-opacity:0;"
120
+ offset="1"
121
+ id="stop15922" />
122
+ </linearGradient>
123
+ <linearGradient
124
+ inkscape:collect="always"
125
+ xlink:href="#linearGradient1616"
126
+ id="linearGradient18613"
127
+ gradientUnits="userSpaceOnUse"
128
+ gradientTransform="translate(-166.15654,32.013661)"
129
+ x1="262.83365"
130
+ y1="98.616089"
131
+ x2="303.40704"
132
+ y2="56.86591" />
133
+ </defs>
134
+ <g
135
+ inkscape:label="Layer 1"
136
+ inkscape:groupmode="layer"
137
+ id="layer1"
138
+ transform="translate(-81.132986,-92.575601)">
139
+ <g
140
+ id="g489"
141
+ transform="matrix(1.5365255,0,0,1.474116,-14.471343,-5.8524295)">
142
+ <path
143
+ id="path11327-0-0-0"
144
+ 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"
145
+ 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" />
146
+ <path
147
+ 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"
148
+ 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"
149
+ id="path11425-3-4-8"
150
+ sodipodi:nodetypes="ccccc"
151
+ class="UnoptimicedTransforms"
152
+ transform="translate(-14.07671,30.372343)" />
153
+ <path
154
+ id="path11327-0-5-6-6-4-3"
155
+ 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"
156
+ 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"
157
+ sodipodi:nodetypes="csscccsssc" />
158
+ <path
159
+ id="path11327-0-5-6-6-7-5-9"
160
+ 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"
161
+ 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"
162
+ sodipodi:nodetypes="csscccssc" />
163
+ </g>
164
+ </g>
165
165
  </svg>`;
166
166
  this.injectSpinner();
167
167
  }
168
168
  injectSpinner() {
169
169
  // Create the @keyframes animation
170
- const keyframes = `@keyframes spin {
171
- 0% { transform: rotate(0deg); }
172
- 100% { transform: rotate(360deg); }
170
+ const keyframes = `@keyframes spin {
171
+ 0% { transform: rotate(0deg); }
172
+ 100% { transform: rotate(360deg); }
173
173
  }`;
174
174
  // Create a style element and append the keyframes animation
175
175
  const style = document.createElement('style');
@@ -0,0 +1,6 @@
1
+ import { WorkerThreadPool } from "./base/worker-pool";
2
+ export declare class TestWorker {
3
+ workerPool: WorkerThreadPool;
4
+ constructor();
5
+ initial(callbackOnSuccess?: () => void): void;
6
+ }