feat: change text settings to common

This commit is contained in:
2026-02-04 00:18:20 +05:00
parent c5eacf1237
commit 3a98a08215
3 changed files with 309 additions and 93 deletions
+8 -2
View File
@@ -30,8 +30,14 @@ export const addTextToPanel = (panel: Panel, text: string): Panel => {
fontSize: 18,
fontFamily: "Arial",
color: "#ffffff",
x: 160, // center horizontally
y: 50, // center vertically
textAlign: "center" as const,
padding: {
top: 10,
right: 10,
bottom: 10,
left: 10,
},
verticalOffset: 0,
};
return updatePanel(panel, {