Deep-Symmetry / bytefield-svg

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

Add helper for related boxes #2

Closed brunchboy closed 4 years ago

brunchboy commented 4 years ago

For generating a series of bytes without boundaries between them on a row, something like:

(draw-related-boxes labels attr-spec)

would iterate over the labels calling draw-box for each, but overriding the attr-spec for the first, middle, and last boxes to adjust the borders.

brunchboy commented 4 years ago

Also add draw-boxes with the same arguments for drawing multiple boxes that are unrelated but have the same specs.