Fix placement shifting
This commit is contained in:
@@ -30,6 +30,10 @@ placeSpot' w (shift, plmnt) =
|
||||
let (i,w') = placeSpotID (shiftPSBy' shift (_placementSpot plmnt)) w
|
||||
in maybe w' (curry (placeSpot' w') shift) (_idPlacement plmnt i)
|
||||
|
||||
shiftPlacement :: (Point2,Float) -> Placement -> Placement
|
||||
shiftPlacement shift (Placement ps f) = Placement (shiftPSBy' shift ps)
|
||||
(fmap (fmap $ shiftPlacement shift) f)
|
||||
|
||||
shiftPSBy'
|
||||
:: (Point2,Float)
|
||||
-> PlacementSpot
|
||||
|
||||
Reference in New Issue
Block a user