From a0bee076271e0fd3387f9c40f029134d4d0f5c96 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Apr 2021 21:43:02 +0100 Subject: [PATCH] js: piece_xy: Make it return Pos Just tidying up. Signed-off-by: Ian Jackson --- templates/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script.ts b/templates/script.ts index b4bf0637..2dc67a5b 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -680,7 +680,7 @@ var dcy : number | null; const DRAGTHRESH = 5; -function piece_xy(p: PieceInfo): [number, number] { +function piece_xy(p: PieceInfo): Pos { return [ parseFloat(p.uelem.getAttributeNS(null,"x")!), parseFloat(p.uelem.getAttributeNS(null,"y")!) ]; } -- 2.30.2