Nietzsche's Preposterous Moustache
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

diagram-library

3.2.1-a • Public • Published

Diagram Library for JavaScript and TypeScript

A diagram library that enables you to build any type of graph, flowchart, tree, org chart, diagram, process chart, database schema and much more. Includes a huge variety of prdefined node and link shapes, automatic layout algorithms, many import and export options.

Installing

For the latest stable version:

npm install -g diagram-library

New Features in JS Diagram 3.2.1

// node is a ShapeNode instance
node.setText("test <a='http://mindfusion.eu'>link</a> test");
node.setEnableStyledText(true);

// attach an event listener to the hyperlinkClicked event
diagram.addEventListener(Events.hyperlinkClicked, onHyperlinkClicked);

function onHyperlinkClicked(sender, args)
{
    window.open(args.getHyperlink());
}

  • Miscellaneous
    • The serializeTag event lets you save complex Tag and Id objects in XML format.
    • Various arrowhead rendering fixes.

Documentation

  1. Detailed API Reference
  2. Tutorials and Step-by-step Guides

Samples

A variety of online samples are uploaded at the MindFusion Js Diagram website. You can also visit the online demo for Js Diagram. You can download an archive with all samples and all files for the library from here.

Additional Information

Learn more about JS Diagram from the official product page. Stay in touch with MindFusion about our latest product announcements, tutorials and programming guidelines via Twitter or our company blog.

Technical Support

Licensing

The end-user license agreement for JS Diagram is here.

install

npm i diagram-library

Downloadsweekly downloads

9

version

3.2.1-a

license

SEE LICENSE IN LICENSE.txt

repository

githubgithub

last publish

collaborators

  • avatar