add info layer that shows info about current puzzle

This commit is contained in:
Zutatensuppe 2021-07-09 01:17:26 +02:00
parent 7759cdc806
commit 2fb0e959ae
7 changed files with 86 additions and 4 deletions

View file

@ -7,6 +7,7 @@ import { Dim, Point } from '../common/Geometry'
export interface PuzzleCreationImageInfo {
file: string
url: string
title: string
}
export interface PuzzleCreationInfo {
@ -140,6 +141,7 @@ async function createPuzzle(
// information that was used to create the puzzle
targetTiles: targetTiles,
imageUrl,
imageTitle: image.title || '',
width: info.width, // actual puzzle width (same as bitmap.width)
height: info.height, // actual puzzle height (same as bitmap.height)