From 7bf0984698e43b9aa2dd879f65951318ed410390 Mon Sep 17 00:00:00 2001 From: Maze <167211895+mazeincoding@users.noreply.github.com> Date: Sat, 31 Jan 2026 00:20:04 +0100 Subject: codebase overhaul (#697) --- apps/web/src/constants/text-constants.ts | 50 +++++++++++++++++--------------- 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'apps/web/src/constants/text-constants.ts') diff --git a/apps/web/src/constants/text-constants.ts b/apps/web/src/constants/text-constants.ts index e3fcce38..c8a23655 100644 --- a/apps/web/src/constants/text-constants.ts +++ b/apps/web/src/constants/text-constants.ts @@ -1,27 +1,29 @@ -import { TextElement } from "@/types/timeline"; +import type { TextElement } from "@/types/timeline"; import { TIMELINE_CONSTANTS } from "./timeline-constants"; -export const DEFAULT_TEXT_ELEMENT: Omit< - TextElement, - "id" -> = { - type: "text", - name: "Text", - content: "Default Text", - fontSize: 48, - fontFamily: "Arial", - color: "#ffffff", - backgroundColor: "transparent", - textAlign: "center", - fontWeight: "normal", - fontStyle: "normal", - textDecoration: "none", - x: 0, - y: 0, - rotation: 0, - opacity: 1, - duration: TIMELINE_CONSTANTS.DEFAULT_TEXT_DURATION, - startTime: 0, - trimStart: 0, - trimEnd: 0, +export const DEFAULT_TEXT_ELEMENT: Omit = { + type: "text", + name: "Text", + content: "Default Text", + fontSize: 48, + fontFamily: "Arial", + color: "#ffffff", + backgroundColor: "transparent", + textAlign: "center", + fontWeight: "normal", + fontStyle: "normal", + textDecoration: "none", + duration: TIMELINE_CONSTANTS.DEFAULT_ELEMENT_DURATION, + startTime: 0, + trimStart: 0, + trimEnd: 0, + transform: { + scale: 1, + position: { + x: 0, + y: 0, + }, + rotate: 0, + }, + opacity: 1, }; -- cgit v1.3.1