@cornerstonejs/tools 3.7.9 → 3.7.10
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.
|
@@ -9,6 +9,7 @@ import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters'
|
|
|
9
9
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
10
10
|
import { triggerAnnotationCompleted, triggerAnnotationModified, } from '../../stateManagement/annotation/helpers/state';
|
|
11
11
|
import { resetElementCursor, hideElementCursor, } from '../../cursors/elementCursor';
|
|
12
|
+
import { isAnnotationVisible } from '../../stateManagement/annotation/annotationVisibility';
|
|
12
13
|
class LabelTool extends AnnotationTool {
|
|
13
14
|
static { this.toolName = 'Label'; }
|
|
14
15
|
constructor(toolProps = {}, defaultToolProps = {
|
|
@@ -262,6 +263,9 @@ class LabelTool extends AnnotationTool {
|
|
|
262
263
|
console.warn('Rendering Engine has been destroyed');
|
|
263
264
|
return renderStatus;
|
|
264
265
|
}
|
|
266
|
+
if (!isAnnotationVisible(annotationUID)) {
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
265
269
|
if (!data.text) {
|
|
266
270
|
continue;
|
|
267
271
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.10",
|
|
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.7.
|
|
106
|
+
"@cornerstonejs/core": "^3.7.10",
|
|
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": "8068b8b1955139dd8fe9a3b4269a38f029227796"
|
|
126
126
|
}
|