diagrams-contrib-1.4.2.1: Collection of user contributions to diagrams EDSL

Copyright(c) 2013 Michael Sloan
LicenseBSD-style (see LICENSE)
MaintainerMichael Sloan <mgsloan at gmail>
Safe HaskellNone
LanguageHaskell2010

Diagrams.Lens

Contents

Description

This module provides utilities for using Control.Lens with diagrams.

Synopsis

Diagrams.BoundingBox

_corners :: (Additive v', Foldable v', Ord n') => Traversal (BoundingBox v n) (BoundingBox v' n') (Point v n) (Point v' n') Source #

A traversal that either has 0 (empty box) or 2 points. These points are the lower and upper corners, respectively.

Diagrams.Core.Types

_location :: (HasLinearMap v, Metric v, OrderedField n) => Lens' (Subdiagram b v n m) (Point v n) Source #

Gets or set the location of a Subdiagram.

Diagrams.Located

_Loc :: Iso (Located a) (Located a') (Point (V a) (N a), a) (Point (V a') (N a'), a') Source #

Diagrams.Parametric

Diagrams.Segment

_straight :: Prism' (Segment Closed v n) (v n) Source #

Prism that constructs linear segments. Can also destruct them, if the segment is Linear.

_bezier3 :: Prism' (Segment Closed v n) (v n, v n, v n) Source #

Prism that constructs cubic bezier segments. Can also destruct them, if segment is a Cubic.

Diagrams.Trail