Skip to main content

Interface: DefaultLinkProps

Defined in: src/templates/standardLink.tsx:227

An alias for StandardRelationProps.

Deprecated

Use StandardRelationProps directly instead.

Extends

Properties

PropertyModifierTypeDescriptionInherited from

children?

public

ReactNode

Additional children for the component.

StandardRelationProps.children

className?

public

string

Additional CSS class for the component.

StandardRelationProps.className

getPathPosition

readonly

(offset) => Vector

Provides paper position along the link at the specified offset.

Offset of 0.0 corresponds to the source and 1.0 corresponds to the target of the link.

StandardRelationProps.getPathPosition

link

readonly

Link

Target link to render.

StandardRelationProps.link

markerSource

readonly

string

SVG path marker for the link source.

StandardRelationProps.markerSource

markerTarget

readonly

string

SVG path marker for the link target.

StandardRelationProps.markerTarget

onlySelected

readonly

boolean

Whether the link is the only selected cell on the canvas.

See

DiagramModel.selection

StandardRelationProps.onlySelected

path

readonly

string

SVG path for the link geometry.

StandardRelationProps.path

pathProps?

public

SVGAttributes<SVGPathElement>

Additional attributes for SVG path rendering of the link geometry.

StandardRelationProps.pathProps

prependLabels?

public

ReactNode

Additional labels to display for the link.

When prepending labels for a relational link it is useful to specify propertyLabelStartLine to avoid overlapping prepended and data labels.

StandardRelationProps.prependLabels

primaryLabelProps?

public

StandardRelationLabelStyle

Additional props for the primary link label.

See

LinkLabelProps.primary

StandardRelationProps.primaryLabelProps

propertyLabelProps?

public

StandardRelationLabelStyle | (propertyIri) => undefined | null | StandardRelationLabelStyle

Additional props for each label displaying a property from a relation link data.

If specified function returns null, the property will be hidden.

See

LinkLabelProps

StandardRelationProps.propertyLabelProps

propertyLabelStartLine?

public

number

Starting row shift when displaying relation link data properties.

Default

1

See

LinkLabelProps.line

StandardRelationProps.propertyLabelStartLine

route?

readonly

RoutedLink

Route data (geometry) for the link.

StandardRelationProps.route