You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Triggers a request for layout on the client. The handler of this request can collect client-side model information, such as viewport data, before sending a `LayoutOperation` to the server.
1062
+
1063
+
<detailsopen><summaryCode></summary>
1064
+
1065
+
```typescript
1066
+
interfaceTriggerLayoutActionextendsAction {
1067
+
kind:'triggerLayout';
1068
+
/**
1069
+
* Custom arguments that may be interpreted by the client.
1070
+
*/
1071
+
args?:Args;
1072
+
}
1073
+
```
1074
+
1075
+
</details>
1076
+
1077
+
#### 2.6.4. LayoutOperation
1060
1078
1061
1079
Request a layout of the diagram or selected elements from the server.
* The identifiers of the elements that should be layouted, will default to the root element if not defined.
1074
1092
*/
1075
1093
elementIds?:string[];
1094
+
1095
+
/**
1096
+
* The current bounds of the canvas at time of layout.
1097
+
*/
1098
+
canvasBounds?:Bounds;
1099
+
1100
+
/**
1101
+
* The current viewport information at time of layout.
1102
+
*/
1103
+
viewport?:Viewport;
1076
1104
}
1077
1105
```
1078
1106
@@ -2426,9 +2454,9 @@ interface RedoAction {
2426
2454
2427
2455
A context is a dedicated space in the client that is identified via a unique id. Context actions are a specific set of actions that are available in that context id. At the moment we support three such contexts:
2428
2456
2429
-
-The Context Menu with the context id `context-menu`
2430
-
-The Command Palette with the context id `command-palette`
2431
-
-The Tool Palette with the context id `tool-palette`
2457
+
- The Context Menu with the context id `context-menu`
2458
+
- The Command Palette with the context id `command-palette`
2459
+
- The Tool Palette with the context id `tool-palette`
2432
2460
2433
2461
#### 2.19.1. RequestContextActions
2434
2462
@@ -2523,9 +2551,9 @@ interface Tool {
2523
2551
2524
2552
By default, the tool palette in GLSP includes the following tools in the palette:
2525
2553
2526
-
-Default Tool (Selection Tool)
2527
-
-Mouse Delete Tool
2528
-
-Validation Tool
2554
+
- Default Tool (Selection Tool)
2555
+
- Mouse Delete Tool
2556
+
- Validation Tool
2529
2557
2530
2558
The supported actions of the tool palette come from the server. If server actions are to be used, the client needs to send a `RequestContextActions` action with context id `tool-palette` and handle the returned actions from the `SetContextActions` response accordingly, e.g., rendering them in the tool palette. A user may click on any of the entries in the tool palette to trigger the corresponding action.
0 commit comments