Cleanup
This commit is contained in:
@@ -15,13 +15,13 @@ anyLnkOutPS = PSPos f (const id) Nothing
|
||||
atFstLnkOut :: PlacementSpot
|
||||
atFstLnkOut = PSPos f (const id) Nothing
|
||||
where
|
||||
f (UsedOutLink 0 p a) = Just (PS p a, UsedOutLink 0 p a)
|
||||
f (UsedOutLink 0 i p a) = Just (PS p a, UsedOutLink 0 i p a)
|
||||
f _ = Nothing
|
||||
|
||||
atNthLnkOutShiftBy :: Int -> ((Point2,Float) -> (Point2,Float)) -> PlacementSpot
|
||||
atNthLnkOutShiftBy n theshift = PSPos f (const id) Nothing
|
||||
where
|
||||
f (UsedOutLink i p a) | n == i = Just (PS p' a', UsedOutLink n p a)
|
||||
f (UsedOutLink i rmid p a) | n == i = Just (PS p' a', UsedOutLink n rmid p a)
|
||||
where
|
||||
(p',a') = theshift (p,a)
|
||||
f _ = Nothing
|
||||
@@ -40,7 +40,7 @@ atNthLnkOutShiftInward n x = atNthLnkOutShiftBy n f
|
||||
overFstLnkOut :: PlacementSpot
|
||||
overFstLnkOut = PSPos f (const id) Nothing
|
||||
where
|
||||
f (UsedOutLink 0 p a) = Just (PS p a, PosPl p a)
|
||||
f (UsedOutLink 0 _ p a) = Just (PS p a, PosPl p a)
|
||||
f _ = Nothing
|
||||
|
||||
anyLnkInPS :: Float -- ^ amount to shift inward
|
||||
|
||||
Reference in New Issue
Block a user