draw types

This commit is contained in:
Dylan Pizzo
2025-01-06 23:01:01 -05:00
parent 9cef34b976
commit b0249f8baf
4 changed files with 72 additions and 8 deletions

View File

@@ -186,7 +186,7 @@ type PieceWithInfo = {
export const measureDominionText = async (
context: CanvasRenderingContext2D,
pieces: Piece[],
maxWidth: number
maxWidth = Infinity
) => {
const data: PieceWithInfo[] = await Promise.all(
pieces.map(async (piece) => ({