Configure how to convert Layout Labels to Strings for Svg output
Simple starting config when labels are already String
Init needs a labelToString function
Simple starting config. All labels will render as a dot
Use the Config modifiers to shape your intended Config
Configure a function to label a cell holding an a
The string will be displayed in the Svg boxes
Overload attributes for all cell label texts
Overload attributes for any cell label text
You supply a function that looks at the label and decides which attributes to use
Overload attributes for all cell boxes
These are the inner boxes with labels.
Only style colors, fonts.
Avoid modifying geometry, as this will likely mess up the layout
Overload attributes for each cell
You supply a function that looks at the label and decides which attributes to use
Only style colors, fonts.
Avoid modifying geometry, as this will likely mess up the layout
Overload cell wrapping
Lets you configure how a list of inner Svg elements will be wrapped.
This allows you to set up onClick event attributes or using Svg.a for hyperlinking when the inner svg is clicked.
Control the position of labels within boxes The LabelPositionFunction must give positions that are inside the given box.
Type of a function that can determine a text position within a box
This can be used for centering and aligning labels towards edges or corners,
LabelPositionFunction for centering labels in box
LabelPositionFunction for placing labels in lower left corner
Preliminary way to control how labels turn into String for SVG