.. include:: ../substitutions

OEDepict TK 2.2.1
================================================================================

New features
--------------------------------------------------------------------------------

* Added cubic |Bezier| drawing method to the following classes:

  * :oe:meth:`OEDepict::OEImageBase<OEDepict::OEImageBase::DrawCubicBezier>`
  * :oe:meth:`OEDepict::OEImage<OEDepict::OEImage::DrawCubicBezier>`
  * :oe:meth:`OEDepict::OEImageFrame<OEDepict::OEImageFrame::DrawCubicBezier>`

* Added quadratic |Bezier| drawing method to the following classes:

  * :oe:meth:`OEDepict::OEImageBase<OEDepict::OEImageBase::DrawQuadraticBezier>`
  * :oe:meth:`OEDepict::OEImage<OEDepict::OEImage::DrawQuadraticBezier>`
  * :oe:meth:`OEDepict::OEImageFrame<OEDepict::OEImageFrame::DrawQuadraticBezier>`

* Added rotation angle property to the :ref:`OEFont <OEDepict_OEFont>` class that
  allows to render text in various angles when calling the
  :oe:meth:`OEDepict::OEImageBase::DrawText` method.

  * :oe:meth:`OEDepict::OEFont::GetRotationAngle`
  * :oe:meth:`OEDepict::OEFont::SetRotationAngle`

Major bug fixes
--------------------------------------------------------------------------------

* When aligning a molecule to a template, atom clashes between the
  template atoms are ignored.

* :oe:func:`OEDepict::OEPrepareDepiction` will now suppress hydrogens
  even when 2D coordinates are not generated, i.e., ``clearcoords =
  false``.

Minor bug fixes
--------------------------------------------------------------------------------

* Highlighting a single atom with the
  :oe:const:`OEDepict::OEHighlightStyle::Stick` will now work if that
  atom is bonded to a highlighted atom.

* Fixed problem when the scaling of small molecules resulted
  in depicting atom labels outside the canvas.

* Fixed problem that incorrectly positioned the "+" sign between
  reaction components introduced by the last **OEDepict TK** release,
  2.2.0.

Documentation changes
--------------------------------------------------------------------------------

* All images in this documentation were automatically regenerated to
  reflect the changes made since the previous release.
