mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Use open-color directly (#1371)
This commit is contained in:
parent
6d30351164
commit
f7e3ee2064
27 changed files with 3283 additions and 197 deletions
|
@ -1,3 +1,4 @@
|
|||
import oc from "open-color";
|
||||
import { AppState, FlooredNumber } from "./types";
|
||||
import { getDateTime } from "./utils";
|
||||
import { t } from "./i18n";
|
||||
|
@ -16,7 +17,7 @@ export function getDefaultAppState(): AppState {
|
|||
elementType: "selection",
|
||||
elementLocked: false,
|
||||
exportBackground: true,
|
||||
currentItemStrokeColor: "#000000",
|
||||
currentItemStrokeColor: oc.black,
|
||||
currentItemBackgroundColor: "transparent",
|
||||
currentItemFillStyle: "hachure",
|
||||
currentItemStrokeWidth: 1,
|
||||
|
@ -24,7 +25,7 @@ export function getDefaultAppState(): AppState {
|
|||
currentItemOpacity: 100,
|
||||
currentItemFont: DEFAULT_FONT,
|
||||
currentItemTextAlign: DEFAULT_TEXT_ALIGN,
|
||||
viewBackgroundColor: "#ffffff",
|
||||
viewBackgroundColor: oc.white,
|
||||
scrollX: 0 as FlooredNumber,
|
||||
scrollY: 0 as FlooredNumber,
|
||||
cursorX: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue