Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-graphviz

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-graphviz - npm Package Compare versions

Comparing version 1.4.1-dev.081bea7b0 to 1.4.1-dev.1f5b79680

2

lib/adapter/browser/index.d.ts

@@ -5,3 +5,3 @@ /**

*/
declare type Options = any;
type Options = any;
/**

@@ -8,0 +8,0 @@ * Execute the Graphviz dot command and make a Stream of the results.

/// <reference types="node" />
declare type Format = 'png' | 'svg' | 'json' | 'jpg' | 'pdf' | 'xdot' | 'plain' | 'dot_json';
type Format = 'png' | 'svg' | 'json' | 'jpg' | 'pdf' | 'xdot' | 'plain' | 'dot_json';
interface Options {

@@ -4,0 +4,0 @@ format?: Format;

@@ -38,3 +38,3 @@ import {

*/
declare type DotASTPropaties = ASTCommonPropaties;
type DotASTPropaties = ASTCommonPropaties;
/**

@@ -84,3 +84,3 @@ * @group AST

*/
declare type NodeRefGroupASTPropaties = ASTCommonPropaties;
type NodeRefGroupASTPropaties = ASTCommonPropaties;
/**

@@ -102,3 +102,3 @@ * @group AST

*/
declare type CommentKind = 'Block' | 'Slash' | 'Macro';
type CommentKind = 'Block' | 'Slash' | 'Macro';
/**

@@ -187,3 +187,3 @@ * @group AST

*/
declare type EdgeTargetASTNode = NodeRefASTNode | NodeRefGroupASTNode;
type EdgeTargetASTNode = NodeRefASTNode | NodeRefGroupASTNode;
/**

@@ -213,7 +213,7 @@ * Edge AST object.

*/
declare type StatementASTNode = GraphASTNode | CommentASTNode;
type StatementASTNode = GraphASTNode | CommentASTNode;
/**
* @group AST
*/
declare type ClusterStatementASTNode =
type ClusterStatementASTNode =
| AttributeASTNode

@@ -228,3 +228,3 @@ | AttributeListASTNode

*/
declare type ASTNode =
type ASTNode =
| LiteralASTNode

@@ -244,3 +244,3 @@ | DotASTNode

*/
declare type ASTChildNode<T> = T extends ASTBaseParentNode<infer C> ? C : never;
type ASTChildNode<T> = T extends ASTBaseParentNode<infer C> ? C : never;

@@ -311,7 +311,7 @@ /**

*/
declare type IndentStyle = 'space' | 'tab';
type IndentStyle = 'space' | 'tab';
/**
* @group Convert AST to DOT
*/
declare type EndOfLine = 'lf' | 'crlf';
type EndOfLine = 'lf' | 'crlf';
/**

@@ -394,8 +394,3 @@ * @group Convert AST to DOT

}
declare type Expectation =
| ILiteralExpectation
| IClassExpectation
| IAnyExpectation
| IEndExpectation
| IOtherExpectation;
type Expectation = ILiteralExpectation | IClassExpectation | IAnyExpectation | IEndExpectation | IOtherExpectation;
declare class SyntaxError$1 extends Error {

@@ -411,3 +406,3 @@ static buildMessage(expected: Expectation[], found: string | null): string;

sources: {
source: string;
grammarSource?: string;
text: string;

@@ -421,11 +416,3 @@ }[],

*/
declare type Rule =
| 'Dot'
| 'Graph'
| 'Node'
| 'Edge'
| 'AttributeList'
| 'Attribute'
| 'Subgraph'
| 'ClusterStatements';
type Rule = 'Dot' | 'Graph' | 'Node' | 'Edge' | 'AttributeList' | 'Attribute' | 'Subgraph' | 'ClusterStatements';
/**

@@ -465,3 +452,3 @@ * @group Convert DOT to AST

*/
declare type ModelToAST<T> = T extends DotObjectModel<infer U>
type ModelToAST<T> = T extends DotObjectModel<infer U>
? U extends 'Graph'

@@ -520,3 +507,3 @@ ? GraphASTNode | DotASTNode

*/
declare type ModelOf<T> = T extends 'Dot' | 'Graph'
type ModelOf<T> = T extends 'Dot' | 'Graph'
? RootGraphModel

@@ -533,3 +520,3 @@ : T extends 'Edge'

