feat: introduce font picker (#8012)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user