dwv 0.33.0-beta.8 → 0.33.0-beta.9
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 +76 -0
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/dwv.d.ts
CHANGED
|
@@ -681,6 +681,10 @@ export declare class DataElement {
|
|
|
681
681
|
items: any[];
|
|
682
682
|
}
|
|
683
683
|
|
|
684
|
+
declare type DataElements = {
|
|
685
|
+
[x: string]: DataElement;
|
|
686
|
+
};
|
|
687
|
+
|
|
684
688
|
/**
|
|
685
689
|
* Decoder scripts to be passed to web workers for image decoding.
|
|
686
690
|
*/
|
|
@@ -1375,6 +1379,13 @@ export declare class Geometry {
|
|
|
1375
1379
|
#private;
|
|
1376
1380
|
}
|
|
1377
1381
|
|
|
1382
|
+
/**
|
|
1383
|
+
* Get the default DICOM seg tags as an object.
|
|
1384
|
+
*
|
|
1385
|
+
* @returns {object} The default tags.
|
|
1386
|
+
*/
|
|
1387
|
+
export declare function getDefaultDicomSegJson(): object;
|
|
1388
|
+
|
|
1378
1389
|
/**
|
|
1379
1390
|
* List of DICOM data elements indexed via a 8 character string formed from
|
|
1380
1391
|
* the group and element numbers.
|
|
@@ -1404,6 +1415,26 @@ export declare function getElementsFromJSONTags(jsonTags: {
|
|
|
1404
1415
|
[x: string]: DataElement;
|
|
1405
1416
|
};
|
|
1406
1417
|
|
|
1418
|
+
/**
|
|
1419
|
+
* Get the indices that form a ellpise.
|
|
1420
|
+
*
|
|
1421
|
+
* @param {Index} center The ellipse center.
|
|
1422
|
+
* @param {Array} radius The 2 ellipse radiuses.
|
|
1423
|
+
* @param {Array} dir The 2 ellipse directions.
|
|
1424
|
+
* @returns {Array} The indices of the ellipse.
|
|
1425
|
+
*/
|
|
1426
|
+
export declare function getEllipseIndices(center: Index, radius: any[], dir: any[]): any[];
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Get the layer details from a mouse event.
|
|
1430
|
+
*
|
|
1431
|
+
* @param {object} event The event to get the layer div id from. Expecting
|
|
1432
|
+
* an event origininating from a canvas inside a layer HTML div
|
|
1433
|
+
* with the 'layer' class and id generated with `getLayerDivId`.
|
|
1434
|
+
* @returns {object} The layer details as {groupDivId, layerId}.
|
|
1435
|
+
*/
|
|
1436
|
+
export declare function getLayerDetailsFromEvent(event: object): object;
|
|
1437
|
+
|
|
1407
1438
|
/**
|
|
1408
1439
|
* Get the name of an image orientation patient.
|
|
1409
1440
|
*
|
|
@@ -1941,6 +1972,15 @@ export declare class Index {
|
|
|
1941
1972
|
#private;
|
|
1942
1973
|
}
|
|
1943
1974
|
|
|
1975
|
+
/**
|
|
1976
|
+
* CIE LAB value (L: [0, 100], a: [-128, 127], b: [-128, 127]) to
|
|
1977
|
+
* unsigned int CIE LAB ([0, 65535]).
|
|
1978
|
+
*
|
|
1979
|
+
* @param {object} triplet CIE XYZ triplet as {x,y,z} with CIE LAB range.
|
|
1980
|
+
* @returns {object} CIE LAB triplet as {l,a,b} with unsigned range.
|
|
1981
|
+
*/
|
|
1982
|
+
export declare function labToUintLab(triplet: object): object;
|
|
1983
|
+
|
|
1944
1984
|
/**
|
|
1945
1985
|
* Layer group.
|
|
1946
1986
|
*
|
|
@@ -2225,6 +2265,23 @@ export declare const luts: {
|
|
|
2225
2265
|
[x: string]: ColourMap;
|
|
2226
2266
|
};
|
|
2227
2267
|
|
|
2268
|
+
/**
|
|
2269
|
+
* Mask {@link Image} factory.
|
|
2270
|
+
*/
|
|
2271
|
+
export declare class MaskFactory {
|
|
2272
|
+
checkElements(_dicomElements: any): void;
|
|
2273
|
+
/**
|
|
2274
|
+
* Get an {@link Image} object from the read DICOM file.
|
|
2275
|
+
*
|
|
2276
|
+
* @param {DataElements} dataElements The DICOM tags.
|
|
2277
|
+
* @param {Uint8Array | Int8Array |
|
|
2278
|
+
* Uint16Array | Int16Array |
|
|
2279
|
+
* Uint32Array | Int32Array} pixelBuffer The pixel buffer.
|
|
2280
|
+
* @returns {Image} A new Image.
|
|
2281
|
+
*/
|
|
2282
|
+
create(dataElements: DataElements, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array): Image_2;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2228
2285
|
/**
|
|
2229
2286
|
* Immutable 3x3 Matrix.
|
|
2230
2287
|
*/
|
|
@@ -2834,6 +2891,14 @@ export declare class Spacing {
|
|
|
2834
2891
|
#private;
|
|
2835
2892
|
}
|
|
2836
2893
|
|
|
2894
|
+
/**
|
|
2895
|
+
* Convert sRGB to CIE LAB (standard illuminant D65).
|
|
2896
|
+
*
|
|
2897
|
+
* @param {object} triplet sRGB triplet as {r,g,b}.
|
|
2898
|
+
* @returns {object} CIE LAB triplet as {l,a,b}.
|
|
2899
|
+
*/
|
|
2900
|
+
export declare function srgbToCielab(triplet: object): object;
|
|
2901
|
+
|
|
2837
2902
|
/**
|
|
2838
2903
|
* Immutable tag.
|
|
2839
2904
|
*/
|
|
@@ -3013,6 +3078,17 @@ export declare class ToolConfig {
|
|
|
3013
3078
|
options: string[] | undefined;
|
|
3014
3079
|
}
|
|
3015
3080
|
|
|
3081
|
+
export declare namespace toolList {
|
|
3082
|
+
{ WindowLevel };
|
|
3083
|
+
{ Scroll };
|
|
3084
|
+
{ ZoomAndPan };
|
|
3085
|
+
{ Opacity };
|
|
3086
|
+
{ Draw };
|
|
3087
|
+
{ Filter };
|
|
3088
|
+
{ Floodfill };
|
|
3089
|
+
{ Livewire };
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3016
3092
|
/**
|
|
3017
3093
|
* Immutable 3D vector.
|
|
3018
3094
|
*/
|