Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Path r = Path (LSeq 1 (PathSegment r))
- pathSegments :: forall r r. Iso (Path r) (Path r) (LSeq 1 (PathSegment r)) (LSeq 1 (PathSegment r))
- data PathSegment r
- = PolyLineSegment (PolyLine 2 () r)
- | PolygonPath (SimplePolygon () r)
- | CubicBezierSegment (BezierSpline 3 2 r)
- | QuadraticBezierSegment (BezierSpline 2 2 r)
- | EllipseSegment (Ellipse r)
- | ArcSegment
- | SplineSegment
- | ClosedSplineSegment
- _PolyLineSegment :: forall r. Prism' (PathSegment r) (PolyLine 2 () r)
- _PolygonPath :: forall r. Prism' (PathSegment r) (SimplePolygon () r)
- _CubicBezierSegment :: forall r. Prism' (PathSegment r) (BezierSpline 3 2 r)
- _QuadraticBezierSegment :: forall r. Prism' (PathSegment r) (BezierSpline 2 2 r)
- _EllipseSegment :: forall r. Prism' (PathSegment r) (Ellipse r)
- _ArcSegment :: forall r. Prism' (PathSegment r) ()
- _SplineSegment :: forall r. Prism' (PathSegment r) ()
- _ClosedSplineSegment :: forall r. Prism' (PathSegment r) ()
- data Operation r
- _MoveTo :: forall r. Prism' (Operation r) (Point 2 r)
- _LineTo :: forall r. Prism' (Operation r) (Point 2 r)
- _CurveTo :: forall r. Prism' (Operation r) (Point 2 r, Point 2 r, Point 2 r)
- _QCurveTo :: forall r. Prism' (Operation r) (Point 2 r, Point 2 r)
- _Ellipse :: forall r. Prism' (Operation r) (Matrix 3 3 r)
- _ArcTo :: forall r. Prism' (Operation r) (Matrix 3 3 r, Point 2 r)
- _Spline :: forall r. Prism' (Operation r) [Point 2 r]
- _ClosedSpline :: forall r. Prism' (Operation r) [Point 2 r]
- _ClosePath :: forall r. Prism' (Operation r) ()
Documentation
A path is a non-empty sequence of PathSegments.
Path (LSeq 1 (PathSegment r)) |
Instances
pathSegments :: forall r r. Iso (Path r) (Path r) (LSeq 1 (PathSegment r)) (LSeq 1 (PathSegment r)) Source #
data PathSegment r Source #
Paths
Paths consist of Path Segments. PathSegments come in the following forms:
PolyLineSegment (PolyLine 2 () r) | |
PolygonPath (SimplePolygon () r) | |
CubicBezierSegment (BezierSpline 3 2 r) | |
QuadraticBezierSegment (BezierSpline 2 2 r) | |
EllipseSegment (Ellipse r) | |
ArcSegment | |
SplineSegment | |
ClosedSplineSegment |
Instances
_PolyLineSegment :: forall r. Prism' (PathSegment r) (PolyLine 2 () r) Source #
_PolygonPath :: forall r. Prism' (PathSegment r) (SimplePolygon () r) Source #
_CubicBezierSegment :: forall r. Prism' (PathSegment r) (BezierSpline 3 2 r) Source #
_QuadraticBezierSegment :: forall r. Prism' (PathSegment r) (BezierSpline 2 2 r) Source #
_EllipseSegment :: forall r. Prism' (PathSegment r) (Ellipse r) Source #
_ArcSegment :: forall r. Prism' (PathSegment r) () Source #
_SplineSegment :: forall r. Prism' (PathSegment r) () Source #
_ClosedSplineSegment :: forall r. Prism' (PathSegment r) () Source #
type that represents a path in ipe.
MoveTo (Point 2 r) | |
LineTo (Point 2 r) | |
CurveTo (Point 2 r) (Point 2 r) (Point 2 r) | |
QCurveTo (Point 2 r) (Point 2 r) | |
Ellipse (Matrix 3 3 r) | |
ArcTo (Matrix 3 3 r) (Point 2 r) | |
Spline [Point 2 r] | |
ClosedSpline [Point 2 r] | |
ClosePath |
Instances
Functor Operation Source # | |
Foldable Operation Source # | |
Defined in Data.Geometry.Ipe.Path fold :: Monoid m => Operation m -> m # foldMap :: Monoid m => (a -> m) -> Operation a -> m # foldr :: (a -> b -> b) -> b -> Operation a -> b # foldr' :: (a -> b -> b) -> b -> Operation a -> b # foldl :: (b -> a -> b) -> b -> Operation a -> b # foldl' :: (b -> a -> b) -> b -> Operation a -> b # foldr1 :: (a -> a -> a) -> Operation a -> a # foldl1 :: (a -> a -> a) -> Operation a -> a # toList :: Operation a -> [a] # length :: Operation a -> Int # elem :: Eq a => a -> Operation a -> Bool # maximum :: Ord a => Operation a -> a # minimum :: Ord a => Operation a -> a # | |
Traversable Operation Source # | |
Eq r => Eq (Operation r) Source # | |
Show r => Show (Operation r) Source # | |
Coordinate r => IpeReadText [Operation r] Source # | |
Defined in Data.Geometry.Ipe.Reader ipeReadText :: Text -> Either ConversionError [Operation r] Source # | |
IpeWriteText r => IpeWriteText (Operation r) Source # | |
Defined in Data.Geometry.Ipe.Writer |
_ClosePath :: forall r. Prism' (Operation r) () Source #