feat: update text properties to use dynamic font size limits and scaling

This commit is contained in:
Maze Winther
2026-02-08 16:50:31 +01:00
parent 9b5fd6eb07
commit c6666fd385
4 changed files with 37 additions and 10 deletions
+10 -1
View File
@@ -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<TextElement, "id"> = {
type: "text",
name: "Text",
content: "Default Text",
fontSize: 48,
fontSize: 15,
fontFamily: "Arial",
color: "#ffffff",
backgroundColor: "transparent",