@eclipse-glsp/sprotty 2.6.0-next.5 → 2.6.0-next.7
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/api-override.d.ts +14 -2
- package/lib/api-override.d.ts.map +1 -1
- package/lib/api-override.js +24 -1
- package/lib/api-override.js.map +1 -1
- package/lib/re-exports.d.ts +10 -10
- package/lib/re-exports.d.ts.map +1 -1
- package/lib/re-exports.js +20 -16
- package/lib/re-exports.js.map +1 -1
- package/package.json +3 -3
- package/src/api-override.ts +25 -1
- package/src/re-exports.ts +28 -27
package/lib/api-override.d.ts
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action, Event, LabeledAction, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
16
|
+
import { Action, Event, LabeledAction, MenuItem, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
17
17
|
import { VNode } from 'snabbdom';
|
|
18
|
-
import { SButtonImpl as GButton, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, ICommand, IActionDispatcher as SIActionDispatcher, IActionHandler as SIActionHandler, IButtonHandler as SIButtonHandler, ICommandPaletteActionProvider as SICommandPaletteActionProvider, ICommandStack as SICommandStack, IContextMenuItemProvider as SIContextMenuItemProvider, IVNodePostprocessor as SIVNodePostprocessor, KeyListener as SKeyListener, MouseListener as SMouseListener } from 'sprotty';
|
|
18
|
+
import { SButtonImpl as GButton, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, ICommand, IActionDispatcher as SIActionDispatcher, IActionHandler as SIActionHandler, IButtonHandler as SIButtonHandler, ICommandPaletteActionProvider as SICommandPaletteActionProvider, ICommandStack as SICommandStack, IContextMenuItemProvider as SIContextMenuItemProvider, IVNodePostprocessor as SIVNodePostprocessor, KeyListener as SKeyListener, MenuItem as SMenuItem, MouseListener as SMouseListener } from 'sprotty';
|
|
19
19
|
/**
|
|
20
20
|
* An action handler accepts an action and reacts to it by returning either a command to be
|
|
21
21
|
* executed, or another action to be dispatched.
|
|
@@ -161,4 +161,16 @@ export interface ICommandStack extends SICommandStack {
|
|
|
161
161
|
* using a provider to avoid cyclic injection dependencies.
|
|
162
162
|
*/
|
|
163
163
|
export type CommandStackProvider = () => Promise<ICommandStack>;
|
|
164
|
+
export type ClientMenuItem = SMenuItem;
|
|
165
|
+
export declare namespace ClientMenuItem {
|
|
166
|
+
/**
|
|
167
|
+
* Converts a {@link MenuItem} into a {@link ClientMenuItem}.
|
|
168
|
+
* Note that functions are created for the boolean attributes of the server item.
|
|
169
|
+
* If the server item does not define a particular attribute, the corresponding function in the client item will be `undefined`.
|
|
170
|
+
* The children are recursively converted as well.
|
|
171
|
+
* @param serverItem The server menu item to convert.
|
|
172
|
+
* @returns The converted client menu item.
|
|
173
|
+
*/
|
|
174
|
+
function convert(item: MenuItem): ClientMenuItem;
|
|
175
|
+
}
|
|
164
176
|
//# sourceMappingURL=api-override.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-override.d.ts","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"api-override.d.ts","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEtH,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC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C;IAEzD;;OAEG;IACH,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;;;OAIG;IACH,uBAAuB,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACvD;AAED,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,sDAAsD;IACtD,OAAO,EAAE,QAAQ,CAAC;IAClB,qDAAqD;IACrD,OAAO,EAAE,UAAU,CAAC;CACvB;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc;IACjD;;;;;;;OAOG;IACH,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEhD;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEtD;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CAClD;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC;AACvC,yBAAiB,cAAc,CAAC;IAC5B;;;;;;;OAOG;IACH,SAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc,CAUtD;CACJ"}
|
package/lib/api-override.js
CHANGED
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.MouseListener = exports.KeyListener = void 0;
|
|
9
|
+
exports.ClientMenuItem = exports.MouseListener = exports.KeyListener = void 0;
|
|
10
10
|
const inversify_1 = require("inversify");
|
|
11
11
|
const sprotty_1 = require("sprotty");
|
|
12
12
|
let KeyListener = class KeyListener extends sprotty_1.KeyListener {
|
|
@@ -66,4 +66,27 @@ exports.MouseListener = MouseListener;
|
|
|
66
66
|
exports.MouseListener = MouseListener = __decorate([
|
|
67
67
|
(0, inversify_1.injectable)()
|
|
68
68
|
], MouseListener);
|
|
69
|
+
var ClientMenuItem;
|
|
70
|
+
(function (ClientMenuItem) {
|
|
71
|
+
/**
|
|
72
|
+
* Converts a {@link MenuItem} into a {@link ClientMenuItem}.
|
|
73
|
+
* Note that functions are created for the boolean attributes of the server item.
|
|
74
|
+
* If the server item does not define a particular attribute, the corresponding function in the client item will be `undefined`.
|
|
75
|
+
* The children are recursively converted as well.
|
|
76
|
+
* @param serverItem The server menu item to convert.
|
|
77
|
+
* @returns The converted client menu item.
|
|
78
|
+
*/
|
|
79
|
+
function convert(item) {
|
|
80
|
+
const { children, isEnabled, isToggled, isVisible, ...coreProps } = item;
|
|
81
|
+
const clientItem = {
|
|
82
|
+
...coreProps,
|
|
83
|
+
isEnabled: isEnabled !== undefined ? () => isEnabled : undefined,
|
|
84
|
+
isVisible: isVisible !== undefined ? () => isVisible : undefined,
|
|
85
|
+
isToggled: isToggled !== undefined ? () => isToggled : undefined,
|
|
86
|
+
children: children === null || children === void 0 ? void 0 : children.map(child => ClientMenuItem.convert(child))
|
|
87
|
+
};
|
|
88
|
+
return clientItem;
|
|
89
|
+
}
|
|
90
|
+
ClientMenuItem.convert = convert;
|
|
91
|
+
})(ClientMenuItem || (exports.ClientMenuItem = ClientMenuItem = {}));
|
|
69
92
|
//# sourceMappingURL=api-override.js.map
|
package/lib/api-override.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-override.js","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":";;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ocol/lib/di';
|
|
21
21
|
export { ActionDispatcher, PostponedAction } from 'sprotty/lib/base/actions/action-dispatcher';
|
|
22
|
-
export { ActionHandlerRegistration, ActionHandlerRegistry,
|
|
22
|
+
export { ActionHandlerRegistration, ActionHandlerRegistry, configureActionHandler, IActionHandlerInitializer, onAction } from 'sprotty/lib/base/actions/action-handler';
|
|
23
23
|
export * from 'sprotty/lib/base/actions/diagram-locker';
|
|
24
24
|
export * from 'sprotty/lib/base/animations/animation';
|
|
25
25
|
export * from 'sprotty/lib/base/animations/animation-frame-syncer';
|
|
@@ -30,8 +30,8 @@ export { CommandStack, CommandStackState } from 'sprotty/lib/base/commands/comma
|
|
|
30
30
|
export * from 'sprotty/lib/base/commands/command-stack-options';
|
|
31
31
|
export * from 'sprotty/lib/base/features/initialize-canvas';
|
|
32
32
|
export * from 'sprotty/lib/base/features/set-model';
|
|
33
|
-
export { FeatureSet, SChildElementImpl as GChildElement, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, SParentElementImpl as GParentElement, IModelIndex,
|
|
34
|
-
export { CustomFeatures, EMPTY_ROOT, SModelElementConstructor as GModelElementConstructor, SModelElementRegistration as GModelElementRegistration, SModelFactory as GModelFactory, IModelFactory, SModelRegistry
|
|
33
|
+
export { createRandomId, FeatureSet, SChildElementImpl as GChildElement, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, SParentElementImpl as GParentElement, IModelIndex, isParent, ModelIndexImpl } from 'sprotty/lib/base/model/smodel';
|
|
34
|
+
export { createFeatureSet, CustomFeatures, EMPTY_ROOT, SModelElementConstructor as GModelElementConstructor, SModelElementRegistration as GModelElementRegistration, SModelFactory as GModelFactory, IModelFactory, SModelRegistry } from 'sprotty/lib/base/model/smodel-factory';
|
|
35
35
|
export * from 'sprotty/lib/base/model/smodel-utils';
|
|
36
36
|
export * from 'sprotty/lib/base/ui-extensions/ui-extension';
|
|
37
37
|
export * from 'sprotty/lib/base/ui-extensions/ui-extension-registry';
|
|
@@ -50,19 +50,19 @@ export { HBoxLayoutOptions } from 'sprotty/lib/features/bounds/hbox-layout';
|
|
|
50
50
|
export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
|
|
51
51
|
export { Layouter, StatefulLayouter } from 'sprotty/lib/features/bounds/layout';
|
|
52
52
|
export { AbstractLayoutOptions } from 'sprotty/lib/features/bounds/layout-options';
|
|
53
|
-
export { InternalBoundsAware as BoundsAware,
|
|
53
|
+
export { alignFeature, InternalBoundsAware as BoundsAware, boundsFeature, findChildrenAtPosition, getAbsoluteBounds, getAbsoluteClientBounds, SShapeElementImpl as GShapeElement, isAlignable, isBoundsAware, isLayoutableChild, isLayoutContainer, isSizeable, InternalLayoutableChild as LayoutableChild, layoutableChildFeature, InternalLayoutContainer as LayoutContainer, layoutContainerFeature, ModelLayoutOptions } from 'sprotty/lib/features/bounds/model';
|
|
54
54
|
export { VBoxLayoutOptions } from 'sprotty/lib/features/bounds/vbox-layout';
|
|
55
55
|
export * from 'sprotty/lib/features/bounds/views';
|
|
56
|
-
export { ButtonHandlerRegistry,
|
|
56
|
+
export { ButtonHandlerRegistry, configureButtonHandler, IButtonHandlerRegistration } from 'sprotty/lib/features/button/button-handler';
|
|
57
57
|
export { SButtonImpl as GButton } from 'sprotty/lib/features/button/model';
|
|
58
58
|
export { CommandPaletteActionProviderRegistry, RevealNamedElementActionProvider } from 'sprotty/lib/features/command-palette/action-providers';
|
|
59
59
|
export * from 'sprotty/lib/features/command-palette/command-palette';
|
|
60
|
-
export { Anchor, IContextMenuService, IContextMenuServiceProvider } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
60
|
+
export { Anchor, IContextMenuService, IContextMenuServiceProvider, toAnchor } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
61
61
|
export { ContextMenuProviderRegistry, DeleteContextMenuItemProvider } from 'sprotty/lib/features/context-menu/menu-providers';
|
|
62
62
|
export * from 'sprotty/lib/features/context-menu/mouse-listener';
|
|
63
63
|
export * from 'sprotty/lib/features/edge-layout/di.config';
|
|
64
64
|
export * from 'sprotty/lib/features/edge-layout/edge-layout';
|
|
65
|
-
export {
|
|
65
|
+
export { checkEdgePlacement, DEFAULT_EDGE_PLACEMENT, edgeLayoutFeature, isEdgeLayoutable } from 'sprotty/lib/features/edge-layout/model';
|
|
66
66
|
export * from 'sprotty/lib/features/edit/delete';
|
|
67
67
|
export * from 'sprotty/lib/features/edit/edit-label';
|
|
68
68
|
export * from 'sprotty/lib/features/edit/edit-label-ui';
|
|
@@ -80,7 +80,7 @@ export * from 'sprotty/lib/features/hover/hover';
|
|
|
80
80
|
export { hasPopupFeature, hoverFeedbackFeature, isHoverable, popupFeature } from 'sprotty/lib/features/hover/model';
|
|
81
81
|
export * from 'sprotty/lib/features/hover/popup-position-updater';
|
|
82
82
|
export * from 'sprotty/lib/features/decoration/decoration-placer';
|
|
83
|
-
export { Decoration, SDecoration as GDecoration,
|
|
83
|
+
export { Decoration, decorationFeature, SDecoration as GDecoration, isDecoration, SIssueMarkerImpl } from 'sprotty/lib/features/decoration/model';
|
|
84
84
|
export * from 'sprotty/lib/features/decoration/views';
|
|
85
85
|
export * from 'sprotty/lib/features/edge-intersection/intersection-finder';
|
|
86
86
|
export * from 'sprotty/lib/features/edge-intersection/sweepline';
|
|
@@ -91,7 +91,7 @@ export * from 'sprotty/lib/features/move/snap';
|
|
|
91
91
|
export * from 'sprotty/lib/features/nameable/model';
|
|
92
92
|
export * from 'sprotty/lib/features/open/model';
|
|
93
93
|
export * from 'sprotty/lib/features/open/open';
|
|
94
|
-
export {
|
|
94
|
+
export { getModelBounds, getProjectedBounds, getProjections, isProjectable, ViewProjection } from 'sprotty/lib/features/projection/model';
|
|
95
95
|
export * from 'sprotty/lib/features/projection/views';
|
|
96
96
|
export * from 'sprotty/lib/features/routing/abstract-edge-router';
|
|
97
97
|
export * from 'sprotty/lib/features/routing/anchor';
|
|
@@ -99,7 +99,7 @@ export * from 'sprotty/lib/features/routing/bezier-anchors';
|
|
|
99
99
|
export * from 'sprotty/lib/features/routing/bezier-edge-router';
|
|
100
100
|
export * from 'sprotty/lib/features/routing/manhattan-anchors';
|
|
101
101
|
export * from 'sprotty/lib/features/routing/manhattan-edge-router';
|
|
102
|
-
export { Connectable, SConnectableElementImpl as GConnectableElement, SDanglingAnchorImpl as GDanglingAnchor, SRoutableElementImpl as GRoutableElement, SRoutingHandleImpl as GRoutingHandle,
|
|
102
|
+
export { Connectable, connectableFeature, edgeInProgressID, edgeInProgressTargetHandleID, SConnectableElementImpl as GConnectableElement, SDanglingAnchorImpl as GDanglingAnchor, getAbsoluteRouteBounds, getRouteBounds, SRoutableElementImpl as GRoutableElement, SRoutingHandleImpl as GRoutingHandle, isConnectable, RoutingHandleKind } from 'sprotty/lib/features/routing/model';
|
|
103
103
|
export * from 'sprotty/lib/features/routing/polyline-anchors';
|
|
104
104
|
export * from 'sprotty/lib/features/routing/polyline-edge-router';
|
|
105
105
|
export * from 'sprotty/lib/features/routing/routing';
|
package/lib/re-exports.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"re-exports.d.ts","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;GAEG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAU9C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EACH,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"re-exports.d.ts","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;GAEG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAU9C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EACH,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB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O,EACH,mBAAmB,EACnB,wBAAwB,IAAI,wBAAwB,EACpD,uBAAuB,IAAI,uBAAuB,EAClD,gBAAgB,IAAI,gBAAgB,EACpC,UAAU,IAAI,UAAU,EACxB,uBAAuB,EACvB,gBAAgB,EAChB,uCAAuC,EACvC,UAAU,EACV,kBAAkB,EACrB,MAAM,yBAAyB,CAAC;AAIjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,wBAAwB,IAAI,qBAAqB,EACjD,YAAY,IAAI,SAAS,EACzB,sBAAsB,IAAI,mBAAmB,EAC7C,4BAA4B,IAAI,yBAAyB,EACzD,eAAe,EACf,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjG,cAAc,uCAAuC,CAAC;AAItD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAItD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
|
package/lib/re-exports.js
CHANGED
|
@@ -29,9 +29,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.SvgViewportView = exports.RectangularNodeView = exports.EmptyGroupView = exports.RectangularPort = exports.RectangularNode = exports.GShapedPreRenderedElement = exports.GPreRenderedElement = exports.GHtmlRoot = exports.GForeignObjectElement = exports.DiamondNode = exports.CircularPort = exports.CircularNode = exports.SRoutingHandleView = exports.SGraphView = exports.PolylineEdgeViewWithGapsOnIntersections = exports.PolylineEdgeView = exports.JumpingPolylineEdgeView = exports.GLabelView = exports.GCompartmentView = void 0;
|
|
32
|
+
exports.isExpandable = exports.expandFeature = exports.isEdgeLayoutable = exports.edgeLayoutFeature = exports.DEFAULT_EDGE_PLACEMENT = exports.checkEdgePlacement = exports.DeleteContextMenuItemProvider = exports.ContextMenuProviderRegistry = exports.toAnchor = exports.RevealNamedElementActionProvider = exports.CommandPaletteActionProviderRegistry = exports.GButton = exports.configureButtonHandler = exports.ButtonHandlerRegistry = exports.layoutContainerFeature = exports.layoutableChildFeature = exports.isSizeable = exports.isLayoutContainer = exports.isLayoutableChild = exports.isBoundsAware = exports.isAlignable = exports.GShapeElement = exports.getAbsoluteClientBounds = exports.getAbsoluteBounds = exports.findChildrenAtPosition = exports.boundsFeature = exports.alignFeature = exports.StatefulLayouter = exports.Layouter = exports.FocusFixPostprocessor = exports.PopupMouseTool = exports.MouseTool = exports.MousePositionTracker = exports.KeyTool = exports.SModelRegistry = exports.GModelFactory = exports.EMPTY_ROOT = exports.createFeatureSet = exports.ModelIndexImpl = exports.isParent = exports.GParentElement = exports.GModelRoot = exports.GModelElement = exports.GChildElement = exports.createRandomId = exports.CommandStack = exports.onAction = exports.configureActionHandler = exports.ActionHandlerRegistry = exports.ActionDispatcher = void 0;
|
|
33
|
+
exports.GBezierControlHandleView = exports.BezierCurveEdgeView = exports.SGraphImpl = exports.SEdgeImpl = exports.GPort = exports.GNode = exports.GLabel = exports.GGraphIndex = exports.GCompartment = exports.SprottyBringToFrontCommand = exports.GViewportRootElement = exports.SprottySelectCommand = exports.SprottySelectAllCommand = exports.SelectMouseListener = exports.SelectKeyboardListener = exports.GetSelectionCommand = exports.selectFeature = exports.isSelected = exports.isSelectable = exports.isConnectable = exports.GRoutingHandle = exports.GRoutableElement = exports.getRouteBounds = exports.getAbsoluteRouteBounds = exports.GDanglingAnchor = exports.GConnectableElement = exports.edgeInProgressTargetHandleID = exports.edgeInProgressID = exports.connectableFeature = exports.isProjectable = exports.getProjections = exports.getProjectedBounds = exports.getModelBounds = exports.moveFeature = exports.isMoveable = exports.isLocateable = exports.SIssueMarkerImpl = exports.isDecoration = exports.GDecoration = exports.decorationFeature = exports.popupFeature = exports.isHoverable = exports.hoverFeedbackFeature = exports.hasPopupFeature = exports.isFadeable = exports.fadeFeature = exports.SvgExporter = exports.ExportSvgPostprocessor = exports.ExportSvgKeyListener = exports.ExportSvgCommand = void 0;
|
|
34
|
+
exports.SvgViewportView = exports.RectangularNodeView = exports.EmptyGroupView = exports.RectangularPort = exports.RectangularNode = exports.GShapedPreRenderedElement = exports.GPreRenderedElement = exports.GHtmlRoot = exports.GForeignObjectElement = exports.DiamondNode = exports.CircularPort = exports.CircularNode = exports.SRoutingHandleView = exports.SGraphView = exports.PolylineEdgeViewWithGapsOnIntersections = exports.PolylineEdgeView = exports.JumpingPolylineEdgeView = exports.GLabelView = exports.GCompartmentView = exports.GBezierCreateHandleView = void 0;
|
|
35
35
|
/**
|
|
36
36
|
* @eclipse-glsp/protocol
|
|
37
37
|
*/
|
|
@@ -64,19 +64,19 @@ __exportStar(require("sprotty/lib/base/features/initialize-canvas"), exports);
|
|
|
64
64
|
__exportStar(require("sprotty/lib/base/features/set-model"), exports);
|
|
65
65
|
// Exclude SModelElementImpl as it as exported with augmentation module
|
|
66
66
|
var smodel_1 = require("sprotty/lib/base/model/smodel");
|
|
67
|
+
Object.defineProperty(exports, "createRandomId", { enumerable: true, get: function () { return smodel_1.createRandomId; } });
|
|
67
68
|
Object.defineProperty(exports, "GChildElement", { enumerable: true, get: function () { return smodel_1.SChildElementImpl; } });
|
|
68
69
|
Object.defineProperty(exports, "GModelElement", { enumerable: true, get: function () { return smodel_1.SModelElementImpl; } });
|
|
69
70
|
Object.defineProperty(exports, "GModelRoot", { enumerable: true, get: function () { return smodel_1.SModelRootImpl; } });
|
|
70
71
|
Object.defineProperty(exports, "GParentElement", { enumerable: true, get: function () { return smodel_1.SParentElementImpl; } });
|
|
71
|
-
Object.defineProperty(exports, "ModelIndexImpl", { enumerable: true, get: function () { return smodel_1.ModelIndexImpl; } });
|
|
72
|
-
Object.defineProperty(exports, "createRandomId", { enumerable: true, get: function () { return smodel_1.createRandomId; } });
|
|
73
72
|
Object.defineProperty(exports, "isParent", { enumerable: true, get: function () { return smodel_1.isParent; } });
|
|
73
|
+
Object.defineProperty(exports, "ModelIndexImpl", { enumerable: true, get: function () { return smodel_1.ModelIndexImpl; } });
|
|
74
74
|
var smodel_factory_1 = require("sprotty/lib/base/model/smodel-factory");
|
|
75
|
+
Object.defineProperty(exports, "createFeatureSet", { enumerable: true, get: function () { return smodel_factory_1.createFeatureSet; } });
|
|
75
76
|
Object.defineProperty(exports, "EMPTY_ROOT", { enumerable: true, get: function () { return smodel_factory_1.EMPTY_ROOT; } });
|
|
76
77
|
Object.defineProperty(exports, "GModelFactory", { enumerable: true, get: function () { return smodel_factory_1.SModelFactory; } });
|
|
77
78
|
// exported without alias we extend it in glsp-client to `GModelRegistry`
|
|
78
79
|
Object.defineProperty(exports, "SModelRegistry", { enumerable: true, get: function () { return smodel_factory_1.SModelRegistry; } });
|
|
79
|
-
Object.defineProperty(exports, "createFeatureSet", { enumerable: true, get: function () { return smodel_factory_1.createFeatureSet; } });
|
|
80
80
|
__exportStar(require("sprotty/lib/base/model/smodel-utils"), exports);
|
|
81
81
|
__exportStar(require("sprotty/lib/base/ui-extensions/ui-extension"), exports);
|
|
82
82
|
__exportStar(require("sprotty/lib/base/ui-extensions/ui-extension-registry"), exports);
|
|
@@ -105,29 +105,33 @@ var layout_1 = require("sprotty/lib/features/bounds/layout");
|
|
|
105
105
|
Object.defineProperty(exports, "Layouter", { enumerable: true, get: function () { return layout_1.Layouter; } });
|
|
106
106
|
Object.defineProperty(exports, "StatefulLayouter", { enumerable: true, get: function () { return layout_1.StatefulLayouter; } });
|
|
107
107
|
var model_1 = require("sprotty/lib/features/bounds/model");
|
|
108
|
-
Object.defineProperty(exports, "GShapeElement", { enumerable: true, get: function () { return model_1.SShapeElementImpl; } });
|
|
109
108
|
Object.defineProperty(exports, "alignFeature", { enumerable: true, get: function () { return model_1.alignFeature; } });
|
|
110
109
|
Object.defineProperty(exports, "boundsFeature", { enumerable: true, get: function () { return model_1.boundsFeature; } });
|
|
111
110
|
Object.defineProperty(exports, "findChildrenAtPosition", { enumerable: true, get: function () { return model_1.findChildrenAtPosition; } });
|
|
112
111
|
Object.defineProperty(exports, "getAbsoluteBounds", { enumerable: true, get: function () { return model_1.getAbsoluteBounds; } });
|
|
113
112
|
Object.defineProperty(exports, "getAbsoluteClientBounds", { enumerable: true, get: function () { return model_1.getAbsoluteClientBounds; } });
|
|
113
|
+
Object.defineProperty(exports, "GShapeElement", { enumerable: true, get: function () { return model_1.SShapeElementImpl; } });
|
|
114
114
|
Object.defineProperty(exports, "isAlignable", { enumerable: true, get: function () { return model_1.isAlignable; } });
|
|
115
115
|
Object.defineProperty(exports, "isBoundsAware", { enumerable: true, get: function () { return model_1.isBoundsAware; } });
|
|
116
|
-
Object.defineProperty(exports, "isLayoutContainer", { enumerable: true, get: function () { return model_1.isLayoutContainer; } });
|
|
117
116
|
Object.defineProperty(exports, "isLayoutableChild", { enumerable: true, get: function () { return model_1.isLayoutableChild; } });
|
|
117
|
+
Object.defineProperty(exports, "isLayoutContainer", { enumerable: true, get: function () { return model_1.isLayoutContainer; } });
|
|
118
118
|
Object.defineProperty(exports, "isSizeable", { enumerable: true, get: function () { return model_1.isSizeable; } });
|
|
119
|
-
Object.defineProperty(exports, "layoutContainerFeature", { enumerable: true, get: function () { return model_1.layoutContainerFeature; } });
|
|
120
119
|
Object.defineProperty(exports, "layoutableChildFeature", { enumerable: true, get: function () { return model_1.layoutableChildFeature; } });
|
|
120
|
+
Object.defineProperty(exports, "layoutContainerFeature", { enumerable: true, get: function () { return model_1.layoutContainerFeature; } });
|
|
121
121
|
__exportStar(require("sprotty/lib/features/bounds/views"), exports);
|
|
122
122
|
var button_handler_1 = require("sprotty/lib/features/button/button-handler");
|
|
123
123
|
Object.defineProperty(exports, "ButtonHandlerRegistry", { enumerable: true, get: function () { return button_handler_1.ButtonHandlerRegistry; } });
|
|
124
124
|
Object.defineProperty(exports, "configureButtonHandler", { enumerable: true, get: function () { return button_handler_1.configureButtonHandler; } });
|
|
125
125
|
var model_2 = require("sprotty/lib/features/button/model");
|
|
126
126
|
Object.defineProperty(exports, "GButton", { enumerable: true, get: function () { return model_2.SButtonImpl; } });
|
|
127
|
+
// exlucde ICommandPaletteActionProvider. Exported via api-override module instead
|
|
127
128
|
var action_providers_1 = require("sprotty/lib/features/command-palette/action-providers");
|
|
128
129
|
Object.defineProperty(exports, "CommandPaletteActionProviderRegistry", { enumerable: true, get: function () { return action_providers_1.CommandPaletteActionProviderRegistry; } });
|
|
129
130
|
Object.defineProperty(exports, "RevealNamedElementActionProvider", { enumerable: true, get: function () { return action_providers_1.RevealNamedElementActionProvider; } });
|
|
130
131
|
__exportStar(require("sprotty/lib/features/command-palette/command-palette"), exports);
|
|
132
|
+
// Exclude MenuItem. Exported via api-override as ClientMenu instead
|
|
133
|
+
var context_menu_service_1 = require("sprotty/lib/features/context-menu/context-menu-service");
|
|
134
|
+
Object.defineProperty(exports, "toAnchor", { enumerable: true, get: function () { return context_menu_service_1.toAnchor; } });
|
|
131
135
|
var menu_providers_1 = require("sprotty/lib/features/context-menu/menu-providers");
|
|
132
136
|
Object.defineProperty(exports, "ContextMenuProviderRegistry", { enumerable: true, get: function () { return menu_providers_1.ContextMenuProviderRegistry; } });
|
|
133
137
|
Object.defineProperty(exports, "DeleteContextMenuItemProvider", { enumerable: true, get: function () { return menu_providers_1.DeleteContextMenuItemProvider; } });
|
|
@@ -135,8 +139,8 @@ __exportStar(require("sprotty/lib/features/context-menu/mouse-listener"), export
|
|
|
135
139
|
__exportStar(require("sprotty/lib/features/edge-layout/di.config"), exports);
|
|
136
140
|
__exportStar(require("sprotty/lib/features/edge-layout/edge-layout"), exports);
|
|
137
141
|
var model_3 = require("sprotty/lib/features/edge-layout/model");
|
|
138
|
-
Object.defineProperty(exports, "DEFAULT_EDGE_PLACEMENT", { enumerable: true, get: function () { return model_3.DEFAULT_EDGE_PLACEMENT; } });
|
|
139
142
|
Object.defineProperty(exports, "checkEdgePlacement", { enumerable: true, get: function () { return model_3.checkEdgePlacement; } });
|
|
143
|
+
Object.defineProperty(exports, "DEFAULT_EDGE_PLACEMENT", { enumerable: true, get: function () { return model_3.DEFAULT_EDGE_PLACEMENT; } });
|
|
140
144
|
Object.defineProperty(exports, "edgeLayoutFeature", { enumerable: true, get: function () { return model_3.edgeLayoutFeature; } });
|
|
141
145
|
Object.defineProperty(exports, "isEdgeLayoutable", { enumerable: true, get: function () { return model_3.isEdgeLayoutable; } });
|
|
142
146
|
// Exclude client-side creation features (not supported in GLSP)
|
|
@@ -176,10 +180,10 @@ __exportStar(require("sprotty/lib/features/hover/popup-position-updater"), expor
|
|
|
176
180
|
// Alias SModel types
|
|
177
181
|
__exportStar(require("sprotty/lib/features/decoration/decoration-placer"), exports);
|
|
178
182
|
var model_7 = require("sprotty/lib/features/decoration/model");
|
|
179
|
-
Object.defineProperty(exports, "GDecoration", { enumerable: true, get: function () { return model_7.SDecoration; } });
|
|
180
|
-
Object.defineProperty(exports, "SIssueMarkerImpl", { enumerable: true, get: function () { return model_7.SIssueMarkerImpl; } });
|
|
181
183
|
Object.defineProperty(exports, "decorationFeature", { enumerable: true, get: function () { return model_7.decorationFeature; } });
|
|
184
|
+
Object.defineProperty(exports, "GDecoration", { enumerable: true, get: function () { return model_7.SDecoration; } });
|
|
182
185
|
Object.defineProperty(exports, "isDecoration", { enumerable: true, get: function () { return model_7.isDecoration; } });
|
|
186
|
+
Object.defineProperty(exports, "SIssueMarkerImpl", { enumerable: true, get: function () { return model_7.SIssueMarkerImpl; } });
|
|
183
187
|
__exportStar(require("sprotty/lib/features/decoration/views"), exports);
|
|
184
188
|
__exportStar(require("sprotty/lib/features/edge-intersection/intersection-finder"), exports);
|
|
185
189
|
__exportStar(require("sprotty/lib/features/edge-intersection/sweepline"), exports);
|
|
@@ -207,15 +211,15 @@ __exportStar(require("sprotty/lib/features/routing/manhattan-anchors"), exports)
|
|
|
207
211
|
__exportStar(require("sprotty/lib/features/routing/manhattan-edge-router"), exports);
|
|
208
212
|
// Alias SModel types
|
|
209
213
|
var model_10 = require("sprotty/lib/features/routing/model");
|
|
210
|
-
Object.defineProperty(exports, "GConnectableElement", { enumerable: true, get: function () { return model_10.SConnectableElementImpl; } });
|
|
211
|
-
Object.defineProperty(exports, "GDanglingAnchor", { enumerable: true, get: function () { return model_10.SDanglingAnchorImpl; } });
|
|
212
|
-
Object.defineProperty(exports, "GRoutableElement", { enumerable: true, get: function () { return model_10.SRoutableElementImpl; } });
|
|
213
|
-
Object.defineProperty(exports, "GRoutingHandle", { enumerable: true, get: function () { return model_10.SRoutingHandleImpl; } });
|
|
214
214
|
Object.defineProperty(exports, "connectableFeature", { enumerable: true, get: function () { return model_10.connectableFeature; } });
|
|
215
215
|
Object.defineProperty(exports, "edgeInProgressID", { enumerable: true, get: function () { return model_10.edgeInProgressID; } });
|
|
216
216
|
Object.defineProperty(exports, "edgeInProgressTargetHandleID", { enumerable: true, get: function () { return model_10.edgeInProgressTargetHandleID; } });
|
|
217
|
+
Object.defineProperty(exports, "GConnectableElement", { enumerable: true, get: function () { return model_10.SConnectableElementImpl; } });
|
|
218
|
+
Object.defineProperty(exports, "GDanglingAnchor", { enumerable: true, get: function () { return model_10.SDanglingAnchorImpl; } });
|
|
217
219
|
Object.defineProperty(exports, "getAbsoluteRouteBounds", { enumerable: true, get: function () { return model_10.getAbsoluteRouteBounds; } });
|
|
218
220
|
Object.defineProperty(exports, "getRouteBounds", { enumerable: true, get: function () { return model_10.getRouteBounds; } });
|
|
221
|
+
Object.defineProperty(exports, "GRoutableElement", { enumerable: true, get: function () { return model_10.SRoutableElementImpl; } });
|
|
222
|
+
Object.defineProperty(exports, "GRoutingHandle", { enumerable: true, get: function () { return model_10.SRoutingHandleImpl; } });
|
|
219
223
|
Object.defineProperty(exports, "isConnectable", { enumerable: true, get: function () { return model_10.isConnectable; } });
|
|
220
224
|
__exportStar(require("sprotty/lib/features/routing/polyline-anchors"), exports);
|
|
221
225
|
__exportStar(require("sprotty/lib/features/routing/polyline-edge-router"), exports);
|
package/lib/re-exports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"re-exports.js","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;AAElF;;GAEG;AACH,yDAAuC;AACvC,gEAA8C;AAE9C;;GAEG;AACH,6CAA6C;AAE7C,0CAA0C;AAC1C,mDAAmD;AACnD,oGAAoG;AACpG,gFAA+F;AAAtF,qHAAA,gBAAgB,OAAA;AACzB,0EAMiD;AAJ7C,uHAAA,qBAAqB,OAAA;
|
|
1
|
+
{"version":3,"file":"re-exports.js","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;AAElF;;GAEG;AACH,yDAAuC;AACvC,gEAA8C;AAE9C;;GAEG;AACH,6CAA6C;AAE7C,0CAA0C;AAC1C,mDAAmD;AACnD,oGAAoG;AACpG,gFAA+F;AAAtF,qHAAA,gBAAgB,OAAA;AACzB,0EAMiD;AAJ7C,uHAAA,qBAAqB,OAAA;AACrB,wHAAA,sBAAsB,OAAA;AAEtB,0GAAA,QAAQ,OAAA;AAEZ,0EAAwD;AAExD,wEAAsD;AACtD,qFAAmE;AACnE,qEAAmD;AAEnD,oEAAkD;AAClD,iFAA+D;AAC/D,4FAA4F;AAC5F,y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4GAAA,eAAe,OAAA;AAE7D,qDAAqD;AACrD,wEAAsD;AACtD,mCAAmC;AACnC,2DAA2D;AAC3D,+DAA+D;AAC/D,mEAAiD;AACjD,wEAAsD;AACtD,sDAAsD;AAEtD,kDAAkD;AAClD,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,8DAA4C;AAC5C,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/sprotty",
|
|
3
|
-
"version": "2.6.0-next.
|
|
3
|
+
"version": "2.6.0-next.7+4f29c67",
|
|
4
4
|
"description": "Augmented reexport of the sprotty API for GLSP",
|
|
5
5
|
"homepage": "https://www.eclipse.org/glsp/",
|
|
6
6
|
"bugs": "https://github.com/eclipse-glsp/glsp/issues",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"watch": "tsc -w"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@eclipse-glsp/protocol": "2.6.0-next.
|
|
36
|
+
"@eclipse-glsp/protocol": "2.6.0-next.7+4f29c67",
|
|
37
37
|
"autocompleter": "^9.1.0",
|
|
38
38
|
"snabbdom": "~3.5.1",
|
|
39
39
|
"sprotty": "1.4.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "4f29c678ef23d79cc758a1aa44245578ac406c2c"
|
|
55
55
|
}
|
package/src/api-override.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action, Event, LabeledAction, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
16
|
+
import { Action, Event, LabeledAction, MenuItem, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { VNode } from 'snabbdom';
|
|
19
19
|
import {
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
IContextMenuItemProvider as SIContextMenuItemProvider,
|
|
30
30
|
IVNodePostprocessor as SIVNodePostprocessor,
|
|
31
31
|
KeyListener as SKeyListener,
|
|
32
|
+
MenuItem as SMenuItem,
|
|
32
33
|
MouseListener as SMouseListener
|
|
33
34
|
} from 'sprotty';
|
|
34
35
|
|
|
@@ -253,3 +254,26 @@ export interface ICommandStack extends SICommandStack {
|
|
|
253
254
|
* using a provider to avoid cyclic injection dependencies.
|
|
254
255
|
*/
|
|
255
256
|
export type CommandStackProvider = () => Promise<ICommandStack>;
|
|
257
|
+
|
|
258
|
+
export type ClientMenuItem = SMenuItem;
|
|
259
|
+
export namespace ClientMenuItem {
|
|
260
|
+
/**
|
|
261
|
+
* Converts a {@link MenuItem} into a {@link ClientMenuItem}.
|
|
262
|
+
* Note that functions are created for the boolean attributes of the server item.
|
|
263
|
+
* If the server item does not define a particular attribute, the corresponding function in the client item will be `undefined`.
|
|
264
|
+
* The children are recursively converted as well.
|
|
265
|
+
* @param serverItem The server menu item to convert.
|
|
266
|
+
* @returns The converted client menu item.
|
|
267
|
+
*/
|
|
268
|
+
export function convert(item: MenuItem): ClientMenuItem {
|
|
269
|
+
const { children, isEnabled, isToggled, isVisible, ...coreProps } = item;
|
|
270
|
+
const clientItem: ClientMenuItem = {
|
|
271
|
+
...coreProps,
|
|
272
|
+
isEnabled: isEnabled !== undefined ? () => isEnabled : undefined,
|
|
273
|
+
isVisible: isVisible !== undefined ? () => isVisible : undefined,
|
|
274
|
+
isToggled: isToggled !== undefined ? () => isToggled : undefined,
|
|
275
|
+
children: children?.map(child => ClientMenuItem.convert(child))
|
|
276
|
+
};
|
|
277
|
+
return clientItem;
|
|
278
|
+
}
|
|
279
|
+
}
|
package/src/re-exports.ts
CHANGED
|
@@ -32,8 +32,8 @@ export { ActionDispatcher, PostponedAction } from 'sprotty/lib/base/actions/acti
|
|
|
32
32
|
export {
|
|
33
33
|
ActionHandlerRegistration,
|
|
34
34
|
ActionHandlerRegistry,
|
|
35
|
-
IActionHandlerInitializer,
|
|
36
35
|
configureActionHandler,
|
|
36
|
+
IActionHandlerInitializer,
|
|
37
37
|
onAction
|
|
38
38
|
} from 'sprotty/lib/base/actions/action-handler';
|
|
39
39
|
export * from 'sprotty/lib/base/actions/diagram-locker';
|
|
@@ -52,18 +52,19 @@ export * from 'sprotty/lib/base/features/initialize-canvas';
|
|
|
52
52
|
export * from 'sprotty/lib/base/features/set-model';
|
|
53
53
|
// Exclude SModelElementImpl as it as exported with augmentation module
|
|
54
54
|
export {
|
|
55
|
+
createRandomId,
|
|
55
56
|
FeatureSet,
|
|
56
57
|
SChildElementImpl as GChildElement,
|
|
57
58
|
SModelElementImpl as GModelElement,
|
|
58
59
|
SModelRootImpl as GModelRoot,
|
|
59
60
|
SParentElementImpl as GParentElement,
|
|
60
61
|
IModelIndex,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
isParent
|
|
62
|
+
isParent,
|
|
63
|
+
ModelIndexImpl
|
|
64
64
|
} from 'sprotty/lib/base/model/smodel';
|
|
65
65
|
|
|
66
66
|
export {
|
|
67
|
+
createFeatureSet,
|
|
67
68
|
CustomFeatures,
|
|
68
69
|
EMPTY_ROOT,
|
|
69
70
|
SModelElementConstructor as GModelElementConstructor,
|
|
@@ -71,8 +72,7 @@ export {
|
|
|
71
72
|
SModelFactory as GModelFactory,
|
|
72
73
|
IModelFactory,
|
|
73
74
|
// exported without alias we extend it in glsp-client to `GModelRegistry`
|
|
74
|
-
SModelRegistry
|
|
75
|
-
createFeatureSet
|
|
75
|
+
SModelRegistry
|
|
76
76
|
} from 'sprotty/lib/base/model/smodel-factory';
|
|
77
77
|
export * from 'sprotty/lib/base/model/smodel-utils';
|
|
78
78
|
|
|
@@ -101,46 +101,47 @@ export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
|
|
|
101
101
|
export { Layouter, StatefulLayouter } from 'sprotty/lib/features/bounds/layout';
|
|
102
102
|
export { AbstractLayoutOptions } from 'sprotty/lib/features/bounds/layout-options';
|
|
103
103
|
export {
|
|
104
|
-
InternalBoundsAware as BoundsAware,
|
|
105
|
-
SShapeElementImpl as GShapeElement,
|
|
106
|
-
InternalLayoutContainer as LayoutContainer,
|
|
107
|
-
InternalLayoutableChild as LayoutableChild,
|
|
108
|
-
ModelLayoutOptions,
|
|
109
104
|
alignFeature,
|
|
105
|
+
InternalBoundsAware as BoundsAware,
|
|
110
106
|
boundsFeature,
|
|
111
107
|
findChildrenAtPosition,
|
|
112
108
|
getAbsoluteBounds,
|
|
113
109
|
getAbsoluteClientBounds,
|
|
110
|
+
SShapeElementImpl as GShapeElement,
|
|
114
111
|
isAlignable,
|
|
115
112
|
isBoundsAware,
|
|
116
|
-
isLayoutContainer,
|
|
117
113
|
isLayoutableChild,
|
|
114
|
+
isLayoutContainer,
|
|
118
115
|
isSizeable,
|
|
116
|
+
InternalLayoutableChild as LayoutableChild,
|
|
117
|
+
layoutableChildFeature,
|
|
118
|
+
InternalLayoutContainer as LayoutContainer,
|
|
119
119
|
layoutContainerFeature,
|
|
120
|
-
|
|
120
|
+
ModelLayoutOptions
|
|
121
121
|
} from 'sprotty/lib/features/bounds/model';
|
|
122
122
|
// exclude stack layout as its not supported in GLSP
|
|
123
123
|
// export * from 'sprotty/lib/features/bounds/stack-layout';
|
|
124
124
|
export { VBoxLayoutOptions } from 'sprotty/lib/features/bounds/vbox-layout';
|
|
125
125
|
export * from 'sprotty/lib/features/bounds/views';
|
|
126
126
|
|
|
127
|
-
export { ButtonHandlerRegistry,
|
|
127
|
+
export { ButtonHandlerRegistry, configureButtonHandler, IButtonHandlerRegistration } from 'sprotty/lib/features/button/button-handler';
|
|
128
128
|
export { SButtonImpl as GButton } from 'sprotty/lib/features/button/model';
|
|
129
129
|
|
|
130
|
+
// exlucde ICommandPaletteActionProvider. Exported via api-override module instead
|
|
130
131
|
export {
|
|
131
132
|
CommandPaletteActionProviderRegistry,
|
|
132
133
|
RevealNamedElementActionProvider
|
|
133
134
|
} from 'sprotty/lib/features/command-palette/action-providers';
|
|
134
135
|
export * from 'sprotty/lib/features/command-palette/command-palette';
|
|
135
136
|
|
|
136
|
-
// Exclude
|
|
137
|
-
export { Anchor, IContextMenuService, IContextMenuServiceProvider } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
137
|
+
// Exclude MenuItem. Exported via api-override as ClientMenu instead
|
|
138
|
+
export { Anchor, IContextMenuService, IContextMenuServiceProvider, toAnchor } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
138
139
|
export { ContextMenuProviderRegistry, DeleteContextMenuItemProvider } from 'sprotty/lib/features/context-menu/menu-providers';
|
|
139
140
|
export * from 'sprotty/lib/features/context-menu/mouse-listener';
|
|
140
141
|
|
|
141
142
|
export * from 'sprotty/lib/features/edge-layout/di.config';
|
|
142
143
|
export * from 'sprotty/lib/features/edge-layout/edge-layout';
|
|
143
|
-
export {
|
|
144
|
+
export { checkEdgePlacement, DEFAULT_EDGE_PLACEMENT, edgeLayoutFeature, isEdgeLayoutable } from 'sprotty/lib/features/edge-layout/model';
|
|
144
145
|
// Exclude client-side creation features (not supported in GLSP)
|
|
145
146
|
// export * from 'sprotty/lib/features/edit/create';
|
|
146
147
|
// export * from 'sprotty/lib/features/edit/create-on-drag';
|
|
@@ -171,10 +172,10 @@ export * from 'sprotty/lib/features/hover/popup-position-updater';
|
|
|
171
172
|
export * from 'sprotty/lib/features/decoration/decoration-placer';
|
|
172
173
|
export {
|
|
173
174
|
Decoration,
|
|
174
|
-
SDecoration as GDecoration,
|
|
175
|
-
SIssueMarkerImpl,
|
|
176
175
|
decorationFeature,
|
|
177
|
-
|
|
176
|
+
SDecoration as GDecoration,
|
|
177
|
+
isDecoration,
|
|
178
|
+
SIssueMarkerImpl
|
|
178
179
|
} from 'sprotty/lib/features/decoration/model';
|
|
179
180
|
export * from 'sprotty/lib/features/decoration/views';
|
|
180
181
|
|
|
@@ -192,7 +193,7 @@ export * from 'sprotty/lib/features/nameable/model';
|
|
|
192
193
|
export * from 'sprotty/lib/features/open/model';
|
|
193
194
|
export * from 'sprotty/lib/features/open/open';
|
|
194
195
|
|
|
195
|
-
export {
|
|
196
|
+
export { getModelBounds, getProjectedBounds, getProjections, isProjectable, ViewProjection } from 'sprotty/lib/features/projection/model';
|
|
196
197
|
export * from 'sprotty/lib/features/projection/views';
|
|
197
198
|
|
|
198
199
|
export * from 'sprotty/lib/features/routing/abstract-edge-router';
|
|
@@ -205,17 +206,17 @@ export * from 'sprotty/lib/features/routing/manhattan-edge-router';
|
|
|
205
206
|
// Alias SModel types
|
|
206
207
|
export {
|
|
207
208
|
Connectable,
|
|
208
|
-
SConnectableElementImpl as GConnectableElement,
|
|
209
|
-
SDanglingAnchorImpl as GDanglingAnchor,
|
|
210
|
-
SRoutableElementImpl as GRoutableElement,
|
|
211
|
-
SRoutingHandleImpl as GRoutingHandle,
|
|
212
|
-
RoutingHandleKind,
|
|
213
209
|
connectableFeature,
|
|
214
210
|
edgeInProgressID,
|
|
215
211
|
edgeInProgressTargetHandleID,
|
|
212
|
+
SConnectableElementImpl as GConnectableElement,
|
|
213
|
+
SDanglingAnchorImpl as GDanglingAnchor,
|
|
216
214
|
getAbsoluteRouteBounds,
|
|
217
215
|
getRouteBounds,
|
|
218
|
-
|
|
216
|
+
SRoutableElementImpl as GRoutableElement,
|
|
217
|
+
SRoutingHandleImpl as GRoutingHandle,
|
|
218
|
+
isConnectable,
|
|
219
|
+
RoutingHandleKind
|
|
219
220
|
} from 'sprotty/lib/features/routing/model';
|
|
220
221
|
export * from 'sprotty/lib/features/routing/polyline-anchors';
|
|
221
222
|
export * from 'sprotty/lib/features/routing/polyline-edge-router';
|