diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-25 12:10:58 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-25 12:43:36 +1000 |
| commit | 2a0c04245f8ab5017ca96449cca8aeb36336edf3 (patch) | |
| tree | 9d8fed07810e7b22c2ed29b6db014f69f4023fe5 /src/lib.ts | |
| parent | a1c5e2017ef80d360cc0d08ae73437ce32766c6e (diff) | |
Reduce degrees-of-variance in options set
Also add size prop to IconButton
Diffstat (limited to 'src/lib.ts')
| -rw-r--r-- | src/lib.ts | 26 |
1 files changed, 9 insertions, 17 deletions
@@ -45,7 +45,7 @@ export type Action = 'tileInfo' | 'search' | 'autoMode' | 'settings' | 'help'; // export type UiOptions = { - // Shared styling + // Shared coloring/sizing textColor: string, // CSS color bgColor: string, bgColorLight: string, @@ -58,26 +58,19 @@ export type UiOptions = { shadowNormal: string, // CSS box-shadow value shadowHovered: string, shadowFocused: string, - // Styling for App - mainTileMargin: number, // px - // Styling for tiles + // Component coloring childQtyColors: [number, string][], // Specifies, for an increasing sequence of minimum-child-quantity values, CSS colors to use //eg: [[1, 'green'], [10, 'orange'], [100, 'red']] - infoIconSz: number, // px - infoIconMargin: number, // px - leafPadding: number, // px - leafHeaderFontSz: number, // px nonleafBgColors: string[], // Specifies CSS colors to use at various tree depths // With N strings, tiles at depth M use the color at index M % N - nonleafHeaderFontSz: number, // px - // Styling for other components - infoModalImgSz: number, // px - ancestryBarBgColor: string, // CSS color - ancestryBarImgSz: number, // px - ancestryTileGap: number, // Gap between ancestor tiles, in px - tutPaneSz: number, // px + nonleafHeaderColor: string, // CSS color + ancestryBarBgColor: string, + // Component sizing + ancestryBarBreadth: number, // px (fixed value needed for transitions) + tutPaneSz: number, // px (fixed value needed for transitions) + scrollGap: number, // Size of scroll bar, in px // Timing related clickHoldDuration: number, // Time after mousedown when a click-and-hold is recognised, in ms transitionDuration: number, // ms @@ -85,8 +78,7 @@ export type UiOptions = { // Other useReducedTree: boolean, searchSuggLimit: number, // Max number of search suggestions - jumpToSearchedNode: boolean, + searchJumpMode: boolean, tutorialSkip: boolean, disabledActions: Set<Action>, - scrollGap: number, // Size of scroll bar, in px }; |
