@arqlet/contracts 0.1.0 → 0.2.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/dist/index.d.ts +30 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,11 @@ export type ConfigSet = { schemaVersion: number, id: string, layout: LayoutConfi
|
|
|
48
48
|
/**
|
|
49
49
|
* Display preference. Absent means the config set leaves the current display unchanged.
|
|
50
50
|
*/
|
|
51
|
-
appearance?: AppearanceConfig | null,
|
|
51
|
+
appearance?: AppearanceConfig | null,
|
|
52
|
+
/**
|
|
53
|
+
* Provisional (ADR 0018): how the cluster overview shows the data's clusters. Absent: no rules.
|
|
54
|
+
*/
|
|
55
|
+
overview?: OverviewConfig | null, };
|
|
52
56
|
|
|
53
57
|
/**
|
|
54
58
|
* The authored size of one container, per axis (ADR 0010). Each axis is content, a minimum or a fixed size.
|
|
@@ -628,6 +632,26 @@ after: string | null, };
|
|
|
628
632
|
*/
|
|
629
633
|
export type Orientation = "lr" | "rl" | "tb" | "bt";
|
|
630
634
|
|
|
635
|
+
/**
|
|
636
|
+
* Provisional (ADR 0018, addendum): the rules of the data for the cluster overview, the second step of the order
|
|
637
|
+
* user, rules, zoom.
|
|
638
|
+
*/
|
|
639
|
+
export type OverviewConfig = {
|
|
640
|
+
/**
|
|
641
|
+
* The representation by node kind.
|
|
642
|
+
*/
|
|
643
|
+
rules?: { [key in string]: Representation },
|
|
644
|
+
/**
|
|
645
|
+
* Whether the zoom decides what neither the user nor a rule decided. Absent: yes.
|
|
646
|
+
*/
|
|
647
|
+
auto?: boolean, };
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Provisional (ADR 0018, addendum; ADR 0015): the user's decisions in the cluster overview as one value, by node id.
|
|
651
|
+
* The first step of the order user, rules, zoom; it always holds.
|
|
652
|
+
*/
|
|
653
|
+
export type OverviewIntent = { decisions?: { [key in string]: Representation }, };
|
|
654
|
+
|
|
631
655
|
export type PlacedLabel = { id: string, kind: string, text: string, bounds: Rect, };
|
|
632
656
|
|
|
633
657
|
export type Point = { x: number, y: number, };
|
|
@@ -740,6 +764,11 @@ hardViolations: number,
|
|
|
740
764
|
*/
|
|
741
765
|
pendingRoutes: number, payloadHash: string, inputHash: string, metrics: Metrics, };
|
|
742
766
|
|
|
767
|
+
/**
|
|
768
|
+
* Provisional (ADR 0018, addendum): how a container of the cluster overview is shown.
|
|
769
|
+
*/
|
|
770
|
+
export type Representation = "collapsed" | "organic" | "structured";
|
|
771
|
+
|
|
743
772
|
export type ResolvedPort = { id: string, nodeId: string, edgeId: string, endpoint: string, side: PortSide, position: Point, explicit: boolean, };
|
|
744
773
|
|
|
745
774
|
export type Route = { id: string, points: Array<Point>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arqlet/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "TypeScript types of Arqlet's engine contracts (Snapshot, Scene, ConfigSet, LayoutOptions, ...), generated from the Rust types. Types only; provisional.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graph",
|