ts-graphviz 1.7.1-dev.512c8ed9a → 1.7.1-dev.fc3f7256a
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/lib/common/index.d.ts +32 -14
- package/package.json +1 -1
package/lib/common/index.d.ts
CHANGED
|
@@ -200,14 +200,14 @@ type Point = Point.position | `${Point.position}!`;
|
|
|
200
200
|
/** @hidden */
|
|
201
201
|
declare namespace Point {
|
|
202
202
|
type position =
|
|
203
|
-
|
|
|
204
|
-
|
|
|
205
|
-
|
|
|
206
|
-
|
|
|
207
|
-
|
|
|
208
|
-
|
|
|
209
|
-
|
|
|
210
|
-
|
|
|
203
|
+
| `${Double},${Double}`
|
|
204
|
+
| `${Double},${Double},${Double}`
|
|
205
|
+
| `${Double},${Double},${Double},${Double},${Double}`
|
|
206
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double}`
|
|
207
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double},${Double}`
|
|
208
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double}`
|
|
209
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double}`
|
|
210
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double},${number}`;
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
213
|
* A point with an optional prefix `'+'`.
|
|
@@ -272,12 +272,7 @@ declare namespace QuadType {
|
|
|
272
272
|
* @see {@link https://graphviz.gitlab.io/docs/attr-types/rankdir/ rankdir}
|
|
273
273
|
* @group Attribute Types
|
|
274
274
|
*/
|
|
275
|
-
type Rankdir =
|
|
276
|
-
/** @hidden */
|
|
277
|
-
declare namespace Rankdir {
|
|
278
|
-
type TB = 'T' | 'B';
|
|
279
|
-
type RL = 'R' | 'L';
|
|
280
|
-
}
|
|
275
|
+
type Rankdir = 'TB' | 'BT' | 'LR' | 'RL';
|
|
281
276
|
/**
|
|
282
277
|
* @see {@link https://graphviz.gitlab.io/docs/attr-types/rankType/ rankType}
|
|
283
278
|
* @group Attribute Types
|
|
@@ -289,6 +284,26 @@ declare namespace RankType {
|
|
|
289
284
|
interface $values extends $keywords<'same' | 'min' | 'source' | 'max' | 'sink'> {}
|
|
290
285
|
interface $exclude extends $keywordsValidation {}
|
|
291
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* Which rank to move floating (loose) nodes to
|
|
289
|
+
*
|
|
290
|
+
* Valid options:
|
|
291
|
+
* - "min": Move floating (loose) nodes to minimum rank.
|
|
292
|
+
* - "max": Move floating (loose) nodes to maximum rank.
|
|
293
|
+
* - Otherwise, floating nodes are placed anywhere.
|
|
294
|
+
*
|
|
295
|
+
* Despite the name TBbalance ("Top-Bottom Balance"), this also works with left-right ranks, e.g. rankdir=LR.
|
|
296
|
+
*
|
|
297
|
+
* @see {@link https://graphviz.org/docs/attrs/TBbalance/ TBbalance}
|
|
298
|
+
* @group Attribute Types
|
|
299
|
+
*/
|
|
300
|
+
type TBbalanceType = TBbalanceType.values;
|
|
301
|
+
/** @hidden */
|
|
302
|
+
declare namespace TBbalanceType {
|
|
303
|
+
type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
304
|
+
interface $values extends $keywords<'min' | 'max'> {}
|
|
305
|
+
interface $exclude extends $keywordsValidation {}
|
|
306
|
+
}
|
|
292
307
|
/**
|
|
293
308
|
* `"%f,%f,%f,%f"`
|
|
294
309
|
*
|
|
@@ -1473,6 +1488,7 @@ declare namespace GraphAttributeKey {
|
|
|
1473
1488
|
| 'voro_margin'
|
|
1474
1489
|
| 'xdotversion'
|
|
1475
1490
|
| 'class'
|
|
1491
|
+
| 'TBbalance'
|
|
1476
1492
|
> {}
|
|
1477
1493
|
interface $exclude extends $keywordsValidation {}
|
|
1478
1494
|
}
|
|
@@ -4048,6 +4064,7 @@ declare namespace Attribute {
|
|
|
4048
4064
|
arrowtail: ArrowType;
|
|
4049
4065
|
bb: Rect;
|
|
4050
4066
|
bgcolor: Color | ColorList;
|
|
4067
|
+
TBbalance: TBbalanceType;
|
|
4051
4068
|
center: boolean;
|
|
4052
4069
|
charset: string;
|
|
4053
4070
|
class: string;
|
|
@@ -4950,6 +4967,7 @@ export {
|
|
|
4950
4967
|
SubgraphAttributesObject,
|
|
4951
4968
|
SubgraphConstructor,
|
|
4952
4969
|
SubgraphModel,
|
|
4970
|
+
TBbalanceType,
|
|
4953
4971
|
ViewPort,
|
|
4954
4972
|
createModelsContext,
|
|
4955
4973
|
isCompass,
|
package/package.json
CHANGED