Skip to content

Commit

Permalink
feat(examples): add dot layout example
Browse files Browse the repository at this point in the history
update

update
  • Loading branch information
kumilingus committed Feb 8, 2024
1 parent e07dc52 commit ce4dc75
Show file tree
Hide file tree
Showing 7 changed files with 424 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/dot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
dist/
node_modules/
22 changes: 22 additions & 0 deletions examples/dot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# JointJS List Demo

## Setup

Use Yarn to run this demo.

You need to build *JointJS* first. Navigate to the root folder and run:
```bash
yarn install
yarn run build
```

Navigate to this directory, then run:
```bash
yarn start
```

## License

The *JointJS* library is licensed under the [Mozilla Public License 2.0](https://github.com/clientIO/joint/blob/master/LICENSE).

Copyright © 2013-2024 client IO
8 changes: 8 additions & 0 deletions examples/dot/css/dot.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#paper-container {
position: absolute;
right: 0;
top: 0;
left: 0;
bottom: 0;
overflow: scroll;
}
13 changes: 13 additions & 0 deletions examples/dot/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="The JointJS Fault Tree Analysis demo serves as a template to help bring your idea to life in no time."/>
<title>Fault Tree Analysis | JointJS</title>
</head>
<body>
<div id="paper-container"></div>
<script src="dist/bundle.js"></script>
</body>
</html>
35 changes: 35 additions & 0 deletions examples/dot/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "@joint/demo-graphviz-dot-layout",
"version": "4.0.1",
"main": "src/index.js",
"homepage": "https://jointjs.com",
"author": {
"name": "client IO",
"url": "https://client.io"
},
"license": "MPL-2.0",
"private": true,
"installConfig": {
"hoistingLimits": "workspaces"
},
"scripts": {
"start": "webpack-dev-server",
"tsc": "tsc"
},
"dependencies": {
"@hpcc-js/wasm": "^2.15.3",
"@joint/core": "workspace:^"
},
"devDependencies": {
"css-loader": "3.5.3",
"style-loader": "1.2.1",
"webpack": "^5.61.0",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.2.1"
},
"volta": {
"node": "16.18.1",
"npm": "8.19.2",
"yarn": "3.4.1"
}
}
Loading

0 comments on commit ce4dc75

Please sign in to comment.