designix 0.5.23 → 0.5.25
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.js +93 -76
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
pNumber,
|
|
8
8
|
pCheckbox,
|
|
9
9
|
pDropdown,
|
|
10
|
+
pSectionSeparator,
|
|
10
11
|
initGeom,
|
|
11
12
|
EExtrude,
|
|
12
13
|
EBVolume
|
|
@@ -914,6 +915,7 @@ var pDef = {
|
|
|
914
915
|
pNumber("addInterAxis", "mm", 0, 0, 100, 0.05),
|
|
915
916
|
pNumber("c1x", "mm", 0, -200, 200, 1),
|
|
916
917
|
pNumber("c1y", "mm", 0, -200, 200, 1),
|
|
918
|
+
pSectionSeparator("Tooth Profile"),
|
|
917
919
|
pNumber("ah1", "scalar", 1, 0.1, 2, 0.05),
|
|
918
920
|
pNumber("dh1", "scalar", 1, 0.1, 2, 0.05),
|
|
919
921
|
pNumber("bh1", "scalar", 0.25, 0.1, 2, 0.05),
|
|
@@ -937,6 +939,7 @@ var pDef = {
|
|
|
937
939
|
pNumber("skinThickness2", "mm", 0, -3, 3, 0.01),
|
|
938
940
|
pNumber("initAngle1", "degree", 0, -180, 180, 1),
|
|
939
941
|
pDropdown("gw2Position", ["right", "left", "center"]),
|
|
942
|
+
pSectionSeparator("Inner"),
|
|
940
943
|
pCheckbox("centralAxis", true),
|
|
941
944
|
pNumber("axisRadius", "mm", 10, 0.1, 200, 0.1),
|
|
942
945
|
pNumber("ribNb", "scalar", 5, 0, 32, 1),
|
|
@@ -950,6 +953,8 @@ var pDef = {
|
|
|
950
953
|
pNumber("spokeNb", "scalar", 5, 1, 18, 1),
|
|
951
954
|
pNumber("spokeWidth", "mm", 15, 1, 200, 0.1),
|
|
952
955
|
pNumber("spokeRound", "mm", 10, 0, 20, 0.1),
|
|
956
|
+
pSectionSeparator("Axis"),
|
|
957
|
+
pCheckbox("centralAxis", true),
|
|
953
958
|
pCheckbox("wheelAxis", true),
|
|
954
959
|
pNumber("wheelHeight", "mm", 40, 0.1, 400, 0.1),
|
|
955
960
|
pNumber("wheelMidExtra", "mm", 6, 0, 10, 0.1),
|
|
@@ -1023,8 +1028,8 @@ var pDef = {
|
|
|
1023
1028
|
// every 0.5 second
|
|
1024
1029
|
}
|
|
1025
1030
|
};
|
|
1026
|
-
function pGeom(t, param) {
|
|
1027
|
-
const rGeome = initGeom(pDef.partName);
|
|
1031
|
+
function pGeom(t, param, suffix = "") {
|
|
1032
|
+
const rGeome = initGeom(pDef.partName + suffix);
|
|
1028
1033
|
const figOne = figure();
|
|
1029
1034
|
const figTwo = figure();
|
|
1030
1035
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
@@ -1334,14 +1339,14 @@ var pDef2 = {
|
|
|
1334
1339
|
// every 0.5 second
|
|
1335
1340
|
}
|
|
1336
1341
|
};
|
|
1337
|
-
function pGeom2(t, param) {
|
|
1338
|
-
const rGeome = initGeom2(pDef2.partName);
|
|
1342
|
+
function pGeom2(t, param, suffix = "") {
|
|
1343
|
+
const rGeome = initGeom2(pDef2.partName + suffix);
|
|
1339
1344
|
const figOne = figure2();
|
|
1340
1345
|
const figTwo = figure2();
|
|
1341
1346
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
1342
1347
|
`;
|
|
1343
1348
|
try {
|
|
1344
|
-
const gearWWParam = designParam(gearWheelWheelDef.pDef);
|
|
1349
|
+
const gearWWParam = designParam(gearWheelWheelDef.pDef, "_ref1");
|
|
1345
1350
|
gearWWParam.setVal("module", param.module);
|
|
1346
1351
|
gearWWParam.setVal("N1", param.N1);
|
|
1347
1352
|
gearWWParam.setVal("c1x", param.c1x);
|
|
@@ -1369,9 +1374,13 @@ function pGeom2(t, param) {
|
|
|
1369
1374
|
gearWWParam.setVal("wheelAxisExtRound", param.wheelAxisExtRound);
|
|
1370
1375
|
gearWWParam.setVal("wheelAxisIntRound", param.wheelAxisIntRound);
|
|
1371
1376
|
gearWWParam.setVal("wheelExtraRound", param.wheelExtraRound);
|
|
1372
|
-
const gearWWGeom = gearWheelWheelDef.pGeom(
|
|
1377
|
+
const gearWWGeom = gearWheelWheelDef.pGeom(
|
|
1378
|
+
t,
|
|
1379
|
+
gearWWParam.getParamVal(),
|
|
1380
|
+
gearWWParam.getSuffix()
|
|
1381
|
+
);
|
|
1373
1382
|
checkGeom(gearWWGeom);
|
|
1374
|
-
rGeome.logstr += prefixLog(gearWWGeom.logstr, gearWWParam.
|
|
1383
|
+
rGeome.logstr += prefixLog(gearWWGeom.logstr, gearWWParam.getPartNameSuffix());
|
|
1375
1384
|
figOne.mergeFigure(gearWWGeom.fig.teethProfile);
|
|
1376
1385
|
figTwo.mergeFigure(gearWWGeom.fig.axisProfile);
|
|
1377
1386
|
rGeome.fig = { teethProfile: figOne, axisProfile: figTwo };
|
|
@@ -1380,7 +1389,7 @@ function pGeom2(t, param) {
|
|
|
1380
1389
|
inherits: [
|
|
1381
1390
|
{
|
|
1382
1391
|
outName: `inpax_${designName}_gearWW`,
|
|
1383
|
-
subdesign: "
|
|
1392
|
+
subdesign: "pax_gear_wheel_wheel_ref1",
|
|
1384
1393
|
subgeom: gearWWGeom,
|
|
1385
1394
|
rotate: [0, 0, 0],
|
|
1386
1395
|
translate: [0, 0, 0]
|
|
@@ -1487,10 +1496,10 @@ var pDef3 = {
|
|
|
1487
1496
|
// every 0.5 second
|
|
1488
1497
|
}
|
|
1489
1498
|
};
|
|
1490
|
-
function pGeom3(t, param) {
|
|
1499
|
+
function pGeom3(t, param, suffix = "") {
|
|
1500
|
+
const rGeome = initGeom3(pDef3.partName + suffix);
|
|
1491
1501
|
let ctrPoleProfile;
|
|
1492
1502
|
let ctrDoorFace;
|
|
1493
|
-
const rGeome = initGeom3(pDef3.partName);
|
|
1494
1503
|
const figCut = figure3();
|
|
1495
1504
|
const figFace = figure3();
|
|
1496
1505
|
const figBottom = figure3();
|
|
@@ -1737,11 +1746,11 @@ var pDef4 = {
|
|
|
1737
1746
|
// every 0.5 second
|
|
1738
1747
|
}
|
|
1739
1748
|
};
|
|
1740
|
-
function pGeom4(t, param) {
|
|
1749
|
+
function pGeom4(t, param, suffix = "") {
|
|
1750
|
+
const rGeome = initGeom4(pDef4.partName + suffix);
|
|
1741
1751
|
let ctrCone;
|
|
1742
1752
|
let ctrConePlus;
|
|
1743
1753
|
let ctrRect;
|
|
1744
|
-
const rGeome = initGeom4(pDef4.partName);
|
|
1745
1754
|
const figCone = figure4();
|
|
1746
1755
|
const figBeam = figure4();
|
|
1747
1756
|
const figBeamHollow = figure4();
|
|
@@ -2122,10 +2131,10 @@ var pDef5 = {
|
|
|
2122
2131
|
// every 0.5 second
|
|
2123
2132
|
}
|
|
2124
2133
|
};
|
|
2125
|
-
function pGeom5(t, param) {
|
|
2134
|
+
function pGeom5(t, param, suffix = "") {
|
|
2135
|
+
const rGeome = initGeom5(pDef5.partName + suffix);
|
|
2126
2136
|
let ctrSquare;
|
|
2127
2137
|
let ctrRect;
|
|
2128
|
-
const rGeome = initGeom5(pDef5.partName);
|
|
2129
2138
|
const figLegs = figure5();
|
|
2130
2139
|
const figTube = figure5();
|
|
2131
2140
|
const figBody = figure5();
|
|
@@ -2320,10 +2329,10 @@ var pDef6 = {
|
|
|
2320
2329
|
// every 0.5 second
|
|
2321
2330
|
}
|
|
2322
2331
|
};
|
|
2323
|
-
function pGeom6(t, param) {
|
|
2332
|
+
function pGeom6(t, param, suffix = "") {
|
|
2333
|
+
const rGeome = initGeom6(pDef6.partName + suffix);
|
|
2324
2334
|
let ctrRectangle;
|
|
2325
2335
|
let ctrRectRound;
|
|
2326
|
-
const rGeome = initGeom6(pDef6.partName);
|
|
2327
2336
|
const figSide = figure6();
|
|
2328
2337
|
const figFace = figure6();
|
|
2329
2338
|
const figTop = figure6();
|
|
@@ -2541,8 +2550,8 @@ var pDef7 = {
|
|
|
2541
2550
|
// every 0.5 second
|
|
2542
2551
|
}
|
|
2543
2552
|
};
|
|
2544
|
-
function pGeom7(t, param) {
|
|
2545
|
-
const rGeome = initGeom7(pDef7.partName);
|
|
2553
|
+
function pGeom7(t, param, suffix = "") {
|
|
2554
|
+
const rGeome = initGeom7(pDef7.partName + suffix);
|
|
2546
2555
|
const figSide = figure7();
|
|
2547
2556
|
const figFace = figure7();
|
|
2548
2557
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
@@ -2650,18 +2659,22 @@ function pGeom7(t, param) {
|
|
|
2650
2659
|
swingParam.setVal("L5", param.L5);
|
|
2651
2660
|
swingParam.setVal("L6", param.L6);
|
|
2652
2661
|
swingParam.setVal("L3", param.D7);
|
|
2653
|
-
const poleStaticGeom = poleStaticDef.pGeom(
|
|
2662
|
+
const poleStaticGeom = poleStaticDef.pGeom(
|
|
2663
|
+
0,
|
|
2664
|
+
poleStaticParam.getParamVal(),
|
|
2665
|
+
poleStaticParam.getSuffix()
|
|
2666
|
+
);
|
|
2654
2667
|
checkGeom2(poleStaticGeom);
|
|
2655
|
-
rGeome.logstr += prefixLog2(poleStaticGeom.logstr, poleStaticParam.
|
|
2656
|
-
const rakeGeom = rakeDef.pGeom(0, rakeParam.getParamVal());
|
|
2668
|
+
rGeome.logstr += prefixLog2(poleStaticGeom.logstr, poleStaticParam.getPartNameSuffix());
|
|
2669
|
+
const rakeGeom = rakeDef.pGeom(0, rakeParam.getParamVal(), rakeParam.getSuffix());
|
|
2657
2670
|
checkGeom2(rakeGeom);
|
|
2658
|
-
rGeome.logstr += prefixLog2(rakeGeom.logstr, rakeParam.
|
|
2659
|
-
const spiderGeom = spiderDef.pGeom(0, spiderParam.getParamVal());
|
|
2671
|
+
rGeome.logstr += prefixLog2(rakeGeom.logstr, rakeParam.getPartNameSuffix());
|
|
2672
|
+
const spiderGeom = spiderDef.pGeom(0, spiderParam.getParamVal(), spiderParam.getSuffix());
|
|
2660
2673
|
checkGeom2(spiderGeom);
|
|
2661
|
-
rGeome.logstr += prefixLog2(spiderGeom.logstr, spiderParam.
|
|
2662
|
-
const swingGeom = swingDef.pGeom(0, swingParam.getParamVal());
|
|
2674
|
+
rGeome.logstr += prefixLog2(spiderGeom.logstr, spiderParam.getPartNameSuffix());
|
|
2675
|
+
const swingGeom = swingDef.pGeom(0, swingParam.getParamVal(), swingParam.getSuffix());
|
|
2663
2676
|
checkGeom2(swingGeom);
|
|
2664
|
-
rGeome.logstr += prefixLog2(swingGeom.logstr, swingParam.
|
|
2677
|
+
rGeome.logstr += prefixLog2(swingGeom.logstr, swingParam.getPartNameSuffix());
|
|
2665
2678
|
figSide.mergeFigure(poleStaticGeom.fig.poleCut);
|
|
2666
2679
|
figSide.mergeFigure(rakeGeom.fig.faceBeam.translate(0, rakePosY));
|
|
2667
2680
|
figSide.mergeFigure(
|
|
@@ -2874,9 +2887,9 @@ var pDef8 = {
|
|
|
2874
2887
|
// every 0.5 second
|
|
2875
2888
|
}
|
|
2876
2889
|
};
|
|
2877
|
-
function pGeom8(t, param) {
|
|
2890
|
+
function pGeom8(t, param, suffix = "") {
|
|
2891
|
+
const rGeome = initGeom8(pDef8.partName + suffix);
|
|
2878
2892
|
let ctrRect;
|
|
2879
|
-
const rGeome = initGeom8(pDef8.partName);
|
|
2880
2893
|
const figCone = figure8();
|
|
2881
2894
|
const figBeam = figure8();
|
|
2882
2895
|
const figBeamHollow = figure8();
|
|
@@ -2951,9 +2964,9 @@ function pGeom8(t, param) {
|
|
|
2951
2964
|
rakeParam.setVal("H7", param.H7);
|
|
2952
2965
|
rakeParam.setVal("L9", param.L9);
|
|
2953
2966
|
rakeParam.setVal("R9", param.R9);
|
|
2954
|
-
const rakeGeom = rakeDef.pGeom(0, rakeParam.getParamVal());
|
|
2967
|
+
const rakeGeom = rakeDef.pGeom(0, rakeParam.getParamVal(), rakeParam.getSuffix());
|
|
2955
2968
|
checkGeom3(rakeGeom);
|
|
2956
|
-
rGeome.logstr += prefixLog3(rakeGeom.logstr, rakeParam.
|
|
2969
|
+
rGeome.logstr += prefixLog3(rakeGeom.logstr, rakeParam.getPartNameSuffix());
|
|
2957
2970
|
figCone.mergeFigure(rakeGeom.fig.faceCone);
|
|
2958
2971
|
figBeam.mergeFigure(rakeGeom.fig.faceBeam);
|
|
2959
2972
|
figBeamHollow.mergeFigure(rakeGeom.fig.faceBeamHollow);
|
|
@@ -3221,8 +3234,8 @@ var pDef9 = {
|
|
|
3221
3234
|
// every 0.5 second
|
|
3222
3235
|
}
|
|
3223
3236
|
};
|
|
3224
|
-
function pGeom9(t, param) {
|
|
3225
|
-
const rGeome = initGeom9(pDef9.partName);
|
|
3237
|
+
function pGeom9(t, param, suffix = "") {
|
|
3238
|
+
const rGeome = initGeom9(pDef9.partName + suffix);
|
|
3226
3239
|
const figSide = figure9();
|
|
3227
3240
|
const figFace = figure9();
|
|
3228
3241
|
const figTop = figure9();
|
|
@@ -3318,15 +3331,19 @@ function pGeom9(t, param) {
|
|
|
3318
3331
|
swingParam.setVal("L5", param.L5);
|
|
3319
3332
|
swingParam.setVal("L6", param.L6);
|
|
3320
3333
|
swingParam.setVal("L3", param.D7);
|
|
3321
|
-
const poleStaticGeom = poleStaticDef.pGeom(
|
|
3334
|
+
const poleStaticGeom = poleStaticDef.pGeom(
|
|
3335
|
+
0,
|
|
3336
|
+
poleStaticParam.getParamVal(),
|
|
3337
|
+
poleStaticParam.getSuffix()
|
|
3338
|
+
);
|
|
3322
3339
|
checkGeom4(poleStaticGeom);
|
|
3323
|
-
rGeome.logstr += prefixLog4(poleStaticGeom.logstr, poleStaticParam.
|
|
3324
|
-
const rakeGeom = rakeStopperDef.pGeom(0, rakeParam.getParamVal());
|
|
3340
|
+
rGeome.logstr += prefixLog4(poleStaticGeom.logstr, poleStaticParam.getPartNameSuffix());
|
|
3341
|
+
const rakeGeom = rakeStopperDef.pGeom(0, rakeParam.getParamVal(), rakeParam.getSuffix());
|
|
3325
3342
|
checkGeom4(rakeGeom);
|
|
3326
|
-
rGeome.logstr += prefixLog4(rakeGeom.logstr, rakeParam.
|
|
3327
|
-
const swingGeom = swingDef.pGeom(0, swingParam.getParamVal());
|
|
3343
|
+
rGeome.logstr += prefixLog4(rakeGeom.logstr, rakeParam.getPartNameSuffix());
|
|
3344
|
+
const swingGeom = swingDef.pGeom(0, swingParam.getParamVal(), swingParam.getSuffix());
|
|
3328
3345
|
checkGeom4(swingGeom);
|
|
3329
|
-
rGeome.logstr += prefixLog4(swingGeom.logstr, swingParam.
|
|
3346
|
+
rGeome.logstr += prefixLog4(swingGeom.logstr, swingParam.getPartNameSuffix());
|
|
3330
3347
|
figSide.mergeFigure(poleStaticGeom.fig.poleCut);
|
|
3331
3348
|
figSide.mergeFigure(rakeGeom.fig.faceStopperSide.translate(0, rakePosY));
|
|
3332
3349
|
figSide.mergeFigure(
|
|
@@ -3475,11 +3492,11 @@ var pDef10 = {
|
|
|
3475
3492
|
// every 0.5 second
|
|
3476
3493
|
}
|
|
3477
3494
|
};
|
|
3478
|
-
function pGeom10(t, param) {
|
|
3495
|
+
function pGeom10(t, param, suffix = "") {
|
|
3496
|
+
const rGeome = initGeom10(pDef10.partName + suffix);
|
|
3479
3497
|
let ctrBaseCut1;
|
|
3480
3498
|
let ctrBaseCut2;
|
|
3481
3499
|
let ctrHollow;
|
|
3482
|
-
const rGeome = initGeom10(pDef10.partName);
|
|
3483
3500
|
const figCut = figure10();
|
|
3484
3501
|
const figTop = figure10();
|
|
3485
3502
|
const figHollow = figure10();
|
|
@@ -3671,9 +3688,9 @@ var pDef11 = {
|
|
|
3671
3688
|
// every 0.5 second
|
|
3672
3689
|
}
|
|
3673
3690
|
};
|
|
3674
|
-
function pGeom11(t, param) {
|
|
3691
|
+
function pGeom11(t, param, suffix = "") {
|
|
3692
|
+
const rGeome = initGeom11(pDef11.partName + suffix);
|
|
3675
3693
|
let ctrPoleProfile;
|
|
3676
|
-
const rGeome = initGeom11(pDef11.partName);
|
|
3677
3694
|
const figCut = figure11();
|
|
3678
3695
|
const figBottom = figure11();
|
|
3679
3696
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
@@ -3812,10 +3829,10 @@ var pDef12 = {
|
|
|
3812
3829
|
// every 0.5 second
|
|
3813
3830
|
}
|
|
3814
3831
|
};
|
|
3815
|
-
function pGeom12(t, param) {
|
|
3832
|
+
function pGeom12(t, param, suffix = "") {
|
|
3833
|
+
const rGeome = initGeom12(pDef12.partName + suffix);
|
|
3816
3834
|
let ctrPlate;
|
|
3817
3835
|
let ctrRod;
|
|
3818
|
-
const rGeome = initGeom12(pDef12.partName);
|
|
3819
3836
|
const figCut = figure12();
|
|
3820
3837
|
const figPlate = figure12();
|
|
3821
3838
|
const figTop = figure12();
|
|
@@ -3984,10 +4001,10 @@ var pDef13 = {
|
|
|
3984
4001
|
// every 0.5 second
|
|
3985
4002
|
}
|
|
3986
4003
|
};
|
|
3987
|
-
function pGeom13(t, param) {
|
|
4004
|
+
function pGeom13(t, param, suffix = "") {
|
|
4005
|
+
const rGeome = initGeom13(pDef13.partName + suffix);
|
|
3988
4006
|
let ctrRodFootprint;
|
|
3989
4007
|
let ctrRod;
|
|
3990
|
-
const rGeome = initGeom13(pDef13.partName);
|
|
3991
4008
|
const figFrame = figure13();
|
|
3992
4009
|
const figPlate = figure13();
|
|
3993
4010
|
const figRod = figure13();
|
|
@@ -4436,9 +4453,9 @@ var pDef14 = {
|
|
|
4436
4453
|
// every 0.5 second
|
|
4437
4454
|
}
|
|
4438
4455
|
};
|
|
4439
|
-
function pGeom14(t, param) {
|
|
4456
|
+
function pGeom14(t, param, suffix = "") {
|
|
4457
|
+
const rGeome = initGeom14(pDef14.partName + suffix);
|
|
4440
4458
|
let ctrPanelProfile;
|
|
4441
|
-
const rGeome = initGeom14(pDef14.partName);
|
|
4442
4459
|
const figSurface = figure14();
|
|
4443
4460
|
const figOnePanel = figure14();
|
|
4444
4461
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
@@ -4677,8 +4694,8 @@ var pDef15 = {
|
|
|
4677
4694
|
tUpdate: 500
|
|
4678
4695
|
}
|
|
4679
4696
|
};
|
|
4680
|
-
function pGeom15(t, param) {
|
|
4681
|
-
const rGeome = initGeom15(pDef15.partName);
|
|
4697
|
+
function pGeom15(t, param, suffix = "") {
|
|
4698
|
+
const rGeome = initGeom15(pDef15.partName + suffix);
|
|
4682
4699
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4683
4700
|
`;
|
|
4684
4701
|
try {
|
|
@@ -4726,8 +4743,8 @@ var pDef16 = {
|
|
|
4726
4743
|
tUpdate: 500
|
|
4727
4744
|
}
|
|
4728
4745
|
};
|
|
4729
|
-
function pGeom16(t, param) {
|
|
4730
|
-
const rGeome = initGeom16(pDef16.partName);
|
|
4746
|
+
function pGeom16(t, param, suffix = "") {
|
|
4747
|
+
const rGeome = initGeom16(pDef16.partName + suffix);
|
|
4731
4748
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4732
4749
|
`;
|
|
4733
4750
|
try {
|
|
@@ -4785,8 +4802,8 @@ var pDef17 = {
|
|
|
4785
4802
|
// every 0.5 second
|
|
4786
4803
|
}
|
|
4787
4804
|
};
|
|
4788
|
-
function pGeom17(t, param) {
|
|
4789
|
-
const rGeome = initGeom17(pDef17.partName);
|
|
4805
|
+
function pGeom17(t, param, suffix = "") {
|
|
4806
|
+
const rGeome = initGeom17(pDef17.partName + suffix);
|
|
4790
4807
|
const figFace = figure17();
|
|
4791
4808
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4792
4809
|
`;
|
|
@@ -4841,8 +4858,8 @@ var pDef18 = {
|
|
|
4841
4858
|
// every 0.5 second
|
|
4842
4859
|
}
|
|
4843
4860
|
};
|
|
4844
|
-
function pGeom18(t, param) {
|
|
4845
|
-
const rGeome = initGeom18(pDef18.partName);
|
|
4861
|
+
function pGeom18(t, param, suffix = "") {
|
|
4862
|
+
const rGeome = initGeom18(pDef18.partName + suffix);
|
|
4846
4863
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4847
4864
|
`;
|
|
4848
4865
|
try {
|
|
@@ -4901,8 +4918,8 @@ var pDef19 = {
|
|
|
4901
4918
|
// every 0.5 second
|
|
4902
4919
|
}
|
|
4903
4920
|
};
|
|
4904
|
-
function pGeom19(t, param) {
|
|
4905
|
-
const rGeome = initGeom19(pDef19.partName);
|
|
4921
|
+
function pGeom19(t, param, suffix = "") {
|
|
4922
|
+
const rGeome = initGeom19(pDef19.partName + suffix);
|
|
4906
4923
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4907
4924
|
`;
|
|
4908
4925
|
try {
|
|
@@ -4961,8 +4978,8 @@ var pDef20 = {
|
|
|
4961
4978
|
// every 0.5 second
|
|
4962
4979
|
}
|
|
4963
4980
|
};
|
|
4964
|
-
function pGeom20(t, param) {
|
|
4965
|
-
const rGeome = initGeom20(pDef20.partName);
|
|
4981
|
+
function pGeom20(t, param, suffix = "") {
|
|
4982
|
+
const rGeome = initGeom20(pDef20.partName + suffix);
|
|
4966
4983
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4967
4984
|
`;
|
|
4968
4985
|
try {
|
|
@@ -5037,8 +5054,8 @@ var pDef21 = {
|
|
|
5037
5054
|
// every 0.5 second
|
|
5038
5055
|
}
|
|
5039
5056
|
};
|
|
5040
|
-
function pGeom21(t, param) {
|
|
5041
|
-
const rGeome = initGeom21(pDef21.partName);
|
|
5057
|
+
function pGeom21(t, param, suffix = "") {
|
|
5058
|
+
const rGeome = initGeom21(pDef21.partName + suffix);
|
|
5042
5059
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5043
5060
|
`;
|
|
5044
5061
|
try {
|
|
@@ -5107,8 +5124,8 @@ var pDef22 = {
|
|
|
5107
5124
|
// every 0.5 second
|
|
5108
5125
|
}
|
|
5109
5126
|
};
|
|
5110
|
-
function pGeom22(t, param) {
|
|
5111
|
-
const rGeome = initGeom22(pDef22.partName);
|
|
5127
|
+
function pGeom22(t, param, suffix = "") {
|
|
5128
|
+
const rGeome = initGeom22(pDef22.partName + suffix);
|
|
5112
5129
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5113
5130
|
`;
|
|
5114
5131
|
try {
|
|
@@ -5171,8 +5188,8 @@ var pDef23 = {
|
|
|
5171
5188
|
// every 0.5 second
|
|
5172
5189
|
}
|
|
5173
5190
|
};
|
|
5174
|
-
function pGeom23(t, param) {
|
|
5175
|
-
const rGeome = initGeom23(pDef23.partName);
|
|
5191
|
+
function pGeom23(t, param, suffix = "") {
|
|
5192
|
+
const rGeome = initGeom23(pDef23.partName + suffix);
|
|
5176
5193
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5177
5194
|
`;
|
|
5178
5195
|
try {
|
|
@@ -5233,8 +5250,8 @@ var pDef24 = {
|
|
|
5233
5250
|
// every 0.5 second
|
|
5234
5251
|
}
|
|
5235
5252
|
};
|
|
5236
|
-
function pGeom24(t, param) {
|
|
5237
|
-
const rGeome = initGeom24(pDef24.partName);
|
|
5253
|
+
function pGeom24(t, param, suffix = "") {
|
|
5254
|
+
const rGeome = initGeom24(pDef24.partName + suffix);
|
|
5238
5255
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5239
5256
|
`;
|
|
5240
5257
|
try {
|
|
@@ -5307,8 +5324,8 @@ var pDef25 = {
|
|
|
5307
5324
|
// every 0.5 second
|
|
5308
5325
|
}
|
|
5309
5326
|
};
|
|
5310
|
-
function pGeom25(t, param) {
|
|
5311
|
-
const rGeome = initGeom25(pDef25.partName);
|
|
5327
|
+
function pGeom25(t, param, suffix = "") {
|
|
5328
|
+
const rGeome = initGeom25(pDef25.partName + suffix);
|
|
5312
5329
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5313
5330
|
`;
|
|
5314
5331
|
try {
|
|
@@ -5412,8 +5429,8 @@ var pDef26 = {
|
|
|
5412
5429
|
// every 0.5 second
|
|
5413
5430
|
}
|
|
5414
5431
|
};
|
|
5415
|
-
function pGeom26(t, param) {
|
|
5416
|
-
const rGeome = initGeom26(pDef26.partName);
|
|
5432
|
+
function pGeom26(t, param, suffix = "") {
|
|
5433
|
+
const rGeome = initGeom26(pDef26.partName + suffix);
|
|
5417
5434
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5418
5435
|
`;
|
|
5419
5436
|
try {
|
|
@@ -5557,8 +5574,8 @@ var pDef27 = {
|
|
|
5557
5574
|
// every 0.5 second
|
|
5558
5575
|
}
|
|
5559
5576
|
};
|
|
5560
|
-
function pGeom27(t, param) {
|
|
5561
|
-
const rGeome = initGeom27(pDef27.partName);
|
|
5577
|
+
function pGeom27(t, param, suffix = "") {
|
|
5578
|
+
const rGeome = initGeom27(pDef27.partName + suffix);
|
|
5562
5579
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5563
5580
|
`;
|
|
5564
5581
|
try {
|
|
@@ -5647,8 +5664,8 @@ var pDef28 = {
|
|
|
5647
5664
|
tUpdate: 500
|
|
5648
5665
|
}
|
|
5649
5666
|
};
|
|
5650
|
-
function pGeom28(t, param) {
|
|
5651
|
-
const rGeome = initGeom28(pDef28.partName);
|
|
5667
|
+
function pGeom28(t, param, suffix = "") {
|
|
5668
|
+
const rGeome = initGeom28(pDef28.partName + suffix);
|
|
5652
5669
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5653
5670
|
`;
|
|
5654
5671
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "designix",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.25",
|
|
4
4
|
"description": "The first designs made with parametrix",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -49,20 +49,20 @@
|
|
|
49
49
|
"clean": "shx rm -fr dist dist2 node_modules"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"geometrix": "^0.5.
|
|
52
|
+
"geometrix": "^0.5.23"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
56
56
|
"@typescript-eslint/parser": "^7.0.1",
|
|
57
57
|
"esbuild": "^0.20.1",
|
|
58
|
-
"eslint": "^8.
|
|
58
|
+
"eslint": "^8.57.0",
|
|
59
59
|
"eslint-config-prettier": "^9.1.0",
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
|
61
61
|
"prettier": "^3.2.5",
|
|
62
62
|
"shx": "^0.3.4",
|
|
63
63
|
"svgo": "^3.2.0",
|
|
64
64
|
"tsup": "^8.0.2",
|
|
65
|
-
"typescript": "^5.
|
|
65
|
+
"typescript": "^5.4.2",
|
|
66
66
|
"vitest": "^1.3.1"
|
|
67
67
|
},
|
|
68
68
|
"exports": {
|