Portability | GHC |
---|---|
Stability | experimental |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Safe Haskell | None |
- data BBox = BBox {
- bbox_upperleft :: (Double, Double)
- bbox_lowerright :: (Double, Double)
- class GetBBoxable a where
- class Monad m => MakeBBoxedable m a where
- makeBBoxed :: a -> m (BBoxed a)
- data BBoxed a = BBoxed {
- bbxed_content :: a
- bbxed_bbx :: BBox
- mkbbox :: [Pair Double Double] -> BBox
- mkbboxF :: (Foldable m, Functor m) => m (Double, Double) -> BBox
- bboxFromStroke :: Stroke -> BBox
- bboxFromImage :: Image -> BBox
- bboxFromSVG :: SVG -> BBox
- dimToBBox :: Dimension -> BBox
- bboxToDim :: BBox -> Dimension
- xformBBox :: ((Double, Double) -> (Double, Double)) -> BBox -> BBox
- inflate :: BBox -> Double -> BBox
- moveBBoxToOrigin :: BBox -> BBox
- moveBBoxByOffset :: (Double, Double) -> BBox -> BBox
- moveBBoxULCornerTo :: (Double, Double) -> BBox -> BBox
- intersectBBox :: BBox -> BBox -> Maybe BBox
- unionBBox :: BBox -> BBox -> BBox
- data ULMaybe a
- newtype IntersectBBox = Intersect {}
- newtype UnionBBox = Union {}
- class Maybeable a where
- bbox4All :: (Foldable t, Functor t, GetBBoxable a) => t a -> ULMaybe BBox
Documentation
bounding box type
BBox | |
|
class Monad m => MakeBBoxedable m a whereSource
makeBBoxed :: a -> m (BBoxed a)Source
BBoxed | |
|
bboxFromStroke :: Stroke -> BBoxSource
bboxFromImage :: Image -> BBoxSource
bboxFromSVG :: SVG -> BBoxSource
moveBBoxToOrigin :: BBox -> BBoxSource
newtype IntersectBBox Source