This commit is contained in:
Maciej Caderek
2022-04-13 02:31:58 +02:00
parent e4bad17c0a
commit 5d59275f48
24 changed files with 747 additions and 409 deletions

View File

@@ -106,6 +106,8 @@ export type SiteConfig = {
sounds: boolean;
speech: boolean;
wrongBrowserPopup: boolean;
androidAppPopup: boolean;
iOSAppPopup: boolean;
};
export type MaterialCount = {
@@ -173,9 +175,10 @@ export type Handlers = {
changeBoardStyle: (style: BoardStyle) => void;
changePiecesStyle: (style: PiecesStyle) => void;
loadPGN: (pgn: string, side?: "w" | "b", ply?: number) => Promise<void>;
loadFEN: (fen: string) => Promise<void>;
loadFEN: (fen: string, hash?: boolean) => Promise<void>;
importPGN: (link: string) => Promise<void>;
load: (data: string) => Promise<boolean>;
loadFromClipboard(): Promise<boolean>;
downloadImage: () => Promise<void>;
downloadAnimation: () => Promise<void>;
toggleSound(): void;