Deep-Symmetry / bytefield-svg

Node module that generates byte field diagrams in SVG format
Eclipse Public License 2.0
126 stars 20 forks source link

Add draw-column-headers Function in bytefield-svg #46

Closed manipuladordedados closed 6 months ago

manipuladordedados commented 6 months ago

A new function/helper called draw-column-headers. This would make the header line format resemble the one used in this example: Packet Diagram Example.

brunchboy commented 6 months ago

If you would like to write that, you can put it in a file that you include for use in your own diagrams, the way I do for my own shared diagram features in my reverse engineering documentation (here is such a reusable include file, and here is an example of using it).

That’s the whole point of this being an extensible starting point: it can draw any kind of diagram anyone wants, without having to implement everything itself. So this doesn’t belong in bytefield-svg itself, but in an include file for people who want to draw diagrams like that.

brunchboy commented 6 months ago

If you would like help writing this, and to explore other ideas, I’d encourage you to join the Deep Symmetry Zulip community and talk about it in the other projects stream.

brunchboy commented 6 months ago

Also, you would want to call the function something else perhaps draw-packetdiag-style-column-headers, because if you look at the documentation, there already is a draw-column-headers function, which draws them the way I like them to look.