@thi.ng/dgraph-dot 2.1.31 → 2.1.33
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 +1 -1
- package/index.d.ts +8 -5
- package/index.js +3 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ This project is part of the
|
|
|
19
19
|
|
|
20
20
|
## About
|
|
21
21
|
|
|
22
|
-
Customizable Graphviz DOT serialization for @thi.ng/dgraph
|
|
22
|
+
Customizable Graphviz DOT serialization for [@thi.ng/dgraph](https://github.com/thi-ng/umbrella/tree/develop/packages/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)
|
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.33",
|
|
4
4
|
"description": "Customizable Graphviz DOT serialization for @thi.ng/dgraph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.6.
|
|
38
|
-
"@thi.ng/dgraph": "^2.1.
|
|
39
|
-
"@thi.ng/dot": "^2.1.
|
|
37
|
+
"@thi.ng/api": "^8.6.2",
|
|
38
|
+
"@thi.ng/dgraph": "^2.1.33",
|
|
39
|
+
"@thi.ng/dot": "^2.1.25"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@microsoft/api-extractor": "^7.33.7",
|
|
43
|
-
"@thi.ng/testament": "^0.3.
|
|
43
|
+
"@thi.ng/testament": "^0.3.8",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"tools": "^0.0.1",
|
|
46
46
|
"typedoc": "^0.23.22",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"parent": "@thi.ng/dgraph",
|
|
76
76
|
"year": 2020
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
|
|
79
79
|
}
|