Skip to content
JavaScript port of OpenChemLib
Java Other
  1. Java 99.3%
  2. Other 0.7%
Branch: master
Clone or download
Latest commit d038fb4 Jan 10, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__ chore: update OCL to 2019_11_05-15_48_20 Nov 7, 2019
benchmark
data
dist
docs
examples
scripts chore: update dependencies Nov 7, 2019
src/com/actelion/research/gwt chore: update OCL to 2020.1.0 Jan 10, 2020
war Fixed dialog positions. #50 Sep 23, 2016
.classpath
.eslintignore chore: remove npmignore Dec 1, 2018
.eslintrc.yml
.gitignore
.project actelion-js -> openchemlib-js Mar 4, 2015
.travis.yml
AutoMethods.md update JSMolecule methods Jun 19, 2018
History.md doc: update changelog Jan 10, 2020
LICENSE
LegacyStructureEditor.md doc: move documentation TOC to the readme Dec 9, 2018
README.md doc: rebuild docs [ci skip] Jul 8, 2019
bower.json
build.xml
config.default.json
core.d.ts
core.js
full.d.ts doc: link to the TypeDoc documentation Dec 9, 2018
full.js include full dist directory in npm and add require aliases Jan 10, 2017
install-travis.sh
minimal.d.ts doc: move documentation to TypeDoc Dec 9, 2018
minimal.js
package-lock.json Release v7.2.3 Jan 10, 2020
package.json
types.d.ts

README.md

OpenChemLib JS

NPM version build status npm download

JavaScript port of the OpenChemLib Java library.

Installation

npm install openchemlib

Documentation

This library is available in three different builds: minimal, core and full. Each larger build contains all functionalities from the smaller ones.

The core build is the one that you get when you require('openchemlib'). It contains all functionalities that can be used in Node.js.

The minimal (require('openchemlib/minimal')) build is a smaller one (~ half the size of core) that is meant to be used in a browser application if bundle size matters and prediction functionalities are not needed.

The full build (require('openchemlib/full')) build is the largest build. It contains a structure viewer and a structure editor for browser applications.

Modules present in minimal, core and full builds

Modules present only in core and full builds

Modules present only in full build

Online demos

Development

To build this project, you need :

Install dependencies

npm install

Configure directories

Copy config.default.json to config.json and put the path to the GWT classes on your computer.
If you want to update the java code from openchemlib, provide the path to the openchemlib source.

npm scripts

To run one of the scripts, use npm run <scriptName>.
To pass an options, use npm run <scriptName> -- --option.

Options:

  • -m [name]: only process module "name"
  • -v: verbose output

compile:min / compile:pretty

Execute the GWT compiler.

export

Transform the GWT compiled files to JavaScript modules.

build:min / build:pretty

Compile and export.

copy:openchemlib

Copy the required java files from the openchemlib project.

License

BSD-3-Clause

You can’t perform that action at this time.