Skip to content

Interface: GraphTraceNodeTextfont ​

Font of the node labels. Default: layout.font, with the automatic halo (shadow: auto). Family, size, weight and style set the size of box nodes.

Properties ​

PropertyTypeDescription
color?stringText color. Default: layout.font.color; inside a box node, black or white, whichever reads better on the box.
family?stringCSS font-family list. Default: layout.font.family.
shadow?stringCSS text-shadow (first shadow only), 'none', or 'auto' (the default): a thin halo in the text's contrast color, so labels read over the links.
size?numberFont size in CSS px. Default: layout.font.size. Minimum: 1
style?"normal" | "italic"Font style.
weight?number | "normal" | "bold"Font weight: a CSS numeric weight (1–1000), normal or bold. Range: 1 – 1000

Released under the MIT License.