wallento / wavedrompy

WaveDrom compatible python command line
Other
97 stars 23 forks source link

bitfield rotate not working when installing from pypi #42

Open bat52 opened 1 year ago

bat52 commented 1 year ago

I find using the option "rotate: -90 " is useful when representing bitfields that are only 1 bit wide. This works well when using the web editor, or the offline (windows) editor.

However, when using the renderer included in the pypi package, bitfield names are not rotated. See below an example.

{ reg: [
{ name: "ADC_BM", bits: 3, attr: "rw", rotate: -90 },
{ name: "", bits: 1, attr: "r", rotate: -90 },
{ name: "ADC_ORDER", bits: 1, attr: "rw", rotate: -90 },
{ name: "DITHER_EN", bits: 1, attr: "rw", rotate: -90 },
{ name: "CHOP_EN", bits: 1, attr: "rw", rotate: -90 },
{ name: "INV_CLK", bits: 1, attr: "rw", rotate: -90 },
], config: { vspace: 200 } }