diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-01 19:28:12 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-01 19:28:12 +1000 |
| commit | 551fbe163b90cc1f318612c167fbdfe738dd7132 (patch) | |
| tree | 00286538d754fdf686751a3d4c1689d799ecd65e /src/lib.ts | |
| parent | c2b9a8b7a706cdca58dab7f4a980401e1c20a602 (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.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |
