Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Connectors...
- type ConnectorPathQuery u = ConnectorQuery u (AbsPath u)
- data ArrowTip = ArrowTip {
- retract_distance :: Double -> En
- tip_half_len :: En
- tip_deco :: LocThetaGraphic En
- type ArrowConnector u = ConnectorImage u (AbsPath u)
- leftArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> ConnectorPathQuery u -> ArrowConnector u
- rightArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> ConnectorPathQuery u -> ArrowConnector u
- leftRightArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> ArrowTip -> ConnectorPathQuery u -> ArrowConnector u
- uniformArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> ConnectorPathQuery u -> ArrowConnector u
- rightArrowPath :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> AbsPath u -> Image u (AbsPath u)
Documentation
type ConnectorPathQuery u = ConnectorQuery u (AbsPath u)Source
The type of Connectors - a query from start and end point to a Path.
Arrowhead algorithm - the components of an arrowhead.
Retract distance may have to account for line width.
ArrowTip | |
|
type ArrowConnector u = ConnectorImage u (AbsPath u)Source
leftArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> ConnectorPathQuery u -> ArrowConnector uSource
Connector with an arrow tip at the start point (i.e left).
rightArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> ConnectorPathQuery u -> ArrowConnector uSource
Connector with an arrow tip at the end point (i.e right).
leftRightArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> ArrowTip -> ConnectorPathQuery u -> ArrowConnector uSource
Connector with different arrow tips at the start point and end points.
uniformArrow :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> ConnectorPathQuery u -> ArrowConnector uSource
Connector with the same arrow tip at the start point and end points.
rightArrowPath :: (Real u, Floating u, InterpretUnit u) => ArrowTip -> AbsPath u -> Image u (AbsPath u)Source
Path with an arrow tip at the end point (i.e right).
TODO - shortening a curve does not seem to be working properly...