distribution and site management
This commit is contained in:
@@ -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 :
|
||||
|
||||

|
||||
|
||||
### 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>
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user