@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.
- package/build/drawing/index.d.ts +1 -1
- package/build/drawing/index.js +15 -11
- package/build/drawing/index.js.map +1 -1
- package/build/index.min.js +1 -1
- package/build/metafile-esm.json +1 -1
- package/build/niivue/index.d.ts +76 -9
- package/build/niivue/index.js +872 -540
- package/build/niivue/index.js.map +1 -1
- package/build/{nvdocument-D56hVgmz.d.ts → nvdocument-5GNlbB1d.d.ts} +5 -1
- package/build/utils/index.d.ts +1 -1
- package/dist/index.d.ts +78 -7
- package/dist/index.js +664 -332
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/niivue.umd.js +164 -133
- package/package.json +1 -1
- package/src/niivue/index.ts +894 -374
- package/src/nvdocument.ts +7 -1
- package/src/nvimage/ImageReaders/mgh.ts +13 -9
- package/src/nvmesh-loaders.ts +46 -4
- package/src/nvmesh.ts +18 -1
- package/src/shader-srcs.ts +34 -0
- package/src/shader.ts +1 -0
package/build/drawing/index.d.ts
CHANGED
package/build/drawing/index.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
8377
|
+
import { mat3, mat4 as mat43, vec3 as vec33 } from "gl-matrix";
|
|
8378
8378
|
|
|
8379
8379
|
// src/nvmesh.ts
|
|
8380
|
-
import { vec3 as
|
|
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
|
|
8384
|
+
import { mat4 as mat45, vec3 as vec35 } from "gl-matrix";
|
|
8385
8385
|
|
|
8386
8386
|
// src/nvmesh-utilities.ts
|
|
8387
|
-
import { vec3 as
|
|
8387
|
+
import { vec3 as vec36 } from "gl-matrix";
|
|
8388
8388
|
|
|
8389
8389
|
// src/nvmesh-loaders.ts
|
|
8390
|
-
import { mat4 as mat46, vec4 as
|
|
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:
|
|
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:
|
|
8550
|
+
pan2Dxyzmm: vec47.fromValues(0, 0, 0, 1),
|
|
8547
8551
|
clipThick: 2,
|
|
8548
8552
|
clipVolumeLow: [0, 0, 0],
|
|
8549
8553
|
clipVolumeHigh: [1, 1, 1]
|