From c6666fd385588f11d6ec887455a115d525e2e6c2 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sun, 8 Feb 2026 16:50:31 +0100 Subject: feat: update text properties to use dynamic font size limits and scaling --- apps/web/src/constants/text-constants.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'apps/web/src/constants') diff --git a/apps/web/src/constants/text-constants.ts b/apps/web/src/constants/text-constants.ts index c8a23655..932d494b 100644 --- a/apps/web/src/constants/text-constants.ts +++ b/apps/web/src/constants/text-constants.ts @@ -1,11 +1,20 @@ import type { TextElement } from "@/types/timeline"; import { TIMELINE_CONSTANTS } from "./timeline-constants"; +export const MIN_FONT_SIZE = 5; +export const MAX_FONT_SIZE = 300; + +/** + * higher value: smaller font size + * lower value: larger font size + */ +export const FONT_SIZE_SCALE_REFERENCE = 90; + export const DEFAULT_TEXT_ELEMENT: Omit = { type: "text", name: "Text", content: "Default Text", - fontSize: 48, + fontSize: 15, fontFamily: "Arial", color: "#ffffff", backgroundColor: "transparent", -- cgit v1.3.1