*/
declare type ASTToModel<T> = T extends {
type ASTToModel<T> = T extends {
type: infer U;

@@ -543,3 +530,3 @@ }

*/
declare type ToModelConvertableASTNode = DotASTNode | GraphASTNode | SubgraphASTNode | NodeASTNode | EdgeASTNode;
type ToModelConvertableASTNode = DotASTNode | GraphASTNode | SubgraphASTNode | NodeASTNode | EdgeASTNode;
/**

@@ -546,0 +533,0 @@ * @group Convert AST to Model

@@ -5,3 +5,3 @@ /**

*/
declare type Compass = 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw' | 'c' | '_';
type Compass = 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw' | 'c' | '_';
/**

@@ -13,3 +13,3 @@ * A double with an optional prefix `'+'`.

*/
declare type AddDouble = `+${Double}`;
type AddDouble = `+${Double}`;
/**

@@ -21,3 +21,3 @@ * Double-precision floating point number.

*/
declare type Double = number;
type Double = number;
/**

@@ -29,3 +29,3 @@ * Port Position

*/
declare type PortPos = `${string}:${Compass}` | Compass;
type PortPos = `${string}:${Compass}` | Compass;
/**

@@ -37,3 +37,3 @@ * A colon-separated list of doubles: `"%f(:%f)*"` where each %f is a double.

*/
declare type DoubleList =
type DoubleList =
| Double

@@ -54,3 +54,3 @@ | `${Double}:${Double}`

*/
declare type Int = number;
type Int = number;
/**

@@ -60,3 +60,3 @@ * @see {@link https://graphviz.gitlab.io/docs/attr-types/shape/ shape}

*/
declare type Shape = string;
type Shape = string;
/**

@@ -66,3 +66,3 @@ * @see {@link https://graphviz.gitlab.io/docs/attr-types/smoothType/ smoothType}

*/
declare type SmoothType = 'none' | 'avg_dist' | 'graph_dist' | 'power_dist' | 'rng' | 'spring' | 'triangle';
type SmoothType = 'none' | 'avg_dist' | 'graph_dist' | 'power_dist' | 'rng' | 'spring' | 'triangle';
/**

@@ -72,3 +72,3 @@ * @see {@link https://graphviz.gitlab.io/docs/attr-types/splineType/ splineType}

*/
declare type SplineType = SplineType.spline | string;
type SplineType = SplineType.spline | string;
/** @hidden */

@@ -86,3 +86,3 @@ declare namespace SplineType {

*/
declare type StartType = `${StartType.style}${StartType.seed}`;
type StartType = `${StartType.style}${StartType.seed}`;
/** @hidden */

@@ -97,3 +97,3 @@ declare namespace StartType {

*/
declare type Style =
type Style =
| Style.styleItem

@@ -126,3 +126,3 @@ | `${Style.styleItem},${Style.styleItem}`

*/
declare type ViewPort = `${Double},${Double},${Double},${Double},${Double}` | `${Double},${Double},${Double},${string}`;
type ViewPort = `${Double},${Double},${Double},${Double},${Double}` | `${Double},${Double},${Double},${string}`;
/**

@@ -135,3 +135,3 @@ * list of strings separated by characters from the layersep attribute (by default, colons, tabs or spaces),

*/
declare type LayerList = string;
type LayerList = string;
/**

@@ -143,3 +143,3 @@ * specifies a list of layers defined by the layers attribute.

*/
declare type LayerRange = string;
type LayerRange = string;
/**

@@ -166,3 +166,3 @@ * String with Escape Sequences

*/
declare type EscString = string;
type EscString = string;
/**

@@ -172,3 +172,3 @@ * @see {@link https://graphviz.org/doc/info/shapes.html#html HTML-Like Labels}

*/
declare type HTMLLikeLabel = `<${string}>`;
type HTMLLikeLabel = `<${string}>`;
/**

@@ -180,3 +180,3 @@ * An escString or an HTML label.

*/
declare type LblString = HTMLLikeLabel | EscString;
type LblString = HTMLLikeLabel | EscString;
/**

@@ -190,3 +190,3 @@ * `"%f,%f('!')?"` representing the point (x,y).

*/
declare type Point = Point.position | `${Point.position}!`;
type Point = Point.position | `${Point.position}!`;
/** @hidden */

@@ -210,3 +210,3 @@ declare namespace Point {

*/
declare type AddPoint = `+${Point}`;
type AddPoint = `+${Point}`;
/**

@@ -216,7 +216,3 @@ * @see {@link https://graphviz.gitlab.io/docs/attr-types/pointList/ pointList}

*/
declare type PointList =
| Point
| `${Point} ${Point}`
| `${Point} ${Point} ${Point}`
| `${Point} ${Point} ${Point} ${Point}`;
type PointList = Point | `${Point} ${Point}` | `${Point} ${Point} ${Point}` | `${Point} ${Point} ${Point} ${Point}`;
/**

@@ -232,3 +228,3 @@ * These specify the order in which nodes and edges are drawn in concrete output.

*/
declare type OutputMode = 'breadthfirst' | 'nodesfirst' | 'edgesfirst';
type OutputMode = 'breadthfirst' | 'nodesfirst' | 'edgesfirst';
/**

@@ -238,3 +234,3 @@ * @see {@link https://graphviz.org/docs/attr-types/packMode/ packMode}

*/
declare type PackMode = 'node' | 'clust' | 'graph' | `array${string}`;
type PackMode = 'node' | 'clust' | 'graph' | `array${string}`;
/**

@@ -247,3 +243,3 @@ * Using `"fast"` gives about a 2-4 times overall speedup compared with `"normal"`,

*/
declare type QuadType = 'normal' | 'fast' | 'none';
type QuadType = 'normal' | 'fast' | 'none';
/**

@@ -258,3 +254,3 @@ * Rank Direction

*/
declare type Rankdir = 'TB' | 'LR' | 'BT' | 'RL';
type Rankdir = 'TB' | 'LR' | 'BT' | 'RL';
/**

@@ -264,3 +260,3 @@ * @see {@link https://graphviz.gitlab.io/docs/attr-types/rankType/ rankType}

*/
declare type RankType = 'same' | 'min' | 'source' | 'max' | 'sink';
type RankType = 'same' | 'min' | 'source' | 'max' | 'sink';
/**

@@ -275,3 +271,3 @@ * `"%f,%f,%f,%f"`

*/
declare type Rect = `${Double},${Double},${Double},${Double}`;
type Rect = `${Double},${Double},${Double},${Double}`;
/**

@@ -286,3 +282,3 @@ * The examples above show a set of commonly used arrow shapes.

*/
declare type ArrowType = ArrowType.aname | `${ArrowType.aname}${ArrowType.aname}`;
type ArrowType = ArrowType.aname | `${ArrowType.aname}${ArrowType.aname}`;
/** @hidden */

@@ -299,3 +295,3 @@ declare namespace ArrowType {

*/
declare type ClusterMode = 'local' | 'global' | 'none';
type ClusterMode = 'local' | 'global' | 'none';
/**

@@ -305,3 +301,3 @@ * @see {@link https://graphviz.gitlab.io/docs/attr-types/color/ color}

*/
declare type Color = Color.RGB_RGBA | Color.HSV | Color.ColorName | number;
type Color = Color.RGB_RGBA | Color.HSV | Color.ColorName | number;
/** @hidden */

@@ -1164,3 +1160,3 @@ declare namespace Color {

*/
declare type ColorList = string;
type ColorList = string;
/**

@@ -1172,3 +1168,3 @@ * Direction Type

*/
declare type DirType = 'forward' | 'back' | 'both' | 'none';
type DirType = 'forward' | 'back' | 'both' | 'none';
/**

@@ -1180,3 +1176,3 @@ * Page Direction

*/
declare type Pagedir = `${Pagedir.TB}${Pagedir.RL}`;
type Pagedir = `${Pagedir.TB}${Pagedir.RL}`;
/** @hidden */

@@ -1192,3 +1188,3 @@ declare namespace Pagedir {

*/
declare type EdgeAttributeKey =
type EdgeAttributeKey =
| 'URL'

@@ -1264,3 +1260,3 @@ | 'arrowhead'

*/
declare type NodeAttributeKey =
type NodeAttributeKey =
| 'URL'

@@ -1319,3 +1315,3 @@ | 'area'

*/
declare type GraphAttributeKey =
type GraphAttributeKey =
| 'Damping'

@@ -1424,3 +1420,3 @@ | 'K'

*/
declare type SubgraphAttributeKey = 'rank';
type SubgraphAttributeKey = 'rank';
/**

@@ -1430,3 +1426,3 @@ * Attribute types available for cluster subgraph.

*/
declare type ClusterSubgraphAttributeKey =
type ClusterSubgraphAttributeKey =
| 'K'

@@ -1466,3 +1462,3 @@ | 'URL'

*/
declare type AttributeKey =
type AttributeKey =
| NodeAttributeKey

@@ -1651,3 +1647,3 @@ | EdgeAttributeKey

*/
declare type Attribute<T extends AttributeKey> = KeyValueMapping[T];
type Attribute<T extends AttributeKey> = KeyValueMapping[T];

@@ -1679,3 +1675,3 @@ /**

*/
declare type ASTType =
type ASTType =
| 'Literal'

@@ -1696,7 +1692,7 @@ | 'Dot'

*/
declare type NodeRef = NodeModel | ForwardRefNode;
type NodeRef = NodeModel | ForwardRefNode;
/**
* @group Models
*/
declare type NodeRefGroup = NodeRef[];
type NodeRefGroup = NodeRef[];
/**

@@ -1706,23 +1702,23 @@ * string or an object implementing EdgeTarget.

*/
declare type NodeRefLike = NodeRef | string;
type NodeRefLike = NodeRef | string;
/**
* @group Models
*/
declare type NodeRefGroupLike = NodeRefLike[];
type NodeRefGroupLike = NodeRefLike[];
/**
* @group Models
*/
declare type EdgeTarget = NodeRef | NodeRefGroup;
type EdgeTarget = NodeRef | NodeRefGroup;
/**
* @group Models
*/
declare type EdgeTargetLike = NodeRefLike | NodeRefGroupLike;
type EdgeTargetLike = NodeRefLike | NodeRefGroupLike;
/**
* @group Models
*/
declare type EdgeTargetTuple = [from: EdgeTarget, to: EdgeTarget, ...rest: EdgeTarget[]];
type EdgeTargetTuple = [from: EdgeTarget, to: EdgeTarget, ...rest: EdgeTarget[]];
/**
* @group Models
*/
declare type EdgeTargetLikeTuple = [from: EdgeTargetLike, to: EdgeTargetLike, ...rest: EdgeTargetLike[]];
type EdgeTargetLikeTuple = [from: EdgeTargetLike, to: EdgeTargetLike, ...rest: EdgeTargetLike[]];
/**

@@ -1732,3 +1728,3 @@ * An objects of attribute key/value pairs.

*/
declare type AttributesObject<T extends AttributeKey> = {
type AttributesObject<T extends AttributeKey> = {
[K in T]?: Attribute<K>;

@@ -1739,3 +1735,3 @@ };

*/
declare type AttributeValue = Attribute<AttributeKey>;
type AttributeValue = Attribute<AttributeKey>;
/**

@@ -1745,3 +1741,3 @@ * An array of attribute key/value tuple.

*/
declare type AttributesEntities<T extends AttributeKey> = readonly [T, Attribute<T>][];
type AttributesEntities<T extends AttributeKey> = readonly [T, Attribute<T>][];
/**

@@ -1751,3 +1747,3 @@ * Attribute object that can be set to Edge.

*/
declare type EdgeAttributesObject = AttributesObject<EdgeAttributeKey>;
type EdgeAttributesObject = AttributesObject<EdgeAttributeKey>;
/**

@@ -1757,3 +1753,3 @@ * Attribute object that can be set to Node.

*/
declare type NodeAttributesObject = AttributesObject<NodeAttributeKey>;
type NodeAttributesObject = AttributesObject<NodeAttributeKey>;
/**

@@ -1763,3 +1759,3 @@ * Attribute object that can be set to Graph.

*/
declare type GraphAttributesObject = AttributesObject<GraphAttributeKey>;
type GraphAttributesObject = AttributesObject<GraphAttributeKey>;
/**

@@ -1769,7 +1765,7 @@ * Attribute object that can be set to Subgraph.

*/
declare type SubgraphAttributesObject = AttributesObject<ClusterSubgraphAttributeKey | SubgraphAttributeKey>;
type SubgraphAttributesObject = AttributesObject<ClusterSubgraphAttributeKey | SubgraphAttributeKey>;
/**
* @group Models
*/
declare type DotObjectType = 'AttributeList' | 'Node' | 'Edge' | 'Subgraph' | 'Graph';
type DotObjectType = 'AttributeList' | 'Node' | 'Edge' | 'Subgraph' | 'Graph';
/**

@@ -1838,3 +1834,3 @@ * @group Models

*/
declare type AttributeListKind = 'Graph' | 'Edge' | 'Node';
type AttributeListKind = 'Graph' | 'Edge' | 'Node';
/**

@@ -1841,0 +1837,0 @@ * A list object of attributes commonly specified for nodes, subgraphs, and edges

@@ -1,3 +0,3 @@

declare type F<A extends any[], O> = (...args: A) => O;
declare type IO<I, O> = F<[I], O>;
type F<A extends any[], O> = (...args: A) => O;
type IO<I, O> = F<[I], O>;
declare function pipe<I extends any[], O>(f0: F<I, O>): F<I, O>;

@@ -4,0 +4,0 @@ declare function pipe<I extends any[], T1, O>(f0: F<I, T1>, f1: IO<T1, O>): F<I, O>;

{
"name": "ts-graphviz",
"version": "1.4.1-dev.081bea7b0",
"version": "1.4.1-dev.1f5b79680",
"author": "kamiazya <yuki@kamiazya.tech>",

@@ -5,0 +5,0 @@ "description": "Graphviz library for TypeScript.",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc