A mutable implementation of the ILabelCandidateDescriptor interface.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.LabelCandidateDescriptor
Constructors
Creates a new instance of a LabelCandidateDescriptor with the default values.
Parameters
A map of options to pass to the method.
- externalCandidate - boolean
- edgeOverlapPenalty - number
- nodeOverlapPenalty - number
- profit - number
Properties
Gets a penalty value that is used by labeling algorithms to judge the severity if this candidate overlaps with an edge path.
Remarks
Implements
Gets a value indicating whether this candidate is deemed an external candidate.
Remarks
Implements
Gets a penalty value that is used by labeling algorithms to judge the severity if this label candidate overlaps with a node's bounds.
Remarks
Implements
Gets a profit value that is used by labeling algorithms to judge how good this label candidate is.
Remarks
Implements
Constants
A sharable immutable implementation of the ILabelCandidateDescriptor interface that has penalties of 1.0d
and a profit of 1.0d
and yields true
for the externalCandidate property.
A sharable immutable implementation of the ILabelCandidateDescriptor interface that has penalties of 1.0d
and a profit of 1.0d
and yields false
for the externalCandidate property.