mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
use a const for default font value (#834)
This commit is contained in:
parent
2131befd7a
commit
1355e0201c
3 changed files with 7 additions and 4 deletions
|
@ -2,6 +2,7 @@ import { AppState, FlooredNumber } from "./types";
|
|||
import { getDateTime } from "./utils";
|
||||
|
||||
const DEFAULT_PROJECT_NAME = `excalidraw-${getDateTime()}`;
|
||||
export const DEFAULT_FONT = "20px Virgil";
|
||||
|
||||
export function getDefaultAppState(): AppState {
|
||||
return {
|
||||
|
@ -18,7 +19,7 @@ export function getDefaultAppState(): AppState {
|
|||
currentItemStrokeWidth: 1,
|
||||
currentItemRoughness: 1,
|
||||
currentItemOpacity: 100,
|
||||
currentItemFont: "20px Virgil",
|
||||
currentItemFont: DEFAULT_FONT,
|
||||
viewBackgroundColor: "#ffffff",
|
||||
scrollX: 0 as FlooredNumber,
|
||||
scrollY: 0 as FlooredNumber,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue