add info layer that shows info about current puzzle
This commit is contained in:
parent
7759cdc806
commit
2fb0e959ae
7 changed files with 86 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue