- Use _normalize_event_type() helper consistently in draw_event_marker() - Extract label drawing constants (text color, vertical offset, hover colors) - Extract marker border width and black color constants - Extract year marker label offset constant - Create _get_events_for_person() helper to reduce duplication - Replace len() < 1 with 'not' for better Pythonic code - Optimize y_positions min/max using sorted list indices - Extract connection line minimum distance constant These changes improve code maintainability, reduce duplication, and enhance readability by replacing magic numbers with named constants.
Description
MyTimeline Gramps plugin
Languages
Python
94.2%
Shell
5.8%