ts-graphviz 1.5.1 → 1.5.2-dev.0bdd08606
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 +1 -0
- package/lib/adapter/browser/index.cjs +0 -2
- package/lib/adapter/node/index.cjs +0 -2
- package/lib/adapter/utils/index.cjs +0 -2
- package/lib/ast/index.cjs +2 -4
- package/lib/ast/index.js +2 -2
- package/lib/common/index.cjs +0 -2
- package/lib/common/index.d.ts +5 -5
- package/lib/core/index.cjs +0 -2
- package/lib/core/index.d.ts +1 -1
- package/lib/index.cjs +0 -2
- package/lib/utils/index.cjs +0 -2
- package/media/adapter-state-machine.svg +1 -1
- package/package.json +120 -120
package/README.md
CHANGED
|
@@ -540,6 +540,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
540
540
|
</tr>
|
|
541
541
|
<tr>
|
|
542
542
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/robross0606"><img src="https://avatars.githubusercontent.com/u/2965467?v=4?s=100" width="100px;" alt="robross0606"/><br /><sub><b>robross0606</b></sub></a><br /><a href="#ideas-robross0606" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
543
|
+
<td align="center" valign="top" width="14.28%"><a href="https://blake-regalia.net"><img src="https://avatars.githubusercontent.com/u/1456400?v=4?s=100" width="100px;" alt="Blake Regalia"/><br /><sub><b>Blake Regalia</b></sub></a><br /><a href="https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Ablake-regalia" title="Bug reports">🐛</a></td>
|
|
543
544
|
</tr>
|
|
544
545
|
</tbody>
|
|
545
546
|
</table>
|
package/lib/ast/index.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var index_js = require('../utils/index.cjs');
|
|
6
4
|
var index_js$1 = require('../common/index.cjs');
|
|
7
5
|
|
|
@@ -323,7 +321,7 @@ function peg$padEnd(str, targetLength, padString) {
|
|
|
323
321
|
padString += padString.repeat(targetLength);
|
|
324
322
|
return str + padString.slice(0, targetLength);
|
|
325
323
|
}
|
|
326
|
-
|
|
324
|
+
let SyntaxError$1 = class SyntaxError extends Error {
|
|
327
325
|
static buildMessage(expected, found) {
|
|
328
326
|
function hex(ch) {
|
|
329
327
|
return ch.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -456,7 +454,7 @@ class SyntaxError$1 extends Error {
|
|
|
456
454
|
}
|
|
457
455
|
return str;
|
|
458
456
|
}
|
|
459
|
-
}
|
|
457
|
+
};
|
|
460
458
|
function peg$parse(input, options) {
|
|
461
459
|
options = options !== undefined ? options : {};
|
|
462
460
|
const peg$FAILED = {};
|
package/lib/ast/index.js
CHANGED
|
@@ -314,7 +314,7 @@ function peg$padEnd(str, targetLength, padString) {
|
|
|
314
314
|
padString += padString.repeat(targetLength);
|
|
315
315
|
return str + padString.slice(0, targetLength);
|
|
316
316
|
}
|
|
317
|
-
|
|
317
|
+
let SyntaxError$1 = class SyntaxError extends Error {
|
|
318
318
|
static buildMessage(expected, found) {
|
|
319
319
|
function hex(ch) {
|
|
320
320
|
return ch.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -447,7 +447,7 @@ class SyntaxError$1 extends Error {
|
|
|
447
447
|
}
|
|
448
448
|
return str;
|
|
449
449
|
}
|
|
450
|
-
}
|
|
450
|
+
};
|
|
451
451
|
function peg$parse(input, options) {
|
|
452
452
|
options = options !== undefined ? options : {};
|
|
453
453
|
const peg$FAILED = {};
|
package/lib/common/index.cjs
CHANGED
package/lib/common/index.d.ts
CHANGED
|
@@ -1219,7 +1219,7 @@ type EdgeAttributeKey =
|
|
|
1219
1219
|
| 'weight'
|
|
1220
1220
|
| 'xlabel'
|
|
1221
1221
|
| 'xlp'
|
|
1222
|
-
| '
|
|
1222
|
+
| 'class';
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Attribute types available for nodes.
|
|
1225
1225
|
* @group Attribute
|
|
@@ -1273,7 +1273,7 @@ type NodeAttributeKey =
|
|
|
1273
1273
|
| 'xlabel'
|
|
1274
1274
|
| 'xlp'
|
|
1275
1275
|
| 'z'
|
|
1276
|
-
| '
|
|
1276
|
+
| 'class';
|
|
1277
1277
|
/**
|
|
1278
1278
|
* Attribute types available for graph.
|
|
1279
1279
|
* @group Attribute
|
|
@@ -1377,7 +1377,7 @@ type GraphAttributeKey =
|
|
|
1377
1377
|
| 'viewport'
|
|
1378
1378
|
| 'voro_margin'
|
|
1379
1379
|
| 'xdotversion'
|
|
1380
|
-
| '
|
|
1380
|
+
| 'class';
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Attribute types available for subgraph.
|
|
1383
1383
|
* @group Attribute
|
|
@@ -1417,7 +1417,7 @@ type ClusterSubgraphAttributeKey =
|
|
|
1417
1417
|
| 'style'
|
|
1418
1418
|
| 'target'
|
|
1419
1419
|
| 'tooltip'
|
|
1420
|
-
| '
|
|
1420
|
+
| 'class';
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Attribute types.
|
|
1423
1423
|
* @group Attribute
|
|
@@ -1439,7 +1439,7 @@ interface KeyValueMapping {
|
|
|
1439
1439
|
bgcolor: Color | ColorList;
|
|
1440
1440
|
center: boolean;
|
|
1441
1441
|
charset: string;
|
|
1442
|
-
|
|
1442
|
+
class: string;
|
|
1443
1443
|
clusterrank: ClusterMode;
|
|
1444
1444
|
color: Color | ColorList;
|
|
1445
1445
|
colorscheme: string;
|
package/lib/core/index.cjs
CHANGED
package/lib/core/index.d.ts
CHANGED
|
@@ -205,7 +205,7 @@ interface AttributeKeyDict {
|
|
|
205
205
|
* @graphvizDefault ""
|
|
206
206
|
* @graphvizUsedBy ENCG
|
|
207
207
|
*/
|
|
208
|
-
|
|
208
|
+
class: 'class';
|
|
209
209
|
/**
|
|
210
210
|
* Mode used for handling clusters.
|
|
211
211
|
* If clusterrank is "local", a subgraph whose name begins with "cluster" is given special treatment.
|
package/lib/index.cjs
CHANGED
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="172pt" height="211pt" viewBox="0 0 172.44 211.09"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="172pt" height="211pt" viewBox="0 0 172.44 211.09"><g class="graph" transform="translate(4 207.09)"><path fill="#fff" stroke="transparent" d="M-4 4v-211.09h172.44V4H-4z"/><g class="node"><circle cx="89.85" cy="-171.89" r="31.4" fill="none" stroke="#000"/><text x="89.85" y="-168.19" font-family="Times,serif" font-size="14" text-anchor="middle">DOT</text></g><g class="node"><circle cx="44.85" cy="-44.85" r="44.69" fill="none" stroke="#000"/><text x="44.85" y="-41.15" font-family="Times,serif" font-size="14" text-anchor="middle">Stream</text></g><g class="edge"><path fill="none" stroke="#000" d="M66.46-151.09c-7.72 7.95-15.4 17.76-19.61 28.4-2.87 7.24-4.54 15.17-5.4 23.11"/><path stroke="#000" d="m44.94-99.32-4.18 9.73-2.8-10.21 6.98.48z"/><text x="80.35" y="-111.49" font-family="Times,serif" font-size="14" text-anchor="middle">toStream</text></g><g class="node"><circle cx="135.85" cy="-44.85" r="28.7" fill="none" stroke="#000"/><text x="135.85" y="-41.15" font-family="Times,serif" font-size="14" text-anchor="middle">File</text></g><g class="edge"><path fill="none" stroke="#000" d="M104.32-144.01c3.38 6.84 6.79 14.26 9.53 21.32 4.95 12.76 9.35 27.09 12.89 39.89"/><path stroke="#000" d="m130.18-83.48-.79 10.56-5.97-8.75 6.76-1.81z"/><text x="139.85" y="-111.49" font-family="Times,serif" font-size="14" text-anchor="middle">toFile</text></g></g></svg>
|
package/package.json
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"graphviz",
|
|
14
|
-
"dot"
|
|
15
|
-
],
|
|
16
|
-
"bugs": {
|
|
17
|
-
"url": "https://github.com/ts-graphviz/ts-graphviz/issues"
|
|
18
|
-
},
|
|
19
|
-
"funding": {
|
|
20
|
-
"type": "github",
|
|
21
|
-
"url": "https://github.com/sponsors/kamiazya"
|
|
22
|
-
},
|
|
23
|
-
"main": "./lib/index.cjs",
|
|
24
|
-
"module": "./lib/index.js",
|
|
25
|
-
"types": "lib/index.d.ts",
|
|
26
|
-
"exports": {
|
|
27
|
-
".": {
|
|
28
|
-
"require": {
|
|
29
|
-
"types": "./lib/index.d.ts",
|
|
30
|
-
"default": "./lib/index.cjs"
|
|
31
|
-
},
|
|
32
|
-
"import": {
|
|
33
|
-
"types": "./lib/index.d.ts",
|
|
34
|
-
"default": "./lib/index.js"
|
|
35
|
-
}
|
|
2
|
+
"name": "ts-graphviz",
|
|
3
|
+
"version": "1.5.2-dev.0bdd08606",
|
|
4
|
+
"author": "kamiazya <yuki@kamiazya.tech>",
|
|
5
|
+
"description": "Graphviz library for TypeScript.",
|
|
6
|
+
"homepage": "https://ts-graphviz.github.io/ts-graphviz/",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/ts-graphviz/ts-graphviz.git"
|
|
36
11
|
},
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"types": "./lib/ast/index.d.ts",
|
|
44
|
-
"default": "./lib/ast/index.js"
|
|
45
|
-
}
|
|
12
|
+
"keywords": [
|
|
13
|
+
"graphviz",
|
|
14
|
+
"dot"
|
|
15
|
+
],
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/ts-graphviz/ts-graphviz/issues"
|
|
46
18
|
},
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"import": "./lib/adapter/browser/index.js",
|
|
51
|
-
"types": "./lib/adapter/browser/index.d.ts"
|
|
52
|
-
},
|
|
53
|
-
"deno": {
|
|
54
|
-
"types": "./lib/adapter/deno/mod.d.ts",
|
|
55
|
-
"default": "./lib/adapter/deno/mod.js"
|
|
56
|
-
},
|
|
57
|
-
"node": {
|
|
58
|
-
"require": "./lib/adapter/node/index.cjs",
|
|
59
|
-
"import": "./lib/adapter/node/index.js",
|
|
60
|
-
"types": "./lib/adapter/node/index.d.ts"
|
|
61
|
-
},
|
|
62
|
-
"default": {
|
|
63
|
-
"types": "./lib/adapter/node/index.d.ts",
|
|
64
|
-
"require": "./lib/adapter/node/index.cjs",
|
|
65
|
-
"import": "./lib/adapter/node/index.js"
|
|
66
|
-
}
|
|
19
|
+
"funding": {
|
|
20
|
+
"type": "github",
|
|
21
|
+
"url": "https://github.com/sponsors/kamiazya"
|
|
67
22
|
},
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
23
|
+
"main": "./lib/index.cjs",
|
|
24
|
+
"module": "./lib/index.js",
|
|
25
|
+
"types": "lib/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./lib/index.d.ts",
|
|
30
|
+
"default": "./lib/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./lib/index.d.ts",
|
|
34
|
+
"default": "./lib/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"./ast": {
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./lib/ast/index.d.ts",
|
|
40
|
+
"default": "./lib/ast/index.cjs"
|
|
41
|
+
},
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./lib/ast/index.d.ts",
|
|
44
|
+
"default": "./lib/ast/index.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"./adapter": {
|
|
48
|
+
"browser": {
|
|
49
|
+
"require": "./lib/adapter/browser/index.cjs",
|
|
50
|
+
"import": "./lib/adapter/browser/index.js",
|
|
51
|
+
"types": "./lib/adapter/browser/index.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"deno": {
|
|
54
|
+
"types": "./lib/adapter/deno/mod.d.ts",
|
|
55
|
+
"default": "./lib/adapter/deno/mod.js"
|
|
56
|
+
},
|
|
57
|
+
"node": {
|
|
58
|
+
"require": "./lib/adapter/node/index.cjs",
|
|
59
|
+
"import": "./lib/adapter/node/index.js",
|
|
60
|
+
"types": "./lib/adapter/node/index.d.ts"
|
|
61
|
+
},
|
|
62
|
+
"default": {
|
|
63
|
+
"types": "./lib/adapter/node/index.d.ts",
|
|
64
|
+
"require": "./lib/adapter/node/index.cjs",
|
|
65
|
+
"import": "./lib/adapter/node/index.js"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"./package.json": "./package.json"
|
|
69
|
+
},
|
|
70
|
+
"typesVersions": {
|
|
71
|
+
"*": {
|
|
72
|
+
"ast": [
|
|
73
|
+
"lib/ast"
|
|
74
|
+
],
|
|
75
|
+
"adapter": [
|
|
76
|
+
"lib/adapter/node"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=14.16"
|
|
83
|
+
},
|
|
84
|
+
"runkitExampleFilename": "example/runkit.cjs",
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build:peggy": "peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy",
|
|
87
|
+
"prebuild": "yarn build:peggy",
|
|
88
|
+
"build:deno": "mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts",
|
|
89
|
+
"build:node": "tsc -p tsconfig.build.json && rollup -c",
|
|
90
|
+
"build": "yarn build:node && yarn build:deno",
|
|
91
|
+
"postbuild": "prettier --write ./lib/**/*.{js,cjs,d.ts}",
|
|
92
|
+
"pretest": "yarn build:peggy",
|
|
93
|
+
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
|
|
94
|
+
"format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
|
|
95
|
+
"lint": "eslint --ext ts src",
|
|
96
|
+
"predoc": "yarn build:peggy",
|
|
97
|
+
"doc": "typedoc"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
101
|
+
"@types/jest": "^29.4.0",
|
|
102
|
+
"@types/jest-specific-snapshot": "^0.5.6",
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
104
|
+
"@typescript-eslint/parser": "^5.49.0",
|
|
105
|
+
"eslint": "^8.32.0",
|
|
106
|
+
"eslint-config-prettier": "^8.6.0",
|
|
107
|
+
"eslint-plugin-import": "^2.27.5",
|
|
108
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
109
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
110
|
+
"jest": "^29.4.1",
|
|
111
|
+
"jest-snapshot-serializer-raw": "^1.2.0",
|
|
112
|
+
"jest-specific-snapshot": "^7.0.0",
|
|
113
|
+
"peggy": "^2.0.1",
|
|
114
|
+
"prettier": "^2.8.3",
|
|
115
|
+
"prettier-plugin-pegjs": "^0.5.0",
|
|
116
|
+
"rollup": "^3.11.0",
|
|
117
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
118
|
+
"rollup-plugin-dts": "5.1.1",
|
|
119
|
+
"svgo": "^3.0.2",
|
|
120
|
+
"ts-jest": "^29.0.5",
|
|
121
|
+
"ts-pegjs": "^2.1.0",
|
|
122
|
+
"typedoc": "^0.23.15",
|
|
123
|
+
"typescript": "^4.7.4"
|
|
78
124
|
}
|
|
79
|
-
|
|
80
|
-
"license": "MIT",
|
|
81
|
-
"engines": {
|
|
82
|
-
"node": ">=14.16"
|
|
83
|
-
},
|
|
84
|
-
"runkitExampleFilename": "example/runkit.cjs",
|
|
85
|
-
"scripts": {
|
|
86
|
-
"build:peggy": "peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy",
|
|
87
|
-
"prebuild": "yarn build:peggy",
|
|
88
|
-
"build:deno": "mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts",
|
|
89
|
-
"build:node": "tsc -p tsconfig.build.json && rollup -c",
|
|
90
|
-
"build": "yarn build:node && yarn build:deno",
|
|
91
|
-
"postbuild": "prettier --write ./lib/**/*.{js,cjs,d.ts}",
|
|
92
|
-
"pretest": "yarn build:peggy",
|
|
93
|
-
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
|
|
94
|
-
"format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
|
|
95
|
-
"lint": "eslint --ext ts src",
|
|
96
|
-
"predoc": "yarn build:peggy",
|
|
97
|
-
"doc": "typedoc"
|
|
98
|
-
},
|
|
99
|
-
"devDependencies": {
|
|
100
|
-
"@rollup/plugin-replace": "^4.0.0",
|
|
101
|
-
"@types/jest": "^28.1.6",
|
|
102
|
-
"@types/jest-specific-snapshot": "^0.5.6",
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
104
|
-
"@typescript-eslint/parser": "^5.33.0",
|
|
105
|
-
"eslint": "^8.22.0",
|
|
106
|
-
"eslint-config-prettier": "^8.5.0",
|
|
107
|
-
"eslint-plugin-import": "^2.26.0",
|
|
108
|
-
"eslint-plugin-jest": "^26.8.2",
|
|
109
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
110
|
-
"jest": "^28.1.3",
|
|
111
|
-
"jest-snapshot-serializer-raw": "^1.2.0",
|
|
112
|
-
"jest-specific-snapshot": "^5.0.0",
|
|
113
|
-
"peggy": "^2.0.1",
|
|
114
|
-
"prettier": "^2.7.1",
|
|
115
|
-
"prettier-plugin-pegjs": "^0.5.0",
|
|
116
|
-
"rollup": "^2.77.3",
|
|
117
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
118
|
-
"rollup-plugin-dts": "^4.2.2",
|
|
119
|
-
"svgo": "^2.8.0",
|
|
120
|
-
"ts-jest": "^28.0.7",
|
|
121
|
-
"ts-pegjs": "^2.1.0",
|
|
122
|
-
"typedoc": "^0.23.15",
|
|
123
|
-
"typescript": "^4.7.4"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
125
|
+
}
|