@niivue/niivue 0.45.0 → 0.45.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/build/index.js CHANGED
@@ -10,7 +10,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10
10
  import { mat4 as mat46, vec2, vec3 as vec311, vec4 as vec48 } from "gl-matrix";
11
11
 
12
12
  // package.json
13
- var version = "0.45.0";
13
+ var version = "0.45.1";
14
14
 
15
15
  // src/logger.ts
16
16
  var _Log = class _Log {
@@ -25364,7 +25364,7 @@ var Niivue = class _Niivue {
25364
25364
  }
25365
25365
  async addVolumesFromUrl(imageOptionsArray) {
25366
25366
  const promises = imageOptionsArray.map(async (imageItem) => {
25367
- const ext = this.getFileExt(imageItem.url);
25367
+ const ext = this.getFileExt(imageItem.name || imageItem.url);
25368
25368
  if (this.loaders[ext]) {
25369
25369
  let itemToLoad = imageItem.url;
25370
25370
  const toExt = this.loaders[ext].toExt;
@@ -27310,7 +27310,7 @@ var Niivue = class _Niivue {
27310
27310
  */
27311
27311
  async addMeshesFromUrl(meshOptions) {
27312
27312
  const promises = meshOptions.map(async (meshItem) => {
27313
- const ext = this.getFileExt(meshItem.url);
27313
+ const ext = this.getFileExt(meshItem.name || meshItem.url);
27314
27314
  if (this.loaders[ext]) {
27315
27315
  let itemToLoad = meshItem.url;
27316
27316
  const toExt = this.loaders[ext].toExt;