Expand description
Multitrack timeline views. Port of timeline_viz.py.
The HTML pageโs ~900 lines of CSS and JavaScript live in
templates/timeline.html.tmpl, rendered out of the reference Python by
tools/templates/extract.py with a marker for each dynamic value.
Structsยง
- Timeline
Data TimelineData: the five layers, plus section and scene bands.
Constantsยง
- HTML_
TEMPLATE ๐
Functionsยง
- band_
json ๐ - build_
timeline_ data build_timeline_data(...).- fmt_
mmss_ ๐tenths _fmt_mmss_tenths(seconds)โM:SS.t, right-aligned to 7.- format_
time _format_time(seconds)โM:SS.- opt_
json ๐ - rel_
audio ๐ os.path.relpath(full, out_dir)with/separators and an mtime cache-buster.- render_
html_ timeline render_html_timeline(data, output_path, stems_dir, slug=, tag=, layers_dir=).- render_
terminal_ timeline render_terminal_timeline(data).- render_
terminal_ timeline_ width - render_
text_ timeline_ map render_text_timeline_map(data, output_path, slug=...).- span_
json ๐ - stdout_
columns ๐ - terminal_
columns ๐ shutil.get_terminal_size((120, 24)).columns.