From d66a90591f45d791aeb035736ad40c297650b26d Mon Sep 17 00:00:00 2001 From: Joeycho Date: Thu, 31 Oct 2024 15:45:17 +0100 Subject: [PATCH] fix(arrow-adapter): save 2nd point for arrow annotation (#1450) --- .../adapters/src/adapters/Cornerstone3D/ArrowAnnotate.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/adapters/src/adapters/Cornerstone3D/ArrowAnnotate.js b/packages/adapters/src/adapters/Cornerstone3D/ArrowAnnotate.js index c7cf55362..7514a181d 100644 --- a/packages/adapters/src/adapters/Cornerstone3D/ArrowAnnotate.js +++ b/packages/adapters/src/adapters/Cornerstone3D/ArrowAnnotate.js @@ -98,20 +98,28 @@ class ArrowAnnotate { const { points, arrowFirst } = data.handles; let point; + let point2; if (arrowFirst) { point = points[0]; + point2 = points[1]; } else { point = points[1]; + point2 = points[0]; } const pointImage = worldToImageCoords(referencedImageId, point); + const pointImage2 = worldToImageCoords(referencedImageId, point2); const TID300RepresentationArguments = { points: [ { x: pointImage[0], y: pointImage[1] + }, + { + x: pointImage2[0], + y: pointImage2[1] } ], trackingIdentifierTextValue,