aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-26 18:49:36 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-26 18:51:41 +1000
commitd2d6f0496ce816e9238e785ed3d0e7bd61b2483b (patch)
tree0a6dac78da3f236bc46599f6dac865f80d1959b9 /src/lib.ts
parent09b6244d94b9a176172de448d3bb7fa386cb8995 (diff)
Refactor TileInfoModal
Also change server info-response format to include sub-node common-names
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib.ts b/src/lib.ts
index 7841ac8..b3e6acc 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -48,11 +48,15 @@ export type ImgInfo = {
license: string,
artist: string,
credit: string,
-}
-export type TileInfoResponse = {
- tolNode: null | TolNode,
- descData: null | DescInfo | [DescInfo, DescInfo],
- imgData: null | ImgInfo | [ImgInfo, ImgInfo],
+};
+export type NodeInfo = {
+ tolNode: TolNode,
+ descInfo: null | DescInfo,
+ imgInfo: null | ImgInfo,
+};
+export type InfoResponse = {
+ nodeInfo: NodeInfo,
+ subNodesInfo: [] | [NodeInfo, NodeInfo],
};
// Used by auto-mode and tutorial
@@ -65,6 +69,7 @@ export type UiOptions = {
// Shared coloring/sizing
textColor: string, // CSS color
bgColor: string,
+ bgColorAlt: string,
bgColorLight: string,
bgColorDark: string,
bgColorLight2: string,