From 551fbe163b90cc1f318612c167fbdfe738dd7132 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 1 Jul 2022 19:28:12 +1000 Subject: 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. --- src/lib.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib.ts') 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, -- cgit v1.2.3