@@ -653,7 +653,7 @@ <h1 class="page-title">Source: annotation.js</h1>
653653 const offset = graphicIndex[annotationIndex] - 1
654654 let length
655655 if (annotationIndex < (numberOfAnnotations - 1)) {
656- length = offset - graphicIndex[annotationIndex + 1]
656+ length = graphicIndex[annotationIndex + 1] - offset
657657 } else {
658658 length = graphicData.length
659659 }
@@ -663,10 +663,11 @@ <h1 class="page-title">Source: annotation.js</h1>
663663 for (let j = offset; j < offset + length; j++) {
664664 const p0 = _getCoordinates(graphicData, j, commonZCoordinate)
665665 let p1
666- if (j === (offset + length - numberOfAnnotations )) {
666+ if (j === (offset + length - 1 )) {
667667 p1 = _getCoordinates(graphicData, offset, commonZCoordinate)
668668 } else {
669- p1 = _getCoordinates(graphicData, j + numberOfAnnotations, commonZCoordinate)
669+ const nextOffset = j + coordinateDimensionality
670+ p1 = _getCoordinates(graphicData, nextOffset, commonZCoordinate)
670671 }
671672 const a = p0[0] * p1[1] - p1[0] * p0[1]
672673 area += a
@@ -772,7 +773,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
772773< br class ="clear ">
773774
774775< footer >
775- Documentation generated by < a href ="https://github.com/jsdoc/jsdoc "> JSDoc 3.6.10</ a > on Wed Jul 06 2022 14:12:52 GMT-0400 (Eastern Daylight Time)
776+ Documentation generated by < a href ="https://github.com/jsdoc/jsdoc "> JSDoc 3.6.10</ a > on Fri Aug 12 2022 18:10:00 GMT-0400 (Eastern Daylight Time)
776777</ footer >
777778
778779< script > prettyPrint ( ) ; </ script >
0 commit comments