This commit is contained in:
Maciej Caderek
2022-02-16 03:17:19 +01:00
parent f64d361c2a
commit e905e896d3
17 changed files with 171 additions and 122 deletions

View File

@@ -119,6 +119,7 @@ const main = async () => {
await this.loadPGN(result.pgn);
},
async downloadImage() {
await new Promise((resolve) => setTimeout(resolve, 0));
const data = await createImage(
state.fen,
state.pgn,
@@ -129,6 +130,7 @@ const main = async () => {
download(data, "fen", "png");
},
async downloadAnimation() {
await new Promise((resolve) => setTimeout(resolve, 0));
const data = await createAnimation(
state.pgn,
state.boardConfig,