New diagram element transformation function for setting rotation according to the slope between two neighboring element's positions
The function requires that the element is connected to exactly two other elements because otherwise calculating an unambiguous slope is not possible.
This function's purpose is to support rotating a graph network diagram's edge components according to vertex components positions.
The function shall be Simantics/Diagram/ElementTransforms/rotateToNeighborSlope
:
rotateToNeighborSlope :: Resource -> <WriteGraph, Proc> Double
Edited by Tuukka Lehtonen