@rse/gradia 1.2.2 → 1.2.4
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 -32
- package/dst/gradia-api-config.d.ts +4 -0
- package/dst/gradia-api-config.js +6 -2
- package/dst/gradia-api-render-base.js +3 -3
- package/dst/gradia-api-render-container.js +4 -1
- package/dst/gradia-api-render-edge.js +7 -6
- package/dst/gradia-api-render-group.js +4 -0
- package/dst/gradia-api-render-node.js +5 -6
- package/dst/gradia-api-render-svg.js +3 -3
- package/dst/gradia-api-type-graph.js +10 -6
- package/dst/gradia-api-type-grid.js +26 -9
- package/dst/gradia-api-type-hub.js +23 -5
- package/dst/gradia-api.js +1 -1
- package/dst/gradia-api.umd.js +2 -2
- package/dst/gradia-mcp.js +9 -3
- package/package.json +7 -7
package/dst/gradia-mcp.js
CHANGED
|
@@ -45,7 +45,6 @@ conditions hold:
|
|
|
45
45
|
- Exactly one node carries the attribute "primary: true".
|
|
46
46
|
- Every edge either points to or originates from that primary node. An edge
|
|
47
47
|
between two non-primary nodes is rejected.
|
|
48
|
-
- The primary node carries no self-loop.
|
|
49
48
|
- Every non-primary node is an input or an output of the primary node, i.e.,
|
|
50
49
|
no node is free-standing.
|
|
51
50
|
|
|
@@ -54,6 +53,11 @@ twice, once in the input column and once in the output column. The second
|
|
|
54
53
|
placement is rendered as a dashed "ghost" box, colored by the
|
|
55
54
|
"color-node-ghost-*" options.
|
|
56
55
|
|
|
56
|
+
A self-loop on the primary node is unrolled: the primary node is placed a
|
|
57
|
+
second time on top of the output column, as the target of the self-loop.
|
|
58
|
+
This second placement is rendered as a dashed "self" box, colored by the
|
|
59
|
+
(darker grey) "color-node-self-*" options.
|
|
60
|
+
|
|
57
61
|
The "grid" type rejects the input with an error as soon as the graph contains
|
|
58
62
|
at least one edge.
|
|
59
63
|
|
|
@@ -208,8 +212,10 @@ ${configOptions}
|
|
|
208
212
|
The "size-*", "group-*", "container-*", "graph-*", "hub-*", and "grid-*" options
|
|
209
213
|
control the rendering geometry (canvas margin, node box sizing, edge routing,
|
|
210
214
|
group and container box spacing, and the per-diagram-type layout) and take
|
|
211
|
-
non-negative numbers, except the
|
|
212
|
-
all node boxes of a "grid" diagram to
|
|
215
|
+
non-negative numbers, except the booleans "grid-node-width-equal" and
|
|
216
|
+
"grid-node-height-equal", which force all node boxes of a "grid" diagram to
|
|
217
|
+
the width of the widest one and to the height of the tallest one (a nested
|
|
218
|
+
container box taking part in the width unification only).
|
|
213
219
|
|
|
214
220
|
The "size-node-width-max" option additionally enables the word-wrapping of the
|
|
215
221
|
node box texts: given a positive value, the node name, its type, and its
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Object Graph Diagram Rendering",
|
|
4
4
|
"keywords": [ "object", "graph", "diagram", "rendering", "svg", "layout", "api", "cli" ],
|
|
5
5
|
"publishConfig": { "access": "public" },
|
|
6
|
-
"version": "1.2.
|
|
6
|
+
"version": "1.2.4",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Dr. Ralf S. Engelschall",
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
"pure-uuid": "2.0.0",
|
|
30
30
|
"source-sans": "3.52.0",
|
|
31
31
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
32
|
-
"zod": "4.5
|
|
32
|
+
"zod": "4.6.5"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"eslint": "10.
|
|
35
|
+
"eslint": "10.11.0",
|
|
36
36
|
"@eslint/js": "10.0.1",
|
|
37
|
-
"typescript-eslint": "8.
|
|
37
|
+
"typescript-eslint": "8.70.0",
|
|
38
38
|
"eslint-plugin-promise": "7.3.0",
|
|
39
39
|
"neostandard": "0.14.0-next.1",
|
|
40
40
|
"globals": "17.12.0",
|
|
41
41
|
"typescript": "6.0.3",
|
|
42
|
-
"@types/node": "26.
|
|
43
|
-
"@rse/stx": "1.1.
|
|
42
|
+
"@types/node": "26.6.2",
|
|
43
|
+
"@rse/stx": "1.1.7",
|
|
44
44
|
"shx": "0.4.0",
|
|
45
45
|
"nodemon": "3.1.14",
|
|
46
|
-
"vite": "8.
|
|
46
|
+
"vite": "8.3.0"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.13.0"
|