wumpus-drawing-0.9.0: High-level drawing objects built on Wumpus-Basic.

Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>
Safe HaskellSafe-Infered






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.

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.


connectorLegs :: (DrawingCtxM m, InterpretUnit u) => ConnectorProps -> m (u, u)Source

legs are Arms + spacing.