How wavedrom/wavedrom.github.io works
WaveDrom Editor is a browser and desktop editor for WaveJSON timing diagrams. Users edit diagram descriptions, see rendered output, and can export the description or diagram as SVG/PNG; the README identifies WaveDrom as the rendering engine. The repository also includes a slide-presentation experience and multiple renderer skins. Some key wiring is documented, but the engine implementation is not present in the supplied tree and several source excerpts are partial, so uncertain connections are omitted.
Main entry points: editor.js Editor controls · init.js Editor initialization · editor.html Editor page · impress.html Presentation page
Components 18
Diagram authoring
- Editor page
editor.html - Editor controls
editor.js - CodeMirror
scripts/codemirror-compressed.js - Editor initialization
init.js - WaveJSON format
schema/wavedrom.json - Local waveform
Diagram rendering
- WaveDrom engine
- Default skin
skins/default.js - Dark skin
skins/dark.js - Lowkey skin
skins/lowkey.js - Narrow skin
skins/narrow.js - Narrower skin
skins/narrower.js - Narrower skin
skins/narrowerer.js
File and export
- Export files
- Desktop files
Presentation
- Presentation page
impress.html - Presentation runtime
impress/impress.js
Other components
- Editor user
Connections 17
- Editor user → Editor page: opens editor
README.md - Editor page → Editor controls: hosts controls
README.md - Editor controls → WaveDrom engine: refreshes diagram
editor.js - Editor page → WaveJSON format: uses format
README.md - Editor initialization → CodeMirror: creates editor
init.js - Editor initialization → Editor controls: refreshes diagram
init.js - Editor initialization → Local waveform: stores waveform
init.js - Editor controls → Export files: exports SVG PNG JSON
editor.js - Editor controls → Desktop files: reads and writes
editor.js - WaveDrom engine → Default skin
- WaveDrom engine → Dark skin
- WaveDrom engine → Lowkey skin
- WaveDrom engine → Narrow skin
- WaveDrom engine → Narrower skin
- WaveDrom engine → Narrower skin
- Editor user → Presentation page: views slides
- Presentation page → Presentation runtime: runs presentation