ts-graphviz 1.0.0 → 1.1.0
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.ja.md +15 -8
- package/README.md +15 -8
- package/lib/ast/index.cjs +543 -527
- package/lib/ast/index.d.ts +215 -49
- package/lib/ast/index.js +543 -527
- package/lib/common/index.cjs +32 -0
- package/lib/common/index.d.ts +267 -9
- package/lib/common/index.js +32 -0
- package/lib/core/index.cjs +149 -178
- package/lib/core/index.d.ts +148 -402
- package/lib/core/index.js +157 -179
- package/media/ts-graphviz.svg +1 -1
- package/package.json +3 -3
- package/test/__snapshots__/class-base.test.ts.snap +18 -0
- package/test/__snapshots__/create-root-graph.spec.ts.snap +200 -0
- package/test/__snapshots__/to-dot.test.ts.snap +229 -0
- package/test/class-base.test.ts +23 -0
- package/test/create-root-graph.spec.ts +292 -0
- package/test/to-dot.test.ts +112 -0
- package/test/utils/index.ts +1 -0
- package/test/utils/to-dot.ts +5 -0
package/README.ja.md
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
[](https://github.com/kamiazya/ts-graphviz/actions?workflow=NodeCI)
|
|
2
2
|
[](https://badge.fury.io/js/ts-graphviz)
|
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
[](https://github.com/prettier/prettier)
|
|
5
4
|
[](http://makeapullrequest.com)
|
|
6
|
-
](https://github.com/facebook/jest)
|
|
6
|
+
[](https://github.com/facebook/jest)
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
[](#contributors)
|
|
11
10
|
|
|
12
11
|
# ts-graphviz
|
|
13
12
|
|
|
14
13
|
TypeScriptの ための [Graphviz](https://graphviz.gitlab.io/) ライブラリ
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
[](https://github.com/ts-graphviz/ts-graphviz)
|
|
16
|
+
[](https://www.npmjs.com/package/ts-graphviz)
|
|
17
|
+
[](https://github.com/ts-graphviz/ts-graphviz)
|
|
18
|
+
[](https://ts-graphviz.github.io/ts-graphviz/)
|
|
19
|
+
[](https://github.com/sponsors/kamiazya)
|
|
20
|
+
|
|
21
|
+
> [English](https://github.com/ts-graphviz/ts-graphviz/blob/main/README.md) | [日本語](https://github.com/ts-graphviz/ts-graphviz/blob/main/README.ja.md)
|
|
17
22
|
|
|
18
23
|
## 主な機能 ✨
|
|
19
24
|
|
|
@@ -151,7 +156,7 @@ const dot = toDot(g);
|
|
|
151
156
|
|
|
152
157
|
#### 宣言的な API 😎
|
|
153
158
|
|
|
154
|
-
`Graph` や `Digraph` を作成する際に、より **DOT** 言語に近い記法を提供するために
|
|
159
|
+
`Graph` や `Digraph` を作成する際に、より **DOT** 言語に近い記法を提供するために _Model Factory_ を使うことができます。
|
|
155
160
|
|
|
156
161
|
**Model** にも宣言的な API を用意しており、一貫して宣言的なパラダイムを選択することもできます。
|
|
157
162
|
|
|
@@ -216,6 +221,8 @@ const dot = toDot(G);
|
|
|
216
221
|
|
|
217
222
|
### `ts-graphviz/ast` モジュール 🔢
|
|
218
223
|
|
|
224
|
+
> このパッケージのステータスは  です。
|
|
225
|
+
|
|
219
226
|
高度な利用のためにASTを扱うためのAPIを提供しています。
|
|
220
227
|
|
|
221
228
|

|
package/README.md
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
[](https://github.com/kamiazya/ts-graphviz/actions?workflow=NodeCI)
|
|
2
2
|
[](https://badge.fury.io/js/ts-graphviz)
|
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
[](https://github.com/prettier/prettier)
|
|
5
4
|
[](http://makeapullrequest.com)
|
|
6
|
-
](https://github.com/facebook/jest)
|
|
6
|
+
[](https://github.com/facebook/jest)
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
[](#contributors)
|
|
11
10
|
|
|
12
11
|
# ts-graphviz
|
|
13
12
|
|
|
14
13
|
[Graphviz](https://graphviz.gitlab.io/) library for TypeScript.
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
[](https://github.com/ts-graphviz/ts-graphviz)
|
|
16
|
+
[](https://www.npmjs.com/package/ts-graphviz)
|
|
17
|
+
[](https://github.com/ts-graphviz/ts-graphviz)
|
|
18
|
+
[](https://ts-graphviz.github.io/ts-graphviz/)
|
|
19
|
+
[](https://github.com/sponsors/kamiazya)
|
|
20
|
+
|
|
21
|
+
> [English](https://github.com/ts-graphviz/ts-graphviz/blob/main/README.md) | [日本語](https://github.com/ts-graphviz/ts-graphviz/blob/main/README.ja.md)
|
|
17
22
|
|
|
18
23
|
## Key Features ✨
|
|
19
24
|
|
|
@@ -150,7 +155,7 @@ const dot = toDot(g);
|
|
|
150
155
|
|
|
151
156
|
#### Declarative API 😎
|
|
152
157
|
|
|
153
|
-
When creating `Graph` or `Digraph`, you can use
|
|
158
|
+
When creating `Graph` or `Digraph`, you can use _Model Factory_ to provide a notation more similar to the **DOT** language.
|
|
154
159
|
|
|
155
160
|
**Model** also has a declarative API, so you can consistently choose a declarative paradigm.
|
|
156
161
|
|
|
@@ -216,6 +221,8 @@ const dot = toDot(G);
|
|
|
216
221
|
|
|
217
222
|
### `ts-graphviz/ast` Module 🔢
|
|
218
223
|
|
|
224
|
+
> This module status is .
|
|
225
|
+
|
|
219
226
|
An API is provided to handle ASTs for advanced use.
|
|
220
227
|
|
|
221
228
|

|