@niivue/niivue 0.62.1 → 0.63.0

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,4 +1,4 @@
1
- import { S as SLICE_TYPE, T as TypedVoxelArray } from '../nvdocument-D56hVgmz.js';
1
+ import { S as SLICE_TYPE, T as TypedVoxelArray } from '../nvdocument-5GNlbB1d.js';
2
2
  import 'gl-matrix';
3
3
  import 'nifti-reader-js';
4
4
 
@@ -164,7 +164,7 @@ var drawUndo = ({
164
164
 
165
165
  // src/nvdocument.ts
166
166
  import { serialize, deserialize } from "@ungap/structured-clone";
167
- import { vec3 as vec310, vec4 as vec48 } from "gl-matrix";
167
+ import { vec3 as vec39, vec4 as vec47 } from "gl-matrix";
168
168
 
169
169
  // src/nvutilities.ts
170
170
  import arrayEqual from "array-equal";
@@ -173,7 +173,7 @@ import { mat4, vec3, vec4 } from "gl-matrix";
173
173
  // src/nvimage/index.ts
174
174
  import { NIFTI1 as NIFTI14, NIFTIEXTENSION, readHeaderAsync as readHeaderAsync2 } from "nifti-reader-js";
175
175
  import * as zarr from "zarrita";
176
- import { mat3 as mat32, mat4 as mat44, vec3 as vec35, vec4 as vec44 } from "gl-matrix";
176
+ import { mat3 as mat32, mat4 as mat44, vec3 as vec34, vec4 as vec43 } from "gl-matrix";
177
177
  import { v4 as uuidv4 } from "@lukeed/uuid";
178
178
  import { Gunzip } from "fflate";
179
179
 
@@ -8367,27 +8367,27 @@ import { vec4 as vec42 } from "gl-matrix";
8367
8367
 
8368
8368
  // src/nvimage/ImageReaders/mgh.ts
8369
8369
  import { NIFTI1 as NIFTI12 } from "nifti-reader-js";
8370
- import { mat4 as mat42, vec4 as vec43, vec3 as vec33 } from "gl-matrix";
8370
+ import { mat4 as mat42 } from "gl-matrix";
8371
8371
 
8372
8372
  // src/nvimage/ImageReaders/nii.ts
8373
8373
  import { isCompressed, decompressAsync, readHeaderAsync, readImage, hasExtension } from "nifti-reader-js";
8374
8374
 
8375
8375
  // src/nvimage/ImageReaders/nrrd.ts
8376
8376
  import { NIFTI1 as NIFTI13 } from "nifti-reader-js";
8377
- import { mat3, mat4 as mat43, vec3 as vec34 } from "gl-matrix";
8377
+ import { mat3, mat4 as mat43, vec3 as vec33 } from "gl-matrix";
8378
8378
 
8379
8379
  // src/nvmesh.ts
8380
- import { vec3 as vec39, vec4 as vec47 } from "gl-matrix";
8380
+ import { vec3 as vec38, vec4 as vec46 } from "gl-matrix";
8381
8381
  import { v4 as uuidv42 } from "@lukeed/uuid";
8382
8382
 
8383
8383
  // src/niivue-object3D.ts
8384
- import { mat4 as mat45, vec3 as vec36 } from "gl-matrix";
8384
+ import { mat4 as mat45, vec3 as vec35 } from "gl-matrix";
8385
8385
 
8386
8386
  // src/nvmesh-utilities.ts
8387
- import { vec3 as vec37 } from "gl-matrix";
8387
+ import { vec3 as vec36 } from "gl-matrix";
8388
8388
 
8389
8389
  // src/nvmesh-loaders.ts
8390
- import { mat4 as mat46, vec4 as vec46, vec3 as vec38 } from "gl-matrix";
8390
+ import { mat4 as mat46, vec4 as vec45, vec3 as vec37 } from "gl-matrix";
8391
8391
 
8392
8392
  // src/nvmesh.ts
8393
8393
  var NVMeshLayerDefaults = {
@@ -8533,17 +8533,21 @@ var DEFAULT_OPTIONS = {
8533
8533
  renderSilhouette: 0,
8534
8534
  gradientAmount: 0,
8535
8535
  invertScrollDirection: false,
8536
- is2DSliceShader: false
8536
+ is2DSliceShader: false,
8537
+ bounds: null,
8538
+ showBoundsBorder: false,
8539
+ boundsBorderColor: [1, 1, 1, 1]
8540
+ // white border by default
8537
8541
  };
8538
8542
  var INITIAL_SCENE_DATA = {
8539
8543
  gamma: 1,
8540
8544
  azimuth: 110,
8541
8545
  elevation: 10,
8542
- crosshairPos: vec310.fromValues(0.5, 0.5, 0.5),
8546
+ crosshairPos: vec39.fromValues(0.5, 0.5, 0.5),
8543
8547
  clipPlane: [0, 0, 0, 0],
8544
8548
  clipPlaneDepthAziElev: [2, 0, 0],
8545
8549
  volScaleMultiplier: 1,
8546
- pan2Dxyzmm: vec48.fromValues(0, 0, 0, 1),
8550
+ pan2Dxyzmm: vec47.fromValues(0, 0, 0, 1),
8547
8551
  clipThick: 2,
8548
8552
  clipVolumeLow: [0, 0, 0],
8549
8553
  clipVolumeHigh: [1, 1, 1]