Rename showEmptyRectB and emptyRect to showWhiteRectB and whiteRect
This commit is contained in:
parent
c35eb704d3
commit
330049fde6
12
Diagram.hs
12
Diagram.hs
@ -113,10 +113,10 @@ showYAxis = Diag f
|
|||||||
|
|
||||||
-- |Creates a Diagram that shows a white rectangle which is a little
|
-- |Creates a Diagram that shows a white rectangle which is a little
|
||||||
-- bit bigger as both X and Y axis dimensions from DiagProp.
|
-- bit bigger as both X and Y axis dimensions from DiagProp.
|
||||||
showEmptyRectB :: Diag
|
showWhiteRectB :: Diag
|
||||||
showEmptyRectB = Diag f
|
showWhiteRectB = Diag f
|
||||||
where
|
where
|
||||||
f p _ = emptyRect (xuD p - xlD p + 50) (yuD p - ylD p + 50)
|
f p _ = whiteRect (xuD p - xlD p + 50) (yuD p - ylD p + 50)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ showEmptyRectB = Diag f
|
|||||||
diag :: DiagProp -> VTable -> Diagram Cairo R2
|
diag :: DiagProp -> VTable -> Diagram Cairo R2
|
||||||
diag p = case alg p of
|
diag p = case alg p of
|
||||||
0 -> mkDiag
|
0 -> mkDiag
|
||||||
(mconcat [showCoordinates, showXAxis, showYAxis, showEmptyRectB])
|
(mconcat [showCoordinates, showXAxis, showYAxis, showWhiteRectB])
|
||||||
p
|
p
|
||||||
_ -> mempty
|
_ -> mempty
|
||||||
|
|
||||||
@ -139,5 +139,5 @@ diagS p mesh
|
|||||||
|
|
||||||
|
|
||||||
-- |Create a white rectangle with the given width and height.
|
-- |Create a white rectangle with the given width and height.
|
||||||
emptyRect :: Double -> Double -> Diagram Cairo R2
|
whiteRect :: Double -> Double -> Diagram Cairo R2
|
||||||
emptyRect x y = rect x y # lwG 0.00 # bg white
|
whiteRect x y = rect x y # lwG 0.00 # bg white
|
||||||
|
Loading…
Reference in New Issue
Block a user