@niivue/niivue 0.24.0 → 0.24.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/dist/niivue.es.js CHANGED
@@ -109473,6 +109473,7 @@ function Niivue(options = {}) {
109473
109473
  this.overlays = [];
109474
109474
  this.volumes = [];
109475
109475
  this.deferredVolumes = [];
109476
+ this.deferredMeshes = [];
109476
109477
  this.meshes = [];
109477
109478
  this.furthestVertexFromOrigin = 100;
109478
109479
  this.volScaleMultiplier = 1;
@@ -110509,6 +110510,10 @@ Niivue.prototype.loadMeshes = async function(meshList) {
110509
110510
  this.loadingText = this.opts.loadingText;
110510
110511
  }
110511
110512
  });
110513
+ if (this.thumbnailVisible) {
110514
+ this.deferredMeshes = meshList;
110515
+ return this;
110516
+ }
110512
110517
  if (!this.initialized)
110513
110518
  ;
110514
110519
  this.meshes = [];
@@ -111575,6 +111580,7 @@ Niivue.prototype.mouseClick = function(x2, y, posChange = 0, isDelta = true) {
111575
111580
  this.bmpTexture = null;
111576
111581
  this.thumbnailVisible = false;
111577
111582
  this.loadVolumes(this.deferredVolumes);
111583
+ this.loadMeshes(this.deferredMeshes);
111578
111584
  return;
111579
111585
  }
111580
111586
  if (this.graph.opacity > 0 && this.volumes[0].nFrame4D > 1 && this.graph.plotLTWH) {