mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Better name for app state (#1300)
* Better name for app state * Snapshot
This commit is contained in:
parent
9a1af38c97
commit
26fd2fe165
4 changed files with 265 additions and 264 deletions
|
@ -1,5 +1,6 @@
|
|||
import { AppState, FlooredNumber } from "./types";
|
||||
import { getDateTime } from "./utils";
|
||||
import { t } from "./i18n";
|
||||
|
||||
export const DEFAULT_FONT = "20px Virgil";
|
||||
|
||||
|
@ -28,7 +29,7 @@ export function getDefaultAppState(): AppState {
|
|||
cursorY: 0,
|
||||
cursorButton: "up",
|
||||
scrolledOutside: false,
|
||||
name: `excalidraw-${getDateTime()}`,
|
||||
name: `${t("labels.untitled")}-${getDateTime()}`,
|
||||
username: "",
|
||||
isCollaborating: false,
|
||||
isResizing: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue