@niivue/niivue 0.15.0 → 0.15.1

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/README.md CHANGED
@@ -38,7 +38,7 @@ We host many NiiVue examples via github pages. These are updated and deployed au
38
38
 
39
39
  ## existing html page
40
40
  ```html
41
- <script src="https://unpkg.com/@niivue/niivue@0.15.0/dist/niivue.umd.js"></script>
41
+ <script src="https://unpkg.com/@niivue/niivue@0.15.1/dist/niivue.umd.js"></script>
42
42
 
43
43
  <canvas id="gl" height=480 width=640></canvas>
44
44
 
package/dist/niivue.es.js CHANGED
@@ -12354,11 +12354,10 @@ var defaultFontMetrics = {
12354
12354
  kerning
12355
12355
  };
12356
12356
  function WorkerWrapper() {
12357
- return new Worker("/assets/niimathWorker.1f52eda8.js", {
12357
+ return new Worker("./assets/niimathWorker.1f52eda8.js", {
12358
12358
  "type": "module"
12359
12359
  });
12360
12360
  }
12361
- var niiMathWorker = new WorkerWrapper();
12362
12361
  const log = new Log();
12363
12362
  const Niivue = function(options = {}) {
12364
12363
  this.opts = {};
@@ -13118,7 +13117,7 @@ Niivue.prototype.processImage = function(imageIndex, cmd, isNewLayer = true) {
13118
13117
  this.worker.postMessage([metadata, image.img.buffer, cmd, isNewLayer]);
13119
13118
  };
13120
13119
  Niivue.prototype.initWasm = async function() {
13121
- this.worker = niiMathWorker;
13120
+ this.worker = WorkerWrapper;
13122
13121
  this.worker.onmessage = (e) => {
13123
13122
  const id = e.data.id;
13124
13123
  let processedImage = this.volumes.find((image) => image.id == id);