@eclipse-glsp/sprotty 2.1.0-next.301 → 2.1.0-next.302

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/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2023 STMicroelectronics and others.
2
+ * Copyright (c) 2023 EclipseSource and others.
3
3
  *
4
4
  * This program and the accompanying materials are made available under the
5
5
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -13,310 +13,7 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
-
17
- /**
18
- * Selective custom reexport of the sprotty API. Also provides augmentations/adaptions
19
- * of certain type definitions for GLSP. Using this custom reexport allows us to gracefully
20
- * update to newer sprotty versions without hard API breaks.
21
- */
22
-
23
- /**
24
- * @eclipse-glsp/protocol
25
- */
26
- export * from '@eclipse-glsp/protocol';
27
-
28
16
  export * from './action-override';
29
-
30
- /*
31
- * sprotty
32
- */
33
- // ------------------ Base ------------------
34
-
35
- // Exclude definition for labeled actions
36
- // export * from 'sprotty/lib/base/actions/action';
37
- export * from 'sprotty/lib/base/actions/action-dispatcher';
38
- export {
39
- ActionHandlerRegistration,
40
- ActionHandlerRegistry,
41
- IActionHandlerInitializer,
42
- configureActionHandler,
43
- onAction
44
- } from 'sprotty/lib/base/actions/action-handler';
45
- export * from 'sprotty/lib/base/actions/diagram-locker';
46
-
47
- export * from 'sprotty/lib/base/animations/animation';
48
- export * from 'sprotty/lib/base/animations/animation-frame-syncer';
49
- export * from 'sprotty/lib/base/animations/easing';
50
-
51
- export * from 'sprotty/lib/base/commands/command';
52
- export * from 'sprotty/lib/base/commands/command-registration';
53
- export * from 'sprotty/lib/base/commands/command-stack';
54
- export * from 'sprotty/lib/base/commands/command-stack-options';
55
-
56
- export * from 'sprotty/lib/base/features/initialize-canvas';
57
- export * from 'sprotty/lib/base/features/set-model';
58
- // Exclude SModelElementImpl as it as exported with augmentation module
59
- export {
60
- FeatureSet,
61
- SChildElementImpl as GChildElement,
62
- SModelElementImpl as GModelElement,
63
- SModelRootImpl as GModelRoot,
64
- SParentElementImpl as GParentElement,
65
- IModelIndex,
66
- ModelIndexImpl,
67
- createRandomId,
68
- isParent
69
- } from 'sprotty/lib/base/model/smodel';
70
-
71
- export {
72
- CustomFeatures,
73
- EMPTY_ROOT,
74
- SModelElementConstructor as GModelElementConstructor,
75
- SModelElementRegistration as GModelElementRegistration,
76
- SModelFactory as GModelFactory,
77
- IModelFactory,
78
- // exported without alias we extend it in glsp-client to `GModelRegistry`
79
- SModelRegistry,
80
- createFeatureSet
81
- } from 'sprotty/lib/base/model/smodel-factory';
82
- export * from 'sprotty/lib/base/model/smodel-utils';
83
-
84
- export * from 'sprotty/lib/base/ui-extensions/ui-extension';
85
- export * from 'sprotty/lib/base/ui-extensions/ui-extension-registry';
86
-
87
- export * from 'sprotty/lib/base/views/dom-helper';
88
- export { KeyTool } from 'sprotty/lib/base/views/key-tool';
89
- export { MouseEventKind, MousePositionTracker, MouseTool, PopupMouseTool } from 'sprotty/lib/base/views/mouse-tool';
90
- export * from 'sprotty/lib/base/views/thunk-view';
91
- export * from 'sprotty/lib/base/views/view';
92
- export * from 'sprotty/lib/base/views/viewer';
93
- export * from 'sprotty/lib/base/views/viewer-cache';
94
- export * from 'sprotty/lib/base/views/viewer-options';
95
- export * from 'sprotty/lib/base/views/vnode-postprocessor';
96
- export * from 'sprotty/lib/base/views/vnode-utils';
97
-
98
- // Exclude sprotty types and export augmented GLSP types instead
99
- // export * from 'sprotty/lib/base/types';
100
- export * from './types';
101
-
102
- // ------------------ Features ------------------
103
- export * from 'sprotty/lib/features/bounds/abstract-layout';
104
- export * from 'sprotty/lib/features/bounds/bounds-manipulation';
105
- export * from 'sprotty/lib/features/bounds/hbox-layout';
106
- export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
107
- export * from 'sprotty/lib/features/bounds/layout';
108
- export * from 'sprotty/lib/features/bounds/layout-options';
109
- export {
110
- Alignable,
111
- BoundsAware,
112
- SShapeElementImpl as GShapeElement,
113
- LayoutContainer,
114
- LayoutableChild,
115
- ModelLayoutOptions,
116
- boundsFeature,
117
- findChildrenAtPosition,
118
- getAbsoluteBounds,
119
- getAbsoluteClientBounds,
120
- isAlignable,
121
- isBoundsAware,
122
- isLayoutContainer,
123
- isLayoutableChild,
124
- isSizeable,
125
- layoutContainerFeature,
126
- layoutableChildFeature
127
- } from 'sprotty/lib/features/bounds/model';
128
- // exclude stack layout as its not supported in GLSP
129
- // export * from 'sprotty/lib/features/bounds/stack-layout';
130
- export * from 'sprotty/lib/features/bounds/vbox-layout';
131
- export * from 'sprotty/lib/features/bounds/views';
132
-
133
- export { ButtonHandlerRegistry, IButtonHandlerRegistration, configureButtonHandler } from 'sprotty/lib/features/button/button-handler';
134
- export { SButtonImpl as GButton, SButtonSchema as GButtonSchema } from 'sprotty/lib/features/button/model';
135
-
136
- export {
137
- CommandPaletteActionProviderRegistry,
138
- RevealNamedElementActionProvider
139
- } from 'sprotty/lib/features/command-palette/action-providers';
140
- export * from 'sprotty/lib/features/command-palette/command-palette';
141
-
142
- // Exclude menu item. Aready provided by glsp-protocol
143
- export { Anchor, IContextMenuService, IContextMenuServiceProvider } from 'sprotty/lib/features/context-menu/context-menu-service';
144
- export { ContextMenuProviderRegistry, DeleteContextMenuItemProvider } from 'sprotty/lib/features/context-menu/menu-providers';
145
- export * from 'sprotty/lib/features/context-menu/mouse-listener';
146
-
147
- export * from 'sprotty/lib/features/edge-layout/di.config';
148
- export * from 'sprotty/lib/features/edge-layout/edge-layout';
149
- export * from 'sprotty/lib/features/edge-layout/model';
150
- // Exclude client-side creation features (not supported in GLSP)
151
- // export * from 'sprotty/lib/features/edit/create';
152
- // export * from 'sprotty/lib/features/edit/create-on-drag';
153
- export * from 'sprotty/lib/features/edit/delete';
154
- export * from 'sprotty/lib/features/edit/edit-label';
155
- export * from 'sprotty/lib/features/edit/edit-label-ui';
156
- export * from 'sprotty/lib/features/edit/edit-routing';
157
- export * from 'sprotty/lib/features/edit/model';
158
- // export * from 'sprotty/lib/features/edit/reconnect';
159
-
160
- export * from 'sprotty/lib/features/expand/expand';
161
- export * from 'sprotty/lib/features/expand/model';
162
- export * from 'sprotty/lib/features/expand/views';
163
- // Exclude RequestExportSvgAction. Already provided by glsp-protocol
164
- export { ExportSvgCommand, ExportSvgKeyListener, ExportSvgPostprocessor } from 'sprotty/lib/features/export/export';
165
- export * from 'sprotty/lib/features/export/model';
166
- // Exclude ExportSvgAction. Already provided by glsp-protocol
167
- export { SvgExporter } from 'sprotty/lib/features/export/svg-exporter';
168
-
169
- export * from 'sprotty/lib/features/fade/fade';
170
- export * from 'sprotty/lib/features/fade/model';
171
-
172
- export * from 'sprotty/lib/features/hover/hover';
173
- export * from 'sprotty/lib/features/hover/model';
174
- export * from 'sprotty/lib/features/hover/popup-position-updater';
175
-
176
- // Alias SModel types
177
- export * from 'sprotty/lib/features/decoration/decoration-placer';
178
- export {
179
- Decoration,
180
- SDecoration as GDecoration,
181
- SIssue as GIssue,
182
- SIssueSeverity as GIssueSeverity,
183
- // Export as is, we extend it glsp-client to `GIssueMarker`
184
- SIssueMarker
185
- } from 'sprotty/lib/features/decoration/model';
186
- export * from 'sprotty/lib/features/decoration/views';
187
-
188
- export * from 'sprotty/lib/features/edge-intersection/intersection-finder';
189
- export * from 'sprotty/lib/features/edge-intersection/sweepline';
190
-
191
- export * from 'sprotty/lib/features/move/model';
192
- export * from 'sprotty/lib/features/move/move';
193
- export * from 'sprotty/lib/features/move/snap';
194
-
195
- export * from 'sprotty/lib/features/nameable/model';
196
-
197
- export * from 'sprotty/lib/features/open/model';
198
- export * from 'sprotty/lib/features/open/open';
199
-
200
- export * from 'sprotty/lib/features/projection/model';
201
- export * from 'sprotty/lib/features/projection/views';
202
-
203
- export * from 'sprotty/lib/features/routing/abstract-edge-router';
204
- export * from 'sprotty/lib/features/routing/anchor';
205
- export * from 'sprotty/lib/features/routing/bezier-anchors';
206
- export * from 'sprotty/lib/features/routing/bezier-edge-router';
207
- export * from 'sprotty/lib/features/routing/manhattan-anchors';
208
- export * from 'sprotty/lib/features/routing/manhattan-edge-router';
209
- // Alias SModel types
210
- export {
211
- Connectable,
212
- SConnectableElementImpl as GConnectableElement,
213
- SDanglingAnchorImpl as GDanglingAnchor,
214
- SRoutableElementImpl as GRoutableElement,
215
- SRoutingHandleImpl as GRoutingHandle,
216
- RoutingHandleKind,
217
- connectableFeature,
218
- edgeInProgressID,
219
- edgeInProgressTargetHandleID,
220
- getAbsoluteRouteBounds,
221
- getRouteBounds,
222
- isConnectable
223
- } from 'sprotty/lib/features/routing/model';
224
- export * from 'sprotty/lib/features/routing/polyline-anchors';
225
- export * from 'sprotty/lib/features/routing/polyline-edge-router';
226
- export * from 'sprotty/lib/features/routing/routing';
227
- export * from 'sprotty/lib/features/routing/views';
228
-
229
- export * from 'sprotty/lib/features/select/model';
230
- // Alias Select commands with sprotty prefix to avoid clash with glsp-client
231
- export {
232
- GetSelectionCommand,
233
- SelectKeyboardListener,
234
- SelectMouseListener,
235
- SelectAllCommand as SprottySelectAllCommand,
236
- SelectCommand as SprottySelectCommand
237
- } from 'sprotty/lib/features/select/select';
238
-
239
- // Exclude undo-redo as the client provides its own implementation
240
- // export * from 'sprotty/lib/features/undo-redo/undo-redo';
241
-
242
- export * from 'sprotty/lib/features/update/model-matching';
243
- export * from 'sprotty/lib/features/update/update-model';
244
-
245
- export * from 'sprotty/lib/features/viewport/center-fit';
246
- export * from 'sprotty/lib/features/viewport/model';
247
- export * from 'sprotty/lib/features/viewport/scroll';
248
- // Alias SModel types
249
- export * from 'sprotty/lib/features/viewport/viewport';
250
- export { ViewportRootElementImpl as GViewportRootElement } from 'sprotty/lib/features/viewport/viewport-root';
251
- export * from 'sprotty/lib/features/viewport/zoom';
252
-
253
- export * from 'sprotty/lib/features/zorder/zorder';
254
-
255
- // ------------------ Graph ------------------
256
- // Alias SModel types
257
- export {
258
- SCompartmentImpl as GCompartment,
259
- SGraphIndex as GGraphIndex,
260
- SLabelImpl as GLabel,
261
- SNodeImpl as GNode,
262
- SPortImpl as GPort,
263
- // Exported as is, we extend it in glsp-client to GEdge
264
- SEdgeImpl,
265
- // Exported as is, we extend it in glsp-client to GGraph
266
- SGraphImpl
267
- } from 'sprotty/lib/graph/sgraph';
268
- // Alias SModel types
269
- export {
270
- BezierCurveEdgeView,
271
- SBezierControlHandleView as GBezierControlHandleView,
272
- SBezierCreateHandleView as GBezierCreateHandleView,
273
- SCompartmentView as GCompartmentView,
274
- SGraphView as GGraphView,
275
- SLabelView as GLabelView,
276
- SRoutingHandleView as GRoutingHandleView,
277
- JumpingPolylineEdgeView,
278
- PolylineEdgeView,
279
- PolylineEdgeViewWithGapsOnIntersections
280
- } from 'sprotty/lib/graph/views';
281
-
282
17
  export * from './feature-modules';
