geometrix 1.0.15 → 1.0.17

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 CHANGED
@@ -339,6 +339,7 @@ declare class Contour extends AContour {
339
339
  debugPoints: Point[];
340
340
  debugLines: Line[];
341
341
  lastPoint: Point;
342
+ lastPoint2: Point;
342
343
  imposedColor: string;
343
344
  /**
344
345
  * @param ix - the X absolute coordinate of the first point of the contour
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geometrix",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "The 2D geometry engine of the parametrix",
5
5
  "private": false,
6
6
  "repository": {
@@ -69,15 +69,15 @@
69
69
  "devDependencies": {
70
70
  "@eslint/js": "^9.10.0",
71
71
  "@types/eslint__js": "^8.42.3",
72
- "@types/node": "^22.13.10",
73
- "eslint": "^9.22.0",
72
+ "@types/node": "^22.13.11",
73
+ "eslint": "^9.23.0",
74
74
  "eslint-config-prettier": "^10.1.1",
75
75
  "npm-run-all2": "^7.0.2",
76
76
  "prettier": "^3.5.3",
77
77
  "rimraf": "^6.0.1",
78
78
  "tsup": "^8.4.0",
79
79
  "typescript": "^5.8.2",
80
- "typescript-eslint": "^8.26.0",
81
- "vitest": "^3.0.8"
80
+ "typescript-eslint": "^8.27.0",
81
+ "vitest": "^3.0.9"
82
82
  }
83
83
  }