diagrams-lib 0.1 → 0.1.1
raw patch · 4 files changed
+7/−8 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- diagrams-lib.cabal +2/−2
- src/Diagrams/Combinators.hs +2/−3
- src/Diagrams/Segment.hs +1/−1
- src/Diagrams/TwoD/Combinators.hs +2/−2
diagrams-lib.cabal view
@@ -1,5 +1,5 @@ Name: diagrams-lib-Version: 0.1+Version: 0.1.1 Synopsis: Embedded domain-specific language for declarative graphics Description: Diagrams is a flexible, extensible EDSL for creating graphics of many types. Graphics can be created@@ -8,7 +8,7 @@ standard library of primitives and operations for creating diagrams. To get started using it, see "Diagrams.Prelude".-Homepage: http://code.google.com/p/diagrams/+Homepage: http://projects.haskell.org/diagrams License: BSD3 License-file: LICENSE Author: Brent Yorgey
src/Diagrams/Combinators.hs view
@@ -99,11 +99,10 @@ -- their bounding regions are just tangent. The local origin of the -- new, combined object is at the point of tangency, along the line -- between the old local origins.------ XXX picture beside :: (HasOrigin a, Boundable a, Monoid a) => V a -> a -> a -> a beside v d1 d2 = align v d1 <> align (negateV v) d2+-- XXX add picture to above documentation? -- Note that sending the origin to the point of tangency like this -- means that (beside v) is not associative. We can make it@@ -135,7 +134,7 @@ -- | @appends x ys@ appends each of the objects in @ys@ to the object -- @x@ in the corresponding direction. Note that each object in -- @ys@ is positioned beside @x@ /without/ reference to the other--- objects in @ys@, so this is not the same as iterating @append@.+-- objects in @ys@, so this is not the same as iterating 'append'. appends :: (HasOrigin a, Boundable a, Monoid a) => a -> [(V a,a)] -> a appends d1 apps = d1 <> mconcat (map (uncurry (besideBounds b)) apps) where b = getBounds d1
src/Diagrams/Segment.hs view
@@ -78,7 +78,7 @@ -- | 'atParam' yields a parametrized view of segments as continuous -- functions @[0,1] -> v@, which give the offset from the start of -- the segment for each value of the parameter between @0@ and @1@.--- It is designed to be used infix, like @seg `atParam` 0.5@.+-- It is designed to be used infix, like @seg ``atParam`` 0.5@. atParam :: (VectorSpace v, Num (Scalar v)) => Segment v -> Scalar v -> v atParam (Linear x) t = t *^ x atParam (Cubic c1 c2 x2) t = (3 * t'*t'*t ) *^ c1
src/Diagrams/TwoD/Combinators.hs view
@@ -66,7 +66,7 @@ -- * For more control over the spacing, see 'hcat''. -- -- * To align the diagrams vertically (or otherwise), use alignment--- combinators (such as 'alignTop' or 'alignBottom') from+-- combinators (such as 'alignT' or 'alignB') from -- "Diagrams.TwoD.Align" before applying 'hcat'. -- -- * For non-axis-aligned layout, see 'cat'.@@ -86,7 +86,7 @@ -- * For more control over the spacing, see 'vcat''. -- -- * To align the diagrams horizontally (or otherwise), use alignment--- combinators (such as 'alignLeft' or 'alignRight') from+-- combinators (such as 'alignL' or 'alignR') from -- "Diagrams.TwoD.Align" before applying 'vcat'. -- -- * For non-axis-aligned layout, see 'cat'.