CODE 项目整体迁移至码云平台(公告
OS_Mirror / joint JavaScript

JointJS是一个开源的、基于JavaScript的图表库,可以用来创建静态图表、完全可交互的图表以及应用程序。采用Mozilla Public License 2.0开源许可证。

javascript 开源 应用程序 mozilla

项目最近一次提交:大约一个月 前 1758f5a69

文件列表 提交日期 作者 提交信息 提交编号
css / 2018-01-26 14:57:57 No_avatar Roman Bruckner dia.ElementView: apply vector-effect:... 88e8a968
demo / 2018-07-17 18:08:55 No_avatar Roman Bruckner updatem 33566654
dist / 2018-06-29 07:43:38 No_avatar Roman Bruckner Release v2.3.1 (#909) c069d644
docs / 2018-06-15 15:37:29 No_avatar Zbynek Stara dia.Graph.getConnectedLinks: Skip enc... a2375aa8
plugins / 2018-07-16 18:38:22 No_avatar Roman Bruckner update d4b4cf57
scripts / 2016-06-14 14:05:20 No_avatar Charles Hill More improvements to publish script. 0bf2c560
src / 2018-07-16 18:43:37 No_avatar Roman Bruckner update e477bfc7
test / 2018-07-13 14:01:22 No_avatar Roman Bruckner update 31bad333
tutorials / 2018-06-20 15:27:04 No_avatar Roman Bruckner Tutorials: improve connecting by drop... 278f9960
types / 2018-04-26 20:22:29 No_avatar Zbynek Stara Docs: Link Tools (#864) 38cfafd5
wrappers / 2016-05-31 14:07:46 No_avatar Charles Hill RAP-797: All classes used internally ... a3518721
.bowerrc 2015-04-14 16:33:54 No_avatar Roman Bruckner refactorize tests 0ed3b987
.csslintrc 2016-04-11 12:39:49 No_avatar Charles Hill Added CSS linting a804d0e7
.eslintrc.js 2018-07-13 14:01:22 No_avatar Roman Bruckner update 31bad333
.gitignore 2018-03-19 18:22:54 No_avatar Zbynek Stara dia.Link: router() & connection(), li... 5840a249
.travis.yml 2018-07-13 11:15:07 No_avatar Roman Bruckner update 0f9e9768
CHANGELOG 2018-06-29 07:37:33 No_avatar Roman Bruckner Release v2.1.3 (#900) a80e061a
Gruntfile.js 2018-07-12 17:00:10 No_avatar Roman Bruckner update 1a0c1b6d
LICENSE 2013-07-20 03:39:37 No_avatar David Durman first commit in version 0.6 9a962c35
Makefile 2016-07-29 18:41:06 No_avatar Charles Hill Migrated to eslint from jscs (#362) 927f9485

JointJS - JavaScript diagramming library

Build Status

JointJS is a JavaScript diagramming library. It can be used to create either static diagrams or, and more importantly, fully interactive diagramming tools and application builders.

Please see for more information, demos and documentation.


  • basic diagram elements (rect, circle, ellipse, text, image, path)
  • ready-to-use diagram elements of well-known diagrams (ERD, Org chart, FSA, UML, PN, DEVS, ...)
  • custom diagram elements based on SVG or programmatically rendered
  • interactive elements and links
  • connecting diagram elements with links
  • customizable links, their arrowheads and labels
  • links smoothing (bezier interpolation)
  • magnets (link connection points) can be placed basically anywhere
  • hierarchical diagrams
  • serialization/deserialization to/from JSON format
  • highly event driven - you can react on any event that happens inside the paper
  • zoom in/out
  • touch support
  • plugin awareness
  • MVC architecture
  • ... a lot more

Supported browsers

Only the good ones (those that support SVG):

  • Latest Google Chrome (including mobile)
  • Latest Firefox
  • Safari (including mobile)
  • IE 9+

Development Environment

If you want to work on JointJS locally, use the following guidelines to get started.


Make sure you have the following dependencies installed on your system:


Clone this git repository:

git clone

Change into the joint directory:

cd joint

Run installation

npm install
bower install

This will install all npm and bower dependencies as well as run a full build.


To run all tests:

grunt test

To run only the server-side tests:

grunt test:server

To run only the client-side tests:

grunt test:client

To run code style checks:

grunt test:code-style

Code Coverage

To output a code coverage report in lcov format for all unit tests:

grunt test:coverage --reporter="lcov"

The output will be saved to a new file named at the root of the project directory.

Building Distribution Files

The dist directory contains pre-built distribution files. To re-build them, run the following:

grunt dist


The source for the JointJS documentation (plus geometry and Vectorizer libraries) are included in this repository; see the docs directory. The documentation can be built into stand-alone HTML documents like this:

grunt build:docs

The output of the above command can be found at build/docs.


JointJS library is licensed under the Mozilla Public License, v. 2.0. Please see the LICENSE file for the full license.

Copyright (c) 2013 client IO