diagrams-lib v1.1 Release Notes
Release Date: 2014-03-09 // about 10 years ago-
๐ New features
๐ Support for
Deformation
s, arbitrary (non-affine) transformations on objects such as points, paths, and located trails (though not on diagrams).๐ New functions
clipTo
, which clips a diagram's envelope and trace along with its visual representation, andclipped
, which clips the diagram's visual representation but replaces its envelope and trace with those of the clipping path.๐ New
arrowV
function, for creating an arrow with the direction and magnitude of a given vector.gap
traversal, for setting the head and tail gaps of an arrow simultaneously.Generalized types for
centerXY
andsnugXY
, based on newbasis
function from `diagrams-core๐ New 3D
Transform
s, alignment, and 3D-specificPrelude
.๐ New
frame
function similar topad
, but increases the envelope of a diagram by an amount specified in local units in every direction irrespective of the local origin.๐ New
splitFills
function for pushing fill attributes down to subtrees containing only loops (mostly of relevance only to backend implementors).
๐ New instances
Typeable
instances for all data types that are used as diagram primitives.๐
Sectionable
instance forFixedSegment
.
API changes
Angle
is now a type, rather than a class. It uses a single internal representation for angles, and lensesturn
,rad,
anddeg
are supplied for constructing (using@@
) and viewing (using^.
)Angle
s in various units. In addition, theNum
instance forAngle
has been removed, eliminating a class of errors where a bare number is interpreted in units other than what you expect.โ Removed
Num
instance for angles.
Dependency/version changes
Require
lens >= 4.0
.๐ Allow
array-0.5
.๐ Allow
hashable-1.1
.โ Remove
NumInstances
dependency.
๐ Bug fixes
Exclude joins in offsets on close segments (#160).
Exclude extra segment when joining loops in offset (#155).
๐ Performance improvements
colorToSRGBA
function now avoids expensive matrix operations, offering dramatic speedups in rendering diagrams with many color attributes.
Implemented enhancements:
๐ Better color model in 3D #121
Projective/perspective transforms for points and paths #108
clipTo function #35
๐ Fixed bugs:
- Offset Bug #155
Closed issues:
- Expand of an expand #160
๐ Merged pull requests:
๐ fix doc for === and ||| #164 (denys-duchier)
๐ Exclude extra segment when joining loops in offset. Fixes #155. #158 (fryguybob)
โ added basis, generalized
centerXY
andsnugXY
#157 (jeffreyrosenbluth)derive Typeable for all data types used in Prims #156 (byorgey)
โ removed NumInstances dependency #153 (jeffreyrosenbluth)
๐ Change internal color representation to SRGBA #149 (jeffreyrosenbluth)