gojs
Version:
Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams
24 lines (15 loc) • 1.03 kB
Markdown
This demonstrates how to build a diagram with GoJS source, using Browserify.
Because Browserify is able to shake out all functionality not used, this Diagram is truly minimal, and the compiled JS contains no layouts, no GoJS Tools for interactivity, no TreeModel or GraphLinksModel, no SVG rendering capability,
There are many related projects in this directory:
* **minimalSource**, for an example of building GoJS while excluding as many modules as possible. This project uses webpack's tree shaking to remove unused modules.
* **maximalSource**, for an example of building GoJS while including every module.
* **minimalSourceBrowserify**, for another minimal example of building GoJS with Browserify. Also does not use `require`.
With npm, install the dependencies:
```
$ npm install
```
You may also need to install `Browserify` globally (`npm install --global browserify`). Run the script with:
```
$ node browserify-run.js
```
This creates `minimal.js`, which is referenced in `minimal.html`.