diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-03-25 16:47:22 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-03-29 15:48:22 +0200 |
| commit | 8db3bead13441a5882d8689dfc6a9f09c82375d9 (patch) | |
| tree | e9d0cafa93904ffcbec3188c37961bcc16c6422d /apps/web/src/constants/text-constants.ts | |
| parent | 39ea298a9ccba3104c549c0ca079c231981811f5 (diff) | |
| download | opencut-8db3bead13441a5882d8689dfc6a9f09c82375d9.tar.gz | |
feat: masks, properties refactor, shaders, storage migrations, and more
Diffstat (limited to 'apps/web/src/constants/text-constants.ts')
| -rw-r--r-- | apps/web/src/constants/text-constants.ts | 42 |
1 files changed, 0 insertions, 42 deletions
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<TextElement, "id"> = { - 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, -}; |
