mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix a ton of issues + improvement
This commit is contained in:
@@ -17,6 +17,15 @@ export const FONT_SIZE_SCALE_REFERENCE = 90;
|
||||
export const DEFAULT_LETTER_SPACING = 0;
|
||||
export const DEFAULT_LINE_HEIGHT = 1.2;
|
||||
|
||||
export const DEFAULT_TEXT_BACKGROUND = {
|
||||
color: "#000000",
|
||||
cornerRadius: 0,
|
||||
paddingX: 30,
|
||||
paddingY: 42,
|
||||
offsetX: 0,
|
||||
offsetY: 0,
|
||||
};
|
||||
|
||||
export const DEFAULT_TEXT_ELEMENT: Omit<TextElement, "id"> = {
|
||||
type: "text",
|
||||
name: "Text",
|
||||
@@ -24,7 +33,7 @@ export const DEFAULT_TEXT_ELEMENT: Omit<TextElement, "id"> = {
|
||||
fontSize: 15,
|
||||
fontFamily: "Arial",
|
||||
color: "#ffffff",
|
||||
backgroundColor: "#000000",
|
||||
background: DEFAULT_TEXT_BACKGROUND,
|
||||
textAlign: "center",
|
||||
fontWeight: "normal",
|
||||
fontStyle: "normal",
|
||||
|
||||
Reference in New Issue
Block a user