feat: introduce font picker (#8012)

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
Marcel Mraz
2024-07-25 18:55:55 +02:00
committed by GitHub
co-authored by dwelle
parent 4c5408263c
commit 62228e0bbb
120 changed files with 3390 additions and 1106 deletions
+15
View File
@@ -1,3 +1,4 @@
import { DEFAULT_FONT_FAMILY } from "../../constants";
import type { ExcalidrawElement } from "../../element/types";
const elementBase: Omit<ExcalidrawElement, "type"> = {
@@ -49,3 +50,17 @@ export const rectangleWithLinkFixture: ExcalidrawElement = {
type: "rectangle",
link: "excalidraw.com",
};
export const textFixture: ExcalidrawElement = {
...elementBase,
type: "text",
fontSize: 20,
fontFamily: DEFAULT_FONT_FAMILY,
text: "original text",
originalText: "original text",
textAlign: "left",
verticalAlign: "top",
containerId: null,
lineHeight: 1.25 as any,
autoResize: false,
};