viral-viewer-2 2.6.2 → 2.6.4

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.
@@ -1 +1 @@
1
- export declare const workerCode: () => Promise<void>;
1
+ export declare const workerCode: any;
@@ -11,13 +11,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.workerCode = void 0;
13
13
  function workerFunction() {
14
- return __awaiter(this, void 0, void 0, function* () {
15
- const THREE = yield Promise.resolve().then(() => require('../../threejs-addon/simplify-modifier'));
16
- let modifier = new THREE.SimplifyModifier();
17
- self.addEventListener("message", (event) => {
14
+ function child() {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ let THREE = yield Promise.resolve().then(() => require('../../threejs-addon/simplify-modifier'));
17
+ let modifier = new THREE.SimplifyModifier();
18
18
  console.log(modifier);
19
- }, false);
20
- });
19
+ });
20
+ }
21
+ self.addEventListener("message", (event) => __awaiter(this, void 0, void 0, function* () {
22
+ yield child();
23
+ }), false);
21
24
  }
22
25
  exports.workerCode = workerFunction;
23
26
  //# sourceMappingURL=threejs.script.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"threejs.script.js","sourceRoot":"","sources":["../../../src/components/worker-script/threejs.script.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAe,cAAc;;QACzB,MAAM,KAAK,GAAG,2CAAa,uCAAuC,EAAC,CAAC;QACpE,IAAI,QAAQ,GAAG,IAAI,KAAK,CAAC,gBAAgB,EAAE,CAAC;QAE5C,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,KAAwB,EAAE,EAAE;YAC1D,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QACzB,CAAC,EACG,KAAK,CACR,CAAC;IACN,CAAC;CAAA;AACY,QAAA,UAAU,GAAwB,cAAc,CAAC"}
1
+ {"version":3,"file":"threejs.script.js","sourceRoot":"","sources":["../../../src/components/worker-script/threejs.script.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAS,cAAc;IACnB,SAAe,KAAK;;YAEhB,IAAI,KAAK,GAAG,2CAAa,uCAAuC,EAAC,CAAC;YAClE,IAAI,QAAQ,GAAG,IAAI,KAAK,CAAC,gBAAgB,EAAE,CAAC;YAC5C,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QACzB,CAAC;KAAA;IAGD,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAO,KAAwB,EAAE,EAAE;QAChE,MAAM,KAAK,EAAE,CAAC;IAClB,CAAC,CAAA,EACG,KAAK,CACR,CAAC;AACN,CAAC;AACY,QAAA,UAAU,GAAO,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",