@likec4/diagram 1.27.0 → 1.27.1
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/bundle/index.js +327 -281
- package/dist/LikeC4Diagram.js +2 -8
- package/dist/base/primitives/compound/CompoundNodeContainer.js +1 -1
- package/dist/base/primitives/edge/EdgeLabel.css.js +1 -4
- package/dist/base/primitives/edge/EdgeLabelContainer.js +1 -1
- package/dist/base/primitives/edge/EdgePath.js +0 -3
- package/dist/base/primitives/edge/edge.css.js +2 -0
- package/dist/base/primitives/element/ElementNodeContainer.css.js +1 -0
- package/dist/base/primitives/element/ElementShape.css.js +1 -12
- package/dist/base/primitives/element/ElementTitle.css.js +3 -2
- package/dist/base/types.js +2 -2
- package/dist/components/Link.js +1 -1
- package/dist/hooks/useDiagram.d.ts +320 -490
- package/dist/likec4diagram/DiagramXYFlow.js +10 -9
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +30 -41
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +1 -1
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +6 -1
- package/dist/likec4diagram/ui/controls/LayoutDriftNotification.js +13 -5
- package/dist/likec4diagram/useLayoutConstraints.d.ts +11 -10
- package/dist/likec4diagram/useLayoutConstraints.js +64 -61
- package/dist/overlays/Overlays.js +2 -2
- package/dist/overlays/overlay/Overlay.css.js +31 -12
- package/dist/overlays/overlay/Overlay.js +30 -27
- package/dist/overlays/relationship-details/useLayoutedDetails.js +1 -1
- package/dist/overlays/relationships-browser/SelectElement.js +4 -4
- package/dist/state/DiagramActorProvider.d.ts +4 -2
- package/dist/state/DiagramActorProvider.js +30 -37
- package/dist/state/assign.js +2 -2
- package/dist/state/diagram-machine.d.ts +450 -608
- package/dist/state/diagram-machine.js +87 -57
- package/dist/styles.css.js +1 -1
- package/package.json +5 -5
- package/src/LikeC4Diagram.tsx +1 -7
- package/src/base/primitives/compound/CompoundNodeContainer.tsx +1 -1
- package/src/base/primitives/edge/EdgeLabel.css.ts +1 -4
- package/src/base/primitives/edge/EdgeLabelContainer.tsx +1 -1
- package/src/base/primitives/edge/EdgePath.tsx +0 -3
- package/src/base/primitives/edge/edge.css.ts +2 -0
- package/src/base/primitives/element/ElementNodeContainer.css.ts +1 -0
- package/src/base/primitives/element/ElementShape.css.ts +1 -12
- package/src/base/primitives/element/ElementTitle.css.ts +3 -2
- package/src/base/types.ts +2 -7
- package/src/components/Link.tsx +3 -1
- package/src/likec4diagram/DiagramXYFlow.tsx +11 -9
- package/src/likec4diagram/custom/edges/RelationshipEdge.tsx +39 -48
- package/src/likec4diagram/custom/nodes/toolbar/Toolbar.tsx +2 -2
- package/src/likec4diagram/custom/nodes/toolbar/styles.css.ts +5 -0
- package/src/likec4diagram/ui/controls/LayoutDriftNotification.tsx +8 -4
- package/src/likec4diagram/useLayoutConstraints.ts +84 -89
- package/src/overlays/Overlays.tsx +2 -2
- package/src/overlays/overlay/Overlay.css.ts +30 -12
- package/src/overlays/overlay/Overlay.tsx +35 -29
- package/src/overlays/relationship-details/useLayoutedDetails.ts +1 -1
- package/src/overlays/relationships-browser/SelectElement.tsx +5 -5
- package/src/state/DiagramActorProvider.tsx +40 -50
- package/src/state/assign.ts +2 -2
- package/src/state/diagram-machine.ts +100 -69
|
@@ -23,18 +23,22 @@ export interface NavigationHistory {
|
|
|
23
23
|
}
|
|
24
24
|
export interface Input {
|
|
25
25
|
view: DiagramView;
|
|
26
|
-
xynodes: Types.Node[];
|
|
27
|
-
xyedges: Types.Edge[];
|
|
28
26
|
xystore: XYStoreApi;
|
|
29
27
|
zoomable: boolean;
|
|
30
28
|
pannable: boolean;
|
|
31
29
|
fitViewPadding: number;
|
|
30
|
+
nodesSelectable: boolean;
|
|
32
31
|
}
|
|
33
32
|
type ToggledFeatures = Partial<EnabledFeatures>;
|
|
34
33
|
export interface Context extends Input {
|
|
34
|
+
xynodes: Types.Node[];
|
|
35
|
+
xyedges: Types.Edge[];
|
|
35
36
|
features: EnabledFeatures;
|
|
36
37
|
toggledFeatures: ToggledFeatures;
|
|
37
|
-
initialized:
|
|
38
|
+
initialized: {
|
|
39
|
+
xydata: boolean;
|
|
40
|
+
xyflow: boolean;
|
|
41
|
+
};
|
|
38
42
|
viewport: Viewport;
|
|
39
43
|
viewportChangedManually: boolean;
|
|
40
44
|
lastOnNavigate: null | {
|
|
@@ -57,7 +61,7 @@ export interface Context extends Input {
|
|
|
57
61
|
};
|
|
58
62
|
viewportBeforeFocus: null | Viewport;
|
|
59
63
|
xyflow: ReactFlowInstance<Types.Node, Types.Edge> | null;
|
|
60
|
-
syncLayoutActorRef: ActorRef<Snapshot<unknown>, SyncLayoutEvents, AnyEventObject>;
|
|
64
|
+
syncLayoutActorRef: null | ActorRef<Snapshot<unknown>, SyncLayoutEvents, AnyEventObject>;
|
|
61
65
|
activeWalkthrough: null | {
|
|
62
66
|
stepId: StepEdgeId;
|
|
63
67
|
parallelPrefix: string | null;
|
|
@@ -115,7 +119,7 @@ export type Events = HotKeyEvent | {
|
|
|
115
119
|
xyedges: Types.Edge[];
|
|
116
120
|
} | {
|
|
117
121
|
type: 'update.inputs';
|
|
118
|
-
inputs: Partial<Omit<Input, 'view'>>;
|
|
122
|
+
inputs: Partial<Omit<Input, 'view' | 'xystore'>>;
|
|
119
123
|
} | {
|
|
120
124
|
type: 'update.features';
|
|
121
125
|
features: EnabledFeatures;
|
|
@@ -761,11 +765,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
761
765
|
type: "updateFeatures";
|
|
762
766
|
params: NonReducibleUnknown;
|
|
763
767
|
};
|
|
768
|
+
startSyncLayout: {
|
|
769
|
+
type: "startSyncLayout";
|
|
770
|
+
params: NonReducibleUnknown;
|
|
771
|
+
};
|
|
764
772
|
stopSyncLayout: {
|
|
765
773
|
type: "stopSyncLayout";
|
|
766
774
|
params: NonReducibleUnknown;
|
|
767
775
|
};
|
|
768
776
|
}>, Values<{
|
|
777
|
+
isReady: {
|
|
778
|
+
type: "isReady";
|
|
779
|
+
params: unknown;
|
|
780
|
+
};
|
|
769
781
|
"enabled: FitView": {
|
|
770
782
|
type: "enabled: FitView";
|
|
771
783
|
params: unknown;
|
|
@@ -806,7 +818,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
806
818
|
type: "click: node has connections";
|
|
807
819
|
params: unknown;
|
|
808
820
|
};
|
|
809
|
-
}>, never, "initializing" | "navigating" | {
|
|
821
|
+
}>, never, "isReady" | "initializing" | "navigating" | {
|
|
810
822
|
ready: "idle" | "walkthrough" | "focused";
|
|
811
823
|
}, string, Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
812
824
|
readonly initial: "initializing";
|
|
@@ -1595,6 +1607,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
1595
1607
|
input: Input;
|
|
1596
1608
|
self: ActorRef< MachineSnapshot<Context, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
1597
1609
|
}) => {
|
|
1610
|
+
xyedges: never[];
|
|
1611
|
+
xynodes: never[];
|
|
1598
1612
|
features: {
|
|
1599
1613
|
enableControls: boolean;
|
|
1600
1614
|
enableReadOnly: boolean;
|
|
@@ -1614,7 +1628,10 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
1614
1628
|
enableVscode: boolean;
|
|
1615
1629
|
};
|
|
1616
1630
|
toggledFeatures: Partial<EnabledFeatures>;
|
|
1617
|
-
initialized:
|
|
1631
|
+
initialized: {
|
|
1632
|
+
xydata: false;
|
|
1633
|
+
xyflow: false;
|
|
1634
|
+
};
|
|
1618
1635
|
viewportChangedManually: false;
|
|
1619
1636
|
lastOnNavigate: null;
|
|
1620
1637
|
lastClickedNode: null;
|
|
@@ -1631,114 +1648,20 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
1631
1648
|
zoom: number;
|
|
1632
1649
|
};
|
|
1633
1650
|
xyflow: null;
|
|
1634
|
-
syncLayoutActorRef:
|
|
1635
|
-
type: "trigger:OnChange";
|
|
1636
|
-
params: {
|
|
1637
|
-
change: ViewChange;
|
|
1638
|
-
};
|
|
1639
|
-
}, {
|
|
1640
|
-
type: "same view";
|
|
1641
|
-
params: unknown;
|
|
1642
|
-
}, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
1643
|
-
readonly initial: "idle";
|
|
1644
|
-
readonly context: ({ input }: {
|
|
1645
|
-
spawn: {
|
|
1646
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
1647
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
1648
|
-
id?: never;
|
|
1649
|
-
systemId?: string;
|
|
1650
|
-
input?: InputFrom<TLogic>;
|
|
1651
|
-
syncSnapshot?: boolean;
|
|
1652
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
1653
|
-
};
|
|
1654
|
-
input: Input;
|
|
1655
|
-
self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
|
|
1656
|
-
}) => {
|
|
1657
|
-
parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
|
|
1658
|
-
viewId: ViewId;
|
|
1659
|
-
};
|
|
1660
|
-
readonly states: {
|
|
1661
|
-
readonly idle: {
|
|
1662
|
-
readonly tags: "ready";
|
|
1663
|
-
readonly on: {
|
|
1664
|
-
readonly sync: {
|
|
1665
|
-
readonly target: "pending";
|
|
1666
|
-
};
|
|
1667
|
-
};
|
|
1668
|
-
};
|
|
1669
|
-
readonly paused: {
|
|
1670
|
-
readonly tags: "pending";
|
|
1671
|
-
readonly on: {
|
|
1672
|
-
readonly sync: {
|
|
1673
|
-
readonly target: "pending";
|
|
1674
|
-
};
|
|
1675
|
-
};
|
|
1676
|
-
};
|
|
1677
|
-
readonly pending: {
|
|
1678
|
-
readonly tags: "pending";
|
|
1679
|
-
readonly on: {
|
|
1680
|
-
readonly sync: {
|
|
1681
|
-
readonly target: "pending";
|
|
1682
|
-
readonly reenter: true;
|
|
1683
|
-
};
|
|
1684
|
-
readonly cancel: {
|
|
1685
|
-
readonly target: "paused";
|
|
1686
|
-
};
|
|
1687
|
-
};
|
|
1688
|
-
readonly after: {
|
|
1689
|
-
readonly timeout: readonly [{
|
|
1690
|
-
readonly guard: "same view";
|
|
1691
|
-
readonly actions: {
|
|
1692
|
-
readonly type: "trigger:OnChange";
|
|
1693
|
-
readonly params: ({ context }: {
|
|
1694
|
-
context: Readonly< Input>;
|
|
1695
|
-
event: SyncLayoutEvents;
|
|
1696
|
-
}) => {
|
|
1697
|
-
change: ViewChange.SaveManualLayout;
|
|
1698
|
-
};
|
|
1699
|
-
};
|
|
1700
|
-
readonly target: "synced";
|
|
1701
|
-
}, {
|
|
1702
|
-
readonly target: "stopped";
|
|
1703
|
-
}];
|
|
1704
|
-
};
|
|
1705
|
-
};
|
|
1706
|
-
readonly synced: {
|
|
1707
|
-
readonly tags: "ready";
|
|
1708
|
-
readonly on: {
|
|
1709
|
-
readonly sync: {
|
|
1710
|
-
readonly target: "pending";
|
|
1711
|
-
};
|
|
1712
|
-
};
|
|
1713
|
-
};
|
|
1714
|
-
readonly stopped: {
|
|
1715
|
-
readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
|
|
1716
|
-
readonly type: "final";
|
|
1717
|
-
};
|
|
1718
|
-
};
|
|
1719
|
-
readonly on: {
|
|
1720
|
-
readonly synced: {
|
|
1721
|
-
readonly target: ".synced";
|
|
1722
|
-
};
|
|
1723
|
-
readonly stop: {
|
|
1724
|
-
readonly target: ".stopped";
|
|
1725
|
-
};
|
|
1726
|
-
};
|
|
1727
|
-
}>>;
|
|
1651
|
+
syncLayoutActorRef: null;
|
|
1728
1652
|
activeWalkthrough: null;
|
|
1729
1653
|
view: DiagramView;
|
|
1730
|
-
xynodes: Types.Node[];
|
|
1731
|
-
xyedges: Types.Edge[];
|
|
1732
1654
|
xystore: XYStoreApi;
|
|
1733
1655
|
zoomable: boolean;
|
|
1734
1656
|
pannable: boolean;
|
|
1735
1657
|
fitViewPadding: number;
|
|
1658
|
+
nodesSelectable: boolean;
|
|
1736
1659
|
};
|
|
1737
1660
|
readonly states: {
|
|
1738
1661
|
readonly initializing: {
|
|
1739
1662
|
readonly on: {
|
|
1740
1663
|
readonly 'xyflow.init': {
|
|
1741
|
-
readonly actions:
|
|
1664
|
+
readonly actions: ActionFunction<Context, {
|
|
1742
1665
|
type: "xyflow.init";
|
|
1743
1666
|
instance: ReactFlowInstance<Types.Node, Types.Edge>;
|
|
1744
1667
|
}, Events, undefined, Values<{
|
|
@@ -1994,9 +1917,15 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
1994
1917
|
}>;
|
|
1995
1918
|
id: "overlays";
|
|
1996
1919
|
};
|
|
1997
|
-
}>, never, never, never, never
|
|
1998
|
-
|
|
1999
|
-
|
|
1920
|
+
}>, never, never, never, never>;
|
|
1921
|
+
readonly target: "isReady";
|
|
1922
|
+
};
|
|
1923
|
+
readonly 'update.view': {
|
|
1924
|
+
readonly actions: ActionFunction<Context, {
|
|
1925
|
+
type: "update.view";
|
|
1926
|
+
view: DiagramView;
|
|
1927
|
+
xynodes: Types.Node[];
|
|
1928
|
+
xyedges: Types.Edge[];
|
|
2000
1929
|
}, Events, undefined, Values<{
|
|
2001
1930
|
syncManualLayoutActorLogic: {
|
|
2002
1931
|
src: "syncManualLayoutActorLogic";
|
|
@@ -2250,150 +2179,277 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
2250
2179
|
}>;
|
|
2251
2180
|
id: "overlays";
|
|
2252
2181
|
};
|
|
2253
|
-
}>,
|
|
2254
|
-
|
|
2255
|
-
|
|
2182
|
+
}>, never, never, never, never>;
|
|
2183
|
+
readonly target: "isReady";
|
|
2184
|
+
};
|
|
2185
|
+
};
|
|
2186
|
+
};
|
|
2187
|
+
readonly isReady: {
|
|
2188
|
+
readonly always: readonly [{
|
|
2189
|
+
readonly guard: "isReady";
|
|
2190
|
+
readonly actions: readonly [{
|
|
2191
|
+
readonly type: "xyflow:fitDiagram";
|
|
2192
|
+
readonly params: {
|
|
2193
|
+
readonly duration: 0;
|
|
2194
|
+
};
|
|
2195
|
+
}, "startSyncLayout", ActionFunction<Context, Events, Events, undefined, Values<{
|
|
2196
|
+
syncManualLayoutActorLogic: {
|
|
2197
|
+
src: "syncManualLayoutActorLogic";
|
|
2198
|
+
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
2199
|
+
type: "trigger:OnChange";
|
|
2256
2200
|
params: {
|
|
2257
|
-
|
|
2201
|
+
change: ViewChange;
|
|
2258
2202
|
};
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2203
|
+
}, {
|
|
2204
|
+
type: "same view";
|
|
2205
|
+
params: unknown;
|
|
2206
|
+
}, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
2207
|
+
readonly initial: "idle";
|
|
2208
|
+
readonly context: ({ input }: {
|
|
2209
|
+
spawn: {
|
|
2210
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
2211
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
2212
|
+
id?: never;
|
|
2213
|
+
systemId?: string;
|
|
2214
|
+
input?: InputFrom<TLogic>;
|
|
2215
|
+
syncSnapshot?: boolean;
|
|
2216
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
2217
|
+
};
|
|
2218
|
+
input: Input;
|
|
2219
|
+
self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
|
|
2220
|
+
}) => {
|
|
2221
|
+
parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
|
|
2222
|
+
viewId: ViewId;
|
|
2264
2223
|
};
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2224
|
+
readonly states: {
|
|
2225
|
+
readonly idle: {
|
|
2226
|
+
readonly tags: "ready";
|
|
2227
|
+
readonly on: {
|
|
2228
|
+
readonly sync: {
|
|
2229
|
+
readonly target: "pending";
|
|
2230
|
+
};
|
|
2231
|
+
};
|
|
2232
|
+
};
|
|
2233
|
+
readonly paused: {
|
|
2234
|
+
readonly tags: "pending";
|
|
2235
|
+
readonly on: {
|
|
2236
|
+
readonly sync: {
|
|
2237
|
+
readonly target: "pending";
|
|
2238
|
+
};
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
readonly pending: {
|
|
2242
|
+
readonly tags: "pending";
|
|
2243
|
+
readonly on: {
|
|
2244
|
+
readonly sync: {
|
|
2245
|
+
readonly target: "pending";
|
|
2246
|
+
readonly reenter: true;
|
|
2247
|
+
};
|
|
2248
|
+
readonly cancel: {
|
|
2249
|
+
readonly target: "paused";
|
|
2250
|
+
};
|
|
2251
|
+
};
|
|
2252
|
+
readonly after: {
|
|
2253
|
+
readonly timeout: readonly [{
|
|
2254
|
+
readonly guard: "same view";
|
|
2255
|
+
readonly actions: {
|
|
2256
|
+
readonly type: "trigger:OnChange";
|
|
2257
|
+
readonly params: ({ context }: {
|
|
2258
|
+
context: Readonly< Input>;
|
|
2259
|
+
event: SyncLayoutEvents;
|
|
2260
|
+
}) => {
|
|
2261
|
+
change: ViewChange.SaveManualLayout;
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
readonly target: "synced";
|
|
2265
|
+
}, {
|
|
2266
|
+
readonly target: "stopped";
|
|
2267
|
+
}];
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
readonly synced: {
|
|
2271
|
+
readonly tags: "ready";
|
|
2272
|
+
readonly on: {
|
|
2273
|
+
readonly sync: {
|
|
2274
|
+
readonly target: "pending";
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
readonly stopped: {
|
|
2279
|
+
readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
|
|
2280
|
+
readonly type: "final";
|
|
2281
|
+
};
|
|
2270
2282
|
};
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2283
|
+
readonly on: {
|
|
2284
|
+
readonly synced: {
|
|
2285
|
+
readonly target: ".synced";
|
|
2286
|
+
};
|
|
2287
|
+
readonly stop: {
|
|
2288
|
+
readonly target: ".stopped";
|
|
2289
|
+
};
|
|
2276
2290
|
};
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2291
|
+
}>;
|
|
2292
|
+
id: "syncLayout";
|
|
2293
|
+
};
|
|
2294
|
+
hotkeyActorLogic: {
|
|
2295
|
+
src: "hotkeyActorLogic";
|
|
2296
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
2297
|
+
id: "hotkey";
|
|
2298
|
+
};
|
|
2299
|
+
overlaysActorLogic: {
|
|
2300
|
+
src: "overlaysActorLogic";
|
|
2301
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
2302
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
2303
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
2304
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
2305
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
2306
|
+
}, Values<{
|
|
2307
|
+
elementDetails: {
|
|
2308
|
+
src: "elementDetails";
|
|
2309
|
+
logic: ElementDetailsLogic;
|
|
2310
|
+
id: `elementDetails-${number}`;
|
|
2311
|
+
};
|
|
2312
|
+
relationshipsBrowser: {
|
|
2313
|
+
src: "relationshipsBrowser";
|
|
2314
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
2315
|
+
id: `relationshipsBrowser-${number}`;
|
|
2316
|
+
};
|
|
2317
|
+
relationshipDetails: {
|
|
2318
|
+
src: "relationshipDetails";
|
|
2319
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
2320
|
+
id: `relationshipDetails-${number}`;
|
|
2321
|
+
};
|
|
2322
|
+
hotkey: {
|
|
2323
|
+
src: "hotkey";
|
|
2324
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
2325
|
+
id: "hotkey";
|
|
2326
|
+
};
|
|
2327
|
+
}>, Values<{
|
|
2328
|
+
closeLastOverlay: {
|
|
2329
|
+
type: "closeLastOverlay";
|
|
2330
|
+
params: NonReducibleUnknown;
|
|
2331
|
+
};
|
|
2332
|
+
closeSpecificOverlay: {
|
|
2333
|
+
type: "closeSpecificOverlay";
|
|
2334
|
+
params: {
|
|
2335
|
+
actorId: string;
|
|
2336
|
+
};
|
|
2293
2337
|
};
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
params: {
|
|
2298
|
-
mode: AlignmentMode;
|
|
2338
|
+
closeAllOverlays: {
|
|
2339
|
+
type: "closeAllOverlays";
|
|
2340
|
+
params: NonReducibleUnknown;
|
|
2299
2341
|
};
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
params: {
|
|
2304
|
-
viewId: ViewId;
|
|
2342
|
+
openElementDetails: {
|
|
2343
|
+
type: "openElementDetails";
|
|
2344
|
+
params: NonReducibleUnknown;
|
|
2305
2345
|
};
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
params: OpenSourceParams;
|
|
2310
|
-
};
|
|
2311
|
-
"assign lastClickedNode": {
|
|
2312
|
-
type: "assign lastClickedNode";
|
|
2313
|
-
params: NonReducibleUnknown;
|
|
2314
|
-
};
|
|
2315
|
-
"open source of focused or last clicked node": {
|
|
2316
|
-
type: "open source of focused or last clicked node";
|
|
2317
|
-
params: NonReducibleUnknown;
|
|
2318
|
-
};
|
|
2319
|
-
"xyflow:fitFocusedBounds": {
|
|
2320
|
-
type: "xyflow:fitFocusedBounds";
|
|
2321
|
-
params: unknown;
|
|
2322
|
-
};
|
|
2323
|
-
"xyflow:setViewportCenter": {
|
|
2324
|
-
type: "xyflow:setViewportCenter";
|
|
2325
|
-
params: {
|
|
2326
|
-
x: number;
|
|
2327
|
-
y: number;
|
|
2346
|
+
openRelationshipDetails: {
|
|
2347
|
+
type: "openRelationshipDetails";
|
|
2348
|
+
params: NonReducibleUnknown;
|
|
2328
2349
|
};
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
params: {
|
|
2333
|
-
viewport: Viewport;
|
|
2334
|
-
duration?: number;
|
|
2350
|
+
openRelationshipsBrowser: {
|
|
2351
|
+
type: "openRelationshipsBrowser";
|
|
2352
|
+
params: NonReducibleUnknown;
|
|
2335
2353
|
};
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
params: {
|
|
2340
|
-
fromNode: NodeId;
|
|
2341
|
-
toPosition: XYPoint;
|
|
2354
|
+
listenToEsc: {
|
|
2355
|
+
type: "listenToEsc";
|
|
2356
|
+
params: NonReducibleUnknown;
|
|
2342
2357
|
};
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
}
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2358
|
+
stopListeningToEsc: {
|
|
2359
|
+
type: "stopListeningToEsc";
|
|
2360
|
+
params: NonReducibleUnknown;
|
|
2361
|
+
};
|
|
2362
|
+
}>, Values<{
|
|
2363
|
+
"has overlays?": {
|
|
2364
|
+
type: "has overlays?";
|
|
2365
|
+
params: unknown;
|
|
2366
|
+
};
|
|
2367
|
+
"close specific overlay?": {
|
|
2368
|
+
type: "close specific overlay?";
|
|
2369
|
+
params: unknown;
|
|
2370
|
+
};
|
|
2371
|
+
"last: is relationshipDetails?": {
|
|
2372
|
+
type: "last: is relationshipDetails?";
|
|
2373
|
+
params: unknown;
|
|
2374
|
+
};
|
|
2375
|
+
"last: is relationshipsBrowser?": {
|
|
2376
|
+
type: "last: is relationshipsBrowser?";
|
|
2377
|
+
params: unknown;
|
|
2378
|
+
};
|
|
2379
|
+
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
2380
|
+
readonly id: "overlays";
|
|
2381
|
+
readonly context: () => {
|
|
2382
|
+
seq: number;
|
|
2383
|
+
overlays: never[];
|
|
2384
|
+
};
|
|
2385
|
+
readonly initial: "idle";
|
|
2386
|
+
readonly on: {
|
|
2387
|
+
readonly 'open.elementDetails': {
|
|
2388
|
+
readonly actions: "openElementDetails";
|
|
2389
|
+
readonly target: ".active";
|
|
2390
|
+
readonly reenter: false;
|
|
2391
|
+
};
|
|
2392
|
+
readonly 'open.relationshipDetails': {
|
|
2393
|
+
readonly actions: "openRelationshipDetails";
|
|
2394
|
+
readonly target: ".active";
|
|
2395
|
+
readonly reenter: false;
|
|
2396
|
+
};
|
|
2397
|
+
readonly 'open.relationshipsBrowser': {
|
|
2398
|
+
readonly actions: "openRelationshipsBrowser";
|
|
2399
|
+
readonly target: ".active";
|
|
2400
|
+
readonly reenter: false;
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2403
|
+
readonly states: {
|
|
2404
|
+
readonly idle: {};
|
|
2405
|
+
readonly active: {
|
|
2406
|
+
readonly entry: "listenToEsc";
|
|
2407
|
+
readonly exit: "stopListeningToEsc";
|
|
2408
|
+
readonly on: {
|
|
2409
|
+
readonly close: readonly [{
|
|
2410
|
+
readonly guard: "close specific overlay?";
|
|
2411
|
+
readonly actions: {
|
|
2412
|
+
readonly type: "closeSpecificOverlay";
|
|
2413
|
+
readonly params: ({ event }: {
|
|
2414
|
+
context: OverlaysContext;
|
|
2415
|
+
event: {
|
|
2416
|
+
type: "close";
|
|
2417
|
+
actorId?: string | undefined;
|
|
2418
|
+
};
|
|
2419
|
+
}) => {
|
|
2420
|
+
actorId: string;
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
readonly target: "closing";
|
|
2424
|
+
}, {
|
|
2425
|
+
readonly actions: "closeLastOverlay";
|
|
2426
|
+
readonly target: "closing";
|
|
2427
|
+
}];
|
|
2428
|
+
readonly 'close.all': {
|
|
2429
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
2430
|
+
readonly target: "idle";
|
|
2431
|
+
};
|
|
2432
|
+
};
|
|
2433
|
+
};
|
|
2434
|
+
readonly closing: {
|
|
2435
|
+
readonly always: readonly [{
|
|
2436
|
+
readonly guard: "has overlays?";
|
|
2437
|
+
readonly target: "active";
|
|
2438
|
+
}, {
|
|
2439
|
+
readonly actions: "stopListeningToEsc";
|
|
2440
|
+
readonly target: "idle";
|
|
2441
|
+
}];
|
|
2442
|
+
};
|
|
2443
|
+
};
|
|
2444
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
2445
|
+
}>;
|
|
2446
|
+
id: "overlays";
|
|
2447
|
+
};
|
|
2448
|
+
}>, never, never, never, never>];
|
|
2449
|
+
readonly target: "ready";
|
|
2450
|
+
}, {
|
|
2451
|
+
readonly target: "initializing";
|
|
2452
|
+
}];
|
|
2397
2453
|
};
|
|
2398
2454
|
readonly ready: {
|
|
2399
2455
|
readonly initial: "idle";
|
|
@@ -5672,11 +5728,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
5672
5728
|
type: "updateFeatures";
|
|
5673
5729
|
params: NonReducibleUnknown;
|
|
5674
5730
|
};
|
|
5731
|
+
startSyncLayout: {
|
|
5732
|
+
type: "startSyncLayout";
|
|
5733
|
+
params: NonReducibleUnknown;
|
|
5734
|
+
};
|
|
5675
5735
|
stopSyncLayout: {
|
|
5676
5736
|
type: "stopSyncLayout";
|
|
5677
5737
|
params: NonReducibleUnknown;
|
|
5678
5738
|
};
|
|
5679
5739
|
}>, Values<{
|
|
5740
|
+
isReady: {
|
|
5741
|
+
type: "isReady";
|
|
5742
|
+
params: unknown;
|
|
5743
|
+
};
|
|
5680
5744
|
"enabled: FitView": {
|
|
5681
5745
|
type: "enabled: FitView";
|
|
5682
5746
|
params: unknown;
|
|
@@ -7883,11 +7947,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
7883
7947
|
type: "updateFeatures";
|
|
7884
7948
|
params: NonReducibleUnknown;
|
|
7885
7949
|
};
|
|
7950
|
+
startSyncLayout: {
|
|
7951
|
+
type: "startSyncLayout";
|
|
7952
|
+
params: NonReducibleUnknown;
|
|
7953
|
+
};
|
|
7886
7954
|
stopSyncLayout: {
|
|
7887
7955
|
type: "stopSyncLayout";
|
|
7888
7956
|
params: NonReducibleUnknown;
|
|
7889
7957
|
};
|
|
7890
7958
|
}>, Values<{
|
|
7959
|
+
isReady: {
|
|
7960
|
+
type: "isReady";
|
|
7961
|
+
params: unknown;
|
|
7962
|
+
};
|
|
7891
7963
|
"enabled: FitView": {
|
|
7892
7964
|
type: "enabled: FitView";
|
|
7893
7965
|
params: unknown;
|
|
@@ -8207,408 +8279,162 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
8207
8279
|
node: Types.Node;
|
|
8208
8280
|
};
|
|
8209
8281
|
};
|
|
8210
|
-
onNodeMouseLeave: {
|
|
8211
|
-
type: "onNodeMouseLeave";
|
|
8212
|
-
params: {
|
|
8213
|
-
node: Types.Node;
|
|
8214
|
-
};
|
|
8215
|
-
};
|
|
8216
|
-
onEdgeMouseEnter: {
|
|
8217
|
-
type: "onEdgeMouseEnter";
|
|
8218
|
-
params: {
|
|
8219
|
-
edge: Types.Edge;
|
|
8220
|
-
};
|
|
8221
|
-
};
|
|
8222
|
-
onEdgeMouseLeave: {
|
|
8223
|
-
type: "onEdgeMouseLeave";
|
|
8224
|
-
params: {
|
|
8225
|
-
edge: Types.Edge;
|
|
8226
|
-
};
|
|
8227
|
-
};
|
|
8228
|
-
"xyflow:fitDiagram": {
|
|
8229
|
-
type: "xyflow:fitDiagram";
|
|
8230
|
-
params: {
|
|
8231
|
-
duration?: number;
|
|
8232
|
-
bounds?: BBox;
|
|
8233
|
-
} | undefined;
|
|
8234
|
-
};
|
|
8235
|
-
closeAllOverlays: {
|
|
8236
|
-
type: "closeAllOverlays";
|
|
8237
|
-
params: NonReducibleUnknown;
|
|
8238
|
-
};
|
|
8239
|
-
"trigger:OnChange": {
|
|
8240
|
-
type: "trigger:OnChange";
|
|
8241
|
-
params: {
|
|
8242
|
-
change: ViewChange;
|
|
8243
|
-
};
|
|
8244
|
-
};
|
|
8245
|
-
"layout.align": {
|
|
8246
|
-
type: "layout.align";
|
|
8247
|
-
params: {
|
|
8248
|
-
mode: AlignmentMode;
|
|
8249
|
-
};
|
|
8250
|
-
};
|
|
8251
|
-
"trigger:NavigateTo": {
|
|
8252
|
-
type: "trigger:NavigateTo";
|
|
8253
|
-
params: {
|
|
8254
|
-
viewId: ViewId;
|
|
8255
|
-
};
|
|
8256
|
-
};
|
|
8257
|
-
"trigger:OpenSource": {
|
|
8258
|
-
type: "trigger:OpenSource";
|
|
8259
|
-
params: OpenSourceParams;
|
|
8260
|
-
};
|
|
8261
|
-
"assign lastClickedNode": {
|
|
8262
|
-
type: "assign lastClickedNode";
|
|
8263
|
-
params: NonReducibleUnknown;
|
|
8264
|
-
};
|
|
8265
|
-
"open source of focused or last clicked node": {
|
|
8266
|
-
type: "open source of focused or last clicked node";
|
|
8267
|
-
params: NonReducibleUnknown;
|
|
8268
|
-
};
|
|
8269
|
-
"xyflow:fitFocusedBounds": {
|
|
8270
|
-
type: "xyflow:fitFocusedBounds";
|
|
8271
|
-
params: unknown;
|
|
8272
|
-
};
|
|
8273
|
-
"xyflow:setViewportCenter": {
|
|
8274
|
-
type: "xyflow:setViewportCenter";
|
|
8275
|
-
params: {
|
|
8276
|
-
x: number;
|
|
8277
|
-
y: number;
|
|
8278
|
-
};
|
|
8279
|
-
};
|
|
8280
|
-
"xyflow:setViewport": {
|
|
8281
|
-
type: "xyflow:setViewport";
|
|
8282
|
-
params: {
|
|
8283
|
-
viewport: Viewport;
|
|
8284
|
-
duration?: number;
|
|
8285
|
-
};
|
|
8286
|
-
};
|
|
8287
|
-
"xyflow:alignNodeFromToAfterNavigate": {
|
|
8288
|
-
type: "xyflow:alignNodeFromToAfterNavigate";
|
|
8289
|
-
params: {
|
|
8290
|
-
fromNode: NodeId;
|
|
8291
|
-
toPosition: XYPoint;
|
|
8292
|
-
};
|
|
8293
|
-
};
|
|
8294
|
-
updateFeatures: {
|
|
8295
|
-
type: "updateFeatures";
|
|
8296
|
-
params: NonReducibleUnknown;
|
|
8297
|
-
};
|
|
8298
|
-
stopSyncLayout: {
|
|
8299
|
-
type: "stopSyncLayout";
|
|
8300
|
-
params: NonReducibleUnknown;
|
|
8301
|
-
};
|
|
8302
|
-
}>, Values<{
|
|
8303
|
-
"enabled: FitView": {
|
|
8304
|
-
type: "enabled: FitView";
|
|
8305
|
-
params: unknown;
|
|
8306
|
-
};
|
|
8307
|
-
"enabled: FocusMode": {
|
|
8308
|
-
type: "enabled: FocusMode";
|
|
8309
|
-
params: unknown;
|
|
8310
|
-
};
|
|
8311
|
-
"enabled: Readonly": {
|
|
8312
|
-
type: "enabled: Readonly";
|
|
8313
|
-
params: unknown;
|
|
8314
|
-
};
|
|
8315
|
-
"not readonly": {
|
|
8316
|
-
type: "not readonly";
|
|
8317
|
-
params: unknown;
|
|
8318
|
-
};
|
|
8319
|
-
"is dynamic view": {
|
|
8320
|
-
type: "is dynamic view";
|
|
8321
|
-
params: unknown;
|
|
8322
|
-
};
|
|
8323
|
-
"is another view": {
|
|
8324
|
-
type: "is another view";
|
|
8325
|
-
params: unknown;
|
|
8326
|
-
};
|
|
8327
|
-
"click: selected node": {
|
|
8328
|
-
type: "click: selected node";
|
|
8329
|
-
params: unknown;
|
|
8330
|
-
};
|
|
8331
|
-
"click: same node": {
|
|
8332
|
-
type: "click: same node";
|
|
8333
|
-
params: unknown;
|
|
8334
|
-
};
|
|
8335
|
-
"click: focused node": {
|
|
8336
|
-
type: "click: focused node";
|
|
8337
|
-
params: unknown;
|
|
8338
|
-
};
|
|
8339
|
-
"click: node has connections": {
|
|
8340
|
-
type: "click: node has connections";
|
|
8341
|
-
params: unknown;
|
|
8342
|
-
};
|
|
8343
|
-
}>, never, EventObject>;
|
|
8344
|
-
};
|
|
8345
|
-
};
|
|
8346
|
-
};
|
|
8347
|
-
readonly navigating: {
|
|
8348
|
-
readonly id: "navigating";
|
|
8349
|
-
readonly entry: readonly ["closeAllOverlays", "stopSyncLayout", {
|
|
8350
|
-
readonly type: "trigger:NavigateTo";
|
|
8351
|
-
readonly params: ({ context }: {
|
|
8352
|
-
context: Context;
|
|
8353
|
-
event: Events;
|
|
8354
|
-
}) => {
|
|
8355
|
-
viewId: ViewId;
|
|
8356
|
-
};
|
|
8357
|
-
}];
|
|
8358
|
-
readonly exit: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
8359
|
-
syncManualLayoutActorLogic: {
|
|
8360
|
-
src: "syncManualLayoutActorLogic";
|
|
8361
|
-
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
8362
|
-
type: "trigger:OnChange";
|
|
8363
|
-
params: {
|
|
8364
|
-
change: ViewChange;
|
|
8365
|
-
};
|
|
8366
|
-
}, {
|
|
8367
|
-
type: "same view";
|
|
8368
|
-
params: unknown;
|
|
8369
|
-
}, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
8370
|
-
readonly initial: "idle";
|
|
8371
|
-
readonly context: ({ input }: {
|
|
8372
|
-
spawn: {
|
|
8373
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
8374
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
8375
|
-
id?: never;
|
|
8376
|
-
systemId?: string;
|
|
8377
|
-
input?: InputFrom<TLogic>;
|
|
8378
|
-
syncSnapshot?: boolean;
|
|
8379
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
8380
|
-
};
|
|
8381
|
-
input: Input;
|
|
8382
|
-
self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
|
|
8383
|
-
}) => {
|
|
8384
|
-
parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
|
|
8385
|
-
viewId: ViewId;
|
|
8386
|
-
};
|
|
8387
|
-
readonly states: {
|
|
8388
|
-
readonly idle: {
|
|
8389
|
-
readonly tags: "ready";
|
|
8390
|
-
readonly on: {
|
|
8391
|
-
readonly sync: {
|
|
8392
|
-
readonly target: "pending";
|
|
8393
|
-
};
|
|
8394
|
-
};
|
|
8395
|
-
};
|
|
8396
|
-
readonly paused: {
|
|
8397
|
-
readonly tags: "pending";
|
|
8398
|
-
readonly on: {
|
|
8399
|
-
readonly sync: {
|
|
8400
|
-
readonly target: "pending";
|
|
8401
|
-
};
|
|
8402
|
-
};
|
|
8403
|
-
};
|
|
8404
|
-
readonly pending: {
|
|
8405
|
-
readonly tags: "pending";
|
|
8406
|
-
readonly on: {
|
|
8407
|
-
readonly sync: {
|
|
8408
|
-
readonly target: "pending";
|
|
8409
|
-
readonly reenter: true;
|
|
8410
|
-
};
|
|
8411
|
-
readonly cancel: {
|
|
8412
|
-
readonly target: "paused";
|
|
8413
|
-
};
|
|
8414
|
-
};
|
|
8415
|
-
readonly after: {
|
|
8416
|
-
readonly timeout: readonly [{
|
|
8417
|
-
readonly guard: "same view";
|
|
8418
|
-
readonly actions: {
|
|
8419
|
-
readonly type: "trigger:OnChange";
|
|
8420
|
-
readonly params: ({ context }: {
|
|
8421
|
-
context: Readonly< Input>;
|
|
8422
|
-
event: SyncLayoutEvents;
|
|
8423
|
-
}) => {
|
|
8424
|
-
change: ViewChange.SaveManualLayout;
|
|
8425
|
-
};
|
|
8426
|
-
};
|
|
8427
|
-
readonly target: "synced";
|
|
8428
|
-
}, {
|
|
8429
|
-
readonly target: "stopped";
|
|
8430
|
-
}];
|
|
8431
|
-
};
|
|
8432
|
-
};
|
|
8433
|
-
readonly synced: {
|
|
8434
|
-
readonly tags: "ready";
|
|
8435
|
-
readonly on: {
|
|
8436
|
-
readonly sync: {
|
|
8437
|
-
readonly target: "pending";
|
|
8438
|
-
};
|
|
8439
|
-
};
|
|
8440
|
-
};
|
|
8441
|
-
readonly stopped: {
|
|
8442
|
-
readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
|
|
8443
|
-
readonly type: "final";
|
|
8444
|
-
};
|
|
8445
|
-
};
|
|
8446
|
-
readonly on: {
|
|
8447
|
-
readonly synced: {
|
|
8448
|
-
readonly target: ".synced";
|
|
8282
|
+
onNodeMouseLeave: {
|
|
8283
|
+
type: "onNodeMouseLeave";
|
|
8284
|
+
params: {
|
|
8285
|
+
node: Types.Node;
|
|
8449
8286
|
};
|
|
8450
|
-
|
|
8451
|
-
|
|
8287
|
+
};
|
|
8288
|
+
onEdgeMouseEnter: {
|
|
8289
|
+
type: "onEdgeMouseEnter";
|
|
8290
|
+
params: {
|
|
8291
|
+
edge: Types.Edge;
|
|
8452
8292
|
};
|
|
8453
8293
|
};
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
8460
|
-
id: "hotkey";
|
|
8461
|
-
};
|
|
8462
|
-
overlaysActorLogic: {
|
|
8463
|
-
src: "overlaysActorLogic";
|
|
8464
|
-
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
8465
|
-
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
8466
|
-
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
8467
|
-
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
8468
|
-
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
8469
|
-
}, Values<{
|
|
8470
|
-
elementDetails: {
|
|
8471
|
-
src: "elementDetails";
|
|
8472
|
-
logic: ElementDetailsLogic;
|
|
8473
|
-
id: `elementDetails-${number}`;
|
|
8294
|
+
onEdgeMouseLeave: {
|
|
8295
|
+
type: "onEdgeMouseLeave";
|
|
8296
|
+
params: {
|
|
8297
|
+
edge: Types.Edge;
|
|
8298
|
+
};
|
|
8474
8299
|
};
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8300
|
+
"xyflow:fitDiagram": {
|
|
8301
|
+
type: "xyflow:fitDiagram";
|
|
8302
|
+
params: {
|
|
8303
|
+
duration?: number;
|
|
8304
|
+
bounds?: BBox;
|
|
8305
|
+
} | undefined;
|
|
8479
8306
|
};
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
id: `relationshipDetails-${number}`;
|
|
8307
|
+
closeAllOverlays: {
|
|
8308
|
+
type: "closeAllOverlays";
|
|
8309
|
+
params: NonReducibleUnknown;
|
|
8484
8310
|
};
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8311
|
+
"trigger:OnChange": {
|
|
8312
|
+
type: "trigger:OnChange";
|
|
8313
|
+
params: {
|
|
8314
|
+
change: ViewChange;
|
|
8315
|
+
};
|
|
8489
8316
|
};
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8317
|
+
"layout.align": {
|
|
8318
|
+
type: "layout.align";
|
|
8319
|
+
params: {
|
|
8320
|
+
mode: AlignmentMode;
|
|
8321
|
+
};
|
|
8494
8322
|
};
|
|
8495
|
-
|
|
8496
|
-
type: "
|
|
8323
|
+
"trigger:NavigateTo": {
|
|
8324
|
+
type: "trigger:NavigateTo";
|
|
8497
8325
|
params: {
|
|
8498
|
-
|
|
8326
|
+
viewId: ViewId;
|
|
8499
8327
|
};
|
|
8500
8328
|
};
|
|
8501
|
-
|
|
8502
|
-
type: "
|
|
8503
|
-
params:
|
|
8329
|
+
"trigger:OpenSource": {
|
|
8330
|
+
type: "trigger:OpenSource";
|
|
8331
|
+
params: OpenSourceParams;
|
|
8504
8332
|
};
|
|
8505
|
-
|
|
8506
|
-
type: "
|
|
8333
|
+
"assign lastClickedNode": {
|
|
8334
|
+
type: "assign lastClickedNode";
|
|
8507
8335
|
params: NonReducibleUnknown;
|
|
8508
8336
|
};
|
|
8509
|
-
|
|
8510
|
-
type: "
|
|
8337
|
+
"open source of focused or last clicked node": {
|
|
8338
|
+
type: "open source of focused or last clicked node";
|
|
8511
8339
|
params: NonReducibleUnknown;
|
|
8512
8340
|
};
|
|
8513
|
-
|
|
8514
|
-
type: "
|
|
8341
|
+
"xyflow:fitFocusedBounds": {
|
|
8342
|
+
type: "xyflow:fitFocusedBounds";
|
|
8343
|
+
params: unknown;
|
|
8344
|
+
};
|
|
8345
|
+
"xyflow:setViewportCenter": {
|
|
8346
|
+
type: "xyflow:setViewportCenter";
|
|
8347
|
+
params: {
|
|
8348
|
+
x: number;
|
|
8349
|
+
y: number;
|
|
8350
|
+
};
|
|
8351
|
+
};
|
|
8352
|
+
"xyflow:setViewport": {
|
|
8353
|
+
type: "xyflow:setViewport";
|
|
8354
|
+
params: {
|
|
8355
|
+
viewport: Viewport;
|
|
8356
|
+
duration?: number;
|
|
8357
|
+
};
|
|
8358
|
+
};
|
|
8359
|
+
"xyflow:alignNodeFromToAfterNavigate": {
|
|
8360
|
+
type: "xyflow:alignNodeFromToAfterNavigate";
|
|
8361
|
+
params: {
|
|
8362
|
+
fromNode: NodeId;
|
|
8363
|
+
toPosition: XYPoint;
|
|
8364
|
+
};
|
|
8365
|
+
};
|
|
8366
|
+
updateFeatures: {
|
|
8367
|
+
type: "updateFeatures";
|
|
8515
8368
|
params: NonReducibleUnknown;
|
|
8516
8369
|
};
|
|
8517
|
-
|
|
8518
|
-
type: "
|
|
8370
|
+
startSyncLayout: {
|
|
8371
|
+
type: "startSyncLayout";
|
|
8519
8372
|
params: NonReducibleUnknown;
|
|
8520
8373
|
};
|
|
8521
|
-
|
|
8522
|
-
type: "
|
|
8374
|
+
stopSyncLayout: {
|
|
8375
|
+
type: "stopSyncLayout";
|
|
8523
8376
|
params: NonReducibleUnknown;
|
|
8524
8377
|
};
|
|
8525
8378
|
}>, Values<{
|
|
8526
|
-
|
|
8527
|
-
type: "
|
|
8379
|
+
isReady: {
|
|
8380
|
+
type: "isReady";
|
|
8528
8381
|
params: unknown;
|
|
8529
8382
|
};
|
|
8530
|
-
"
|
|
8531
|
-
type: "
|
|
8383
|
+
"enabled: FitView": {
|
|
8384
|
+
type: "enabled: FitView";
|
|
8532
8385
|
params: unknown;
|
|
8533
8386
|
};
|
|
8534
|
-
"
|
|
8535
|
-
type: "
|
|
8387
|
+
"enabled: FocusMode": {
|
|
8388
|
+
type: "enabled: FocusMode";
|
|
8536
8389
|
params: unknown;
|
|
8537
8390
|
};
|
|
8538
|
-
"
|
|
8539
|
-
type: "
|
|
8391
|
+
"enabled: Readonly": {
|
|
8392
|
+
type: "enabled: Readonly";
|
|
8540
8393
|
params: unknown;
|
|
8541
8394
|
};
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
seq: number;
|
|
8546
|
-
overlays: never[];
|
|
8395
|
+
"not readonly": {
|
|
8396
|
+
type: "not readonly";
|
|
8397
|
+
params: unknown;
|
|
8547
8398
|
};
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
readonly actions: "openElementDetails";
|
|
8552
|
-
readonly target: ".active";
|
|
8553
|
-
readonly reenter: false;
|
|
8554
|
-
};
|
|
8555
|
-
readonly 'open.relationshipDetails': {
|
|
8556
|
-
readonly actions: "openRelationshipDetails";
|
|
8557
|
-
readonly target: ".active";
|
|
8558
|
-
readonly reenter: false;
|
|
8559
|
-
};
|
|
8560
|
-
readonly 'open.relationshipsBrowser': {
|
|
8561
|
-
readonly actions: "openRelationshipsBrowser";
|
|
8562
|
-
readonly target: ".active";
|
|
8563
|
-
readonly reenter: false;
|
|
8564
|
-
};
|
|
8399
|
+
"is dynamic view": {
|
|
8400
|
+
type: "is dynamic view";
|
|
8401
|
+
params: unknown;
|
|
8565
8402
|
};
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
readonly entry: "listenToEsc";
|
|
8570
|
-
readonly exit: "stopListeningToEsc";
|
|
8571
|
-
readonly on: {
|
|
8572
|
-
readonly close: readonly [{
|
|
8573
|
-
readonly guard: "close specific overlay?";
|
|
8574
|
-
readonly actions: {
|
|
8575
|
-
readonly type: "closeSpecificOverlay";
|
|
8576
|
-
readonly params: ({ event }: {
|
|
8577
|
-
context: OverlaysContext;
|
|
8578
|
-
event: {
|
|
8579
|
-
type: "close";
|
|
8580
|
-
actorId?: string | undefined;
|
|
8581
|
-
};
|
|
8582
|
-
}) => {
|
|
8583
|
-
actorId: string;
|
|
8584
|
-
};
|
|
8585
|
-
};
|
|
8586
|
-
readonly target: "closing";
|
|
8587
|
-
}, {
|
|
8588
|
-
readonly actions: "closeLastOverlay";
|
|
8589
|
-
readonly target: "closing";
|
|
8590
|
-
}];
|
|
8591
|
-
readonly 'close.all': {
|
|
8592
|
-
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
8593
|
-
readonly target: "idle";
|
|
8594
|
-
};
|
|
8595
|
-
};
|
|
8596
|
-
};
|
|
8597
|
-
readonly closing: {
|
|
8598
|
-
readonly always: readonly [{
|
|
8599
|
-
readonly guard: "has overlays?";
|
|
8600
|
-
readonly target: "active";
|
|
8601
|
-
}, {
|
|
8602
|
-
readonly actions: "stopListeningToEsc";
|
|
8603
|
-
readonly target: "idle";
|
|
8604
|
-
}];
|
|
8605
|
-
};
|
|
8403
|
+
"is another view": {
|
|
8404
|
+
type: "is another view";
|
|
8405
|
+
params: unknown;
|
|
8606
8406
|
};
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8407
|
+
"click: selected node": {
|
|
8408
|
+
type: "click: selected node";
|
|
8409
|
+
params: unknown;
|
|
8410
|
+
};
|
|
8411
|
+
"click: same node": {
|
|
8412
|
+
type: "click: same node";
|
|
8413
|
+
params: unknown;
|
|
8414
|
+
};
|
|
8415
|
+
"click: focused node": {
|
|
8416
|
+
type: "click: focused node";
|
|
8417
|
+
params: unknown;
|
|
8418
|
+
};
|
|
8419
|
+
"click: node has connections": {
|
|
8420
|
+
type: "click: node has connections";
|
|
8421
|
+
params: unknown;
|
|
8422
|
+
};
|
|
8423
|
+
}>, never, EventObject>;
|
|
8610
8424
|
};
|
|
8611
|
-
}
|
|
8425
|
+
};
|
|
8426
|
+
};
|
|
8427
|
+
readonly navigating: {
|
|
8428
|
+
readonly id: "navigating";
|
|
8429
|
+
readonly entry: readonly ["closeAllOverlays", "stopSyncLayout", {
|
|
8430
|
+
readonly type: "trigger:NavigateTo";
|
|
8431
|
+
readonly params: ({ context }: {
|
|
8432
|
+
context: Context;
|
|
8433
|
+
event: Events;
|
|
8434
|
+
}) => {
|
|
8435
|
+
viewId: ViewId;
|
|
8436
|
+
};
|
|
8437
|
+
}];
|
|
8612
8438
|
readonly on: {
|
|
8613
8439
|
readonly 'update.view': {
|
|
8614
8440
|
readonly actions: ActionFunction<Context, {
|
|
@@ -8964,11 +8790,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
8964
8790
|
type: "updateFeatures";
|
|
8965
8791
|
params: NonReducibleUnknown;
|
|
8966
8792
|
};
|
|
8793
|
+
startSyncLayout: {
|
|
8794
|
+
type: "startSyncLayout";
|
|
8795
|
+
params: NonReducibleUnknown;
|
|
8796
|
+
};
|
|
8967
8797
|
stopSyncLayout: {
|
|
8968
8798
|
type: "stopSyncLayout";
|
|
8969
8799
|
params: NonReducibleUnknown;
|
|
8970
8800
|
};
|
|
8971
8801
|
}>, Values<{
|
|
8802
|
+
isReady: {
|
|
8803
|
+
type: "isReady";
|
|
8804
|
+
params: unknown;
|
|
8805
|
+
};
|
|
8972
8806
|
"enabled: FitView": {
|
|
8973
8807
|
type: "enabled: FitView";
|
|
8974
8808
|
params: unknown;
|
|
@@ -10931,11 +10765,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
10931
10765
|
type: "updateFeatures";
|
|
10932
10766
|
params: NonReducibleUnknown;
|
|
10933
10767
|
};
|
|
10768
|
+
startSyncLayout: {
|
|
10769
|
+
type: "startSyncLayout";
|
|
10770
|
+
params: NonReducibleUnknown;
|
|
10771
|
+
};
|
|
10934
10772
|
stopSyncLayout: {
|
|
10935
10773
|
type: "stopSyncLayout";
|
|
10936
10774
|
params: NonReducibleUnknown;
|
|
10937
10775
|
};
|
|
10938
10776
|
}>, Values<{
|
|
10777
|
+
isReady: {
|
|
10778
|
+
type: "isReady";
|
|
10779
|
+
params: unknown;
|
|
10780
|
+
};
|
|
10939
10781
|
"enabled: FitView": {
|
|
10940
10782
|
type: "enabled: FitView";
|
|
10941
10783
|
params: unknown;
|
|
@@ -10981,7 +10823,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
10981
10823
|
readonly 'update.inputs': {
|
|
10982
10824
|
readonly actions: ActionFunction<Context, {
|
|
10983
10825
|
type: "update.inputs";
|
|
10984
|
-
inputs: Partial<Omit<Input, "view">>;
|
|
10826
|
+
inputs: Partial<Omit<Input, "view" | "xystore">>;
|
|
10985
10827
|
}, Events, undefined, Values<{
|
|
10986
10828
|
syncManualLayoutActorLogic: {
|
|
10987
10829
|
src: "syncManualLayoutActorLogic";
|