forked from goessner/mec2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGetriebesystematik.html
115 lines (102 loc) · 4.31 KB
/
Getriebesystematik.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<head>
<meta charset='utf-8'>
</head>
<script src="https://requirejs.org/docs/release/2.3.5/minified/require.js"></script>
<script src="https://cdn.jsdelivr.net/gh/goessner/g2/dist/g2.js"></script>
<script src="../../customG2/g2.ext.js"></script>
<script src="../../customG2/g2ExtraSymbols.js"></script>
<script src="../../customG2/g2Extras.js"></script>
<script async src="src\mec.core.js"></script>
<script async src="src\mec.model.js"></script>
<script async src="src\mec.msg.en.js"></script>
<script async src="src\mec.node.js"></script>
<script async src="src\mec.constraint.js"></script>
<script async src="src\mec.drive.js"></script>
<script async src="src\mec.load.js"></script>
<script async src="src\mec.view.js"></script>
<script async src="src\mec.shape.js"></script>
<script async scr="src/mec.ExtraShapes.js"></script>
<script async scr="Test.js" type="module"></script>
<script async src="src/mec3.htmlelement.js"></script>
<h1>Getriebesystematik</h1>
<!--<canvas onclick="clickCanvas()" style="border: 1px; border-color: black; width: 100px; height: 100px; background-color: aqua;" ></canvas>-->
</br>
<mec-3 style="width:400px !important; height:400px !important; border:1px solid #000000;"
x0="60" y0="60" cartesian scale="1.2" nodelabels constraintlabels font="Times New Roman 16px cursive" gravity pause
>
{ "id":"Parallelkurbel",
"nodes":[
{"id":"A0","base":true,"idloc":"sw"},
{"id":"B0","x":100,"base":true,"idloc":"se"},
{"id":"A","y":120,"idloc":"nw"},
{"id":"B","x":100,"y":120,"idloc":"ne"}
],
"constraints":[{
"id":"a","p1":"A0","p2":"A","len":{"type":"const"},
"ori":{"type":"drive","func":"linear","Dt":5},
"lw":16, "ls":"#ff770066"
}, {
"id":"b","p1":"A","p2":"B","len":{"type":"const"},
"lw":16, "ls":"#ff770066"
}, {
"id":"c","p1":"B0","p2":"B","len":{"type":"const"},
"lw":16, "ls":"#ff770066"
}
]
}
</mec-3>
</br>
<mec-3 style="width:900px !important; height:1000px !important; border:1px solid #000000;"
x0="60" y0="60" cartesian scale="1.2" nodelabels constraintlabels font="Times New Roman 16px cursive" gravity pause
>
{"id":"ANA078",
"nodes": [
{ "id" :"A0" ,"x":345.18,"y":603.9,"base":true, "optic":"FG" , "idloc":"e" },
{ "id" :"A" ,"x":389.07,"y":655.71, "idloc":"e" },
{ "id" :"B0" ,"x":97.35,"y":554.4,"base":true, "optic":"FG" , "idloc":"e" },
{ "id" :"B" ,"x":219.45,"y":668.25, "idloc":"e" },
{ "id" :"C" ,"x":485.76,"y":539.88, "idloc":"e" },
{ "id" :"D" ,"x":350.13,"y":359.7, "idloc":"e" },
{ "id" :"D0" ,"x":350.13,"y":363,"base":true, "optic":"FG" , "hid":true }
],
"constraints": [
{ "id":"2","p1":"A0","p2":"A","len":{ "type":"const" } ,"ori":{ "type":"drive","Dt":9,"Dw":6.283185307179586, "repeat":100 },"idloc":-0.6},
{ "id":"l3","p1":"A","p2":"B","len":{ "type":"const" },"txt":" " },
{ "id":"l3_2","p1":"A","p2":"C","len":{ "type":"const" },"txt":" " },
{ "id":"4","p1":"B0","p2":"B","len":{ "type":"const" } ,"idloc":"left"},
{ "id":"3","p1":"B","p2":"C","len":{ "type":"const" }, "idloc":-1},
{ "id":"5","p1":"C","p2":"D","len":{ "type":"const" }, "idloc":-1},
{ "id":"6","p1":"D0","p2":"D","ori":{ "type":"const" }, "hid":true }
],
"shapes": [
{ "type": "Ecke", "p3": "A", "p2": "B" , "p1": "C"},
{ "type": "Ecke", "p1": "B", "p2": "C" , "p3": "A"},
{ "type": "Ecke", "p1": "B", "p2": "A" , "p3": "C","side":1},
{ "type": "line", "p1": "D0", "wref":"6","len":"220","lintype":"grd2" },
{ "type": "Schieber", "p": "D" ,"wref":"6", "fill":"white"}
]
,
"views": [
{
"show": "pos", "of": "C", "as": "trace", "Dt":9.1,
"mode":"dynamic", "fill":"transparent", "stroke":"green"
},
{
"show": "acc", "of": "C", "as": "vector", "stroke":"green"
},
{
"show": "acc", "of": "A", "as": "vector", "stroke":"green"
},
{
"show": "acc", "of": "B", "as": "vector", "stroke":"green"
},
{
"show": "acc", "of": "D", "as": "vector"
},
{
"as": "chart", "x": 40, "y": 195,"b":200,"h":150, "Dt": 9.1, "stroke":"red",
"show": "r", "of": "6", "against":{"show":"w", "of":"2"}
}
]
}
</mec-3>