alle Weiche in 2D mit M und mit P ohne TEF sind korrigiert und in 2D Wizard eingepflegt.
This commit is contained in:
+4
-4
@@ -47,9 +47,9 @@ def process_json_item(item):
|
||||
scale = round(1000 / item["Objekt_width_mm"], 7)
|
||||
item["calculated_SVG_width_px"] = 1000
|
||||
if item["Winkel"]==180:
|
||||
item["calculated_SVG_height_px"] = round(item["Objekt_height_mm"] * scale+3.78/2, 3)
|
||||
item["calculated_SVG_height_px"] = round(item["Objekt_height_mm"] * scale+3.7795/2, 3)
|
||||
else:
|
||||
item["calculated_SVG_height_px"] = round(item["Objekt_height_mm"] * scale+3.78/2/sin_value, 3)
|
||||
item["calculated_SVG_height_px"] = round(item["Objekt_height_mm"] * scale+3.7795/2/sin_value, 3)
|
||||
scale_RD_H = round(1000 / item["calculated_SVG_height_px"], 6)
|
||||
scale_RD_W = 1
|
||||
else:
|
||||
@@ -57,9 +57,9 @@ def process_json_item(item):
|
||||
scale = round(1000 / item["Objekt_height_mm"], 7)
|
||||
item["calculated_SVG_height_px"] = 1000
|
||||
if item["Winkel"]==180:
|
||||
item["calculated_SVG_width_px"] = round(item["Objekt_width_mm"] * scale+3.78/2, 3)
|
||||
item["calculated_SVG_width_px"] = round(item["Objekt_width_mm"] * scale+3.7795/2, 3)
|
||||
else:
|
||||
item["calculated_SVG_width_px"] = round(item["Objekt_width_mm"] * scale+3.78/2/cos_value, 3)
|
||||
item["calculated_SVG_width_px"] = round(item["Objekt_width_mm"] * scale+3.7795/2/cos_value, 3)
|
||||
scale_RD_W = round(1000 / item["calculated_SVG_width_px"], 6)
|
||||
scale_RD_H = 1
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
"Objekt_width_px": 1974.947,
|
||||
"Objekt_height_px": 614.951,
|
||||
"calculated_SVG_width_px": 1000,
|
||||
"calculated_SVG_height_px": 316.315,
|
||||
"calculated_SVG_height_px": 316.314,
|
||||
"scale_factor": 1.9137218,
|
||||
"connectionPoints": [
|
||||
{
|
||||
@@ -144,7 +144,7 @@
|
||||
{
|
||||
"id": "cp2",
|
||||
"x": 984.593,
|
||||
"y": 866.791,
|
||||
"y": 866.794,
|
||||
"direction": 112.5
|
||||
}
|
||||
]
|
||||
@@ -162,7 +162,7 @@
|
||||
"Objekt_width_px": 1974.947,
|
||||
"Objekt_height_px": 614.951,
|
||||
"calculated_SVG_width_px": 1000,
|
||||
"calculated_SVG_height_px": 316.315,
|
||||
"calculated_SVG_height_px": 316.314,
|
||||
"scale_factor": 1.9137218,
|
||||
"connectionPoints": [
|
||||
{
|
||||
@@ -174,7 +174,7 @@
|
||||
{
|
||||
"id": "cp2",
|
||||
"x": 984.593,
|
||||
"y": 866.791,
|
||||
"y": 866.794,
|
||||
"direction": 112.5
|
||||
}
|
||||
]
|
||||
@@ -252,7 +252,7 @@
|
||||
"Objekt_width_px": 2306.032,
|
||||
"Objekt_height_px": 1141.084,
|
||||
"calculated_SVG_width_px": 1000,
|
||||
"calculated_SVG_height_px": 497.499,
|
||||
"calculated_SVG_height_px": 497.498,
|
||||
"scale_factor": 1.6389627,
|
||||
"connectionPoints": [
|
||||
{
|
||||
@@ -264,7 +264,7 @@
|
||||
{
|
||||
"id": "cp2",
|
||||
"x": 975.617,
|
||||
"y": 945.619,
|
||||
"y": 945.621,
|
||||
"direction": 135.0
|
||||
}
|
||||
]
|
||||
@@ -432,7 +432,7 @@
|
||||
"Objekt_width_px": 3327.816,
|
||||
"Objekt_height_px": 1271.707,
|
||||
"calculated_SVG_width_px": 1000,
|
||||
"calculated_SVG_height_px": 384.818,
|
||||
"calculated_SVG_height_px": 384.817,
|
||||
"scale_factor": 1.13573,
|
||||
"connectionPoints": [
|
||||
{
|
||||
@@ -444,7 +444,7 @@
|
||||
{
|
||||
"id": "cp2",
|
||||
"x": 983.103,
|
||||
"y": 949.149,
|
||||
"y": 949.152,
|
||||
"direction": 135.0
|
||||
}
|
||||
]
|
||||
@@ -462,7 +462,7 @@
|
||||
"Objekt_width_px": 3327.816,
|
||||
"Objekt_height_px": 1271.707,
|
||||
"calculated_SVG_width_px": 1000,
|
||||
"calculated_SVG_height_px": 384.818,
|
||||
"calculated_SVG_height_px": 384.817,
|
||||
"scale_factor": 1.13573,
|
||||
"connectionPoints": [
|
||||
{
|
||||
@@ -474,7 +474,7 @@
|
||||
{
|
||||
"id": "cp2",
|
||||
"x": 983.103,
|
||||
"y": 949.149,
|
||||
"y": 949.152,
|
||||
"direction": 135.0
|
||||
}
|
||||
]
|
||||
@@ -552,7 +552,7 @@
|
||||
"Objekt_width_px": 2687.376,
|
||||
"Objekt_height_px": 3292.096,
|
||||
"calculated_SVG_height_px": 1000,
|
||||
"calculated_SVG_width_px": 3.0866042377540064e+16,
|
||||
"calculated_SVG_width_px": 3.0861959567701764e+16,
|
||||
"scale_factor": 1.1480529,
|
||||
"connectionPoints": [
|
||||
{
|
||||
@@ -582,7 +582,7 @@
|
||||
"Objekt_width_px": 3292.096,
|
||||
"Objekt_height_px": 3367.686,
|
||||
"calculated_SVG_height_px": 1000,
|
||||
"calculated_SVG_width_px": 3.0866042377540224e+16,
|
||||
"calculated_SVG_width_px": 3.0861959567701924e+16,
|
||||
"scale_factor": 1.1222841,
|
||||
"connectionPoints": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user