From: Ian Jackson Date: Fri, 2 Apr 2021 19:32:08 +0000 (+0100) Subject: script: Introduce CompassAngle alias X-Git-Tag: otter-0.5.0~304 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=46d778d1adf222b748f7f08843f3cd867d58c5ce;p=otter.git script: Introduce CompassAngle alias Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 40ab5a14..34754494 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -47,6 +47,7 @@ type WhatResponseToClientOp = "Predictable" | "Unpredictable" | "UpdateSvg"; type Timestamp = number; // unix time_t, will break in 285My type Layout = 'Portrait' | 'Landscape'; type PieceMoveable = "No" | "IfWresting" | "Yes"; +type CompassAngle = number; type UoDescription = { kind: UoKind; @@ -68,7 +69,7 @@ type PieceInfo = { cseq_updatesvg : number | null, z : ZCoord, zg : Generation, - angle: number, + angle: CompassAngle, pinned: boolean, moveable: PieceMoveable, uos : UoDescription[],