Skip to content

Commit

Permalink
change defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Rosenbluth committed Mar 4, 2014
1 parent 0cf4726 commit 8ce0b10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Diagrams/TwoD/Arrow.hs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ straightShaft = trailFromOffsets [unitX]
instance Default ArrowOpts where
def = ArrowOpts
{ _arrowHead = dart
, _arrowTail = lineTail
, _arrowTail = noTail
, _arrowShaft = trailFromOffsets [unitX]
, _headSize = 0.3
, _tailSize = 0.3
Expand Down
4 changes: 4 additions & 0 deletions src/Diagrams/TwoD/Arrowheads.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module Diagrams.TwoD.Arrowheads
, spike
, thorn
, missile
, lineHead
, noHead

-- ** Configurable arrowheads
Expand Down Expand Up @@ -209,6 +210,9 @@ arrowheadMissile :: Angle -> ArrowHT
arrowheadMissile theta = smoothArrowhead $ arrowheadDart theta

-- Standard heads ---------------------------------------------------------
lineHead :: ArrowHT
lineHead l w = (square 1 # scaleX l # scaleY w # alignL, mempty)

noHead :: ArrowHT
noHead _ _ = (mempty, mempty)

Expand Down

0 comments on commit 8ce0b10

Please sign in to comment.