Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Anchor points on shapes.
** WARNING ** this module is an experiment, and may change significantly in future revisions.
- data Arrowhead u = Arrowhead {}
- tri90 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- tri60 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- tri45 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- otri90 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- otri60 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- otri45 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- revtri90 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- revtri60 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- revtri45 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- orevtri90 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- orevtri60 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- orevtri45 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- barb90 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- barb60 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- barb45 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- revbarb90 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- revbarb60 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- revbarb45 :: (Floating u, Real u, FromPtSize u) => Arrowhead u
- perp :: (Floating u, FromPtSize u) => Arrowhead u
- bracket :: (Floating u, FromPtSize u) => Arrowhead u
- diskTip :: (Floating u, FromPtSize u) => Arrowhead u
- odiskTip :: (Floating u, FromPtSize u) => Arrowhead u
- squareTip :: (Floating u, FromPtSize u) => Arrowhead u
- osquareTip :: (Floating u, FromPtSize u) => Arrowhead u
- diamondTip :: (Floating u, FromPtSize u) => Arrowhead u
- odiamondTip :: (Floating u, FromPtSize u) => Arrowhead u
- curveTip :: (Real u, Floating u, FromPtSize u) => Arrowhead u
- revcurveTip :: (Real u, Floating u, FromPtSize u) => Arrowhead u
Documentation
Encode an arrowhead as a Graphic and a retract distance - lines should be shortened for certain drawings (e.g. open triangles).
The retract distance is context sensitive - usually just on the markHeight (or halfMarkHeight) so it has to be calculated w.r.t. the DrawingCtx.
perp :: (Floating u, FromPtSize u) => Arrowhead uSource
bracket :: (Floating u, FromPtSize u) => Arrowhead uSource
diskTip :: (Floating u, FromPtSize u) => Arrowhead uSource
odiskTip :: (Floating u, FromPtSize u) => Arrowhead uSource
squareTip :: (Floating u, FromPtSize u) => Arrowhead uSource
osquareTip :: (Floating u, FromPtSize u) => Arrowhead uSource
diamondTip :: (Floating u, FromPtSize u) => Arrowhead uSource
odiamondTip :: (Floating u, FromPtSize u) => Arrowhead uSource
revcurveTip :: (Real u, Floating u, FromPtSize u) => Arrowhead uSource