ts-graphviz 1.5.3 → 1.5.4-dev.ab63aa9c2

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.
Files changed (2) hide show
  1. package/lib/common/index.d.ts +12 -6
  2. package/package.json +120 -120
@@ -3,6 +3,11 @@
3
3
  * @group Attribute Types
4
4
  */
5
5
  type Compass = 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw' | 'c' | '_';
6
+ /**
7
+ * A value specifying an empty string for resetting some values.
8
+ * @group Attribute Types
9
+ */
10
+ type Blank = '';
6
11
  /**
7
12
  * A double with an optional prefix `'+'`.
8
13
  *
@@ -1470,7 +1475,7 @@ interface KeyValueMapping {
1470
1475
  fontpath: string;
1471
1476
  fontsize: Double;
1472
1477
  forcelabels: boolean;
1473
- gradientangle: Int;
1478
+ gradientangle: Blank | Int;
1474
1479
  group: string;
1475
1480
  head_lp: Point;
1476
1481
  headclip: boolean;
@@ -1480,7 +1485,7 @@ interface KeyValueMapping {
1480
1485
  headtarget: EscString;
1481
1486
  headtooltip: EscString;
1482
1487
  headURL: EscString;
1483
- height: Double;
1488
+ height: Blank | Double;
1484
1489
  href: EscString;
1485
1490
  id: EscString;
1486
1491
  image: string;
@@ -1578,8 +1583,8 @@ interface KeyValueMapping {
1578
1583
  smoothing: SmoothType;
1579
1584
  sortv: Int;
1580
1585
  splines: boolean | string;
1581
- start: StartType;
1582
- style: Style;
1586
+ start: Blank | StartType;
1587
+ style: Blank | Style;
1583
1588
  stylesheet: string;
1584
1589
  tail_lp: string;
1585
1590
  tailclip: Point;
@@ -1594,14 +1599,14 @@ interface KeyValueMapping {
1594
1599
  truecolor: boolean;
1595
1600
  URL: EscString;
1596
1601
  vertices: PointList;
1597
- viewport: ViewPort;
1602
+ viewport: Blank | ViewPort;
1598
1603
  voro_margin: Double;
1599
1604
  weight: Int | Double;
1600
1605
  width: Double;
1601
1606
  xdotversion: string;
1602
1607
  xlabel: LblString;
1603
1608
  xlp: Point;
1604
- z: Double;
1609
+ z: Blank | Double;
1605
1610
  }
1606
1611
  /**
1607
1612
  * @group Attribute
@@ -2270,6 +2275,7 @@ export {
2270
2275
  AttributesEntities,
2271
2276
  AttributesGroupModel,
2272
2277
  AttributesObject,
2278
+ Blank,
2273
2279
  ClusterMode,
2274
2280
  ClusterSubgraphAttributeKey,
2275
2281
  Color,
package/package.json CHANGED
@@ -1,125 +1,125 @@
1
1
  {
2
- "name": "ts-graphviz",
3
- "version": "1.5.3",
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"
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.4-dev.ab63aa9c2",
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
- "./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
- }
12
+ "keywords": [
13
+ "graphviz",
14
+ "dot"
15
+ ],
16
+ "bugs": {
17
+ "url": "https://github.com/ts-graphviz/ts-graphviz/issues"
46
18
  },
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
- }
19
+ "funding": {
20
+ "type": "github",
21
+ "url": "https://github.com/sponsors/kamiazya"
67
22
  },
68
- "./package.json": "./package.json"
69
- },
70
- "typesVersions": {
71
- "*": {
72
- "ast": [
73
- "lib/ast"
74
- ],
75
- "adapter": [
76
- "lib/adapter/node"
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": "^3.0.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": "^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": "^3.0.0",
122
- "typedoc": "^0.23.15",
123
- "typescript": "^4.7.4"
124
- }
125
- }
125
+ }