283
-
284
- // ------------------ Library ------------------
285
-
286
- export * from 'sprotty/lib/lib/generic-views';
287
- export * from 'sprotty/lib/lib/html-views';
288
- export * from 'sprotty/lib/lib/jsx';
289
- // Alias SModel types
290
- export {
291
- CircularNode,
292
- CircularPort,
293
- DiamondNode,
294
- ForeignObjectElementImpl as GForeignObjectElement,
295
- HtmlRootImpl as GHtmlRoot,
296
- PreRenderedElementImpl as GPreRenderedElement,
297
- ShapedPreRenderedElementImpl as GShapedPreRenderedElement,
298
- RectangularNode,
299
- RectangularPort
300
- } from 'sprotty/lib/lib/model';
301
- export * from 'sprotty/lib/lib/modules';
302
- export * from 'sprotty/lib/lib/svg-views';
303
-
304
- // ------------------ Model Source ------------------
305
- export * from 'sprotty/lib/model-source/commit-model';
306
- // Exclude as not supported in GLSP
307
- // export * from 'sprotty/lib/model-source/diagram-server';
308
- // export * from 'sprotty/lib/model-source/local-model-source';
309
- export * from 'sprotty/lib/model-source/logging';
310
- export * from 'sprotty/lib/model-source/model-source';
311
- // export * from 'sprotty/lib/model-source/websocket';
312
-
313
- // ------------------ Utilities ------------------
314
- export * from 'sprotty/lib/utils/browser';
315
- export * from 'sprotty/lib/utils/codicon';
316
- export * from 'sprotty/lib/utils/color';
317
- export * from 'sprotty/lib/utils/geometry';
318
- export * from 'sprotty/lib/utils/inversify';
319
- export * from 'sprotty/lib/utils/iterable';
320
- export * from 'sprotty/lib/utils/keyboard';
321
- export * from 'sprotty/lib/utils/logging';
322
- export * from 'sprotty/lib/utils/registry';
18
+ export * from './re-exports';
19
+ export * from './types';
@@ -0,0 +1,311 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2023 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+
17
+ /**
18
+ * @eclipse-glsp/protocol
19
+ */
20
+ export * from '@eclipse-glsp/protocol';
21
+
22
+ /*
23
+ * sprotty
24
+ */
25
+ // ------------------ Base ------------------
26
+
27
+ // Exclude definition for labeled actions
28
+ // export * from 'sprotty/lib/base/actions/action';
29
+ export * from 'sprotty/lib/base/actions/action-dispatcher';
30
+ export {
31
+ ActionHandlerRegistration,
32
+ ActionHandlerRegistry,
33
+ IActionHandlerInitializer,
34
+ configureActionHandler,
35
+ onAction
36
+ } from 'sprotty/lib/base/actions/action-handler';
37
+ export * from 'sprotty/lib/base/actions/diagram-locker';
38
+
39
+ export * from 'sprotty/lib/base/animations/animation';
40
+ export * from 'sprotty/lib/base/animations/animation-frame-syncer';
41
+ export * from 'sprotty/lib/base/animations/easing';
42
+
43
+ export * from 'sprotty/lib/base/commands/command';
44
+ export * from 'sprotty/lib/base/commands/command-registration';
45
+ export * from 'sprotty/lib/base/commands/command-stack';
46
+ export * from 'sprotty/lib/base/commands/command-stack-options';
47
+
48
+ export * from 'sprotty/lib/base/features/initialize-canvas';
49
+ export * from 'sprotty/lib/base/features/set-model';
50
+ // Exclude SModelElementImpl as it as exported with augmentation module
51
+ export {
52
+ FeatureSet,
53
+ SChildElementImpl as GChildElement,
54
+ SModelElementImpl as GModelElement,
55
+ SModelRootImpl as GModelRoot,
56
+ SParentElementImpl as GParentElement,
57
+ IModelIndex,
58
+ ModelIndexImpl,
59
+ createRandomId,
60
+ isParent
61
+ } from 'sprotty/lib/base/model/smodel';
62
+
63
+ export {
64
+ CustomFeatures,
65
+ EMPTY_ROOT,
66
+ SModelElementConstructor as GModelElementConstructor,
67
+ SModelElementRegistration as GModelElementRegistration,
68
+ SModelFactory as GModelFactory,
69
+ IModelFactory,
70
+ // exported without alias we extend it in glsp-client to `GModelRegistry`
71
+ SModelRegistry,
72
+ createFeatureSet
73
+ } from 'sprotty/lib/base/model/smodel-factory';
74
+ export * from 'sprotty/lib/base/model/smodel-utils';
75
+
76
+ export * from 'sprotty/lib/base/ui-extensions/ui-extension';
77
+ export * from 'sprotty/lib/base/ui-extensions/ui-extension-registry';
78
+
79
+ export * from 'sprotty/lib/base/views/dom-helper';
80
+ export { KeyTool } from 'sprotty/lib/base/views/key-tool';
81
+ export { MouseEventKind, MousePositionTracker, MouseTool, PopupMouseTool } from 'sprotty/lib/base/views/mouse-tool';
82
+ export * from 'sprotty/lib/base/views/thunk-view';
83
+ export * from 'sprotty/lib/base/views/view';
84
+ export * from 'sprotty/lib/base/views/viewer';
85
+ export * from 'sprotty/lib/base/views/viewer-cache';
86
+ export * from 'sprotty/lib/base/views/viewer-options';
87
+ export * from 'sprotty/lib/base/views/vnode-postprocessor';
88
+ export * from 'sprotty/lib/base/views/vnode-utils';
89
+
90
+ // Exclude sprotty types and export augmented GLSP types instead
91
+ // export * from 'sprotty/lib/base/types';
92
+
93
+ // ------------------ Features ------------------
94
+ export * from 'sprotty/lib/features/bounds/abstract-layout';
95
+ export * from 'sprotty/lib/features/bounds/bounds-manipulation';
96
+ export * from 'sprotty/lib/features/bounds/hbox-layout';
97
+ export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
98
+ export * from 'sprotty/lib/features/bounds/layout';
99
+ export * from 'sprotty/lib/features/bounds/layout-options';
100
+ export {
101
+ Alignable,
102
+ BoundsAware,
103
+ SShapeElementImpl as GShapeElement,
104
+ LayoutContainer,
105
+ LayoutableChild,
106
+ ModelLayoutOptions,
107
+ boundsFeature,
108
+ findChildrenAtPosition,
109
+ getAbsoluteBounds,
110
+ getAbsoluteClientBounds,
111
+ isAlignable,
112
+ isBoundsAware,
113
+ isLayoutContainer,
114
+ isLayoutableChild,
115
+ isSizeable,
116
+ layoutContainerFeature,
117
+ layoutableChildFeature
118
+ } from 'sprotty/lib/features/bounds/model';
119
+ // exclude stack layout as its not supported in GLSP
120
+ // export * from 'sprotty/lib/features/bounds/stack-layout';
121
+ export * from 'sprotty/lib/features/bounds/vbox-layout';
122
+ export * from 'sprotty/lib/features/bounds/views';
123
+
124
+ export { ButtonHandlerRegistry, IButtonHandlerRegistration, configureButtonHandler } from 'sprotty/lib/features/button/button-handler';
125
+ export { SButtonImpl as GButton, SButtonSchema as GButtonSchema } from 'sprotty/lib/features/button/model';
126
+
127
+ export {
128
+ CommandPaletteActionProviderRegistry,
129
+ RevealNamedElementActionProvider
130
+ } from 'sprotty/lib/features/command-palette/action-providers';
131
+ export * from 'sprotty/lib/features/command-palette/command-palette';
132
+
133
+ // Exclude menu item. Aready provided by glsp-protocol
134
+ export { Anchor, IContextMenuService, IContextMenuServiceProvider } from 'sprotty/lib/features/context-menu/context-menu-service';
135
+ export { ContextMenuProviderRegistry, DeleteContextMenuItemProvider } from 'sprotty/lib/features/context-menu/menu-providers';
136
+ export * from 'sprotty/lib/features/context-menu/mouse-listener';
137
+
138
+ export * from 'sprotty/lib/features/edge-layout/di.config';
139
+ export * from 'sprotty/lib/features/edge-layout/edge-layout';
140
+ export * from 'sprotty/lib/features/edge-layout/model';
141
+ // Exclude client-side creation features (not supported in GLSP)
142
+ // export * from 'sprotty/lib/features/edit/create';
143
+ // export * from 'sprotty/lib/features/edit/create-on-drag';
144
+ export * from 'sprotty/lib/features/edit/delete';
145
+ export * from 'sprotty/lib/features/edit/edit-label';
146
+ export * from 'sprotty/lib/features/edit/edit-label-ui';
147
+ export * from 'sprotty/lib/features/edit/edit-routing';
148
+ export * from 'sprotty/lib/features/edit/model';
149
+ // export * from 'sprotty/lib/features/edit/reconnect';
150
+
151
+ export * from 'sprotty/lib/features/expand/expand';
152
+ export * from 'sprotty/lib/features/expand/model';
153
+ export * from 'sprotty/lib/features/expand/views';
154
+ // Exclude RequestExportSvgAction. Already provided by glsp-protocol
155
+ export { ExportSvgCommand, ExportSvgKeyListener, ExportSvgPostprocessor } from 'sprotty/lib/features/export/export';
156
+ export * from 'sprotty/lib/features/export/model';
157
+ // Exclude ExportSvgAction. Already provided by glsp-protocol
158
+ export { SvgExporter } from 'sprotty/lib/features/export/svg-exporter';
159
+
160
+ export * from 'sprotty/lib/features/fade/fade';
161
+ export * from 'sprotty/lib/features/fade/model';
162
+
163
+ export * from 'sprotty/lib/features/hover/hover';
164
+ export * from 'sprotty/lib/features/hover/model';
165
+ export * from 'sprotty/lib/features/hover/popup-position-updater';
166
+
167
+ // Alias SModel types
168
+ export * from 'sprotty/lib/features/decoration/decoration-placer';
169
+ export {
170
+ Decoration,
171
+ SDecoration as GDecoration,
172
+ SIssue as GIssue,
173
+ SIssueSeverity as GIssueSeverity,
174
+ // Export as is, we extend it glsp-client to `GIssueMarker`
175
+ SIssueMarker
176
+ } from 'sprotty/lib/features/decoration/model';
177
+ export * from 'sprotty/lib/features/decoration/views';
178
+
179
+ export * from 'sprotty/lib/features/edge-intersection/intersection-finder';
180
+ export * from 'sprotty/lib/features/edge-intersection/sweepline';
181
+
182
+ export * from 'sprotty/lib/features/move/model';
183
+ export * from 'sprotty/lib/features/move/move';
184
+ export * from 'sprotty/lib/features/move/snap';
185
+
186
+ export * from 'sprotty/lib/features/nameable/model';
187
+
188
+ export * from 'sprotty/lib/features/open/model';
189
+ export * from 'sprotty/lib/features/open/open';
190
+
191
+ export * from 'sprotty/lib/features/projection/model';
192
+ export * from 'sprotty/lib/features/projection/views';
193
+
194
+ export * from 'sprotty/lib/features/routing/abstract-edge-router';
195
+ export * from 'sprotty/lib/features/routing/anchor';
196
+ export * from 'sprotty/lib/features/routing/bezier-anchors';
197
+ export * from 'sprotty/lib/features/routing/bezier-edge-router';
198
+ export * from 'sprotty/lib/features/routing/manhattan-anchors';
199
+ export * from 'sprotty/lib/features/routing/manhattan-edge-router';
200
+ // Alias SModel types
201
+ export {
202
+ Connectable,
203
+ SConnectableElementImpl as GConnectableElement,
204
+ SDanglingAnchorImpl as GDanglingAnchor,
205
+ SRoutableElementImpl as GRoutableElement,
206
+ SRoutingHandleImpl as GRoutingHandle,
207
+ RoutingHandleKind,
208
+ connectableFeature,
209
+ edgeInProgressID,
210
+ edgeInProgressTargetHandleID,
211
+ getAbsoluteRouteBounds,
212
+ getRouteBounds,
213
+ isConnectable
214
+ } from 'sprotty/lib/features/routing/model';
215
+ export * from 'sprotty/lib/features/routing/polyline-anchors';
216
+ export * from 'sprotty/lib/features/routing/polyline-edge-router';
217
+ export * from 'sprotty/lib/features/routing/routing';
218
+ export * from 'sprotty/lib/features/routing/views';
219
+
220
+ export * from 'sprotty/lib/features/select/model';
221
+ // Alias Select commands with sprotty prefix to avoid clash with glsp-client
222
+ export {
223
+ GetSelectionCommand,
224
+ SelectKeyboardListener,
225
+ SelectMouseListener,
226
+ SelectAllCommand as SprottySelectAllCommand,
227
+ SelectCommand as SprottySelectCommand
228
+ } from 'sprotty/lib/features/select/select';
229
+
230
+ // Exclude undo-redo as the client provides its own implementation
231
+ // export * from 'sprotty/lib/features/undo-redo/undo-redo';
232
+
233
+ export * from 'sprotty/lib/features/update/model-matching';
234
+ export * from 'sprotty/lib/features/update/update-model';
235
+
236
+ export * from 'sprotty/lib/features/viewport/center-fit';
237
+ export * from 'sprotty/lib/features/viewport/model';
238
+ export * from 'sprotty/lib/features/viewport/scroll';
239
+ // Alias SModel types
240
+ export * from 'sprotty/lib/features/viewport/viewport';
241
+ export { ViewportRootElementImpl as GViewportRootElement } from 'sprotty/lib/features/viewport/viewport-root';
242
+ export * from 'sprotty/lib/features/viewport/zoom';
243
+
244
+ export * from 'sprotty/lib/features/zorder/zorder';
245
+
246
+ // ------------------ Graph ------------------
247
+ // Alias SModel types
248
+ export {
249
+ SCompartmentImpl as GCompartment,
250
+ SGraphIndex as GGraphIndex,
251
+ SLabelImpl as GLabel,
252
+ SNodeImpl as GNode,
253
+ SPortImpl as GPort,
254
+ // Exported as is, we extend it in glsp-client to GEdge
255
+ SEdgeImpl,
256
+ // Exported as is, we extend it in glsp-client to GGraph
257
+ SGraphImpl
258
+ } from 'sprotty/lib/graph/sgraph';
259
+ // Alias SModel types
260
+ export {
261
+ BezierCurveEdgeView,
262
+ SBezierControlHandleView as GBezierControlHandleView,
263
+ SBezierCreateHandleView as GBezierCreateHandleView,
264
+ SCompartmentView as GCompartmentView,
265
+ SGraphView as GGraphView,
266
+ SLabelView as GLabelView,
267
+ SRoutingHandleView as GRoutingHandleView,
268
+ JumpingPolylineEdgeView,
269
+ PolylineEdgeView,
270
+ PolylineEdgeViewWithGapsOnIntersections
271
+ } from 'sprotty/lib/graph/views';
272
+
273
+ // ------------------ Library ------------------
274
+
275
+ export * from 'sprotty/lib/lib/generic-views';
276
+ export * from 'sprotty/lib/lib/html-views';
277
+ export * from 'sprotty/lib/lib/jsx';
278
+ // Alias SModel types
279
+ export {
280
+ CircularNode,
281
+ CircularPort,
282
+ DiamondNode,
283
+ ForeignObjectElementImpl as GForeignObjectElement,
284
+ HtmlRootImpl as GHtmlRoot,
285
+ PreRenderedElementImpl as GPreRenderedElement,
286
+ ShapedPreRenderedElementImpl as GShapedPreRenderedElement,
287
+ RectangularNode,
288
+ RectangularPort
289
+ } from 'sprotty/lib/lib/model';
290
+ export * from 'sprotty/lib/lib/modules';
291
+ export * from 'sprotty/lib/lib/svg-views';
292
+
293
+ // ------------------ Model Source ------------------
294
+ export * from 'sprotty/lib/model-source/commit-model';
295
+ // Exclude as not supported in GLSP
296
+ // export * from 'sprotty/lib/model-source/diagram-server';
297
+ // export * from 'sprotty/lib/model-source/local-model-source';
298
+ export * from 'sprotty/lib/model-source/logging';
299
+ export * from 'sprotty/lib/model-source/model-source';
300
+ // export * from 'sprotty/lib/model-source/websocket';
301
+
302
+ // ------------------ Utilities ------------------
303
+ export * from 'sprotty/lib/utils/browser';
304
+ export * from 'sprotty/lib/utils/codicon';
305
+ export * from 'sprotty/lib/utils/color';
306
+ export * from 'sprotty/lib/utils/geometry';
307
+ export * from 'sprotty/lib/utils/inversify';
308
+ export * from 'sprotty/lib/utils/iterable';
309
+ export * from 'sprotty/lib/utils/keyboard';
310
+ export * from 'sprotty/lib/utils/logging';
311
+ export * from 'sprotty/lib/utils/registry';
package/src/types.ts CHANGED
@@ -40,6 +40,7 @@ export const TYPES = {
40
40
  IDefaultTool: Symbol('IDefaultTool'),
41
41
  IEditModeListener: Symbol('IEditModeListener'),
42
42
  IMarqueeBehavior: Symbol('IMarqueeBehavior'),
43
+ IHelperLineManager: Symbol('IHelperLineManager'),
43
44
  IElementNavigator: Symbol('IElementNavigator'),
44
45
  ILocalElementNavigator: Symbol('ILocalElementNavigator'),
45
46
  IDiagramOptions: Symbol('IDiagramOptions'),