Skip to content

v0.2.6

Choose a tag to compare

@github-actions github-actions released this 23 Nov 01:21
4c1aefb

This version is a patch. It adds arrowheads and solid extra edges to the SVG export. It also gives fitText and the SVG export labels with more than one line.

  • The new option arrows of toSVG gives each edge an arrowhead at its target. The default is false.
  • The arrowhead has the color of its edge: the color edge of the theme, or extraEdge for an extra edge.
  • The new option dashes of toSVG draws the extra edges with solid lines when it is false. The default is true, and the extra edges have dashes, as in 0.2.5.
  • A label with line breaks (\n) has one line for each part. fitText makes the box as wide as the widest line, and as high as all the lines.
  • toSVG draws each line of such a label at the center of the box, with the line height of fitText.
  • In 0.2.5, fitText measured such a label as one line, and toSVG drew it on one line. A label with no line break gets the same box and the same SVG as in 0.2.5.
  • The live renderers mountSvg, mountDom and mountCanvas draw each label on one line, as before.