Node module that generates byte field diagrams in SVG format
defattrs
now takes an attribute expression rather than only a resolved attribute map as its second expression, so you can use the concise attribute mini-language to build new attributes based on existing ones.:next-row-height
as an attribute to draw-box
when you need to change row heights as you draw the first box of a new row. This makes it more practical to have variable-height rows,
while still having the automatically-drawn row headers appear in the correct posititons.generate
function with a single argument was not
working properly any longer because of a problem handling default
JavaScript arguments from ClojureScript code. (Sorry, I am really
new at the JavaScript/ClojureScript worlds!)https://github.com/Deep-Symmetry/bytefield-svg/compare/v1.4.0...v1.4.1
svg
element is now rendered with a proper viewPort
attribute which allows the host page to make it responsive by styling it with max-width="100%"
.svg
element for inclusion in an HTML document by supplying the command-line flag --embedded
or -e
, or invoking the generate
function with a new second options
object in which the property embedded
is true
.draw-inline-gap
function to support drawing discontinuities in single-row diagrams.clojure.set
and clojure.string
and the JavaScript Math
object are now available for use by your diagram code.dotimes
for index-based iteration within diagrams. Previously it would fail because it delegated to the forbidden, potentially non-terminating loop
form.https://github.com/Deep-Symmetry/bytefield-svg/compare/v1.3.0...v1.4.0
https://github.com/Deep-Symmetry/bytefield-svg/compare/v1.2.0...v1.3.0
This release offers a much more convenient way of manipulating the default column labels.
https://github.com/Deep-Symmetry/bytefield-svg/compare/v1.1.0...v1.2.0