designix 0.5.11 → 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 +59 -0
- package/dist/index.js +5669 -0
- package/package.json +7 -1
- package/.eslintignore +0 -17
- package/.eslintrc.cjs +0 -24
- package/.prettierignore +0 -15
- package/.prettierrc +0 -8
- package/export_svg/base.svg +0 -1
- package/export_svg/base_cut.svg +0 -1
- package/export_svg/base_hollow.svg +0 -1
- package/export_svg/base_top.svg +0 -1
- package/export_svg/calculation_of_initAngle2.svg +0 -1
- package/export_svg/circles.svg +0 -1
- package/export_svg/circles_amplitude-offset.svg +0 -1
- package/export_svg/circles_amplitude-scale.svg +0 -1
- package/export_svg/circles_angle.svg +0 -1
- package/export_svg/default_param_blank.svg +0 -1
- package/export_svg/dummy_pole_static.svg +0 -1
- package/export_svg/dummy_pole_static_face.svg +0 -1
- package/export_svg/gear_addendeum_dedendum_sizes.svg +0 -9
- package/export_svg/gear_addendum_and_dedendum.svg +0 -1
- package/export_svg/gear_adherence_replaced_by_teeth.svg +0 -1
- package/export_svg/gear_base_circle_for_involute.svg +0 -2
- package/export_svg/gear_base_left_circle_for_involute.svg +0 -2
- package/export_svg/gear_base_right_circle_for_involute.svg +0 -2
- package/export_svg/gear_inter_axis_maximum_distance.svg +0 -1
- package/export_svg/gear_inter_axis_minimum_distance.svg +0 -1
- package/export_svg/gear_large_base_radius.svg +0 -5
- package/export_svg/gear_module_and_tooth_thickness.svg +0 -3
- package/export_svg/gear_optimum_base_radius.svg +0 -5
- package/export_svg/gear_optimum_base_radius_with_longer_inter_axis.svg +0 -5
- package/export_svg/gear_right_left_base_circles.svg +0 -1
- package/export_svg/gear_small_base_radius.svg +0 -5
- package/export_svg/gear_wheel_circles.svg +0 -2
- package/export_svg/gears.svg +0 -71
- package/export_svg/gears_motion_transmission_via_adherence.svg +0 -1
- package/export_svg/heliostat.svg +0 -1
- package/export_svg/heliostat2_face_sizing.svg +0 -1
- package/export_svg/heliostat2_side_sizing.svg +0 -1
- package/export_svg/heliostat_face_sizing.svg +0 -1
- package/export_svg/heliostat_overview.svg +0 -1
- package/export_svg/heliostat_side.svg +0 -1
- package/export_svg/heliostat_side_sizing.svg +0 -1
- package/export_svg/involute_of_circle.svg +0 -19
- package/export_svg/involute_of_circle_R0.svg +0 -1
- package/export_svg/involute_of_circle_Ri1_u0.svg +0 -1
- package/export_svg/involute_of_circle_Ri2_u2.svg +0 -1
- package/export_svg/left_side_angle_kitchen.svg +0 -1
- package/export_svg/negative_involute_of_circle_R0.svg +0 -1
- package/export_svg/point_c_position_and_speed_negative.svg +0 -1
- package/export_svg/point_c_position_and_speed_positive.svg +0 -1
- package/export_svg/pole_rotor.svg +0 -1
- package/export_svg/pole_rotor_cut.svg +0 -1
- package/export_svg/pole_rotor_ends.svg +0 -1
- package/export_svg/pole_stator.svg +0 -3
- package/export_svg/pole_stator_E2.svg +0 -3
- package/export_svg/pole_stator_bottom.svg +0 -1
- package/export_svg/pole_stator_cut.svg +0 -1
- package/export_svg/pole_stator_face.svg +0 -1
- package/export_svg/pole_stator_right.svg +0 -1
- package/export_svg/rake.svg +0 -1
- package/export_svg/rake_door.svg +0 -1
- package/export_svg/rake_face.svg +0 -1
- package/export_svg/rake_side.svg +0 -1
- package/export_svg/rake_side_stopper.svg +0 -1
- package/export_svg/rake_top.svg +0 -1
- package/export_svg/rake_top_stopper.svg +0 -1
- package/export_svg/rectangle.svg +0 -1
- package/export_svg/rectangle_height.svg +0 -1
- package/export_svg/rectangle_width.svg +0 -1
- package/export_svg/right_side_angle_kitchen.svg +0 -1
- package/export_svg/rod.svg +0 -1
- package/export_svg/rod_cut.svg +0 -1
- package/export_svg/rod_plate.svg +0 -1
- package/export_svg/rod_top.svg +0 -1
- package/export_svg/spider.svg +0 -1
- package/export_svg/spider_lateral.svg +0 -1
- package/export_svg/spider_profile.svg +0 -1
- package/export_svg/surface.svg +0 -3
- package/export_svg/surface_crenel.svg +0 -1
- package/export_svg/surface_extremities.svg +0 -2
- package/export_svg/surface_lz.svg +0 -1
- package/export_svg/surface_main.svg +0 -1
- package/export_svg/surface_power.svg +0 -2
- package/export_svg/surface_space_evolution.svg +0 -1
- package/export_svg/surface_space_shape.svg +0 -1
- package/export_svg/swing.svg +0 -1
- package/export_svg/swing_face.svg +0 -1
- package/export_svg/swing_side.svg +0 -1
- package/export_svg/swing_top.svg +0 -1
- package/export_svg/swing_with_rod.svg +0 -1
- package/export_svg/trapeze.svg +0 -1
- package/export_svg/trapeze_rod.svg +0 -1
- package/export_svg/trapeze_side.svg +0 -1
- package/export_svg/trapeze_top.svg +0 -1
- package/export_svg/verify_contour_1.svg +0 -1
- package/export_svg/verify_contour_1_l1.svg +0 -1
- package/export_svg/verify_contour_1_r1.svg +0 -1
- package/export_svg/verify_line.svg +0 -1
- package/export_svg/verify_line_2_l1cx.svg +0 -1
- package/export_svg/verify_line_p1x.svg +0 -1
- package/export_svg/verify_point.svg +0 -1
- package/export_svg/verify_point_p1x.svg +0 -1
- package/export_svg/verify_vector_p1x.svg +0 -1
- package/src/dummy/circles.ts +0 -65
- package/src/dummy/pole_static.ts +0 -86
- package/src/dummy/rectangle.ts +0 -55
- package/src/dummy/svg/circles.svg +0 -288
- package/src/dummy/svg/circles_amplitude-offset.svg +0 -109
- package/src/dummy/svg/circles_amplitude-scale.svg +0 -122
- package/src/dummy/svg/circles_angle.svg +0 -110
- package/src/dummy/svg/dummy_pole_static.svg +0 -192
- package/src/dummy/svg/dummy_pole_static_face.svg +0 -176
- package/src/dummy/svg/rectangle.svg +0 -131
- package/src/dummy/svg/rectangle_height.svg +0 -82
- package/src/dummy/svg/rectangle_width.svg +0 -81
- package/src/gears/gearWheelProfile.test.ts +0 -25
- package/src/gears/gearWheelProfile.ts +0 -753
- package/src/gears/gear_wheel_wheel.ts +0 -335
- package/src/gears/involute.test.ts +0 -21
- package/src/gears/involute.ts +0 -113
- package/src/gears/simplified_gear_wheel.ts +0 -242
- package/src/gears/svg/calculation_of_initAngle2.svg +0 -376
- package/src/gears/svg/gear_addendeum_dedendum_sizes.svg +0 -471
- package/src/gears/svg/gear_addendum_and_dedendum.svg +0 -269
- package/src/gears/svg/gear_adherence_replaced_by_teeth.svg +0 -168
- package/src/gears/svg/gear_base_circle_for_involute.svg +0 -376
- package/src/gears/svg/gear_base_left_circle_for_involute.svg +0 -556
- package/src/gears/svg/gear_base_right_circle_for_involute.svg +0 -516
- package/src/gears/svg/gear_inter_axis_maximum_distance.svg +0 -218
- package/src/gears/svg/gear_inter_axis_minimum_distance.svg +0 -218
- package/src/gears/svg/gear_large_base_radius.svg +0 -199
- package/src/gears/svg/gear_module_and_tooth_thickness.svg +0 -319
- package/src/gears/svg/gear_optimum_base_radius.svg +0 -232
- package/src/gears/svg/gear_optimum_base_radius_with_longer_inter_axis.svg +0 -344
- package/src/gears/svg/gear_right_left_base_circles.svg +0 -295
- package/src/gears/svg/gear_small_base_radius.svg +0 -163
- package/src/gears/svg/gear_wheel_circles.svg +0 -348
- package/src/gears/svg/gears.svg +0 -4726
- package/src/gears/svg/gears_motion_transmission_via_adherence.svg +0 -178
- package/src/gears/svg/involute_of_circle.svg +0 -2745
- package/src/gears/svg/involute_of_circle_R0.svg +0 -334
- package/src/gears/svg/involute_of_circle_Ri1_u0.svg +0 -297
- package/src/gears/svg/involute_of_circle_Ri2_u2.svg +0 -386
- package/src/gears/svg/left_side_angle_kitchen.svg +0 -207
- package/src/gears/svg/negative_involute_of_circle_R0.svg +0 -381
- package/src/gears/svg/point_c_position_and_speed_negative.svg +0 -343
- package/src/gears/svg/point_c_position_and_speed_positive.svg +0 -339
- package/src/gears/svg/right_side_angle_kitchen.svg +0 -201
- package/src/gears/wheelElements.test.ts +0 -13
- package/src/gears/wheelElements.ts +0 -176
- package/src/geometrix_verification/svg/verify_contour_1.svg +0 -320
- package/src/geometrix_verification/svg/verify_contour_1_l1.svg +0 -102
- package/src/geometrix_verification/svg/verify_contour_1_r1.svg +0 -170
- package/src/geometrix_verification/svg/verify_line.svg +0 -845
- package/src/geometrix_verification/svg/verify_line_2_l1cx.svg +0 -274
- package/src/geometrix_verification/svg/verify_line_p1x.svg +0 -261
- package/src/geometrix_verification/svg/verify_point.svg +0 -350
- package/src/geometrix_verification/svg/verify_point_p1x.svg +0 -258
- package/src/geometrix_verification/svg/verify_vector_p1x.svg +0 -282
- package/src/geometrix_verification/verify_contour_1.ts +0 -94
- package/src/geometrix_verification/verify_contour_2.ts +0 -267
- package/src/geometrix_verification/verify_contour_3.ts +0 -409
- package/src/geometrix_verification/verify_contour_4.ts +0 -91
- package/src/geometrix_verification/verify_exports_1.ts +0 -95
- package/src/geometrix_verification/verify_line.ts +0 -76
- package/src/geometrix_verification/verify_line_2.ts +0 -76
- package/src/geometrix_verification/verify_line_3.ts +0 -64
- package/src/geometrix_verification/verify_point.ts +0 -62
- package/src/geometrix_verification/verify_point_2.ts +0 -66
- package/src/geometrix_verification/verify_vector.ts +0 -70
- package/src/heliostat/base.ts +0 -254
- package/src/heliostat/heliostat.ts +0 -317
- package/src/heliostat/heliostat_2.ts +0 -284
- package/src/heliostat/pole_rotor.ts +0 -165
- package/src/heliostat/pole_static.ts +0 -275
- package/src/heliostat/rake.ts +0 -486
- package/src/heliostat/rake_stopper.ts +0 -409
- package/src/heliostat/rod.ts +0 -200
- package/src/heliostat/spider.ts +0 -238
- package/src/heliostat/surface.ts +0 -320
- package/src/heliostat/svg/base.svg +0 -1367
- package/src/heliostat/svg/base_cut.svg +0 -459
- package/src/heliostat/svg/base_hollow.svg +0 -469
- package/src/heliostat/svg/base_top.svg +0 -338
- package/src/heliostat/svg/heliostat.svg +0 -8013
- package/src/heliostat/svg/heliostat2_face_sizing.svg +0 -1386
- package/src/heliostat/svg/heliostat2_side_sizing.svg +0 -984
- package/src/heliostat/svg/heliostat_face_sizing.svg +0 -1448
- package/src/heliostat/svg/heliostat_overview.svg +0 -1552
- package/src/heliostat/svg/heliostat_side.svg +0 -1470
- package/src/heliostat/svg/heliostat_side_sizing.svg +0 -1128
- package/src/heliostat/svg/pole_rotor.svg +0 -592
- package/src/heliostat/svg/pole_rotor_cut.svg +0 -287
- package/src/heliostat/svg/pole_rotor_ends.svg +0 -336
- package/src/heliostat/svg/pole_stator.svg +0 -1945
- package/src/heliostat/svg/pole_stator_E2.svg +0 -410
- package/src/heliostat/svg/pole_stator_bottom.svg +0 -330
- package/src/heliostat/svg/pole_stator_cut.svg +0 -465
- package/src/heliostat/svg/pole_stator_face.svg +0 -457
- package/src/heliostat/svg/pole_stator_right.svg +0 -357
- package/src/heliostat/svg/rake.svg +0 -4691
- package/src/heliostat/svg/rake_door.svg +0 -617
- package/src/heliostat/svg/rake_face.svg +0 -1211
- package/src/heliostat/svg/rake_side.svg +0 -809
- package/src/heliostat/svg/rake_side_stopper.svg +0 -596
- package/src/heliostat/svg/rake_top.svg +0 -514
- package/src/heliostat/svg/rake_top_stopper.svg +0 -565
- package/src/heliostat/svg/rod.svg +0 -1314
- package/src/heliostat/svg/rod_cut.svg +0 -265
- package/src/heliostat/svg/rod_plate.svg +0 -409
- package/src/heliostat/svg/rod_top.svg +0 -577
- package/src/heliostat/svg/spider.svg +0 -693
- package/src/heliostat/svg/spider_lateral.svg +0 -222
- package/src/heliostat/svg/spider_profile.svg +0 -429
- package/src/heliostat/svg/surface.svg +0 -3577
- package/src/heliostat/svg/surface_crenel.svg +0 -1335
- package/src/heliostat/svg/surface_extremities.svg +0 -510
- package/src/heliostat/svg/surface_lz.svg +0 -182
- package/src/heliostat/svg/surface_main.svg +0 -366
- package/src/heliostat/svg/surface_power.svg +0 -331
- package/src/heliostat/svg/surface_space_evolution.svg +0 -210
- package/src/heliostat/svg/surface_space_shape.svg +0 -98
- package/src/heliostat/svg/swing.svg +0 -3310
- package/src/heliostat/svg/swing_face.svg +0 -902
- package/src/heliostat/svg/swing_side.svg +0 -574
- package/src/heliostat/svg/swing_top.svg +0 -923
- package/src/heliostat/svg/swing_with_rod.svg +0 -547
- package/src/heliostat/svg/trapeze.svg +0 -1711
- package/src/heliostat/svg/trapeze_rod.svg +0 -122
- package/src/heliostat/svg/trapeze_side.svg +0 -361
- package/src/heliostat/svg/trapeze_top.svg +0 -1057
- package/src/heliostat/swing.ts +0 -246
- package/src/heliostat/trapeze.ts +0 -510
- package/src/index.ts +0 -33
- package/src/svg/default_param_blank.svg +0 -40
- package/tsconfig.json +0 -13
- package/vitest.config.ts +0 -7
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="200.00002"
|
|
6
|
-
height="200.00002"
|
|
7
|
-
viewBox="0 0 52.916671 52.91667"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg5"
|
|
10
|
-
inkscape:version="1.2.2 (732a01da63, 2022-12-09, custom)"
|
|
11
|
-
sodipodi:docname="rectangle.svg"
|
|
12
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
13
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
16
|
-
<sodipodi:namedview
|
|
17
|
-
id="namedview7"
|
|
18
|
-
pagecolor="#ffffff"
|
|
19
|
-
bordercolor="#666666"
|
|
20
|
-
borderopacity="1.0"
|
|
21
|
-
inkscape:showpageshadow="2"
|
|
22
|
-
inkscape:pageopacity="0.0"
|
|
23
|
-
inkscape:pagecheckerboard="0"
|
|
24
|
-
inkscape:deskcolor="#d1d1d1"
|
|
25
|
-
inkscape:document-units="px"
|
|
26
|
-
showgrid="false"
|
|
27
|
-
inkscape:zoom="1.1893044"
|
|
28
|
-
inkscape:cx="318.67367"
|
|
29
|
-
inkscape:cy="299.75505"
|
|
30
|
-
inkscape:window-width="1366"
|
|
31
|
-
inkscape:window-height="836"
|
|
32
|
-
inkscape:window-x="0"
|
|
33
|
-
inkscape:window-y="0"
|
|
34
|
-
inkscape:window-maximized="1"
|
|
35
|
-
inkscape:current-layer="layer1" />
|
|
36
|
-
<defs
|
|
37
|
-
id="defs2">
|
|
38
|
-
<rect
|
|
39
|
-
x="156.88989"
|
|
40
|
-
y="282.49509"
|
|
41
|
-
width="115.20652"
|
|
42
|
-
height="27.0937"
|
|
43
|
-
id="rect1120-3" />
|
|
44
|
-
</defs>
|
|
45
|
-
<g
|
|
46
|
-
inkscape:label="Layer 1"
|
|
47
|
-
inkscape:groupmode="layer"
|
|
48
|
-
id="layer1"
|
|
49
|
-
transform="translate(-91.960342,-39.609482)">
|
|
50
|
-
<rect
|
|
51
|
-
style="fill:#ffffff;stroke-width:0"
|
|
52
|
-
id="rect169-6"
|
|
53
|
-
width="52.916668"
|
|
54
|
-
height="52.916668"
|
|
55
|
-
x="91.960342"
|
|
56
|
-
y="39.609482"
|
|
57
|
-
inkscape:export-filename="rectangle_height.svg"
|
|
58
|
-
inkscape:export-xdpi="96"
|
|
59
|
-
inkscape:export-ydpi="96" />
|
|
60
|
-
<rect
|
|
61
|
-
style="fill:none;stroke:#808080;stroke-width:0.264583"
|
|
62
|
-
id="rect954-7"
|
|
63
|
-
width="31.018782"
|
|
64
|
-
height="21.065031"
|
|
65
|
-
x="94.291733"
|
|
66
|
-
y="64.186623"
|
|
67
|
-
transform="rotate(-5.9136743)" />
|
|
68
|
-
<path
|
|
69
|
-
style="fill:none;stroke:#ff7f2a;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
70
|
-
d="m 100.40308,54.130167 2.17033,20.952921"
|
|
71
|
-
id="path1116-5"
|
|
72
|
-
sodipodi:nodetypes="cc" />
|
|
73
|
-
<text
|
|
74
|
-
xml:space="preserve"
|
|
75
|
-
transform="matrix(0.26458333,0,0,0.26458333,61.211822,-28.540572)"
|
|
76
|
-
id="text1118-3"
|
|
77
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1120-3);display:inline;fill:#ff6600"><tspan
|
|
78
|
-
x="156.89062"
|
|
79
|
-
y="295.47073"
|
|
80
|
-
id="tspan2439">height</tspan></text>
|
|
81
|
-
</g>
|
|
82
|
-
</svg>
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="199.99998"
|
|
6
|
-
height="200"
|
|
7
|
-
viewBox="0 0 52.916663 52.916666"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg5"
|
|
10
|
-
inkscape:version="1.2.2 (732a01da63, 2022-12-09, custom)"
|
|
11
|
-
sodipodi:docname="rectangle.svg"
|
|
12
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
13
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
16
|
-
<sodipodi:namedview
|
|
17
|
-
id="namedview7"
|
|
18
|
-
pagecolor="#ffffff"
|
|
19
|
-
bordercolor="#666666"
|
|
20
|
-
borderopacity="1.0"
|
|
21
|
-
inkscape:showpageshadow="2"
|
|
22
|
-
inkscape:pageopacity="0.0"
|
|
23
|
-
inkscape:pagecheckerboard="0"
|
|
24
|
-
inkscape:deskcolor="#d1d1d1"
|
|
25
|
-
inkscape:document-units="px"
|
|
26
|
-
showgrid="false"
|
|
27
|
-
inkscape:zoom="1.1893044"
|
|
28
|
-
inkscape:cx="318.67367"
|
|
29
|
-
inkscape:cy="299.75505"
|
|
30
|
-
inkscape:window-width="1366"
|
|
31
|
-
inkscape:window-height="836"
|
|
32
|
-
inkscape:window-x="0"
|
|
33
|
-
inkscape:window-y="0"
|
|
34
|
-
inkscape:window-maximized="1"
|
|
35
|
-
inkscape:current-layer="layer1" />
|
|
36
|
-
<defs
|
|
37
|
-
id="defs2">
|
|
38
|
-
<rect
|
|
39
|
-
x="156.88989"
|
|
40
|
-
y="282.49509"
|
|
41
|
-
width="115.20652"
|
|
42
|
-
height="27.0937"
|
|
43
|
-
id="rect1120" />
|
|
44
|
-
</defs>
|
|
45
|
-
<g
|
|
46
|
-
inkscape:label="Layer 1"
|
|
47
|
-
inkscape:groupmode="layer"
|
|
48
|
-
id="layer1"
|
|
49
|
-
transform="translate(-23.779848,-35.508137)">
|
|
50
|
-
<rect
|
|
51
|
-
style="fill:#ffffff;stroke-width:0"
|
|
52
|
-
id="rect169"
|
|
53
|
-
width="52.916668"
|
|
54
|
-
height="52.916668"
|
|
55
|
-
x="23.779848"
|
|
56
|
-
y="35.508137"
|
|
57
|
-
inkscape:export-filename="rectangle_width.svg"
|
|
58
|
-
inkscape:export-xdpi="96"
|
|
59
|
-
inkscape:export-ydpi="96" />
|
|
60
|
-
<rect
|
|
61
|
-
style="fill:none;stroke:#808080;stroke-width:0.264583"
|
|
62
|
-
id="rect954"
|
|
63
|
-
width="31.018782"
|
|
64
|
-
height="21.065031"
|
|
65
|
-
x="26.896646"
|
|
66
|
-
y="53.08247"
|
|
67
|
-
transform="rotate(-5.9136743)" />
|
|
68
|
-
<path
|
|
69
|
-
style="fill:none;stroke:#ff7f2a;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
70
|
-
d="M 65.246628,67.785881 34.39292,70.981744"
|
|
71
|
-
id="path1116" />
|
|
72
|
-
<text
|
|
73
|
-
xml:space="preserve"
|
|
74
|
-
transform="scale(0.26458333)"
|
|
75
|
-
id="text1118"
|
|
76
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1120);display:inline;fill:#ff6600"><tspan
|
|
77
|
-
x="156.89062"
|
|
78
|
-
y="295.47073"
|
|
79
|
-
id="tspan2367">width</tspan></text>
|
|
80
|
-
</g>
|
|
81
|
-
</svg>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import * as gwHelper from './gearWheelProfile';
|
|
3
|
-
|
|
4
|
-
function degToRad(deg: number): number {
|
|
5
|
-
return (deg / 180) * Math.PI;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
describe('gearWheelProfile module', () => {
|
|
9
|
-
const gw1 = gwHelper.gwProfile();
|
|
10
|
-
gw1.set1ModuleToothNumber(10, 23);
|
|
11
|
-
gw1.set2CenterPosition(0, 0);
|
|
12
|
-
gw1.set3CircleRadius(1, 1, 1, 2);
|
|
13
|
-
gw1.set4BaseCircles(210, 210);
|
|
14
|
-
gw1.set5AddendumThickness(50);
|
|
15
|
-
gw1.set6Angles(0, 0);
|
|
16
|
-
it('gwProfile', () => {
|
|
17
|
-
expect(gw1.calcInvoluteAngles()).toBe(undefined);
|
|
18
|
-
});
|
|
19
|
-
it('gwHelper', () => {
|
|
20
|
-
const gw2 = gwHelper.gwProfile();
|
|
21
|
-
gw2.set1ModuleToothNumber(10, 29);
|
|
22
|
-
expect(gwHelper.gw2center(gw1, gw2, degToRad(0), 2)[0]).toBeCloseTo(262);
|
|
23
|
-
expect(gwHelper.gw2center(gw1, gw2, degToRad(0), 2)[1]).toBeCloseTo(0);
|
|
24
|
-
});
|
|
25
|
-
});
|