Skip to content

Commit cb86b25

Browse files
feat: cobb angle with cstools (#576)
* feat: cobb angle first cstools implementation * fix: cobb angle segments and usability * fix: last fixes cobb angle tool * fix examples * fix: version
1 parent a5e1581 commit cb86b25

6 files changed

Lines changed: 758 additions & 3 deletions

File tree

docs/examples/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ <h5 class="modal-title" id="codeModalLabel">JavaScript Code</h5>
632632
larvitar.renderImage(serie, "viewer").then(() => {
633633
larvitar.logger.debug("Image has been rendered");
634634
larvitar.addDefaultTools("viewer");
635+
635636
hideSpinner(); // Hide the spinner when all files are processed
636637
});
637638
}

docs/examples/defaultTools.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ <h5 class="modal-title" id="codeModalLabel">JavaScript Code</h5>
373373
info.style.display = "block";
374374
info.innerHTML =
375375
"Step 1 — Draw Functional Tibial Axis (FTA)</br>Step 2 — Draw Medial Tibial Plateau Line (MTP)<br/>Reference Line (REF) automatically calculated (normal to FTA) </br> <b>Tibial Plateau Angle displayed</b>";
376+
} else if (tool === "CobbAngle") {
377+
info.style.display = "block";
378+
info.innerHTML =
379+
"Draw two lines along the endplates of the vertebrae or anatomical landmarks.</br> The tool calculates the intersecting angle between them and displays the Cobb angle measurement. <b>Use it to quantify spinal curvature.</b>";
376380
} else if (tool === "Grid") {
377381
info.style.display = "block";
378382
info.innerHTML =

0 commit comments

Comments
 (0)