@thi.ng/dgraph-dot 2.1.30 → 2.1.32
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/CHANGELOG.md +1 -1
- package/README.md +7 -10
- package/index.d.ts +8 -5
- package/index.js +3 -3
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/dgraph-dot)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -19,7 +19,7 @@ This project is part of the
|
|
|
19
19
|
|
|
20
20
|
## About
|
|
21
21
|
|
|
22
|
-
Customizable Graphviz DOT serialization for
|
|
22
|
+
Customizable Graphviz DOT serialization for @thi.ng/dgraph
|
|
23
23
|
|
|
24
24
|
This package acts as optional glue layer between the
|
|
25
25
|
[@thi.ng/dgraph](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph)
|
|
@@ -51,11 +51,8 @@ ES module import:
|
|
|
51
51
|
|
|
52
52
|
For Node.js REPL:
|
|
53
53
|
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
node --experimental-repl-await
|
|
57
|
-
|
|
58
|
-
> const dgraphDot = await import("@thi.ng/dgraph-dot");
|
|
54
|
+
```js
|
|
55
|
+
const dgraphDot = await import("@thi.ng/dgraph-dot");
|
|
59
56
|
```
|
|
60
57
|
|
|
61
58
|
Package sizes (brotli'd, pre-treeshake): ESM: 228 bytes
|
|
@@ -106,7 +103,7 @@ console.log(toDot(graph, { id: (node) => node }));
|
|
|
106
103
|
|
|
107
104
|
## Authors
|
|
108
105
|
|
|
109
|
-
Karsten Schmidt
|
|
106
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
110
107
|
|
|
111
108
|
If this project contributes to an academic publication, please cite it as:
|
|
112
109
|
|
|
@@ -121,4 +118,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
121
118
|
|
|
122
119
|
## License
|
|
123
120
|
|
|
124
|
-
© 2020 - 2022 Karsten Schmidt // Apache
|
|
121
|
+
© 2020 - 2022 Karsten Schmidt // Apache License 2.0
|
package/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import { GraphAttribs, Node } from "@thi.ng/dot";
|
|
|
4
4
|
export interface DGraphDotOpts<T> {
|
|
5
5
|
/**
|
|
6
6
|
* Graph visualization attributes. See
|
|
7
|
-
*
|
|
7
|
+
* [`GraphAttribs`](https://docs.thi.ng/umbrella/dot/interfaces/GraphAttribs.html)
|
|
8
|
+
* for details.
|
|
8
9
|
*/
|
|
9
10
|
attribs?: Partial<GraphAttribs>;
|
|
10
11
|
/**
|
|
@@ -20,14 +21,16 @@ export interface DGraphDotOpts<T> {
|
|
|
20
21
|
label?: Fn<T, string>;
|
|
21
22
|
/**
|
|
22
23
|
* Optional function applied to each node to provide an object of
|
|
23
|
-
* visualization options. See
|
|
24
|
+
* visualization options. See
|
|
25
|
+
* [`Node`](https://docs.thi.ng/umbrella/dot/interfaces/Node.html) for
|
|
26
|
+
* details.
|
|
24
27
|
*/
|
|
25
28
|
spec?: Fn<T, Partial<Node>>;
|
|
26
29
|
}
|
|
27
30
|
/**
|
|
28
|
-
* Takes a
|
|
29
|
-
* serialization options. Returns Graphviz DOT
|
|
30
|
-
* given graph.
|
|
31
|
+
* Takes a [`DGraph`](https://docs.thi.ng/umbrella/dgraph/classes/DGraph.html)
|
|
32
|
+
* and object of visualization & serialization options. Returns Graphviz DOT
|
|
33
|
+
* format serialization of given graph.
|
|
31
34
|
*
|
|
32
35
|
* @param src -
|
|
33
36
|
* @param opts -
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { serializeGraph } from "@thi.ng/dot";
|
|
2
2
|
/**
|
|
3
|
-
* Takes a
|
|
4
|
-
* serialization options. Returns Graphviz DOT
|
|
5
|
-
* given graph.
|
|
3
|
+
* Takes a [`DGraph`](https://docs.thi.ng/umbrella/dgraph/classes/DGraph.html)
|
|
4
|
+
* and object of visualization & serialization options. Returns Graphviz DOT
|
|
5
|
+
* format serialization of given graph.
|
|
6
6
|
*
|
|
7
7
|
* @param src -
|
|
8
8
|
* @param opts -
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/dgraph-dot",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.32",
|
|
4
4
|
"description": "Customizable Graphviz DOT serialization for @thi.ng/dgraph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/dgraph": "^2.1.
|
|
39
|
-
"@thi.ng/dot": "^2.1.
|
|
37
|
+
"@thi.ng/api": "^8.6.1",
|
|
38
|
+
"@thi.ng/dgraph": "^2.1.32",
|
|
39
|
+
"@thi.ng/dot": "^2.1.24"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.33.
|
|
43
|
-
"@thi.ng/testament": "^0.3.
|
|
42
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
43
|
+
"@thi.ng/testament": "^0.3.7",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"tools": "^0.0.1",
|
|
46
|
-
"typedoc": "^0.23.
|
|
47
|
-
"typescript": "^4.
|
|
46
|
+
"typedoc": "^0.23.22",
|
|
47
|
+
"typescript": "^4.9.4"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"2d",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"parent": "@thi.ng/dgraph",
|
|
76
76
|
"year": 2020
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
79
79
|
}
|