@cornerstonejs/tools 2.11.2 → 2.11.3
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,5 +1,6 @@
|
|
|
1
|
+
import type { Types } from '@cornerstonejs/core';
|
|
1
2
|
export declare function getLabelmapActorUID(viewportId: string, segmentationId: string): string | undefined;
|
|
2
|
-
export declare function getLabelmapActorEntry(viewportId: string, segmentationId: string):
|
|
3
|
-
export declare function getSurfaceActorEntry(viewportId: string, segmentationId: string, segmentIndex?: number | string):
|
|
3
|
+
export declare function getLabelmapActorEntry(viewportId: string, segmentationId: string): Types.ActorEntry;
|
|
4
|
+
export declare function getSurfaceActorEntry(viewportId: string, segmentationId: string, segmentIndex?: number | string): Types.ActorEntry;
|
|
4
5
|
export declare function getSurfaceActorUID(viewportId: string, segmentationId: string, segmentIndex?: number | string): string | undefined;
|
|
5
6
|
export declare function getSurfaceRepresentationUID(segmentationId: string, segmentIndex?: number | string): string;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Types } from '@cornerstonejs/core';
|
|
2
|
+
declare function extractWindowLevelRegionToolData(viewport: Types.IVolumeViewport | Types.IStackViewport): {
|
|
3
|
+
scalarData: Types.PixelDataTypedArray;
|
|
3
4
|
minPixelValue: number;
|
|
4
5
|
maxPixelValue: number;
|
|
5
6
|
width: number;
|
|
6
7
|
height: number;
|
|
7
8
|
rows: number;
|
|
8
9
|
columns: number;
|
|
9
|
-
} | {
|
|
10
|
-
scalarData: any;
|
|
11
|
-
width: any;
|
|
12
|
-
height: any;
|
|
13
|
-
minPixelValue: number;
|
|
14
|
-
maxPixelValue: number;
|
|
15
|
-
rows: any;
|
|
16
|
-
columns: any;
|
|
17
|
-
color: any;
|
|
18
10
|
};
|
|
19
11
|
export { extractWindowLevelRegionToolData };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { utilities as csUtils, StackViewport, VolumeViewport, } from '@cornerstonejs/core';
|
|
2
2
|
function extractWindowLevelRegionToolData(viewport) {
|
|
3
3
|
if (viewport instanceof VolumeViewport) {
|
|
4
4
|
return extractImageDataVolume(viewport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.3",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"canvas": "^2.11.2"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@cornerstonejs/core": "^2.11.
|
|
107
|
+
"@cornerstonejs/core": "^2.11.3",
|
|
108
108
|
"@kitware/vtk.js": "32.1.1",
|
|
109
109
|
"@types/d3-array": "^3.0.4",
|
|
110
110
|
"@types/d3-interpolate": "^3.0.1",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"type": "individual",
|
|
124
124
|
"url": "https://ohif.org/donate"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "844eeb327029973b73d6bf26489635ea0803d2fd"
|
|
127
127
|
}
|