geometrix 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -2280,7 +2280,8 @@ var Contour = class _Contour extends AContour {
2280
2280
  pt2 = pt3;
2281
2281
  pt3 = pt;
2282
2282
  const extrem = theMax ? pt2.cx > extremX - epsilon : pt2.cx < extremX + epsilon;
2283
- if (extrem) {
2283
+ const lastExtrem = theMax ? pt1.cx > extremX - epsilon : pt1.cx < extremX + epsilon;
2284
+ if (extrem && !lastExtrem) {
2284
2285
  const vx = pt1.cx - pt2.cx;
2285
2286
  const vy = pt1.cy - pt2.cy;
2286
2287
  const ux = pt3.cx - pt2.cx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geometrix",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
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.5",
72
+ "@types/node": "^22.13.8",
73
73
  "eslint": "^9.21.0",
74
- "eslint-config-prettier": "^10.0.1",
74
+ "eslint-config-prettier": "^10.0.2",
75
75
  "npm-run-all2": "^7.0.2",
76
76
  "prettier": "^3.5.2",
77
77
  "rimraf": "^6.0.1",
78
- "tsup": "^8.3.6",
78
+ "tsup": "^8.4.0",
79
79
  "typescript": "^5.7.3",
80
- "typescript-eslint": "^8.24.1",
81
- "vitest": "^3.0.6"
80
+ "typescript-eslint": "^8.25.0",
81
+ "vitest": "^3.0.7"
82
82
  }
83
83
  }