OEDepict TK 2.2.3¶
New features¶
OEPrepareDepictionOptions added to allow finer grained control of the
OEPrepareDepictionfunction.OEGetMoleculeCoordsandOEGetDisplayCoordsfunctions added that convert 2D points between the molecule and the display coordinate systems.OEAddHighlightOverlayadded to elegantly highlight overlapping sections of a molecule.Added the following functions to OESystem to provide predefined sets of colors:
Added the following colors to OESystem :
OESystem.OEGold(the original color was renamedOESystem.OEMandarin)
Major bug fixes¶
Fixed Linux thread safety when writing
.pngfiles. The Cairo graphics library (http://cairographics.org) used to draw.pngimages on Linux is not thread safe. OEDepict TK now performs its own mutual exclusion when calling into the Cairo graphics library to ensure thread safety. It is strongly recommended to use the.svgfile format when speed and server throughput is a concern. Web browser support for.svghas improved significantly in recent years and it is more effective at representing molecule graphs since they are mostly vector graphics. The only time.pngis preferable over.svgis when rendering heavy raster graphics like property maps from Grapheme TK.Fixed thread safety of creating
.svgimages.Increased the default font size of the atom label and atom property label. See the effect of this change in Table: Example of increasing the default font size.
Example of increasing the default font size¶ OEDepict TK 2.2.2
OEDepict TK 2.2.3
The reaction role of hydrogens will no longer be thrown away during the depiction process. Specifically, all information present on explicit hydrogens will be preserved during the depiction process.
OEDepict TK generated
.pdffiles opened by several PDF viewers would show the file as edited due to an internal representation problem. PDF viewers should no longer modify OEDepict TK generated.pdffiles.OEDepict TK generated
.pdffiles should no longer cause the following warning messages when read into Adobe Acrobat:The font 'Arial-Bold' contains a bad /BBox.
The Helvetica font will now be used as the default font in
.pdffiles. TheOEFontFamily.Arialconstant will now map to Helvetica as well in.pdffiles.
Minor bug fixes¶
Isotope hydrogens are never suppressed by the
OEPrepareDepictionfunction..svgand.bsvgimage dimensions are now specified by the “viewBox” parameter rather than the “width” and “height” parameters. This allows scaling the images in web applications.Functions and constructors of classes of Ogham API will now throw warning messages about being deprecated.
Removed unbounded stack allocations.
Fixed the problem when wedge bonds were not highlighted correctly when using the
OEHighlightStyle.Colorhighlighting style. See the effect of this change in Table: Example of highlighting wedge bonds with “Color” style.Example of highlighting wedge bonds with “Color” style¶ OEDepict TK 2.2.2
OEDepict TK 2.2.3
Functions and methods that returned a OE2DPoint to Java and C# no longer return a dangling reference that was easy to cause crashes with.
Documentation changes¶
Updated the Highlighting Overlapped Patterns section and added a new code example that shows how to highlight overlapping matches using the new
OEAddHighlightOverlayfunction.Documentation updated to reflect that
OE2DMolDisplayOptions.SetAtomPropertyFunctorandOE2DMolDisplayOptions.SetBondPropertyFunctorare preferred over usingOE2DAtomDisplay.SetPropertyandOE2DBondDisplay.SetPropertydirectly to ensure molecule scaling fully accounts for the size of the labels.All images in this documentation were automatically regenerated to reflect the changes made since the previous release.
Added the missing documentation for the following OESystem colors:
The example for a python-based web interface and web service have been moved to our Python Cookbook.