2 export = [rotateToNeighborSlope]
7 //-----------------------------------------------------------------------------
9 importJava "org.simantics.diagram.elements.ElementTransforms" where
11 rotateToNeighborSlope element
13 Rotates provided element so that its rotation is the same as the slope of a
14 line drawn between the two other elements the element is connected to.
16 Note that this requires that the element is connected to exactly two other elements.
18 rotateToNeighborSlope :: Resource -> <WriteGraph, Proc> Double