Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Connectors...
- data ConnectorProps = ConnectorProps {
- conn_src_space :: !Em
- conn_dst_space :: !Em
- conn_arc_ang :: !Radian
- conn_src_arm :: !Em
- conn_dst_arm :: !Em
- conn_loop_size :: !Em
- conn_box_halfsize :: !Em
- default_connector_props :: ConnectorProps
- connectorSrcSpace :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m u
- connectorDstSpace :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m u
- connectorArms :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m (u, u)
- connectorLoopSize :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m u
- connectorBoxHalfSize :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m u
Data types
data ConnectorProps Source
ConnectorProps control the drawing of connectors in Wumpus-Drawing.
conn_src_space :: Em conn_dst_space :: Em
Source and destination offsets - these offset the drawing of the connector perpendicular to the direction of line formed between the connector points (a positive offset is drawn above, a negative offset below). The main use of offsets is to draw parallel line connectors.
conn_arc_ang :: Radian
Control the bend of an arc connector.
conn_src_arm :: Em conn_dst_arm :: Em
Control the arm length of a jointed connector - arms are the initial segments of the connector.
conn_loop_size :: Em
Control the height of a loop connector.
conn_box_halfsize :: Em
Control the size of a connector box. Connector boxes are drawn with the exterior lines projected out from the connector points a halfsize above and below.
ConnectorProps | |
|
default_connector_props :: ConnectorPropsSource
Default connector properties.
conn_src_sep: 0 conn_dst_sep: 0 conn_arc_ang: pi / 12 conn_src_arm: 1 conn_dst_arm: 1 conn_loop_size: 2 conn_box_half_size: 2
Arc angle is 15deg - quite shallow.
Queries
connectorSrcSpace :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m uSource
connectorDstSpace :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m uSource
connectorArms :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m (u, u)Source
connectorLoopSize :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m uSource
connectorBoxHalfSize :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m uSource