How erikshelley/complete-family-tree-viewer works
Complete Family Tree Viewer is a browser-based, serverless GEDCOM viewer. Users load a local or sample GEDCOM file, choose a root person and display options, then explore and export the resulting complete family tree. The graph preserves the documented import, tree-building, layout, styling, interaction, and export capabilities. Several internal handoffs are dashed because the sampled excerpts do not show their callers; the README documents capabilities, not those module-level calls.
Main entry points: ui.js Application UI · position_tree.js Tree Positioning · draw_tree.js SVG Tree Rendering · build_tree.js Family Tree Builder
Components 16
GEDCOM Input
- GEDCOM Parsing
src/js/gedcom.js
Tree Construction
- Family Tree Builder
src/js/build_tree.js
Viewing and Layout
- Tree Positioning
src/js/position_tree.js - Layout Helpers
src/js/position_tree_helpers.js - SVG Tree Rendering
src/js/draw_tree.js - Visual Styling
src/css/style.css - Responsive Styling
src/css/style_media.css - Range Styling
src/css/style_ranges.css
Controls and Export
- Application UI
src/js/ui.js - UI Events
src/js/ui_events.js - UI State
src/js/ui_declarations.js - Style Presets
src/js/presets.js - PNG and SVG Export
src/js/ui.js
Other components
- Viewer
- Local GEDCOM
- Online Samples
Connections 17
- Viewer → Application UI: chooses options
README.md - Viewer → Local GEDCOM: selects file
README.md - Viewer → Online Samples: chooses sample
README.md - Local GEDCOM → Application UI: provides file
- Online Samples → Application UI: provides file
- Application UI → GEDCOM Parsing: decodes and validates
src/js/ui.js - Application UI → GEDCOM Parsing: parses data
src/js/ui.js - Application UI → Family Tree Builder: requests tree
src/js/ui.js - UI Events → Application UI: requests updates
src/js/ui_events.js - Application UI → Style Presets: uses presets
- Family Tree Builder → Tree Positioning: supplies tree for positioning
- Tree Positioning → Layout Helpers: uses helpers
- Tree Positioning → SVG Tree Rendering: supplies positioned tree
- SVG Tree Rendering → Visual Styling: renders with styles
- Application UI → SVG Tree Rendering: supports tree interaction
- Application UI → PNG and SVG Export: exports tree
src/js/ui.js - Viewer → PNG and SVG Export: saves image
README.md