larvitar 2.0.15 → 2.1.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/README.md +2 -2
- package/dist/imaging/imageStore.d.ts +2 -2
- package/dist/imaging/tools/custom/contourTool.d.ts +5 -5
- package/dist/imaging/tools/custom/customMouseWheelScrollTool.d.ts +30 -0
- package/dist/index.d.ts +0 -1
- package/dist/larvitar.js +365 -117
- package/dist/larvitar.js.map +1 -1
- package/imaging/tools/types.d.ts +1 -0
- package/imaging/types.d.ts +3 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
## Dicom Image Toolkit for CornerstoneJS
|
|
10
10
|
|
|
11
|
-
### Current version: 2.0
|
|
11
|
+
### Current version: 2.1.0
|
|
12
12
|
|
|
13
|
-
### Latest Published Release: 2.0
|
|
13
|
+
### Latest Published Release: 2.1.0
|
|
14
14
|
|
|
15
15
|
This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.
|
|
16
16
|
|
|
@@ -25,10 +25,10 @@ type SetPayload = ["errorLog" | "leftActiveTool" | "rightActiveTool", string] |
|
|
|
25
25
|
string,
|
|
26
26
|
boolean
|
|
27
27
|
] | [
|
|
28
|
-
("progress" | "loading" | "minPixelValue" | "maxPixelValue" | "minSliceId" | "maxSliceId" | "minTimeId" | "maxTimeId" | "rotation" | "scale" | "sliceId" | "timeId" | "thickness"),
|
|
28
|
+
("progress" | "loading" | "minPixelValue" | "maxPixelValue" | "minSliceId" | "maxSliceId" | "minTimeId" | "maxTimeId" | "rotation" | "scale" | "sliceId" | "timeId" | "thickness" | "numberOfFrames" | "numberOfTemporalPositions"),
|
|
29
29
|
string,
|
|
30
30
|
number
|
|
31
|
-
] | ["timestamp", string, number | undefined] | ["pendingSliceId", string, number | undefined] | ["timestamps" | "timeIds", string, number[]] | [
|
|
31
|
+
] | ["timestamp", string, number | undefined] | ["seriesUID", string, string | undefined] | ["pendingSliceId", string, number | undefined] | ["timestamps" | "timeIds", string, number[]] | [
|
|
32
32
|
"contrast" | "dimensions" | "spacing" | "translation",
|
|
33
33
|
string,
|
|
34
34
|
number,
|
|
@@ -380,15 +380,15 @@ export class ContoursTool {
|
|
|
380
380
|
*/
|
|
381
381
|
fireModifiedEvent(element: any, measurementData: any): void;
|
|
382
382
|
fireCompletedEvent(element: any, measurementData: any): void;
|
|
383
|
-
set spacing(
|
|
383
|
+
set spacing(arg: any);
|
|
384
384
|
get spacing(): any;
|
|
385
|
-
set activeHandleRadius(
|
|
385
|
+
set activeHandleRadius(arg: any);
|
|
386
386
|
get activeHandleRadius(): any;
|
|
387
|
-
set completeHandleRadius(
|
|
387
|
+
set completeHandleRadius(arg: any);
|
|
388
388
|
get completeHandleRadius(): any;
|
|
389
|
-
set alwaysShowHandles(
|
|
389
|
+
set alwaysShowHandles(arg: any);
|
|
390
390
|
get alwaysShowHandles(): any;
|
|
391
|
-
set invalidColor(
|
|
391
|
+
set invalidColor(arg: any);
|
|
392
392
|
get invalidColor(): any;
|
|
393
393
|
/**
|
|
394
394
|
* Ends the active drawing loop and removes the polygon.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** @module tools/custom/customMouseWheelScrollTool
|
|
2
|
+
* @desc This file provides functionalities for
|
|
3
|
+
* custom DICOM Loader
|
|
4
|
+
*/
|
|
5
|
+
import { Image } from "cornerstone-core";
|
|
6
|
+
declare const BaseTool: any;
|
|
7
|
+
type StackData = {
|
|
8
|
+
currentImageIdIndex: number;
|
|
9
|
+
imageIds: string[];
|
|
10
|
+
pending: any[];
|
|
11
|
+
};
|
|
12
|
+
type ToolEventDetail = {
|
|
13
|
+
element: HTMLElement;
|
|
14
|
+
image: Image;
|
|
15
|
+
direction: number;
|
|
16
|
+
};
|
|
17
|
+
export default class CustomMouseWheelScrollTool extends BaseTool {
|
|
18
|
+
currentMode: string;
|
|
19
|
+
framesNumber: number;
|
|
20
|
+
slicesnumber: number;
|
|
21
|
+
is4D: boolean;
|
|
22
|
+
isMultiframe: boolean;
|
|
23
|
+
constructor(props?: {});
|
|
24
|
+
verify4D(): void;
|
|
25
|
+
handleToggle(newcurrentMode: string): void;
|
|
26
|
+
toggleScrollMode(element: HTMLElement): void;
|
|
27
|
+
mouseWheelCallback(evt?: CustomEvent<ToolEventDetail>): void;
|
|
28
|
+
scrollWithoutSkipping(stackData: StackData, pendingEvent: any, element: HTMLElement): void;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
package/dist/index.d.ts
CHANGED