@cornerstonejs/adapters 1.63.1 → 1.63.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 +3 -0
- package/dist/adapters.es.js.map +1 -1
- package/package.json +5 -5
package/dist/adapters.es.js
CHANGED
|
@@ -49615,6 +49615,9 @@ function distanceToPointSquared(p1, p2) {
|
|
|
49615
49615
|
}
|
|
49616
49616
|
|
|
49617
49617
|
function getSignedArea(polyline) {
|
|
49618
|
+
if (polyline.length < 3) {
|
|
49619
|
+
return 0;
|
|
49620
|
+
}
|
|
49618
49621
|
const refPoint = polyline[0];
|
|
49619
49622
|
let area = 0;
|
|
49620
49623
|
for (let i = 0, len = polyline.length; i < len; i++) {
|