A label model for labels at node ports which places the label either inside or outside of the owner node of the port, according to the node border that is closest to the port position.
Type Details
- yFiles module
- view
Constructors
Properties
Methods
Creates a parameter which places the label inside of the IPort's owner node.
Returns
- ↪InsideOutsidePortLabelModelParameter
- A parameter which places the label inside of the IPort's owner node.
Creates a parameter which places the label outside of the IPort's owner node.
Returns
- ↪InsideOutsidePortLabelModelParameter
- A parameter which places the label outside of the IPort's owner node.
Provides a lookup context for the given label.
Calculates the geometry of the given label using the given model parameter.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- label - ILabel
- The label to calculate the geometry for.
- layoutParameter - ILabelModelParameter
- A parameter that is compatible with this model. Typically, this is a parameter that has been created by this model, and its property model returns this instance.
Returns
- ↪IOrientedRectangle
- An IOrientedRectangle that describes the geometry of the label. This is typically designed as a flyweight, therefore clients should not cache the instance but store the values if they need a snapshot for later use.