dwv 0.35.0-beta.25 → 0.35.0-beta.27
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 +16 -12
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +4 -4
package/dist/dwv.d.ts
CHANGED
|
@@ -96,10 +96,6 @@ export declare class Annotation {
|
|
|
96
96
|
* @type {Point3D[]|undefined}
|
|
97
97
|
*/
|
|
98
98
|
planePoints: Point3D[] | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* Set the annotation id and uid.
|
|
101
|
-
*/
|
|
102
|
-
setIds(): void;
|
|
103
99
|
/**
|
|
104
100
|
* Get the concepts ids of the annotation meta data.
|
|
105
101
|
*
|
|
@@ -189,9 +185,9 @@ export declare class Annotation {
|
|
|
189
185
|
/**
|
|
190
186
|
* Get the math shape associated draw factory.
|
|
191
187
|
*
|
|
192
|
-
* @returns {object} The factory.
|
|
188
|
+
* @returns {object|undefined} The factory.
|
|
193
189
|
*/
|
|
194
|
-
getFactory(): object;
|
|
190
|
+
getFactory(): object | undefined;
|
|
195
191
|
#private;
|
|
196
192
|
}
|
|
197
193
|
|
|
@@ -251,8 +247,9 @@ export declare class AnnotationGroup {
|
|
|
251
247
|
*
|
|
252
248
|
* @param {Annotation} annotation The annotation to update.
|
|
253
249
|
* @param {string[]} [propKeys] Optional properties that got updated.
|
|
250
|
+
* @param {boolean} [silent] Whether to send a update event or not.
|
|
254
251
|
*/
|
|
255
|
-
update(annotation: Annotation, propKeys?: string[]): void;
|
|
252
|
+
update(annotation: Annotation, propKeys?: string[], silent?: boolean): void;
|
|
256
253
|
/**
|
|
257
254
|
* Remove an annotation.
|
|
258
255
|
*
|
|
@@ -1703,8 +1700,9 @@ export declare class DrawController {
|
|
|
1703
1700
|
*
|
|
1704
1701
|
* @param {Annotation} annotation The annotation to update.
|
|
1705
1702
|
* @param {string[]} [propKeys] Optional properties that got updated.
|
|
1703
|
+
* @param {boolean} [silent] Whether to send a update event or not.
|
|
1706
1704
|
*/
|
|
1707
|
-
updateAnnotation(annotation: Annotation, propKeys?: string[]): void;
|
|
1705
|
+
updateAnnotation(annotation: Annotation, propKeys?: string[], silent?: boolean): void;
|
|
1708
1706
|
/**
|
|
1709
1707
|
* Remove an anotation for the list.
|
|
1710
1708
|
*
|
|
@@ -2568,7 +2566,7 @@ export declare namespace i18n {
|
|
|
2568
2566
|
* @param {string} key The key to the text entry.
|
|
2569
2567
|
* @returns {string|undefined} The translated text.
|
|
2570
2568
|
*/
|
|
2571
|
-
export function t(key: string): string;
|
|
2569
|
+
export function t(key: string): string | undefined;
|
|
2572
2570
|
}
|
|
2573
2571
|
|
|
2574
2572
|
/**
|
|
@@ -2615,7 +2613,7 @@ declare class Image_2 {
|
|
|
2615
2613
|
* @param {TypedArray} buffer The image data as a one dimensional buffer.
|
|
2616
2614
|
* @param {string[]} [imageUids] An array of Uids indexed to slice number.
|
|
2617
2615
|
*/
|
|
2618
|
-
constructor(geometry: Geometry, buffer: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array
|
|
2616
|
+
constructor(geometry: Geometry, buffer: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, imageUids?: string[]);
|
|
2619
2617
|
/**
|
|
2620
2618
|
* Get the image UID at a given index.
|
|
2621
2619
|
*
|
|
@@ -2656,7 +2654,7 @@ declare class Image_2 {
|
|
|
2656
2654
|
* @todo Dangerous...
|
|
2657
2655
|
* @returns {TypedArray} The data buffer of the image.
|
|
2658
2656
|
*/
|
|
2659
|
-
getBuffer(): Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array
|
|
2657
|
+
getBuffer(): Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>;
|
|
2660
2658
|
/**
|
|
2661
2659
|
* Can the image values be quantified?
|
|
2662
2660
|
*
|
|
@@ -2981,7 +2979,7 @@ declare class Image_2 {
|
|
|
2981
2979
|
* @param {TypedArray} buffer The buffer to convolute.
|
|
2982
2980
|
* @param {number} startOffset The index to start at.
|
|
2983
2981
|
*/
|
|
2984
|
-
convoluteBuffer(weights: number[], buffer: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array
|
|
2982
|
+
convoluteBuffer(weights: number[], buffer: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, startOffset: number): void;
|
|
2985
2983
|
/**
|
|
2986
2984
|
* Transform an image using a specific operator.
|
|
2987
2985
|
* WARNING: no size check!
|
|
@@ -5849,6 +5847,12 @@ export declare class ViewController {
|
|
|
5849
5847
|
* @returns {string} The unit.
|
|
5850
5848
|
*/
|
|
5851
5849
|
getPixelUnit(): string;
|
|
5850
|
+
/**
|
|
5851
|
+
* Get the image length unit.
|
|
5852
|
+
*
|
|
5853
|
+
* @returns {string} The unit.
|
|
5854
|
+
*/
|
|
5855
|
+
getLengthUnit(): string;
|
|
5852
5856
|
/**
|
|
5853
5857
|
* Get some values from the associated image in a region.
|
|
5854
5858
|
*
|