.. include:: ../../toolkit-substitutions

Grapheme\ :sup:`TM` TK 1.3.4
================================================================================

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

* The following new API has been added to customize peptide depiction:

  * :ref:`OEPeptideDisplayOptions <OEGrapheme_OEPeptideDisplayOptions>` class
  * :oe:constns:`OEGrapheme::OEPeptideLabelStyle` namespace
  * :oe:func:`OEGrapheme::OEDrawPeptide` function that takes an option class

  The main feature is that :oe:func:`OEGrapheme::OEDrawPeptide` now can
  generate interactive SVG images where the amino acid components of
  the compact peptide representation are depicted on mouse-over.

.. only:: oehtml

   .. raw:: html

      <p align="center">
      <b>Hover over any circle below</b>
      </p>

      <p align="center">
      <object data="../../_images/oxytocin-interactive.svg" type="image/svg+xml"  width = "500" ></object>
      <p>

      <p align="center">
      <b>Example of interactive SVG image generated by OEDrawPeptide</b>
      <p>

   .. image:: ../../graphemetk/images/releasenotes-1.3.4/oxytocin-interactive.svg
      :width: 1pt

   .. only:: oepdf

      |NOPDFIMAGE|

* The following new API has been added to customize active site depiction:

   * :oe:meth:`OEGrapheme::OE2DActiveSiteDisplayOptions::GetSVGMagnifyResidueInHover`
   * :oe:meth:`OEGrapheme::OE2DActiveSiteDisplayOptions::SetSVGMagnifyResidueInHover`
   * :oe:meth:`OEGrapheme::OE2DActiveSiteDisplayOptions::GetRenderInteractiveLegend`
   * :oe:meth:`OEGrapheme::OE2DActiveSiteDisplayOptions::SetRenderInteractiveLegend`

   These new options allow users to generate interactive SVG images when calling
   the :oe:func:`OEGrapheme::OERenderActiveSite` function.

.. only:: oehtml

   .. raw:: html

      <p align="center">
      <b>Hover over the legend label or any circle representing a residue</b>
      </p>

      <p align="center">
      <object data="../../_images/activesite-interactive.svg" type="image/svg+xml"  width = "400" ></object>
      <p>

      <p align="center">
      <b>Example of interactive SVG image generated by OERenderActiveSite</b>
      <p>

   .. image:: ../../graphemetk/images/releasenotes-1.3.4/activesite-interactive.svg
      :width: 1pt

   .. only:: oepdf

      |NOPDFIMAGE|

* The :oe:meth:`OEGrapheme::OEBondGlyphZigZag<OEGrapheme::OEBondGlyphZigZag::Constructors>`
  constructor now takes a parameter that allows drawing diagonal zig-zag lines across a bond.

  .. figure:: ../../graphemetk/images/releasenotes-1.3.4/OEBondGlyphZigZag.*
     :align: center
     :width: 150

     **Example of using the OEBondGlyphZigZag class**

* **OEGrapheme TK** now uses the new thread-safe **OEShape TK** API to generate
  shape and color overlaps for :ref:`OEShapeQueryDisplay <OEGrapheme_OEShapeQueryDisplay>` and
  :ref:`OEShapeOverlapDisplay <OEGrapheme_OEShapeOverlapDisplay>` classes.

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

* :oe:meth:`OEGrapheme::OEResidueSVGStandardMarkup::GetGroupId` now returns
  ``group id`` for a residue that includes the insert code
  (see also :oe:meth:`OEChem::OEResidue::GetInsertCode`)
