Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Safe Haskell | Safe-Infered |
Connectors...
- type ConnectorPathQuery u = ConnectorQuery u (AbsPath u)
- type SpacingProjection u = ConnectorProps -> Point2 u -> Point2 u -> Query u (Point2 u)
- data ArrowTip = ArrowTip {}
- type ArrowConnector u = ConnectorImage u (AbsPath u)
- data ConnectorConfig u = ConnectorConfig {}
- newtype ConnectorPathSpec u = ConnectorPathSpec {}
- renderConnectorConfig :: (Real u, Floating u, InterpretUnit u) => ConnectorProps -> ConnectorConfig u -> ConnectorImage u (AbsPath u)
- arrowDecoratePath :: (Real u, Floating u, InterpretUnit u) => Maybe ArrowTip -> Maybe ArrowTip -> AbsPath u -> Image u (AbsPath u)
- leftArrowConnector :: (Real u, Floating u, InterpretUnit u) => ConnectorProps -> ConnectorPathSpec u -> ArrowTip -> ConnectorImage u (AbsPath u)
- rightArrowConnector :: (Real u, Floating u, InterpretUnit u) => ConnectorProps -> ConnectorPathSpec u -> ArrowTip -> ConnectorImage u (AbsPath u)
- uniformArrowConnector :: (Real u, Floating u, InterpretUnit u) => ConnectorProps -> ConnectorPathSpec u -> ArrowTip -> ConnectorImage u (AbsPath u)
Documentation
type ConnectorPathQuery u = ConnectorQuery u (AbsPath u)Source
The type of Connectors - a query from start and end point returning an AbsPath.
type SpacingProjection u = ConnectorProps -> Point2 u -> Point2 u -> Query u (Point2 u)Source
Arrowhead algorithm - the components of an arrowhead.
Retract distance is rather vague - depending on the arrowhead it may represent a flush join between the path and the tip or a join that uses the z-order (tip over path) to create the join.
** WARNING ** - pending revision...
type ArrowConnector u = ConnectorImage u (AbsPath u)Source
data ConnectorConfig u Source
total_path is the path before accounting for arrow retract distances.
newtype ConnectorPathSpec u Source
renderConnectorConfig :: (Real u, Floating u, InterpretUnit u) => ConnectorProps -> ConnectorConfig u -> ConnectorImage u (AbsPath u)Source
NOTE - the prefix render needs (re-) consideration...
If it is a good prefix other functions e.g. drawPath should use render rather than draw.
arrowDecoratePath :: (Real u, Floating u, InterpretUnit u) => Maybe ArrowTip -> Maybe ArrowTip -> AbsPath u -> Image u (AbsPath u)Source
leftArrowConnector :: (Real u, Floating u, InterpretUnit u) => ConnectorProps -> ConnectorPathSpec u -> ArrowTip -> ConnectorImage u (AbsPath u)Source
Shorthand...
rightArrowConnector :: (Real u, Floating u, InterpretUnit u) => ConnectorProps -> ConnectorPathSpec u -> ArrowTip -> ConnectorImage u (AbsPath u)Source
uniformArrowConnector :: (Real u, Floating u, InterpretUnit u) => ConnectorProps -> ConnectorPathSpec u -> ArrowTip -> ConnectorImage u (AbsPath u)Source