@thi.ng/dgraph-dot 2.1.31 → 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/index.d.ts +8 -5
- package/index.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
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",
|
|
@@ -34,9 +34,9 @@
|
|
|
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.1",
|
|
38
|
+
"@thi.ng/dgraph": "^2.1.32",
|
|
39
|
+
"@thi.ng/dot": "^2.1.24"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@microsoft/api-extractor": "^7.33.7",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"parent": "@thi.ng/dgraph",
|
|
76
76
|
"year": 2020
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
79
79
|
}
|