ts-graphviz 0.0.0-next-20240316082326 → 0.0.0-next-20240317133942
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 +6 -6
- package/lib/attribute.d.ts +1 -1
- package/lib/from-dot.d.ts +2 -2
- package/lib/model-factory-builder.d.ts +2 -2
- package/lib/model-factory.d.ts +2 -2
- package/lib/to-dot.d.ts +2 -2
- package/lib/types.d.ts +1 -1
- package/media/adapter-state-machine.svg +1 -1
- package/media/state-machine.svg +1 -1
- package/media/ts-graphviz.svg +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ts-graphviz
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-20240317133942
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
- [#986](https://github.com/ts-graphviz/ts-graphviz/pull/986) [`81a50ff`](https://github.com/ts-graphviz/ts-graphviz/commit/81a50ff94b461f44256f2eea5b86af5eb26afd94) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump actions/dependency-review-action from 2.5.1 to 4.1.3
|
|
20
20
|
|
|
21
|
-
- Updated dependencies [[`cb5517a`](https://github.com/ts-graphviz/ts-graphviz/commit/cb5517a0236ce33527d200df9770390f4eb40064), [`0589b4f`](https://github.com/ts-graphviz/ts-graphviz/commit/0589b4f8849290d2c4a39beceb9b633f059f2e3f), [`5ce6b59`](https://github.com/ts-graphviz/ts-graphviz/commit/5ce6b59fa395bc344de2bfb15061b158a9ea5586), [`122336b`](https://github.com/ts-graphviz/ts-graphviz/commit/122336bede1033f73a2a94c82d499fda238f6b2e), [`b5f36fa`](https://github.com/ts-graphviz/ts-graphviz/commit/b5f36faf9cf70dfc263130c4480dc21770475c5a), [`c55f2d0`](https://github.com/ts-graphviz/ts-graphviz/commit/c55f2d0dfa851d318cc16a36499c69c0a34f1588), [`81a50ff`](https://github.com/ts-graphviz/ts-graphviz/commit/81a50ff94b461f44256f2eea5b86af5eb26afd94)]:
|
|
22
|
-
- @ts-graphviz/core@0.0.0-next-
|
|
23
|
-
- @ts-graphviz/common@0.0.0-next-
|
|
24
|
-
- @ts-graphviz/ast@0.0.0-next-
|
|
25
|
-
- @ts-graphviz/adapter@0.0.0-next-
|
|
21
|
+
- Updated dependencies [[`cb5517a`](https://github.com/ts-graphviz/ts-graphviz/commit/cb5517a0236ce33527d200df9770390f4eb40064), [`0589b4f`](https://github.com/ts-graphviz/ts-graphviz/commit/0589b4f8849290d2c4a39beceb9b633f059f2e3f), [`5ce6b59`](https://github.com/ts-graphviz/ts-graphviz/commit/5ce6b59fa395bc344de2bfb15061b158a9ea5586), [`122336b`](https://github.com/ts-graphviz/ts-graphviz/commit/122336bede1033f73a2a94c82d499fda238f6b2e), [`b5f36fa`](https://github.com/ts-graphviz/ts-graphviz/commit/b5f36faf9cf70dfc263130c4480dc21770475c5a), [`c55f2d0`](https://github.com/ts-graphviz/ts-graphviz/commit/c55f2d0dfa851d318cc16a36499c69c0a34f1588), [`81a50ff`](https://github.com/ts-graphviz/ts-graphviz/commit/81a50ff94b461f44256f2eea5b86af5eb26afd94), [`391e98e`](https://github.com/ts-graphviz/ts-graphviz/commit/391e98edf70bb43c1feb4a00f832fa9d96dd9d39)]:
|
|
22
|
+
- @ts-graphviz/core@0.0.0-next-20240317133942
|
|
23
|
+
- @ts-graphviz/common@0.0.0-next-20240317133942
|
|
24
|
+
- @ts-graphviz/ast@0.0.0-next-20240317133942
|
|
25
|
+
- @ts-graphviz/adapter@0.0.0-next-20240317133942
|
|
26
26
|
|
|
27
27
|
## 2.0.0
|
|
28
28
|
|
package/lib/attribute.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Attribute } from '@ts-graphviz/common';
|
|
1
|
+
import type { Attribute } from '@ts-graphviz/common';
|
|
2
2
|
export declare const attribute: Attribute.keys;
|
package/lib/from-dot.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConvertToModelOptions, ParseOptions } from '@ts-graphviz/ast';
|
|
2
|
-
import { EdgeModel, NodeModel, RootGraphModel, SubgraphModel } from '@ts-graphviz/common';
|
|
1
|
+
import { type ConvertToModelOptions, type ParseOptions } from '@ts-graphviz/ast';
|
|
2
|
+
import type { EdgeModel, NodeModel, RootGraphModel, SubgraphModel } from '@ts-graphviz/common';
|
|
3
3
|
export interface FromDotOptions<T extends 'Dot' | 'Graph' | 'Node' | 'Edge' | 'Subgraph'> {
|
|
4
4
|
parse?: ParseOptions<T>;
|
|
5
5
|
convert?: ConvertToModelOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModelsContext } from '@ts-graphviz/common';
|
|
2
|
-
import { ModelFactory } from './types.js';
|
|
1
|
+
import { type ModelsContext } from '@ts-graphviz/common';
|
|
2
|
+
import type { ModelFactory } from './types.js';
|
|
3
3
|
export declare function ModelFactoryBuilder(this: ModelsContext, directed: boolean, strictMode: boolean): ModelFactory;
|
|
4
4
|
export declare function createModelFactories(strict: boolean, context?: ModelsContext): Readonly<{
|
|
5
5
|
digraph: ModelFactory;
|
package/lib/model-factory.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModelsContext } from '@ts-graphviz/common';
|
|
2
|
-
import { ModelFactories, ModelFactoriesWithStrict } from './types.js';
|
|
1
|
+
import { type ModelsContext } from '@ts-graphviz/common';
|
|
2
|
+
import type { ModelFactories, ModelFactoriesWithStrict } from './types.js';
|
|
3
3
|
export declare const digraph: import("./types.js").ModelFactory;
|
|
4
4
|
export declare const graph: import("./types.js").ModelFactory;
|
|
5
5
|
export declare const strict: ModelFactories;
|
package/lib/to-dot.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConvertFromModelOptions, PrintOptions } from '@ts-graphviz/ast';
|
|
2
|
-
import { DotObjectModel } from '@ts-graphviz/common';
|
|
1
|
+
import { type ConvertFromModelOptions, type PrintOptions } from '@ts-graphviz/ast';
|
|
2
|
+
import type { DotObjectModel } from '@ts-graphviz/common';
|
|
3
3
|
export interface ToDotOptions {
|
|
4
4
|
convert?: ConvertFromModelOptions;
|
|
5
5
|
print?: PrintOptions;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphAttributesObject, RootGraphModel } from '@ts-graphviz/common';
|
|
1
|
+
import type { GraphAttributesObject, RootGraphModel } from '@ts-graphviz/common';
|
|
2
2
|
export interface ModelFactory {
|
|
3
3
|
(id?: string, attributes?: GraphAttributesObject, callback?: (g: RootGraphModel) => void): RootGraphModel;
|
|
4
4
|
(attributes?: GraphAttributesObject, callback?: (g: RootGraphModel) => void): RootGraphModel;
|
|
@@ -1 +1 @@
|
|
|
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.
|
|
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.44V4z"/><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.21z"/><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.75z"/><text x="139.85" y="-111.49" font-family="Times,serif" font-size="14" text-anchor="middle">toFile</text></g></g></svg>
|
package/media/state-machine.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="404" height="197pt" viewBox="0 0 302.59 196.79"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="404" height="197pt" viewBox="0 0 302.59 196.79"><g class="graph" transform="translate(4 192.79)"><path fill="#fff" stroke="transparent" d="M-4 4v-196.79h302.59V4z"/><g class="node"><circle cx="52.59" cy="-149.14" r="39.79" fill="none" stroke="#000"/><text x="52.59" y="-145.44" font-family="Times,serif" font-size="14" text-anchor="middle">Model</text></g><g class="node"><circle cx="218.59" cy="-149.14" r="31.4" fill="none" stroke="#000"/><text x="218.59" y="-145.44" font-family="Times,serif" font-size="14" text-anchor="middle">DOT</text></g><g class="edge"><path fill="none" stroke="#000" d="M90.64-137.1c9.44 2.47 19.6 4.7 29.18 5.96 17.63 2.32 22.42 2.63 40 0 6.37-.96 13.01-2.46 19.43-4.2"/><path stroke="#000" d="m178.51-138.77 10.58.54-8.61 6.17z"/><text x="139.82" y="-134.94" font-family="Times,serif" font-size="14" text-anchor="middle">toDot</text></g><g class="node"><circle cx="146.59" cy="-29.25" r="29.5" fill="none" stroke="#000"/><text x="146.59" y="-25.55" font-family="Times,serif" font-size="14" text-anchor="middle">AST</text></g><g class="edge"><path fill="none" stroke="#000" d="M21.2-124.93C5.91-110.76-6.93-92.37 4.59-76.49c23.16 31.9 68.9 42.22 102.23 45.34"/><path stroke="#000" d="m107.45-34.61 9.71 4.24-10.23 2.74z"/><text x="44.09" y="-80.29" font-family="Times,serif" font-size="14" text-anchor="middle">fromModel</text></g><g class="edge"><path fill="none" stroke="#000" d="M187.19-149.14h-84.61"/><path stroke="#000" d="m102.36-145.64-10-3.5 10-3.5z"/><text x="139.82" y="-155.94" font-family="Times,serif" font-size="14" text-anchor="middle">fromDot</text></g><g class="edge"><path fill="none" stroke="#000" d="M202.62-121.98c-10.54 17.26-24.44 40.01-35.75 58.54"/><path stroke="#000" d="m169.75-61.44-8.2 6.71 2.22-10.36z"/><text x="202.59" y="-80.29" font-family="Times,serif" font-size="14" text-anchor="middle">parse</text></g><g class="edge"><path fill="none" stroke="#000" d="M128.8-52.57c-12.81-16.06-30.42-38.14-45.48-57.03"/><path stroke="#000" d="m80.54-107.47-3.49-10 8.97 5.63z"/><text x="138.09" y="-80.29" font-family="Times,serif" font-size="14" text-anchor="middle">toModel</text></g><g class="edge"><path fill="none" stroke="#000" d="M174.74-37.96c18.87-6.8 42.31-18.78 53.85-38.53 5.88-10.07 6.19-22.25 4.18-33.7"/><path stroke="#000" d="m229.35-109.45 1.15-10.53 5.67 8.95z"/><text x="264.09" y="-80.29" font-family="Times,serif" font-size="14" text-anchor="middle">stringify</text></g></g></svg>
|
package/media/ts-graphviz.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512pt" height="202pt" viewBox="0 0 511.69 201.5"><g class="graph" transform="translate(4 197.5)"><path fill="#fff" stroke="transparent" d="M-4 4v-201.5h511.69V4z"/><g class="node"><path fill="#f0f0f0" stroke="transparent" d="M22.5-169v-21h184v21z"/><path fill="none" stroke="#000" d="M22.5-169v-21h184v21z"/><text x="25.5" y="-175.8" font-family="Times,serif" font-size="14">Model Factory Functions</text><path fill="none" stroke="#000" d="M22.5-101v-66h184v66z"/><text x="25.5" y="-152.8" font-family="Times,serif" font-size="14">strict.digraph(...)</text><text x="25.5" y="-137.8" font-family="Times,serif" font-size="14">strict.graph(...)</text><text x="25.5" y="-122.8" font-family="Times,serif" font-size="14">digraph(...)</text><text x="25.5" y="-107.8" font-family="Times,serif" font-size="14">graph(...)</text><path fill="none" stroke="#000" d="M19.5-98.5v-95h190v95z"/></g><g class="node"><circle cx="305.65" cy="-93" r="39.79" fill="none" stroke="#000"/><text x="305.65" y="-89.3" font-family="Times,serif" font-size="14" text-anchor="middle">Model</text></g><g class="edge"><path fill="none" stroke="#000" d="M209.52-119.66c16.57 4.65 33.17 9.3 47.75 13.38"/><path stroke="#000" d="m258.33-109.61 8.69 6.07-10.57.67z"/></g><g class="node"><path fill="#f0f0f0" stroke="transparent" d="M3.5-56v-21h223v21z"/><path fill="none" stroke="#000" d="M3.5-56v-21h223v21z"/><text x="6.5" y="-62.8" font-family="Times,serif" font-size="14">Object-Oriented Programming</text><path fill="none" stroke="#000" d="M3.5-3v-51h223v51z"/><text x="6.5" y="-39.8" font-family="Times,serif" font-size="14">new Digraph(...)</text><text x="6.5" y="-24.8" font-family="Times,serif" font-size="14">new Graph(...)</text><text x="6.5" y="-9.8" font-family="Times,serif" font-size="14">...</text><path fill="none" stroke="#000" d="M0 0v-80h229V0z"/></g><g class="edge"><path fill="none" stroke="#000" d="m229.08-71.82 28.42-7.97"/><path stroke="#000" d="m256.6-83.17 10.58.67-8.69 6.07z"/></g><g class="node"><circle cx="472.49" cy="-93" r="31.4" fill="none" stroke="#000"/><text x="472.49" y="-89.3" font-family="Times,serif" font-size="14" text-anchor="middle">DOT</text></g><g class="edge"><path fill="none" stroke="#000" d="M345.3-93h85.43"/><path stroke="#000" d="m431.05-96.5 10 3.5-10 3.5z"/><text x="393.29" y="-96.8" font-family="Times,serif" font-size="14" text-anchor="middle">toDot</text></g><g class="edge"><path fill="none" stroke="#000" d="M443.99-80.12c-6.64 2.54-13.8 4.81-20.7 6.12-26.2 4.98-33.68 4.3-60 0-3.48-.57-7.04-1.32-10.59-2.2"/><path stroke="#000" d="m351.47-72.91-8.7-6.05 10.58-.69z"/><text x="393.29" y="-77.8" font-family="Times,serif" font-size="14" text-anchor="middle">fromDot</text></g></g></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-graphviz",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20240317133942",
|
|
4
4
|
"description": "Graphviz library for TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphviz",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"module": "./lib/ts-graphviz.js",
|
|
57
57
|
"types": "lib/ts-graphviz.d.ts",
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@ts-graphviz/adapter": "^0.0.0-next-
|
|
60
|
-
"@ts-graphviz/ast": "^0.0.0-next-
|
|
61
|
-
"@ts-graphviz/common": "^0.0.0-next-
|
|
62
|
-
"@ts-graphviz/core": "^0.0.0-next-
|
|
59
|
+
"@ts-graphviz/adapter": "^0.0.0-next-20240317133942",
|
|
60
|
+
"@ts-graphviz/ast": "^0.0.0-next-20240317133942",
|
|
61
|
+
"@ts-graphviz/common": "^0.0.0-next-20240317133942",
|
|
62
|
+
"@ts-graphviz/core": "^0.0.0-next-20240317133942"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"peggy": "^3.0.2",
|