Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Connectors...
- type Connector u = ConnectorQuery u (AbsPath u)
- type ArrowConnector u = ConnectorImage u (AbsPath u)
- data ArrowTip u
- makeArrowTip :: Query u -> Query u -> LocThetaGraphic En -> ArrowTip u
- leftArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip u -> Connector u -> ArrowConnector u
- rightArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip u -> Connector u -> ArrowConnector u
- leftRightArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip u -> ArrowTip u -> Connector u -> ArrowConnector u
- uniformArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip u -> Connector u -> ArrowConnector u
- promoteConn :: (Real u, Floating u, InterpretUnit u) => (Point2 u -> Point2 u -> CF a) -> CF (Point2 u -> Point2 u -> a)
Documentation
type Connector u = ConnectorQuery u (AbsPath u)Source
The type of Connectors - a query from start and end point to a Path.
type ArrowConnector u = ConnectorImage u (AbsPath u)Source
makeArrowTip :: Query u -> Query u -> LocThetaGraphic En -> ArrowTip uSource
leftArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip u -> Connector u -> ArrowConnector uSource
Connector with an arrow tip at the start point (i.e left).
rightArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip u -> Connector u -> ArrowConnector uSource
Connector with an arrow tip at the end point (i.e right).
leftRightArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip u -> ArrowTip u -> Connector u -> ArrowConnector uSource
Connector with two arrow tips, possibly different.
uniformArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip u -> Connector u -> ArrowConnector uSource
Connector with the same arrow tip at both ends.
promoteConn :: (Real u, Floating u, InterpretUnit u) => (Point2 u -> Point2 u -> CF a) -> CF (Point2 u -> Point2 u -> a)Source
Promote a function from source and dest points to a connector function accounting for the separator values in the DrawingContext.
This should be used instead of promoteR2
for functions
building connectors.