Represents a supplementary label displayed by a DiagramNode. New labels can be added to a node by calling its addLabel method.
Namespace: MindFusion.Diagramming
File: NodeLabel.js
JavaScript Copy Code |
---|
// class |
The position of a label is determined by where it is pinned relative to node's bounding box, and offset from the pin point, as set using setCornerPosition, setEdgePosition and setCenterPosition methods. In addition, the horizontalAlign and verticalAlign properties specify whether the label is centered on its pin point or aligned to it.
You can let users arrange labels manually by setting the behavior property of DiagramView to MoveLabels.
MindFusion.Diagramming.ItemLabel
MindFusion.Diagramming.NodeLabel
JavaScript Pack Programmer's Guide | © 2024 MindFusion |