Skip to content

Commit

Permalink
Fix erroneous point in dcmjs (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesAPetts committed May 23, 2022
1 parent eed2170 commit d3d20c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/adapters/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dcmjs",
"version": "0.23.0",
"version": "0.24.0",
"description": "Javascript implementation of DICOM manipulation",
"main": "build/dcmjs.js",
"module": "build/dcmjs.es.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ class PlanarFreehandROI {

if (!isOpenContour) {
// Need to repeat the first point at the end of to have an explicitly closed contour.
const lastPoint = points[points.length - 1];
const firstPoint = points[0];

// Explicitly expand to avoid ciruclar references.
points.push([lastPoint[0], lastPoint[1]]);
points.push([firstPoint[0], firstPoint[1]]);
}

const area = 0; // TODO -> The tool doesn't have these stats yet.
Expand Down

0 comments on commit d3d20c1

Please sign in to comment.