A port location model that places the port on the edge path at a specified ratio.
Implements
Inheritance Hierarchy
See Also
Developer's Guide
Members
No filters for this type
Methods
Factory method that creates a parameter for the given owner that tries to match the provided location in absolute world coordinates.
Factory method that creates a parameter for the given
owner that tries to match the provided location in absolute world coordinates.final
Parameters
- owner: IPortOwner
- The port owner that will own the port for which the parameter shall be created.
- location: Pointconversion
- The location in the world coordinate system that should be matched as best as possible.
Return Value
- IPortLocationModelParameter
- A new instance that can be used to describe the location of an IPort at the given
owner.
Implements
IPortLocationModel.createParameterCreates a parameter at the provided edge path ratio.
Creates a parameter at the provided edge path ratio.
final
Parameters
- edgePathRatio?: number
- The ratio at which to place the port at the edge path. A ratio of
0.0will place the port at the source side of the edge path, a ratio of1.0at the target side. The default is0.5.
Return Value
- EdgePathPortLocationModelParameter
- A port location parameter at the provided edge path ratio for this model instance.
Constants
A static immutable global instance of this class.
A static immutable global instance of this class.