dwv 0.35.0-beta.27 → 0.35.0-beta.28
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/dwv.d.ts +3 -3
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +2 -2
package/dist/dwv.d.ts
CHANGED
|
@@ -2613,7 +2613,7 @@ declare class Image_2 {
|
|
|
2613
2613
|
* @param {TypedArray} buffer The image data as a one dimensional buffer.
|
|
2614
2614
|
* @param {string[]} [imageUids] An array of Uids indexed to slice number.
|
|
2615
2615
|
*/
|
|
2616
|
-
constructor(geometry: Geometry, buffer: Int8Array
|
|
2616
|
+
constructor(geometry: Geometry, buffer: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, imageUids?: string[]);
|
|
2617
2617
|
/**
|
|
2618
2618
|
* Get the image UID at a given index.
|
|
2619
2619
|
*
|
|
@@ -2654,7 +2654,7 @@ declare class Image_2 {
|
|
|
2654
2654
|
* @todo Dangerous...
|
|
2655
2655
|
* @returns {TypedArray} The data buffer of the image.
|
|
2656
2656
|
*/
|
|
2657
|
-
getBuffer(): Int8Array
|
|
2657
|
+
getBuffer(): Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array;
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Can the image values be quantified?
|
|
2660
2660
|
*
|
|
@@ -2979,7 +2979,7 @@ declare class Image_2 {
|
|
|
2979
2979
|
* @param {TypedArray} buffer The buffer to convolute.
|
|
2980
2980
|
* @param {number} startOffset The index to start at.
|
|
2981
2981
|
*/
|
|
2982
|
-
convoluteBuffer(weights: number[], buffer: Int8Array
|
|
2982
|
+
convoluteBuffer(weights: number[], buffer: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, startOffset: number): void;
|
|
2983
2983
|
/**
|
|
2984
2984
|
* Transform an image using a specific operator.
|
|
2985
2985
|
* WARNING: no size check!
|