Feat : add used class binding, add vuejs click listener

This commit is contained in:
2024-07-07 10:46:34 +02:00
parent 3055b7f658
commit 5c8ad7b906
104 changed files with 557 additions and 764 deletions
+1 -2
View File
@@ -85,7 +85,7 @@ for card_data in cards:
# Create a new SVG drawing
output_dir = "output/" + all_skin_data["skin_name"]
os.makedirs(output_dir, exist_ok=True)
d = Drawing(x_width, y_height, id="card"+str(card_data["id"]), id_prefix=str(card_data.get('id')) + "_", **{'class':'card', 'xmlns:v-bind':"https://heron.legonzaur.fr"})
d = Drawing(x_width, y_height, id="card"+str(card_data["id"]), id_prefix=str(card_data.get('id')) + "_", **{'class':'card', 'xmlns:v-bind':"https://vuejs.org/guide/essentials/class-and-style.html",'xmlns:v-on':"https://vuejs.org/guide/essentials/event-handling.html"})
d.append(shadowFilter)
# Define linear colored gradient
@@ -199,4 +199,3 @@ for card_data in cards:
# Save the SVG file
d.save_svg(f"output/{all_skin_data['skin_name']}/{str(card_data["id"]).zfill(3)}.svg")
finish_card(f"output/{all_skin_data['skin_name']}/{str(card_data["id"]).zfill(3)}.svg")