geometrix 1.0.15 → 1.0.16
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/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1724,6 +1724,7 @@ var Contour = class _Contour extends AContour {
|
|
|
1724
1724
|
debugPoints;
|
|
1725
1725
|
debugLines;
|
|
1726
1726
|
lastPoint;
|
|
1727
|
+
lastPoint2;
|
|
1727
1728
|
imposedColor;
|
|
1728
1729
|
/**
|
|
1729
1730
|
* @param ix - the X absolute coordinate of the first point of the contour
|
|
@@ -1737,10 +1738,12 @@ var Contour = class _Contour extends AContour {
|
|
|
1737
1738
|
this.debugPoints = [];
|
|
1738
1739
|
this.debugLines = [];
|
|
1739
1740
|
this.lastPoint = point(ix, iy);
|
|
1741
|
+
this.lastPoint2 = point(ix, iy);
|
|
1740
1742
|
this.imposedColor = icolor;
|
|
1741
1743
|
}
|
|
1742
1744
|
/** @internal */
|
|
1743
1745
|
setLastPoint(ix, iy) {
|
|
1746
|
+
this.lastPoint2 = this.lastPoint;
|
|
1744
1747
|
this.lastPoint = point(ix, iy);
|
|
1745
1748
|
}
|
|
1746
1749
|
/** @internal */
|
|
@@ -1966,6 +1969,8 @@ var Contour = class _Contour extends AContour {
|
|
|
1966
1969
|
this.addPointA(ax, ay).addSegStroke();
|
|
1967
1970
|
} else if (secondNfirst) {
|
|
1968
1971
|
const preSeg = this.segments[this.segments.length - 1];
|
|
1972
|
+
const lastP = this.lastPoint2;
|
|
1973
|
+
this.setLastPoint(lastP.cx, lastP.cy);
|
|
1969
1974
|
if (preSeg.sType === 0 /* eStroke */) {
|
|
1970
1975
|
this.segments.pop();
|
|
1971
1976
|
this.addPointA(ax, ay).addSegStroke();
|