@cornerstonejs/tools 0.65.0 → 0.65.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "0.65.0",
3
+ "version": "0.65.1",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -52,5 +52,5 @@
52
52
  "type": "individual",
53
53
  "url": "https://ohif.org/donate"
54
54
  },
55
- "gitHead": "06ba42597fb76be663ec565463e8ef4b2ac968c8"
55
+ "gitHead": "910490a4210a0ed8574153f3e5b1eac4d7236060"
56
56
  }
@@ -88,13 +88,13 @@ function addAnnotation(
88
88
  // annotation added event for that element.
89
89
  if (annotationGroupSelector instanceof HTMLDivElement) {
90
90
  triggerAnnotationAddedForElement(annotation, annotationGroupSelector);
91
+ } else {
92
+ // if no element is provided, render all viewports that have the
93
+ // same frame of reference.
94
+ // Todo: we should do something else here for other types of annotation managers.
95
+ triggerAnnotationAddedForFOR(annotation);
91
96
  }
92
97
 
93
- // if no element is provided, render all viewports that have the
94
- // same frame of reference.
95
- // Todo: we should do something else here for other types of annotation managers.
96
- triggerAnnotationAddedForFOR(annotation);
97
-
98
98
  return annotation.annotationUID;
99
99
  }
100
100