geometrix 0.5.12 → 0.5.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.
package/dist/index.d.ts CHANGED
@@ -502,4 +502,12 @@ interface tParamValInFile {
502
502
  declare function createParamFile(lastModif: string, idparams: tParamVal, comment: string): string;
503
503
  declare function parseParamFile(fContentStr: string): [tParamValInFile, string];
504
504
 
505
- export { DesignParam, EBVolume, EExtrude, EFormat, Figure, PType, Point, ShapePoint, aBFromLaLbAa, aCFromLaLbLc, adjustCenter, adjustInit, adjustRect, adjustScale, adjustTranslate, adjustZero, bisector, canvas2point, canvasTranslatePolar, checkGeom, circleCenter, colors, contour, contourCircle, copyLayers, createParamFile, degToRad, designParam, ffix, figure, fileBin, fileBinContent, fileMime, fileSuffix, fileTextContent, fround, initGeom, initLayers, lbFromLaAaAb, lcFromLaLbAc, line, linePP, mergeFaces, oneDesignParam, pCheckbox, pDropdown, pNumber, paramListToVal, parseParamFile, point, point2canvas, prefixLog, radToDeg, radius2canvas, roundZero, type tAllLink, type tAllPageDef, type tBVolume, type tCanvasAdjust, type tContour, type tDesignParamList, type tExtrude, type tFaces, type tGeom, type tGeomFunc, type tInherit, type tLayers, type tPageDef, type tParamDef, type tParamVal, type tParamValInFile, type tPosiOrien, type tSubDesign, type tSubInst, type tVolume, vector, withinPiPi, withinZero2Pi };
505
+ type tDependencies = Record<string, string>;
506
+ interface tPackage {
507
+ name: string;
508
+ version: string;
509
+ dependencies: tDependencies;
510
+ }
511
+ declare function version_details(appPackage: tPackage): string[];
512
+
513
+ export { DesignParam, EBVolume, EExtrude, EFormat, Figure, PType, Point, ShapePoint, aBFromLaLbAa, aCFromLaLbLc, adjustCenter, adjustInit, adjustRect, adjustScale, adjustTranslate, adjustZero, bisector, canvas2point, canvasTranslatePolar, checkGeom, circleCenter, colors, contour, contourCircle, copyLayers, createParamFile, degToRad, designParam, ffix, figure, fileBin, fileBinContent, fileMime, fileSuffix, fileTextContent, fround, initGeom, initLayers, lbFromLaAaAb, lcFromLaLbAc, line, linePP, mergeFaces, oneDesignParam, pCheckbox, pDropdown, pNumber, paramListToVal, parseParamFile, point, point2canvas, prefixLog, radToDeg, radius2canvas, roundZero, type tAllLink, type tAllPageDef, type tBVolume, type tCanvasAdjust, type tContour, type tDesignParamList, type tExtrude, type tFaces, type tGeom, type tGeomFunc, type tInherit, type tLayers, type tPackage, type tPageDef, type tParamDef, type tParamVal, type tParamValInFile, type tPosiOrien, type tSubDesign, type tSubInst, type tVolume, vector, version_details, withinPiPi, withinZero2Pi };
package/dist/index.js CHANGED
@@ -3788,6 +3788,20 @@ function parseParamFile(fContentStr) {
3788
3788
  }
3789
3789
  return [rObj, rlog];
3790
3790
  }
3791
+
3792
+ // src/version_details.ts
3793
+ function version_details(appPackage) {
3794
+ const rStr = [];
3795
+ rStr.push("version details:");
3796
+ rStr.push(`${appPackage.name} : ${appPackage.version}`);
3797
+ rStr.push("dependencies:");
3798
+ const depList = Object.keys(appPackage.dependencies);
3799
+ for (const [idx, depN] of depList.entries()) {
3800
+ const depK = depN;
3801
+ rStr.push(`${idx + 1} : ${depN} : ${appPackage.dependencies[depK]}`);
3802
+ }
3803
+ return rStr;
3804
+ }
3791
3805
  export {
3792
3806
  EBVolume,
3793
3807
  EExtrude,
@@ -3842,6 +3856,7 @@ export {
3842
3856
  radius2canvas,
3843
3857
  roundZero,
3844
3858
  vector,
3859
+ version_details,
3845
3860
  withinPiPi,
3846
3861
  withinZero2Pi
3847
3862
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geometrix",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "The 2D geometry engine of the parametrix",
5
5
  "private": false,
6
6
  "repository": {
@@ -45,18 +45,18 @@
45
45
  "@zip.js/zip.js": "^2.7.32"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^20.10.5",
49
- "@typescript-eslint/eslint-plugin": "^6.16.0",
50
- "@typescript-eslint/parser": "^6.16.0",
48
+ "@types/node": "^20.10.7",
49
+ "@typescript-eslint/eslint-plugin": "^6.18.0",
50
+ "@typescript-eslint/parser": "^6.18.0",
51
51
  "eslint": "^8.56.0",
52
52
  "eslint-config-prettier": "^9.1.0",
53
53
  "npm-run-all": "^4.1.5",
54
54
  "prettier": "^3.1.1",
55
55
  "shx": "^0.3.4",
56
- "svgo": "^3.1.0",
56
+ "svgo": "^3.2.0",
57
57
  "tsup": "^8.0.1",
58
58
  "typescript": "^5.3.3",
59
- "vitest": "^1.1.0"
59
+ "vitest": "^1.1.3"
60
60
  },
61
61
  "exports": {
62
62
  ".": {