chiark / gitweb /
script: Introduce CompassAngle alias
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 19:32:08 +0000 (20:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 19:32:08 +0000 (20:32 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts

index 40ab5a1423f3c48c5c975b2968c2c8646920d50c..34754494f8885cdf45e143024fed7c906a2faeca 100644 (file)
@@ -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[],