diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-26 18:49:36 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-26 18:51:41 +1000 |
| commit | d2d6f0496ce816e9238e785ed3d0e7bd61b2483b (patch) | |
| tree | 0a6dac78da3f236bc46599f6dac865f80d1959b9 /src/lib.ts | |
| parent | 09b6244d94b9a176172de448d3bb7fa386cb8995 (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.ts | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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, |
