Open narcolepsy opened 7 months ago
The short answer is that it is not possible (when using WaveDrom 3.3.0 or earlier versions).
I reported this issue back in 2019 in a different context [ #263 ], but the underlying issue is the same. WaveDrom uses 'defs' for the various bricks used to assemble the waveform. Unfortunately, all skins have the same name for each def element, even though their rendering may be different. Therefore, assembling two SVGs generated with different skins together will not work.
The way to resolve it would be to have unique def element IDs for different skins, and the engine has to be updated to use the new IDs based on the chosen skin. I am not aware of any public fork of WaveDrom with that change.
Is there a means to have different skin widths for multiple diagrams residing on the same webpage? I've tried a few things but essentially this
Only the ordering matters if I do this. If I copy in
WaveSkin.default=[bla...]
fromdefault.js
intonarrow.js
to avoid recreating variables and doing an additional export it still does not work.Any thoughts on this greatly appreciated