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
parent 4c5408263c
commit 62228e0bbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
120 changed files with 3390 additions and 1106 deletions

View file

@ -5,7 +5,7 @@ import { isShallowEqual } from "./utils";
import "./css/app.scss";
import "./css/styles.scss";
import "../../public/fonts/fonts.css";
import "./fonts/assets/fonts.css";
import polyfill from "./polyfill";
import type { AppProps, ExcalidrawProps } from "./types";
@ -50,6 +50,7 @@ const ExcalidrawBase = (props: ExcalidrawProps) => {
validateEmbeddable,
renderEmbeddable,
aiEnabled,
showDeprecatedFonts,
} = props;
const canvasActions = props.UIOptions?.canvasActions;
@ -137,6 +138,7 @@ const ExcalidrawBase = (props: ExcalidrawProps) => {
validateEmbeddable={validateEmbeddable}
renderEmbeddable={renderEmbeddable}
aiEnabled={aiEnabled !== false}
showDeprecatedFonts={showDeprecatedFonts}
>
{children}
</App>