UNPKG

jointjs

Version:

JavaScript diagramming library

85 lines (63 loc) 4.71 kB
<!DOCTYPE html> <html> <head> <link rel="canonical" href="http://www.jointjs.com/" /> <meta name="description" content="Create interactive diagrams in JavaScript easily. JointJS plugins for ERD, Org chart, FSA, UML, PN, DEVS, LDM diagrams are ready to use." /> <meta name="keywords" content="JointJS, JavaScript, diagrams, diagramming library, UML, charts" /> <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet" type="text/css" /> <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> <link rel="stylesheet" href="css/tutorial.css" /> <link rel="stylesheet" href="../node_modules/prismjs/themes/prism.css"> <!-- Dependencies: --> <script src="../node_modules/jquery/dist/jquery.js"></script> <script src="../node_modules/lodash/lodash.js"></script> <script src="../node_modules/backbone/backbone.js"></script> <link rel="stylesheet" type="text/css" href="../build/joint.min.css" /> <script type="text/javascript" src="../build/joint.min.js"></script> <title>JointJS - JavaScript diagramming library - Getting started.</title> </head> <body class="language-javascript tutorial-page"> <script> SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) { return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM()); }; </script> <h1>Tutorials</h1> <div class="tutorial"> <h2>About JointJS</h2> <p><strong>The JointJS diagramming library</strong> lets you create fully interactive diagramming tools for all modern browsers, relying only on JavaScript and <a href="http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html" target="_blank">SVG</a>. Its MVC (more MV) architecture separates graph, element and link models from their rendering, which makes it easy to plug JointJS to your backend application. JointJS is not trying to reinvent the wheel for technologies that are commonly used by web developers; things that you learn with JointJS will be useful to you elsewhere. JointJS is built with <a href="http://backbonejs.org" target="_blank">Backbone</a> MVC library and makes use of <a href="http://jquery.com" target="_blank">jQuery</a> and <a href="https://lodash.com" target="_blank">Lodash</a>.</p> <p>A diagram in JointJS is represented by a Graph model (<code>joint.dia.Graph</code>) to which you add models of cells - either Elements (subtypes of <code>joint.dia.Element</code>) or Links (subtypes of <code>joint.dia.Link</code>). To present the diagram, attach it to a Paper view (<code>joint.dia.Paper</code>). Starting from version 0.6, you manipulate models, not views; the paper generates ElementViews and LinkViews for you from the data provided by the graph models. The architecture is illustrated in the following diagram (created with JointJS!).</p> <img src="images/arch.png" alt="JointJS high-level architecture" width="700"/> <p>JointJS provides a visual library of common geometric shapes, as well as an extensive collection of ready-to-use components from several well-known diagramming languages (ERD, OrgChart, FSA, UML, PN, DEVS, ...). The JointJS framework has been designed with an eye towards modularity. This makes it easy for advanced users to create their own shapes and to extend built-in functionality with custom plugins. <a href="https://www.jointjs.com">Rappid</a>, a commercial extension to JointJS, provides a number of pre-made plugins that extend its functionality with widgets, interaction components, and additional shapes (BPMN diagrams).</p> <p>Let's learn how create great diagrams with JointJS!</p> <p><a href="hello-world.html">We will start by examining a simple Hello, World! application together.</a></p> <p><a href="intermediate.html">If you are already comfortable with the basics of JointJS, we can learn about some more complex concepts in the intermediate section of the tutorial.</a></p> </div><!--end tutorial--> <script src="../node_modules/prismjs/prism.js"></script> </body> </html>