Releases: Deep-Symmetry/bytefield-svg
Releases · Deep-Symmetry/bytefield-svg
1.8.0
1.7.0
1.6.1
Fixed
- The ability to control substitutions, and thereby (for example) use
document attributes to reduce duplication, was broken. Thanks to
Jared Reisinger for noticing
this and contributing a fix!
1.6.0
1.5.0
1.4.3
Changed
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.
Added
- You can now pass
:next-row-height
as an attribute todraw-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. - The user guide now shows examples of how to draw vertical text and boxes which span more than two rows but which are not variable-length gaps.
Fixed
- Short-lived version 1.4.2 was not properly built for release before publishing to npm.
1.4.1
Fixed
- Invoking the
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!) - Generation of the user guide using the local extension now uses
the new embedded SVG tag mode, to avoid HTML structural issues.
1.4.0
Added
- The
svg
element is now rendered with a properviewPort
attribute which allows the host page to make it responsive by styling it withmax-width="100%"
. - You can generate a bare
svg
element for inclusion in an HTML document by supplying the command-line flag--embedded
or-e
, or invoking thegenerate
function with a new secondoptions
object in which the propertyembedded
istrue
. - New helper functions to support drawing bit-fields from integers.
- New helper functions to support drawing padding until a particular address is reached.
- A
draw-inline-gap
function to support drawing discontinuities in single-row diagrams. - The ClojureScript namespaces
clojure.set
andclojure.string
and the JavaScriptMath
object are now available for use by your diagram code.
Fixed
- A new version of the Small Clojure Interpreter is used, which enables
dotimes
for index-based iteration within diagrams. Previously it would fail because it delegated to the forbidden, potentially non-terminatingloop
form.
1.3.0
- Add and document CLI tool 4ed33fe
- Update guide links. 9ed83f7
- Remove stray step number [skip ci] a160021
- Update read me [skip ci] 3a55d9a
- Document tspan. 1024538
- Document text function. 472965e
- Document next-row and eval-attribute-spec. 3e798ab
- Document draw-row-header. 682bc36
- Document draw-related-boxes. 9615383
- Fix formatting issue. [skip ci] 7272d9f
- Fix argument identification [skip ci] ca82fa7
1.2.0
This release offers a much more convenient way of manipulating the default column labels.
- Document draw-line. db2cb64
- Document draw-gap. c8eef3e
- Document draw-column-headers 618d955
- Add explicit zero arity for draw-column-headers. 2862ccb
- Add fill and line style examples, clarify attribute expansion. bfd1dc0
- Document draw-boxes. 43f57fa
- Fix typo. 20097b5
- Document up through draw-box. 14f9215
- Add skeleton of functions page. a66e51f
- First draft of Attributes section. 83f5686
- First draft of default values section. fdf63dd
- Start documenting predefined values. f6acb2a
- Fix typo [skip ci] b7ac123
- Simplify documentation build process immensely [skip ci] d2a6645