diagrams-lib v1.1 Release Notes

Release Date: 2014-03-09 // about 10 years ago
  • Full Changelog

    ๐Ÿ†• New features

    • ๐Ÿ‘Œ Support for Deformations, 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, and clipped, 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 and snugXY, based on new basis function from `diagrams-core

    • ๐Ÿ†• New 3D Transforms, alignment, and 3D-specific Prelude.

    • ๐Ÿ†• New frame function similar to pad, 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 for FixedSegment.

    API changes

    • Angle is now a type, rather than a class. It uses a single internal representation for angles, and lenses turn, rad, and deg are supplied for constructing (using @@) and viewing (using ^.) Angles in various units. In addition, the Num instance for Angle 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:

    Closed issues:

    • Expand of an expand #160

    ๐Ÿ”€ Merged pull requests: