@pirireis/webglobeplugins 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -16,26 +16,14 @@ class PointHeatmapPlugin {
16
16
  this._legendTexture = null;
17
17
 
18
18
  this._throttleListener = null;
19
-
20
- try {
21
-
22
- this.timeTrackInterpolationWorker = new Worker(
23
- new URL(
24
- '../util/interpolation/timetrack/web-worker.js',
25
- import.meta.url
26
- ), { type: 'module' }
27
- );
28
- } catch (e) {
29
- console.log(e);
30
- const blob = new Blob([webworkerStr], { type: 'application/javascript' });
31
- this.timeTrackInterpolationWorker = new Worker(URL.createObjectURL(blob), { type: 'module' });
32
- }
19
+ const blob = new Blob([webworkerStr], { type: 'application/javascript' });
20
+ this.timeTrackInterpolationWorker = new Worker(URL.createObjectURL(blob), { type: 'module' });
33
21
  this.timeTrackInterpolationWorker.onmessage = (e) => {
34
22
  if (e.data.error) {
35
23
  throw new Error(e.data.error);
36
24
  }
37
25
  if (e.data === true) {
38
- onInterpolationComplete()
26
+ onInterpolationComplete();
39
27
  }
40
28
  if (e.data instanceof Float32Array) {
41
29
  this.flow.setData(e.data);