Index

chemdoc/kekule.attachedMarkers.js

chemdoc/kekule.commonChemMarkers.js

chemdoc/kekule.contentBlocks.js

chemdoc/kekule.glyph.base.js

chemdoc/kekule.glyph.chemGlyphs.js

chemdoc/kekule.glyph.lines.js

chemdoc/kekule.glyph.pathGlyphs.js

core/kekule.chemUtils.js

core/kekule.configs.js

core/kekule.electrons.js

core/kekule.elements.js

core/kekule.reactions.js

core/kekule.structureBuilder.js

core/kekule.structures.js

core/kekule.valences.js

This file helps to determine the valence of a neutral, anion(-) or cation(+) atom.
Author:
  • Partridge Jiang
Source:

html/kekule.nativeServices.js

html/kekule.predefinedResLoaders.js

Utils and classes to load chem resources embedded or linked in HTML page. The chem resources (usually a formatted file (.mol, .cml...) or a formatted string) can be embedded in <script> tag:
<script id="chem1" type="chemical/x-mdl-molfile">
Untitled Document-1
ChemDraw09151219572D

2  1  0  0  0  0  0  0  0  0999 V2000
 -0.4125    0.0000    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
  0.4125    0.0000    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
1  2  1  0
M  END
</script>
or linked in by <script> or <link> tag as the follows:
<script id="chem2" type="chemical/x-kekule-json" src="externalMol.kcj"></script>
<link id="chem3" type="chemical/x-cml" href="external.cml" /> Afterwards, user can ref to chem resource by ID directly in HTML code, such as:
<div data-kekule-role="Kekule.ChemWidget.Viewer2D" data-chem-obj="url(#chem1)" /> which will initialize a 2D viewer.
Author:
  • Partridge Jiang
Source:

html/kekule.predefinedResLoaders.js

Utils and classes to load chem resources embedded or linked in HTML page. The chem resources (usually a formatted file (.mol, .cml...) or a formatted string) can be embedded in <script> tag:
<script id="chem1" type="chemical/x-mdl-molfile">
Untitled Document-1
ChemDraw09151219572D

2  1  0  0  0  0  0  0  0  0999 V2000
 -0.4125    0.0000    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
  0.4125    0.0000    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
1  2  1  0
M  END
</script>
or linked in by <script> or <link> tag as the follows:
<script id="chem2" type="chemical/x-kekule-json" src="externalMol.kcj"></script>
<link id="chem3" type="chemical/x-cml" href="external.cml" /> Afterwards, user can ref to chem resource by ID directly in HTML code, such as:
<div data-kekule-role="Kekule.ChemWidget.Viewer2D" data-chem-obj="url(#chem1)" /> which will initialize a 2D viewer.
Author:
  • Partridge Jiang
Source:

lan/classes.js

This file simulates the class-based inheritance, most of the code is borrowed from Prototype lib. My own property system borrowed form WebShow framework is also added here.
Author:
  • Partridge Jiang
Source:

lan/serializations.js

lan/xmlJsons.js

Utilities to handle XML and JSON data. Borrowed from WebShow.XML and WebShow.JSON.
Author:
  • Partridge Jiang
Source:

utils/kekule.domHelper.js

Generally we can use getElementsByTagName, getAttribute to analysis a DOM tree. If the DOM has namespaces, getElementsByTagNameNS and getAttributeNS should be used instead. However, IE (and MSXML) does not support those NS methods. So this file is trying to provide a cross-browser solution.
Author:
  • Partridge Jiang
Source:

utils/kekule.domUtils.js

utils/kekule.textHelper.js

Contains classes and functions help to analysis text format chemical data, especially the line/column fixed ones such as MDL MOL/SDF/RXN.
Author:
  • Partridge Jiang
Source:

utils/kekule.utils.js