diagrams-lib v1.4 Release Notes
Release Date: 2016-10-26 // over 7 years ago-
๐ New features
- New
mkText'
function, which allows making a text primitive without recommending a fill colour or font size so users can recommend their own (e.g. using therecommendFontSize
function). - New functions
reflectXY
andreflectionXY
- New
composeAligned
combinator for doing composition under an alignment while leaving the local origin unaffected. - Add
_LocLoop
and_LocLine
prisms - New
bspline
function for creating uniform cubic B-splines - New 3D features:
- New
Skinned
class - Improved handling of 3D primitives
- CSG
- New
- New standard attributes for separate fill and stroke opacity (see #248).
- New
HasQuery
class for things which can be spatially queried for values from some monoid. - New function
inquire
for testing whether a given point is inside a diagram. - New font weights:
bolder
,lighter
,thinWeight
,ultraLight
,light
,mediumWeight
,heavy
,semiBold
,ultraBold
. Note that currently only the SVG backend deals with the new weights. - Export
GetSegmentCodomain
and update documentation - Improved performance of 2D rotations
- New
๐ New instances
Alignable
instance forLocated
ToPath
instances for lines and loopsSerialize
instances forTrail
,Path
,Located
,SegTree
,Segment
Generic
instances forPath
,Located
Action
instance forAngle
: angles act by rotation.
API changes
snugBL
,snugBR
,snugTR
andsnugBR
are deprecated. These functions were unintuitive, ad-hoc, and not particularly useful, especially since e.g.snugL
andsnugB
do not commute. You can use something likesnugB . snugL
directly, or usesnug
with a direction vector. See #250 for more details.
Dependency/version changes
- upgrade
fsnotify
and drop dependency on deprecatedsystem-filepath
- Allow
lens-4.15
- Many other bumped upper bounds, see release notes for minor releases below
- upgrade
๐ Bug fixes