maxGraph/README.md

92 lines
3.4 KiB
Markdown
Raw Normal View History

2021-04-15 04:09:30 +00:00
# mxGraph
## Getting started
### Setting up local development environment
In the project root directory, execute
```sh
$ npm install
```
To watch the core package, execute
```sh
$ npm run dev
```
and select `@mxgraph/core`.
To run the html(vanilla-js) version of storybook, execute
```sh
$ npm run dev
```
and select `@mxgraph/html`.
Since both commands are in watch mode, so it's recommended to open two terminals and run them separately. When a file is saved from the core package, the html storybook will be automatically updated.
2020-11-12 13:45:04 +00:00
===
2021-04-15 04:09:30 +00:00
# Looking for maintainers
2020-11-12 13:45:04 +00:00
12 Nov 2020.
2021-04-15 04:09:30 +00:00
If you are interested in becoming a maintainer of mxGraph please comment on issue #1 https://github.com/jsGraph/mxgraph/issues/1
2020-11-12 13:45:04 +00:00
2020-11-12 13:51:32 +00:00
Initial objectives:
2021-04-15 04:09:30 +00:00
- The first priority is to maintain a working version of mxGraph and its **npm package**
- The ambitious stretch goal is to refactor the codebase to create a modern modular, tree shakable, version of mxGraph to reduce the whole package size.
2020-11-12 13:51:32 +00:00
-- Colin Claverie
2021-04-11 09:04:33 +00:00
Note that the original default branch was `master`, and this has now been renamed `main`. If you had a checkout with the old branch name then follow these instructions to get the new branch name:
```
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
```
2020-11-12 13:45:04 +00:00
2021-04-15 04:09:30 +00:00
# Original Readme below
2020-11-12 13:45:04 +00:00
2021-04-15 04:09:30 +00:00
_NOTE 09.11.2020_ : Development on mxGraph has now stopped, this repo is effectively end of life.
2020-11-09 10:24:48 +00:00
2020-11-13 09:04:46 +00:00
Known forks:
https://github.com/jsGraph/mxgraph
2020-11-13 09:04:55 +00:00
2020-11-13 09:04:46 +00:00
https://github.com/process-analytics/mxgraph
2021-04-15 04:09:30 +00:00
# mxGraph
2012-05-21 20:53:44 +00:00
2020-11-09 10:24:48 +00:00
mxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.
2017-12-13 14:34:45 +00:00
2019-08-20 12:16:39 +00:00
The PHP model was deprecated after release 4.0.3 and the archive can be found [here](https://github.com/jgraph/mxgraph-php).
2020-11-13 09:04:46 +00:00
The unmaintained npm build is [here](https://www.npmjs.com/package/mxgraph)
2017-03-10 20:24:40 +00:00
2020-06-07 08:01:58 +00:00
We don't support Typescript, but there is a [project to implement this](https://github.com/process-analytics/mxgraph-road-to-DefinitelyTyped), with [this repo](https://github.com/hungtcs/mxgraph-type-definitions) currently used as the lead repo.
2019-10-09 16:46:15 +00:00
The mxGraph library uses no third-party software, it requires no plugins and can be integrated in virtually any framework (it's vanilla JS).
2013-01-11 13:30:18 +00:00
2021-04-15 04:09:30 +00:00
# Getting Started
2013-01-11 12:34:48 +00:00
2016-09-06 14:06:20 +00:00
In the root folder there is an index.html file that contains links to all resources. You can view the documentation online on the [Github pages branch](https://jgraph.github.io/mxgraph/). The key resources are the JavaScript user manual, the JavaScript examples and the JavaScript API specificiation.
2013-01-11 12:34:48 +00:00
2021-04-15 04:09:30 +00:00
# Support
2013-01-11 12:34:48 +00:00
2020-07-01 20:32:24 +00:00
There is a [mxgraph tag on Stack Overflow](http://stackoverflow.com/questions/tagged/mxgraph). Please ensure your questions adhere to the [SO guidelines](http://stackoverflow.com/help/on-topic), otherwise it is likely to be closed.
2017-10-18 22:31:13 +00:00
2020-11-13 09:04:46 +00:00
If you are looking for active support, your better route is one of the commercial diagramming tools, like [yFiles](https://www.yworks.com/products/yfiles-for-html) or [GoJS](https://gojs.net/latest/index.html).
2017-02-27 16:13:53 +00:00
2021-04-15 04:09:30 +00:00
# History
2017-02-27 16:13:53 +00:00
2020-11-09 10:24:48 +00:00
We created mxGraph in 2005 as a commercial project and it ran through to 2016 that way. Our USP was the support for non-SVG browsers, when that advantage expired we moved onto commercial activity around draw.io. mxGraph is pretty much feature complete, production tested in many large enterprises and stable for many years.
2020-11-13 09:04:46 +00:00
Over time you can expect this codebase will break features against new browser releases, it's not advised to start new projects against this codebase for that reason.