From 8db3bead13441a5882d8689dfc6a9f09c82375d9 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 25 Mar 2026 16:47:22 +0100 Subject: feat: masks, properties refactor, shaders, storage migrations, and more --- apps/web/src/constants/text-constants.ts | 42 -------------------------------- 1 file changed, 42 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 6779670b..45f76bc8 100644 --- a/apps/web/src/constants/text-constants.ts +++ b/apps/web/src/constants/text-constants.ts @@ -1,10 +1,3 @@ -import type { TextElement } from "@/types/timeline"; -import { - DEFAULT_OPACITY, - DEFAULT_TRANSFORM, - TIMELINE_CONSTANTS, -} from "./timeline-constants"; - export const MIN_FONT_SIZE = 5; export const MAX_FONT_SIZE = 300; @@ -14,40 +7,5 @@ export const MAX_FONT_SIZE = 300; */ export const FONT_SIZE_SCALE_REFERENCE = 90; -export const DEFAULT_LETTER_SPACING = 0; -export const DEFAULT_LINE_HEIGHT = 1.2; - export const CORNER_RADIUS_MIN = 0; export const CORNER_RADIUS_MAX = 100; - -export const DEFAULT_TEXT_BACKGROUND = { - enabled: false, - color: "#000000", - cornerRadius: 0, - paddingX: 30, - paddingY: 42, - offsetX: 0, - offsetY: 0, -}; - -export const DEFAULT_TEXT_ELEMENT: Omit = { - type: "text", - name: "Text", - content: "Default text", - fontSize: 15, - fontFamily: "Arial", - color: "#ffffff", - background: DEFAULT_TEXT_BACKGROUND, - textAlign: "center", - fontWeight: "normal", - fontStyle: "normal", - textDecoration: "none", - letterSpacing: DEFAULT_LETTER_SPACING, - lineHeight: DEFAULT_LINE_HEIGHT, - duration: TIMELINE_CONSTANTS.DEFAULT_ELEMENT_DURATION, - startTime: 0, - trimStart: 0, - trimEnd: 0, - transform: DEFAULT_TRANSFORM, - opacity: DEFAULT_OPACITY, -}; -- cgit v1.3.1