fix: resolve typescript types errors

This commit is contained in:
2026-02-04 13:43:10 +05:00
parent dfa6c40743
commit 3a99a3d22a
9 changed files with 36 additions and 33 deletions
+3 -4
View File
@@ -1,14 +1,13 @@
export type TextAlign = "left" | "center" | "right";
export interface TextItem {
id: string;
text: string;
fontSize: number;
fontFamily: string;
color: string;
// Выравнивание текста: left, center, right
textAlign: "left" | "center" | "right";
// Боковые отступы (лево/право)
textAlign: TextAlign;
paddingX: number;
// Смещение от центра по вертикали (для компенсации визуального центра разных шрифтов)
verticalOffset: number;
}