Global settings control the visual appearance and behavior of the mindmap across the entire plugin. These settings include layout spacing, animation durations, coloring modes, and screenshot styles.
Key configuration categories include:
- Layout & Spacing:
splitDirection, nodeMinHeight, lineHeight, spacingVertical, spacingHorizontal, paddingX, maxWidth. - Expansion & Interaction:
initialExpandLevel (controls starting depth), colorFreezeLevel, animationDuration, highlight. - Coloring:
coloring (options: 'depth', 'branch', or 'single'), depth-specific colors and thicknesses (e.g., depth1Color, depth1Thickness), and defaultColor. - Screenshots:
screenshotBgStyle (options: ScreenshotBgStyle.Transparent, ScreenshotBgStyle.Color, or ScreenshotBgStyle.Theme), screenshotBgColor, screenshotTextColor, and screenshotTextColorEnabled. - Root Node:
titleAsRootNode (boolean).
// Example of the shape of GlobalSettings
const settings: GlobalSettings = {
splitDirection: 'horizontal',
nodeMinHeight: 16,
lineHeight: '1em',
spacingVertical: 5,
spacingHorizontal: 80,
paddingX: 8,
initialExpandLevel: -1,
colorFreezeLevel: 0,
animationDuration: 500,
maxWidth: 0,
highlight: true,
coloring: 'depth',
depth1Color: '#cb4b16',
depth1Thickness: '3',
depth2Color: '#6c71c4',
depth2Thickness: '1.5',
depth3Color: '#859900',
depth3Thickness: '1',
defaultColor: '#b58900',
defaultThickness: '1',
screenshotBgColor: '#002b36',
screenshotBgStyle: ScreenshotBgStyle.Color,
screenshotTextColor: '#fdf6e3',
screenshotTextColorEnabled: false,
titleAsRootNode: true,
};