chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5f9718
)
script: Introduce CompassAngle alias
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 19:32:08 +0000
(20:32 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index 40ab5a1423f3c48c5c975b2968c2c8646920d50c..34754494f8885cdf45e143024fed7c906a2faeca 100644
(file)
--- 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[],