aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-07-01 19:28:12 +1000
committerTerry Truong <terry06890@gmail.com>2022-07-01 19:28:12 +1000
commit551fbe163b90cc1f318612c167fbdfe738dd7132 (patch)
tree00286538d754fdf686751a3d4c1689d799ecd65e /src/lib.ts
parentc2b9a8b7a706cdca58dab7f4a980401e1c20a602 (diff)
Generate 3 reduced trees, keeping the original, and serve only those
Generate a 'trimmed' reduced tree instead of changing the original. Generate an 'images-only' reduced tree, and use it as the default. Combine 'picked' reduced tree code with that of other reduced trees. Adapt server API to allow selecting between more than 2 trees. Add client setting for selecting between 3 trees.
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.ts b/src/lib.ts
index bbeb02a..2b0aabc 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -106,7 +106,7 @@ export type UiOptions = {
touchDevice: boolean,
breakpoint: Breakpoint,
// Other
- useReducedTree: boolean,
+ tree: 'trimmed' | 'images' | 'picked',
searchSuggLimit: number, // Max number of search suggestions
searchJumpMode: boolean,
tutorialSkip: boolean,
@@ -169,7 +169,7 @@ export function getDefaultUiOpts(lytOpts: LayoutOptions): UiOptions {
touchDevice: onTouchDevice(),
breakpoint: getBreakpoint(),
// Other
- useReducedTree: false,
+ tree: 'images',
searchSuggLimit: 10,
searchJumpMode: false,
tutorialSkip: false,