Git Product home page Git Product logo

simpleflowchart's Introduction

SimpleFlowchart - Simple flow chart library

About

This is a small JavaScript library with single purpose - draw some nodes and connect them with lines. You can use this library to create your own flow charts or create other similar graphics. Nodes and connection lines can be styled with CSS. Node content can be whatever you want - simple div, image or SVG.

The library is depends on jQuery and jQuery UI (drag and drop and effects).

Current library version is actually just a result of playing around with SVG. The code base must be improved and refactored. In nearest future I want to move from DOM-based data storage and rewrite the code in TypeScript.

How to use

The code is really small. Do not hesitate to check the source code to explore the actions. Feel free to extend and adjust the code to your needs.

Check out the example chart here.

Currently, you can add and delete nodes and connect them with lines (connections).

Default actions include:

  • Drag nodes around (lines are adjusted automatically)
  • Drop node on other node to connect them

You can configure your own node actions. Current example shows additional functionality:

  • Add child node by clicking on the node.
  • Delete node by making right mouse click on it (context menu).

Actual example also works on touch devices thanks to wonderful Touch Punch.

Contact

If you have any questions, please feel free to ask on the [Michail Mazo] (http://mmazo.de) or email: [email protected].

simpleflowchart's People

Contributors

mmazo avatar

Stargazers

Vijay Kumar avatar Ruchir Saxena avatar

Watchers

James Cloos avatar Ruchir Saxena 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.