@cornerstonejs/adapters 1.56.1 → 1.56.2
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/adapters.es.js +8 -4
- package/dist/adapters.es.js.map +1 -1
- package/package.json +5 -5
package/dist/adapters.es.js
CHANGED
|
@@ -48250,11 +48250,11 @@ let state = {
|
|
|
48250
48250
|
const {
|
|
48251
48251
|
isEqual: isEqual$1
|
|
48252
48252
|
} = utilities;
|
|
48253
|
-
function
|
|
48253
|
+
function getViewportsForAnnotation(annotation) {
|
|
48254
48254
|
const {
|
|
48255
48255
|
metadata
|
|
48256
48256
|
} = annotation;
|
|
48257
|
-
|
|
48257
|
+
return getEnabledElements().filter(enabledElement => {
|
|
48258
48258
|
if (enabledElement.FrameOfReferenceUID === metadata.FrameOfReferenceUID) {
|
|
48259
48259
|
const viewport = enabledElement.viewport;
|
|
48260
48260
|
const {
|
|
@@ -48264,8 +48264,12 @@ function getViewportForAnnotation(annotation) {
|
|
|
48264
48264
|
return isEqual$1(viewPlaneNormal, metadata.viewPlaneNormal) && (!metadata.viewUp || isEqual$1(viewUp, metadata.viewUp));
|
|
48265
48265
|
}
|
|
48266
48266
|
return;
|
|
48267
|
-
});
|
|
48268
|
-
|
|
48267
|
+
}).map(enabledElement => enabledElement.viewport);
|
|
48268
|
+
}
|
|
48269
|
+
|
|
48270
|
+
function getViewportForAnnotation(annotation) {
|
|
48271
|
+
const viewports = getViewportsForAnnotation(annotation);
|
|
48272
|
+
return viewports.length ? viewports[0] : undefined;
|
|
48269
48273
|
}
|
|
48270
48274
|
|
|
48271
48275
|
function areCoplanarContours(firstAnnotation, secondAnnotation) {
|