verbesserte Vorauswahl der Prototypen für die Lebensmittel
All checks were successful
ci/woodpecker/push/default Pipeline was successful

This commit is contained in:
Christian Opitz 2023-11-12 19:13:06 +01:00
parent 178e3ab9a8
commit ba09db5ca3

View file

@ -267,7 +267,9 @@ export default {
lebensmittel_prototypen: [
{ x: 10, y: 10, color: "blue" },
{ x: 5, y: 50, color: "blue" },
{ x: 50, y: 5, color: "blue" },
{ x: 40, y: 5, color: "blue" },
{ x: 25, y: 40, color: "blue" },
{ x: 60, y: 60, color: "blue" },
],
@ -588,8 +590,8 @@ export default {
let breite_original = 800;
let hoehe_original = 450;
let offset_rand_ursprung_x = 14;
let offset_rand_ursprung_y = 14;
let offset_rand_ursprung_x = 14+4;
let offset_rand_ursprung_y = 14+4;
let offset_kreis_radius = 16; // damit die Kreise nicht außerhalb gezeichnet werden
let breite = breite_original - offset_rand_ursprung_x - offset_kreis_radius;
let hoehe = hoehe_original - offset_rand_ursprung_y - offset_kreis_radius;