@cornerstonejs/tools 3.10.5 → 3.10.6
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/esm/tools/annotation/AngleTool.js +2 -1
- package/dist/esm/tools/annotation/ArrowAnnotateTool.js +2 -1
- package/dist/esm/tools/annotation/BidirectionalTool.js +2 -1
- package/dist/esm/tools/annotation/CircleROITool.js +2 -1
- package/dist/esm/tools/annotation/EllipticalROITool.js +2 -1
- package/dist/esm/tools/annotation/LengthTool.js +2 -1
- package/dist/esm/tools/annotation/ProbeTool.js +2 -1
- package/dist/esm/tools/annotation/RectangleROITool.js +2 -1
- package/dist/esm/tools/annotation/SplineROITool.js +2 -1
- package/dist/esm/tools/segmentation/SegmentBidirectionalTool.js +2 -1
- package/package.json +3 -3
|
@@ -393,6 +393,7 @@ class AngleTool extends AnnotationTool {
|
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
const { FrameOfReferenceUID, referencedImageId, viewPlaneNormal, instance, viewport, } = this.hydrateBase(AngleTool, enabledElement, points, options);
|
|
396
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
396
397
|
const annotation = {
|
|
397
398
|
annotationUID: options?.annotationUID || csUtils.uuidv4(),
|
|
398
399
|
data: {
|
|
@@ -410,7 +411,7 @@ class AngleTool extends AnnotationTool {
|
|
|
410
411
|
viewPlaneNormal,
|
|
411
412
|
FrameOfReferenceUID,
|
|
412
413
|
referencedImageId,
|
|
413
|
-
...
|
|
414
|
+
...serializableOptions,
|
|
414
415
|
},
|
|
415
416
|
};
|
|
416
417
|
addAnnotation(annotation, viewport.element);
|
|
@@ -395,6 +395,7 @@ class ArrowAnnotateTool extends AnnotationTool {
|
|
|
395
395
|
return;
|
|
396
396
|
}
|
|
397
397
|
const { FrameOfReferenceUID, referencedImageId, viewPlaneNormal, instance, viewport, } = this.hydrateBase(ArrowAnnotateTool, enabledElement, points, options);
|
|
398
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
398
399
|
const annotation = {
|
|
399
400
|
annotationUID: options?.annotationUID || csUtils.uuidv4(),
|
|
400
401
|
data: {
|
|
@@ -413,7 +414,7 @@ class ArrowAnnotateTool extends AnnotationTool {
|
|
|
413
414
|
viewPlaneNormal,
|
|
414
415
|
FrameOfReferenceUID,
|
|
415
416
|
referencedImageId,
|
|
416
|
-
...
|
|
417
|
+
...serializableOptions,
|
|
417
418
|
},
|
|
418
419
|
};
|
|
419
420
|
addAnnotation(annotation, viewport.element);
|
|
@@ -722,6 +722,7 @@ class BidirectionalTool extends AnnotationTool {
|
|
|
722
722
|
const [major0, major1] = majorAxis;
|
|
723
723
|
const [minor0, minor1] = minorAxis;
|
|
724
724
|
const points = [major0, major1, minor0, minor1];
|
|
725
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
725
726
|
const annotation = {
|
|
726
727
|
annotationUID: options?.annotationUID || utilities.uuidv4(),
|
|
727
728
|
data: {
|
|
@@ -751,7 +752,7 @@ class BidirectionalTool extends AnnotationTool {
|
|
|
751
752
|
viewPlaneNormal,
|
|
752
753
|
FrameOfReferenceUID,
|
|
753
754
|
referencedImageId,
|
|
754
|
-
...
|
|
755
|
+
...serializableOptions,
|
|
755
756
|
},
|
|
756
757
|
};
|
|
757
758
|
addAnnotation(annotation, viewport.element);
|
|
@@ -581,6 +581,7 @@ class CircleROITool extends AnnotationTool {
|
|
|
581
581
|
return;
|
|
582
582
|
}
|
|
583
583
|
const { FrameOfReferenceUID, referencedImageId, viewPlaneNormal, instance, viewport, } = this.hydrateBase(CircleROITool, enabledElement, points, options);
|
|
584
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
584
585
|
const annotation = {
|
|
585
586
|
annotationUID: options?.annotationUID || csUtils.uuidv4(),
|
|
586
587
|
data: {
|
|
@@ -611,7 +612,7 @@ class CircleROITool extends AnnotationTool {
|
|
|
611
612
|
viewPlaneNormal,
|
|
612
613
|
FrameOfReferenceUID,
|
|
613
614
|
referencedImageId,
|
|
614
|
-
...
|
|
615
|
+
...serializableOptions,
|
|
615
616
|
},
|
|
616
617
|
};
|
|
617
618
|
addAnnotation(annotation, viewport.element);
|
|
@@ -644,6 +644,7 @@ class EllipticalROITool extends AnnotationTool {
|
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
646
|
const { FrameOfReferenceUID, referencedImageId, viewPlaneNormal, instance, viewport, } = this.hydrateBase(EllipticalROITool, enabledElement, points, options);
|
|
647
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
647
648
|
const annotation = {
|
|
648
649
|
annotationUID: options?.annotationUID || csUtils.uuidv4(),
|
|
649
650
|
data: {
|
|
@@ -664,7 +665,7 @@ class EllipticalROITool extends AnnotationTool {
|
|
|
664
665
|
viewPlaneNormal,
|
|
665
666
|
FrameOfReferenceUID,
|
|
666
667
|
referencedImageId,
|
|
667
|
-
...
|
|
668
|
+
...serializableOptions,
|
|
668
669
|
},
|
|
669
670
|
};
|
|
670
671
|
addAnnotation(annotation, viewport.element);
|
|
@@ -362,6 +362,7 @@ class LengthTool extends AnnotationTool {
|
|
|
362
362
|
return;
|
|
363
363
|
}
|
|
364
364
|
const { FrameOfReferenceUID, referencedImageId, viewPlaneNormal, instance, viewport, } = this.hydrateBase(LengthTool, enabledElement, points, options);
|
|
365
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
365
366
|
const annotation = {
|
|
366
367
|
annotationUID: options?.annotationUID || utilities.uuidv4(),
|
|
367
368
|
data: {
|
|
@@ -379,7 +380,7 @@ class LengthTool extends AnnotationTool {
|
|
|
379
380
|
viewPlaneNormal,
|
|
380
381
|
FrameOfReferenceUID,
|
|
381
382
|
referencedImageId,
|
|
382
|
-
...
|
|
383
|
+
...serializableOptions,
|
|
383
384
|
},
|
|
384
385
|
};
|
|
385
386
|
addAnnotation(annotation, viewport.element);
|
|
@@ -225,6 +225,7 @@ class ProbeTool extends AnnotationTool {
|
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
227
|
const { FrameOfReferenceUID, referencedImageId, viewPlaneNormal, viewUp, instance, viewport, } = this.hydrateBase(ProbeTool, enabledElement, points, options);
|
|
228
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
228
229
|
const annotation = {
|
|
229
230
|
annotationUID: options?.annotationUID || csUtils.uuidv4(),
|
|
230
231
|
data: {
|
|
@@ -242,7 +243,7 @@ class ProbeTool extends AnnotationTool {
|
|
|
242
243
|
viewPlaneNormal,
|
|
243
244
|
FrameOfReferenceUID,
|
|
244
245
|
referencedImageId,
|
|
245
|
-
...
|
|
246
|
+
...serializableOptions,
|
|
246
247
|
},
|
|
247
248
|
};
|
|
248
249
|
addAnnotation(annotation, viewport.element);
|
|
@@ -530,6 +530,7 @@ class RectangleROITool extends AnnotationTool {
|
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
532
532
|
const { FrameOfReferenceUID, referencedImageId, viewPlaneNormal, instance, viewport, } = this.hydrateBase(RectangleROITool, enabledElement, points, options);
|
|
533
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
533
534
|
const annotation = {
|
|
534
535
|
annotationUID: options?.annotationUID || csUtils.uuidv4(),
|
|
535
536
|
data: {
|
|
@@ -550,7 +551,7 @@ class RectangleROITool extends AnnotationTool {
|
|
|
550
551
|
viewPlaneNormal,
|
|
551
552
|
FrameOfReferenceUID,
|
|
552
553
|
referencedImageId,
|
|
553
|
-
...
|
|
554
|
+
...serializableOptions,
|
|
554
555
|
},
|
|
555
556
|
};
|
|
556
557
|
addAnnotation(annotation, viewport.element);
|
|
@@ -735,6 +735,7 @@ class SplineROITool extends ContourSegmentationBaseTool {
|
|
|
735
735
|
const splineConfig = instance._getSplineConfig(splineType);
|
|
736
736
|
const SplineClass = splineConfig.Class;
|
|
737
737
|
const splineInstance = new SplineClass();
|
|
738
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
738
739
|
const annotation = {
|
|
739
740
|
annotationUID: options?.annotationUID || utilities.uuidv4(),
|
|
740
741
|
data: {
|
|
@@ -761,7 +762,7 @@ class SplineROITool extends ContourSegmentationBaseTool {
|
|
|
761
762
|
viewPlaneNormal,
|
|
762
763
|
FrameOfReferenceUID,
|
|
763
764
|
referencedImageId,
|
|
764
|
-
...
|
|
765
|
+
...serializableOptions,
|
|
765
766
|
},
|
|
766
767
|
};
|
|
767
768
|
addAnnotation(annotation, viewport.element);
|
|
@@ -219,6 +219,7 @@ class SegmentBidirectionalTool extends BidirectionalTool {
|
|
|
219
219
|
const [major0, major1] = majorAxis;
|
|
220
220
|
const [minor0, minor1] = minorAxis;
|
|
221
221
|
const points = [major0, major1, minor0, minor1];
|
|
222
|
+
const { toolInstance, ...serializableOptions } = options;
|
|
222
223
|
const annotation = {
|
|
223
224
|
annotationUID: options?.annotationUID || utilities.uuidv4(),
|
|
224
225
|
data: {
|
|
@@ -250,7 +251,7 @@ class SegmentBidirectionalTool extends BidirectionalTool {
|
|
|
250
251
|
viewPlaneNormal,
|
|
251
252
|
FrameOfReferenceUID,
|
|
252
253
|
referencedImageId,
|
|
253
|
-
...
|
|
254
|
+
...serializableOptions,
|
|
254
255
|
},
|
|
255
256
|
};
|
|
256
257
|
addAnnotation(annotation, viewport.element);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.6",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"canvas": "^3.1.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@cornerstonejs/core": "^3.10.
|
|
106
|
+
"@cornerstonejs/core": "^3.10.6",
|
|
107
107
|
"@kitware/vtk.js": "32.12.1",
|
|
108
108
|
"@types/d3-array": "^3.0.4",
|
|
109
109
|
"@types/d3-interpolate": "^3.0.1",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"type": "individual",
|
|
123
123
|
"url": "https://ohif.org/donate"
|
|
124
124
|
},
|
|
125
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "99320a5e410c7fae8ec315763798ebb3a39624dc"
|
|
126
126
|
}
|