distribution and site management

This commit is contained in:
Clément GOUIN
2019-07-10 15:07:32 +02:00
parent 682e84914c
commit 2701ee39e5
14 changed files with 7287 additions and 30 deletions
+23 -1
View File
@@ -17,7 +17,8 @@ node build.sh
## Usage
How to use (theorically)
### With node
```javascript
const diag = require('fa-diagrams');
@@ -54,4 +55,25 @@ Will produce the following diagram :
![sample](sample.png)
### On web page
```html
<head>
...
<script src="fa-diagrams-data.min.js"></script>
<script src="fa-diagrams.min.js"></script>
...
</head>
<body>
...
<script>
...
const svg = faDiagrams.compute(data); // string containing xml data
...
</script>
...
</body>
</html>
```