designix 0.5.14 → 0.5.15
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 +28 -28
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1188,7 +1188,7 @@ function pGeom(t, param) {
|
|
|
1188
1188
|
}
|
|
1189
1189
|
]
|
|
1190
1190
|
};
|
|
1191
|
-
rGeome.logstr += "gear_wheel_wheel
|
|
1191
|
+
rGeome.logstr += "gear_wheel_wheel drawn successfully!\n";
|
|
1192
1192
|
rGeome.calcErr = false;
|
|
1193
1193
|
} catch (emsg) {
|
|
1194
1194
|
rGeome.logstr += emsg;
|
|
@@ -1402,7 +1402,7 @@ function pGeom2(t, param) {
|
|
|
1402
1402
|
position: [0, 0, 0]
|
|
1403
1403
|
};
|
|
1404
1404
|
rGeome.sub = { gear_wheel_wheel_1: subGearWW };
|
|
1405
|
-
rGeome.logstr += "simplified_gear_wheel
|
|
1405
|
+
rGeome.logstr += "simplified_gear_wheel drawn successfully!\n";
|
|
1406
1406
|
rGeome.calcErr = false;
|
|
1407
1407
|
} catch (emsg) {
|
|
1408
1408
|
rGeome.logstr += emsg;
|
|
@@ -1640,7 +1640,7 @@ function pGeom3(t, param) {
|
|
|
1640
1640
|
]
|
|
1641
1641
|
};
|
|
1642
1642
|
rGeome.sub = {};
|
|
1643
|
-
rGeome.logstr += "pole_static
|
|
1643
|
+
rGeome.logstr += "pole_static drawn successfully!\n";
|
|
1644
1644
|
rGeome.calcErr = false;
|
|
1645
1645
|
} catch (emsg) {
|
|
1646
1646
|
rGeome.logstr += emsg;
|
|
@@ -2057,7 +2057,7 @@ function pGeom4(t, param) {
|
|
|
2057
2057
|
]
|
|
2058
2058
|
};
|
|
2059
2059
|
rGeome.sub = {};
|
|
2060
|
-
rGeome.logstr += "heliostat-rake
|
|
2060
|
+
rGeome.logstr += "heliostat-rake drawn successfully!\n";
|
|
2061
2061
|
rGeome.calcErr = false;
|
|
2062
2062
|
} catch (emsg) {
|
|
2063
2063
|
rGeome.logstr += emsg;
|
|
@@ -2244,7 +2244,7 @@ function pGeom5(t, param) {
|
|
|
2244
2244
|
]
|
|
2245
2245
|
};
|
|
2246
2246
|
rGeome.sub = {};
|
|
2247
|
-
rGeome.logstr += "heliostat-spider
|
|
2247
|
+
rGeome.logstr += "heliostat-spider drawn successfully!\n";
|
|
2248
2248
|
rGeome.calcErr = false;
|
|
2249
2249
|
} catch (emsg) {
|
|
2250
2250
|
rGeome.logstr += emsg;
|
|
@@ -2447,7 +2447,7 @@ function pGeom6(t, param) {
|
|
|
2447
2447
|
]
|
|
2448
2448
|
};
|
|
2449
2449
|
rGeome.sub = {};
|
|
2450
|
-
rGeome.logstr += "heliostat-swing
|
|
2450
|
+
rGeome.logstr += "heliostat-swing drawn successfully!\n";
|
|
2451
2451
|
rGeome.calcErr = false;
|
|
2452
2452
|
} catch (emsg) {
|
|
2453
2453
|
rGeome.logstr += emsg;
|
|
@@ -2724,7 +2724,7 @@ function pGeom7(t, param) {
|
|
|
2724
2724
|
spider_1: subSpider,
|
|
2725
2725
|
swing_1: subSwing
|
|
2726
2726
|
};
|
|
2727
|
-
rGeome.logstr += "heliostat-overview
|
|
2727
|
+
rGeome.logstr += "heliostat-overview drawn successfully!\n";
|
|
2728
2728
|
rGeome.calcErr = false;
|
|
2729
2729
|
} catch (emsg) {
|
|
2730
2730
|
rGeome.logstr += emsg;
|
|
@@ -3107,7 +3107,7 @@ function pGeom8(t, param) {
|
|
|
3107
3107
|
]
|
|
3108
3108
|
};
|
|
3109
3109
|
rGeome.sub = {};
|
|
3110
|
-
rGeome.logstr += "heliostat-rake
|
|
3110
|
+
rGeome.logstr += "heliostat-rake drawn successfully!\n";
|
|
3111
3111
|
rGeome.calcErr = false;
|
|
3112
3112
|
} catch (emsg) {
|
|
3113
3113
|
rGeome.logstr += emsg;
|
|
@@ -3350,7 +3350,7 @@ function pGeom9(t, param) {
|
|
|
3350
3350
|
rake_1: subRake,
|
|
3351
3351
|
swing_1: subSwing
|
|
3352
3352
|
};
|
|
3353
|
-
rGeome.logstr += "heliostat-2-overview
|
|
3353
|
+
rGeome.logstr += "heliostat-2-overview drawn successfully!\n";
|
|
3354
3354
|
rGeome.calcErr = false;
|
|
3355
3355
|
} catch (emsg) {
|
|
3356
3356
|
rGeome.logstr += emsg;
|
|
@@ -3557,7 +3557,7 @@ function pGeom10(t, param) {
|
|
|
3557
3557
|
]
|
|
3558
3558
|
};
|
|
3559
3559
|
rGeome.sub = {};
|
|
3560
|
-
rGeome.logstr += "heliostat-base
|
|
3560
|
+
rGeome.logstr += "heliostat-base drawn successfully!\n";
|
|
3561
3561
|
rGeome.calcErr = false;
|
|
3562
3562
|
} catch (emsg) {
|
|
3563
3563
|
rGeome.logstr += emsg;
|
|
@@ -3688,7 +3688,7 @@ function pGeom11(t, param) {
|
|
|
3688
3688
|
]
|
|
3689
3689
|
};
|
|
3690
3690
|
rGeome.sub = {};
|
|
3691
|
-
rGeome.logstr += "pole_rotor
|
|
3691
|
+
rGeome.logstr += "pole_rotor drawn successfully!\n";
|
|
3692
3692
|
rGeome.calcErr = false;
|
|
3693
3693
|
} catch (emsg) {
|
|
3694
3694
|
rGeome.logstr += emsg;
|
|
@@ -3840,7 +3840,7 @@ function pGeom12(t, param) {
|
|
|
3840
3840
|
]
|
|
3841
3841
|
};
|
|
3842
3842
|
rGeome.sub = {};
|
|
3843
|
-
rGeome.logstr += "heliostat-rod
|
|
3843
|
+
rGeome.logstr += "heliostat-rod drawn successfully!\n";
|
|
3844
3844
|
rGeome.calcErr = false;
|
|
3845
3845
|
} catch (emsg) {
|
|
3846
3846
|
rGeome.logstr += emsg;
|
|
@@ -4287,7 +4287,7 @@ function pGeom13(t, param) {
|
|
|
4287
4287
|
]
|
|
4288
4288
|
};
|
|
4289
4289
|
rGeome.sub = {};
|
|
4290
|
-
rGeome.logstr += "trapeze
|
|
4290
|
+
rGeome.logstr += "trapeze drawn successfully!\n";
|
|
4291
4291
|
rGeome.calcErr = false;
|
|
4292
4292
|
} catch (emsg) {
|
|
4293
4293
|
rGeome.logstr += emsg;
|
|
@@ -4579,7 +4579,7 @@ function pGeom14(t, param) {
|
|
|
4579
4579
|
]
|
|
4580
4580
|
};
|
|
4581
4581
|
rGeome.sub = {};
|
|
4582
|
-
rGeome.logstr += "panel-surface
|
|
4582
|
+
rGeome.logstr += "panel-surface drawn successfully!\n";
|
|
4583
4583
|
rGeome.calcErr = false;
|
|
4584
4584
|
} catch (emsg) {
|
|
4585
4585
|
rGeome.logstr += emsg;
|
|
@@ -4630,7 +4630,7 @@ function pGeom15(t, param) {
|
|
|
4630
4630
|
);
|
|
4631
4631
|
}
|
|
4632
4632
|
rGeome.fig = { one: figOne };
|
|
4633
|
-
rGeome.logstr += "Circles
|
|
4633
|
+
rGeome.logstr += "Circles drawn successfully!\n";
|
|
4634
4634
|
rGeome.calcErr = false;
|
|
4635
4635
|
} catch (emsg) {
|
|
4636
4636
|
rGeome.logstr += emsg;
|
|
@@ -4680,7 +4680,7 @@ function pGeom16(t, param) {
|
|
|
4680
4680
|
figOne.addPoint(p3.rotate(p1, angle));
|
|
4681
4681
|
figOne.addPoint(p4.rotate(p1, angle));
|
|
4682
4682
|
rGeome.fig = { one: figOne };
|
|
4683
|
-
rGeome.logstr += "Rectangle
|
|
4683
|
+
rGeome.logstr += "Rectangle drawn successfully!\n";
|
|
4684
4684
|
rGeome.calcErr = false;
|
|
4685
4685
|
} catch (emsg) {
|
|
4686
4686
|
rGeome.logstr += emsg;
|
|
@@ -4736,7 +4736,7 @@ function pGeom17(t, param) {
|
|
|
4736
4736
|
poleFace: figFace
|
|
4737
4737
|
};
|
|
4738
4738
|
rGeome.sub = {};
|
|
4739
|
-
rGeome.logstr += "dummy_pole_static
|
|
4739
|
+
rGeome.logstr += "dummy_pole_static drawn successfully!\n";
|
|
4740
4740
|
rGeome.calcErr = false;
|
|
4741
4741
|
} catch (emsg) {
|
|
4742
4742
|
rGeome.logstr += emsg;
|
|
@@ -4794,7 +4794,7 @@ function pGeom18(t, param) {
|
|
|
4794
4794
|
figOne.addPoint(p3);
|
|
4795
4795
|
figOne.addPoint(p4);
|
|
4796
4796
|
rGeome.fig = { one: figOne };
|
|
4797
|
-
rGeome.logstr += "verify_point
|
|
4797
|
+
rGeome.logstr += "verify_point drawn successfully!\n";
|
|
4798
4798
|
rGeome.calcErr = false;
|
|
4799
4799
|
} catch (emsg) {
|
|
4800
4800
|
rGeome.logstr += emsg;
|
|
@@ -4856,7 +4856,7 @@ function pGeom19(t, param) {
|
|
|
4856
4856
|
figOne.addPoint(mp1p2);
|
|
4857
4857
|
figOne.addPoint(ep1p2);
|
|
4858
4858
|
rGeome.fig = { one: figOne };
|
|
4859
|
-
rGeome.logstr += "verify_point_2
|
|
4859
|
+
rGeome.logstr += "verify_point_2 drawn successfully!\n";
|
|
4860
4860
|
rGeome.calcErr = false;
|
|
4861
4861
|
} catch (emsg) {
|
|
4862
4862
|
rGeome.logstr += emsg;
|
|
@@ -4928,7 +4928,7 @@ function pGeom20(t, param) {
|
|
|
4928
4928
|
rGeome.fig = { one: figOne };
|
|
4929
4929
|
rGeome.logstr += `dist(l1, p3) = ${l1.distanceToPoint(p3)}
|
|
4930
4930
|
`;
|
|
4931
|
-
rGeome.logstr += "verify_line
|
|
4931
|
+
rGeome.logstr += "verify_line drawn successfully!\n";
|
|
4932
4932
|
rGeome.calcErr = false;
|
|
4933
4933
|
} catch (emsg) {
|
|
4934
4934
|
rGeome.logstr += emsg;
|
|
@@ -5002,7 +5002,7 @@ function pGeom21(t, param) {
|
|
|
5002
5002
|
const pBisec = point8(bisector2.cx, bisector2.cy).translatePolar(bisector2.ca, 30);
|
|
5003
5003
|
figOne.addPoint(pBisec);
|
|
5004
5004
|
rGeome.fig = { one: figOne };
|
|
5005
|
-
rGeome.logstr += "verify_line_2
|
|
5005
|
+
rGeome.logstr += "verify_line_2 drawn successfully!\n";
|
|
5006
5006
|
rGeome.calcErr = false;
|
|
5007
5007
|
} catch (emsg) {
|
|
5008
5008
|
rGeome.logstr += emsg;
|
|
@@ -5062,7 +5062,7 @@ function pGeom22(t, param) {
|
|
|
5062
5062
|
const pCenter = circleCenter(p1, p2, p3);
|
|
5063
5063
|
figOne.addPoint(pCenter);
|
|
5064
5064
|
rGeome.fig = { one: figOne };
|
|
5065
|
-
rGeome.logstr += "verify_line_3
|
|
5065
|
+
rGeome.logstr += "verify_line_3 drawn successfully!\n";
|
|
5066
5066
|
rGeome.calcErr = false;
|
|
5067
5067
|
} catch (emsg) {
|
|
5068
5068
|
rGeome.logstr += emsg;
|
|
@@ -5128,7 +5128,7 @@ function pGeom23(t, param) {
|
|
|
5128
5128
|
figOne.addVector(v3);
|
|
5129
5129
|
figOne.addPoint(p3);
|
|
5130
5130
|
rGeome.fig = { one: figOne };
|
|
5131
|
-
rGeome.logstr += "verify_vector
|
|
5131
|
+
rGeome.logstr += "verify_vector drawn successfully!\n";
|
|
5132
5132
|
rGeome.calcErr = false;
|
|
5133
5133
|
} catch (emsg) {
|
|
5134
5134
|
rGeome.logstr += emsg;
|
|
@@ -5206,7 +5206,7 @@ function pGeom24(t, param) {
|
|
|
5206
5206
|
ctr3.check();
|
|
5207
5207
|
figOne.addSecond(ctr3);
|
|
5208
5208
|
rGeome.fig = { one: figOne };
|
|
5209
|
-
rGeome.logstr += "verify_contour_1
|
|
5209
|
+
rGeome.logstr += "verify_contour_1 drawn successfully!\n";
|
|
5210
5210
|
rGeome.calcErr = false;
|
|
5211
5211
|
} catch (emsg) {
|
|
5212
5212
|
rGeome.logstr += emsg;
|
|
@@ -5307,7 +5307,7 @@ function pGeom25(t, param) {
|
|
|
5307
5307
|
ctr5.check();
|
|
5308
5308
|
figOne.addMain(ctr5);
|
|
5309
5309
|
rGeome.fig = { one: figOne };
|
|
5310
|
-
rGeome.logstr += "verify_contour_2
|
|
5310
|
+
rGeome.logstr += "verify_contour_2 drawn successfully!\n";
|
|
5311
5311
|
rGeome.calcErr = false;
|
|
5312
5312
|
} catch (emsg) {
|
|
5313
5313
|
rGeome.logstr += emsg;
|
|
@@ -5458,7 +5458,7 @@ function pGeom26(t, param) {
|
|
|
5458
5458
|
rGeome.logstr += ctr6f.check();
|
|
5459
5459
|
figOne.addMain(ctr6f);
|
|
5460
5460
|
rGeome.fig = { one: figOne };
|
|
5461
|
-
rGeome.logstr += "verify_contour_3
|
|
5461
|
+
rGeome.logstr += "verify_contour_3 drawn successfully!\n";
|
|
5462
5462
|
rGeome.calcErr = false;
|
|
5463
5463
|
} catch (emsg) {
|
|
5464
5464
|
rGeome.logstr += emsg;
|
|
@@ -5536,7 +5536,7 @@ function pGeom27(t, param) {
|
|
|
5536
5536
|
rGeome.logstr += ctr4.check();
|
|
5537
5537
|
figOne.addMain(ctr4);
|
|
5538
5538
|
rGeome.fig = { one: figOne };
|
|
5539
|
-
rGeome.logstr += "verify_contour_4
|
|
5539
|
+
rGeome.logstr += "verify_contour_4 drawn successfully!\n";
|
|
5540
5540
|
rGeome.calcErr = false;
|
|
5541
5541
|
} catch (emsg) {
|
|
5542
5542
|
rGeome.logstr += emsg;
|
|
@@ -5622,7 +5622,7 @@ function pGeom28(t, param) {
|
|
|
5622
5622
|
}
|
|
5623
5623
|
]
|
|
5624
5624
|
};
|
|
5625
|
-
rGeome.logstr += "verify_exports_1
|
|
5625
|
+
rGeome.logstr += "verify_exports_1 drawn successfully!\n";
|
|
5626
5626
|
rGeome.calcErr = false;
|
|
5627
5627
|
} catch (emsg) {
|
|
5628
5628
|
rGeome.logstr += emsg;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "designix",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.15",
|
|
4
4
|
"description": "The first designs made with parametrix",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
"geometrix": "^0.5.13"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
58
|
-
"@typescript-eslint/parser": "^6.
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
58
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
59
59
|
"eslint": "^8.56.0",
|
|
60
60
|
"eslint-config-prettier": "^9.1.0",
|
|
61
61
|
"npm-run-all": "^4.1.5",
|
|
62
|
-
"prettier": "^3.
|
|
62
|
+
"prettier": "^3.2.4",
|
|
63
63
|
"shx": "^0.3.4",
|
|
64
64
|
"svgo": "^3.2.0",
|
|
65
65
|
"tsup": "^8.0.1",
|
|
66
66
|
"typescript": "^5.3.3",
|
|
67
|
-
"vitest": "^1.1
|
|
67
|
+
"vitest": "^1.2.1"
|
|
68
68
|
},
|
|
69
69
|
"exports": {
|
|
70
70
|
".": {
|