OptionalbackgroundCorner radius of the label background, in px. Applies to the 'rect' shape.
OptionalbackgroundExtra CSS class added to the label background element.
OptionalbackgroundFill color of the label background. Empty inherits the theme default.
OptionalbackgroundOpacity of the label background, from 0 (transparent) to 1 (opaque).
OptionalbackgroundOutline (stroke) color of the label background. Empty for no outline.
OptionalbackgroundOutline (stroke) width of the label background, in px.
OptionalbackgroundPadding between the text and the edge of its background. A number applies to both axes; an object sets each axis.
OptionalbackgroundBackground outline shape: 'rect', 'ellipse', or a raw SVG path d string.
OptionalclassExtra CSS class added to the label text element.
OptionalcolorText color. Empty inherits the theme default.
OptionalfontFont family of the label text. Empty inherits the theme default.
OptionalfontFont size of the label text, in px. Empty inherits the theme default.
OptionaloffsetShift the label off the path. A number nudges it perpendicular to the line; { x, y } moves it freely.
OptionalpositionWhere the label sits along the link: 0–1 is a fraction of the path, values above 1 are an absolute distance in px.
The text shown on the link.
A simplified link label, text plus optional styling, that linkLabel expands into the raw
dia.Link.Labelmarkup and attrs JointJS expects.