Skip to content

Commit ce4dc75

Browse files
committed
feat(examples): add dot layout example
update update
1 parent e07dc52 commit ce4dc75

File tree

7 files changed

+424
-0
lines changed

7 files changed

+424
-0
lines changed

examples/dot/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
dist/
3+
node_modules/

examples/dot/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# JointJS List Demo
2+
3+
## Setup
4+
5+
Use Yarn to run this demo.
6+
7+
You need to build *JointJS* first. Navigate to the root folder and run:
8+
```bash
9+
yarn install
10+
yarn run build
11+
```
12+
13+
Navigate to this directory, then run:
14+
```bash
15+
yarn start
16+
```
17+
18+
## License
19+
20+
The *JointJS* library is licensed under the [Mozilla Public License 2.0](https://github.com/clientIO/joint/blob/master/LICENSE).
21+
22+
Copyright © 2013-2024 client IO

examples/dot/css/dot.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#paper-container {
2+
position: absolute;
3+
right: 0;
4+
top: 0;
5+
left: 0;
6+
bottom: 0;
7+
overflow: scroll;
8+
}

examples/dot/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8"/>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6+
<meta name="description" content="The JointJS Fault Tree Analysis demo serves as a template to help bring your idea to life in no time."/>
7+
<title>Fault Tree Analysis | JointJS</title>
8+
</head>
9+
<body>
10+
<div id="paper-container"></div>
11+
<script src="dist/bundle.js"></script>
12+
</body>
13+
</html>

examples/dot/package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "@joint/demo-graphviz-dot-layout",
3+
"version": "4.0.1",
4+
"main": "src/index.js",
5+
"homepage": "https://jointjs.com",
6+
"author": {
7+
"name": "client IO",
8+
"url": "https://client.io"
9+
},
10+
"license": "MPL-2.0",
11+
"private": true,
12+
"installConfig": {
13+
"hoistingLimits": "workspaces"
14+
},
15+
"scripts": {
16+
"start": "webpack-dev-server",
17+
"tsc": "tsc"
18+
},
19+
"dependencies": {
20+
"@hpcc-js/wasm": "^2.15.3",
21+
"@joint/core": "workspace:^"
22+
},
23+
"devDependencies": {
24+
"css-loader": "3.5.3",
25+
"style-loader": "1.2.1",
26+
"webpack": "^5.61.0",
27+
"webpack-cli": "^4.8.0",
28+
"webpack-dev-server": "^4.2.1"
29+
},
30+
"volta": {
31+
"node": "16.18.1",
32+
"npm": "8.19.2",
33+
"yarn": "3.4.1"
34+
}
35+
}

0 commit comments

Comments
 (0)