Git Product home page Git Product logo

mdraw's Introduction

MDraw


About

A molecule drawer inspired by ChemDraw and similar drawing software, featuring free-form curved arrows, automatic hydrogen insertion, lone pairs and free radical support, and a pseudo-3D mode (activated by pressing the D key).

Using the drawer begins by placing atoms on the drawing field. Simply select the element of choice, then click the atom button and place the atom somewhere on the drawing field. Creating bonds is achieved by clicking on an atom, which then creates a bond at a standard distance to a new atom with the currently selected element type, which is confirmed by clicking on empty space. To connect two already created atoms, simply creating a bond and clicking the target atom is sufficient. Adding lone pairs and free radicals follows the same principles. Curved arrows are formed by interpolating cubic Bezier curves between points added sequentially. The drawing surface can scroll when an atom, bond, lone pair, free radical, curved arrow, or a selection box is brought near an edge. Cut, copy, and paste are also supported, as is merging two atoms by dragging one on top of the other. Also, hydrogen atoms may be inferred by clicking the big lightbulb button, which follows some simple rules to cover the vast majority of cases where a hydrogen atom would appear.


Project setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

mdraw's People

Contributors

pchintalapudi avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.