fix: resolve errors and css warnings

This commit is contained in:
2026-02-04 16:50:22 +05:00
parent 62254acdb9
commit 64dfc2c441
5 changed files with 15 additions and 80 deletions
+6 -2
View File
@@ -1,4 +1,3 @@
import pkg from "file-saver";
const { saveAs } = pkg;
import type { Panel } from "../types/panel";
@@ -44,7 +43,12 @@ export class ExportService {
ctx.fillStyle = textItem.color;
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillText(textItem.text, textItem.x, textItem.y);
// Calculate position based on existing system
const x = 160; // Center of 320px panel
const y = panel.height / 2 + textItem.verticalOffset;
ctx.fillText(textItem.text, x, y);
});
// Конвертируем в blob и сохраняем