geometrix 0.5.20 → 0.5.22
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 +2 -2
- package/dist/index.js +4 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -485,7 +485,7 @@ declare class DesignParam {
|
|
|
485
485
|
partName: string;
|
|
486
486
|
paramNames: string[];
|
|
487
487
|
getParamName(): string[];
|
|
488
|
-
constructor(iparamDef: tParamDef);
|
|
488
|
+
constructor(iparamDef: tParamDef, suffix?: string);
|
|
489
489
|
getPartName(): string;
|
|
490
490
|
getParamVal(): tParamVal;
|
|
491
491
|
getVal(iname: string): number;
|
|
@@ -496,7 +496,7 @@ declare class DesignParam {
|
|
|
496
496
|
applyParamList(iValues: tDesignParamList): string;
|
|
497
497
|
getDesignParamList(): tDesignParamList;
|
|
498
498
|
}
|
|
499
|
-
declare function designParam(iparamDef: tParamDef): DesignParam;
|
|
499
|
+
declare function designParam(iparamDef: tParamDef, suffix?: string): DesignParam;
|
|
500
500
|
declare function pNumber(name: string, unit: string, init: number, min?: number, max?: number, step?: number): tParam;
|
|
501
501
|
declare function pCheckbox(name: string, init: boolean): tParam;
|
|
502
502
|
declare function pDropdown(name: string, values: string[]): tParam;
|
package/dist/index.js
CHANGED
|
@@ -2763,13 +2763,13 @@ var DesignParam = class {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
return rNames;
|
|
2765
2765
|
}
|
|
2766
|
-
constructor(iparamDef) {
|
|
2766
|
+
constructor(iparamDef, suffix = "") {
|
|
2767
2767
|
for (const pi of iparamDef.params) {
|
|
2768
2768
|
this.paramVal[pi.name] = pi.init;
|
|
2769
2769
|
this.paramInit[pi.name] = pi.init;
|
|
2770
2770
|
this.paramChanged[pi.name] = false;
|
|
2771
2771
|
}
|
|
2772
|
-
this.partName = iparamDef.partName;
|
|
2772
|
+
this.partName = iparamDef.partName + suffix;
|
|
2773
2773
|
this.paramNames = this.getParamName();
|
|
2774
2774
|
}
|
|
2775
2775
|
getPartName() {
|
|
@@ -2828,8 +2828,8 @@ var DesignParam = class {
|
|
|
2828
2828
|
return rDPList;
|
|
2829
2829
|
}
|
|
2830
2830
|
};
|
|
2831
|
-
function designParam(iparamDef) {
|
|
2832
|
-
return new DesignParam(iparamDef);
|
|
2831
|
+
function designParam(iparamDef, suffix = "") {
|
|
2832
|
+
return new DesignParam(iparamDef, suffix);
|
|
2833
2833
|
}
|
|
2834
2834
|
function pNumber(name, unit, init, min = 0, max = 100, step = 1) {
|
|
2835
2835
|
const rParam = {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geometrix",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.22",
|
|
4
4
|
"description": "The 2D geometry engine of the parametrix",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/charlyoleg2/parametrix.git"
|
|
9
9
|
},
|
|
10
|
-
"homepage": "https://github.
|
|
10
|
+
"homepage": "https://charlyoleg2.github.io/parametrix/",
|
|
11
11
|
"keywords": [
|
|
12
12
|
"cad",
|
|
13
13
|
"programmatic",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"shx": "^0.3.4",
|
|
55
55
|
"tsup": "^8.0.2",
|
|
56
56
|
"typescript": "^5.3.3",
|
|
57
|
-
"vitest": "^1.3.
|
|
57
|
+
"vitest": "^1.3.1"
|
|
58
58
|
},
|
|
59
59
|
"exports": {
|
|
60
60
|
".": {
|