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

Allow custom box drawing #3

Closed brunchboy closed 4 years ago

brunchboy commented 4 years ago

Passing a function as the label argument to draw-box could call that function with the bounding box and supplied attributes, and leave it to the function to call append-svg with whatever it wants. This could support arbitrary graphical snazziness.