mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-19 02:01:48 +00:00
Chart Configuration
This directory contains the logic and UI for configuring the display of the genealogical chart.
Purpose
The purpose of this directory is to manage the user-configurable settings for the chart visualization. This includes:
- Colors: How individuals in the chart are colored (none, by generation, or by sex).
- IDs: Whether to show or hide person IDs.
- Sex: Whether to show or hide indicators for sex.
It provides the data structures for the configuration, default values, functions to serialize/deserialize the configuration to/from URL query parameters, and the UI component for the side panel.
Files
- config.tsx: The main file containing:
ChartColors,Ids, andSexenums defining the available options.Configinterface defining the configuration state.argsToConfigandconfigToArgsfunctions for mapping the configuration to and from URL query arguments.ConfigPanelReact component providing the UI controls (radio buttons) for these settings in the side panel.