dragon-graph-lib 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +43 -1
- package/package.json +21 -4
- package/src/dragon-graph-lib-global.js +437 -30
- package/src/dragon-graph-lib.css +12 -1
- package/src/dragon-graph-lib.js +437 -30
package/Readme.md
CHANGED
|
@@ -5,7 +5,49 @@ This is a JS library for creating node/graph editors.
|
|
|
5
5
|
|
|
6
6
|
Similar functionality as Rete.js but less complicated to use.
|
|
7
7
|
|
|
8
|
+
|
|
9
|
+
Usage
|
|
10
|
+
-----
|
|
11
|
+
|
|
12
|
+
You can load from CDN
|
|
13
|
+
|
|
14
|
+
As a ESM module:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<script type="module">
|
|
18
|
+
import { Editor } from "https://cdn.jsdelivr.net/npm/dragon-graph-lib@latest/src/dragon-graph-lib.js";
|
|
19
|
+
</script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
As a global script
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<script src="https://cdn.jsdelivr.net/npm/dragon-graph-lib@latest/src/dragon-graph-lib-global.js"></script>
|
|
26
|
+
<script>
|
|
27
|
+
// You can access symbols as follows
|
|
28
|
+
DragonGraphLib.Editor
|
|
29
|
+
// or to simulate imports
|
|
30
|
+
const { Editor } = DragonGraphLib;
|
|
31
|
+
</script>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Default styles are available as CSS:
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dragon-graph-lib@latest/src/dragon-graph-lib.css" />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
For examples on how to use the library see the [tutorials](file:///home/glax/Documents/web/DragonGraphLib/docs/tutorial-basic.html).
|
|
41
|
+
|
|
42
|
+
Links
|
|
43
|
+
-----
|
|
44
|
+
|
|
45
|
+
* [Docs](https://mattbas.gitlab.io/dragon-graph-lib/docs/)
|
|
46
|
+
* [Repo](https://gitlab.com/mattbas/dragon-graph-lib/)
|
|
47
|
+
* [Issues](https://gitlab.com/mattbas/dragon-graph-lib/-/issues)
|
|
48
|
+
|
|
8
49
|
License
|
|
9
50
|
-------
|
|
10
51
|
|
|
11
|
-
GPLv3+
|
|
52
|
+
GPLv3+
|
|
53
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dragon-graph-lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "JS Library to create node-based editors",
|
|
5
5
|
"homepage": "https://gitlab.com/mattbas/dragon-graph-lib",
|
|
6
6
|
"bugs": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://gitlab.com/mattbas/dragon-graph-lib.git"
|
|
12
12
|
},
|
|
13
|
-
"license": "
|
|
13
|
+
"license": "GPL-3.0-or-later",
|
|
14
14
|
"author": "Mattia Basaglia",
|
|
15
15
|
"files": [
|
|
16
16
|
"src"
|
|
@@ -21,10 +21,27 @@
|
|
|
21
21
|
"node editor",
|
|
22
22
|
"rete"
|
|
23
23
|
],
|
|
24
|
+
"browser": "src/dragon-graph-lib.js",
|
|
25
|
+
"main": "src/dragon-graph-lib.js",
|
|
26
|
+
"module": "src/dragon-graph-lib.js",
|
|
27
|
+
"style": "src/dragon-graph-lib.css",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"browser": "./src/dragon-graph-lib.js",
|
|
31
|
+
"import": "./src/dragon-graph-lib.js"
|
|
32
|
+
},
|
|
33
|
+
"./global": "./src/dragon-graph-lib-global.js",
|
|
34
|
+
"./style": "./src/dragon-graph-lib.css"
|
|
35
|
+
},
|
|
24
36
|
"scripts": {
|
|
25
37
|
"build": "./build.py",
|
|
26
38
|
"dev": "watch -n 1 ./build.py",
|
|
27
|
-
"release": "npm run build && npm
|
|
28
|
-
"
|
|
39
|
+
"release": "npm run build && npm publish && npm version patch",
|
|
40
|
+
"docs": "npm run docs:do-not-edit-my-code ; mkdir -p docs/demo ; cp demo/demo.* docs/ ; jsdoc -c jsdocs.json",
|
|
41
|
+
"docs:do-not-edit-my-code": "sed -i -r 's/([a-zA-Z]+: )true/\\1false/' node_modules/clean-jsdoc-theme/clean-jsdoc-theme-defaults.js"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"clean-jsdoc-theme": "^4.3.0",
|
|
45
|
+
"jsdoc": "^4.0.5"
|
|
29
46
|
}
|
|
30
47
|
}
|