@eclipse-glsp/sprotty 1.1.0-next.97ea035.286

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.
@@ -0,0 +1,54 @@
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
+ import { Action, LabeledAction, Point } from '@eclipse-glsp/protocol';
17
+ import { VNode } from 'snabbdom';
18
+ import { SButtonImpl as GButton, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, ICommand, IActionHandler as SIActionHandler, IButtonHandler as SIButtonHandler, ICommandPaletteActionProvider as SICommandPaletteActionProvider, IContextMenuItemProvider as SIContextMenuItemProvider, KeyListener as SKeyListener, MouseListener as SMouseListener } from 'sprotty';
19
+ /**
20
+ * An action handler accepts an action and reacts to it by returning either a command to be
21
+ * executed, or another action to be dispatched.
22
+ */
23
+ export interface IActionHandler extends SIActionHandler {
24
+ handle(action: Action): ICommand | Action | void;
25
+ }
26
+ export interface IButtonHandler extends SIButtonHandler {
27
+ buttonPressed(button: GButton): (Action | Promise<Action>)[];
28
+ }
29
+ export interface ICommandPaletteActionProvider extends SICommandPaletteActionProvider {
30
+ getActions(root: Readonly<GModelRoot>, text: string, lastMousePosition?: Point, index?: number): Promise<LabeledAction[]>;
31
+ }
32
+ export interface IContextMenuItemProvider extends SIContextMenuItemProvider {
33
+ getItems(root: Readonly<GModelRoot>, lastMousePosition?: Point): Promise<LabeledAction[]>;
34
+ }
35
+ export declare class KeyListener extends SKeyListener {
36
+ keyDown(element: GModelElement, event: KeyboardEvent): Action[];
37
+ keyUp(element: GModelElement, event: KeyboardEvent): Action[];
38
+ }
39
+ export declare class MouseListener extends SMouseListener {
40
+ mouseOver(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
41
+ mouseOut(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
42
+ mouseEnter(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
43
+ mouseLeave(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
44
+ mouseDown(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
45
+ mouseMove(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
46
+ mouseUp(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
47
+ wheel(target: GModelElement, event: WheelEvent): (Action | Promise<Action>)[];
48
+ doubleClick(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
49
+ contextMenu(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
50
+ dragOver(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
51
+ drop(target: GModelElement, event: MouseEvent): (Action | Promise<Action>)[];
52
+ decorate(vnode: VNode, element: GModelElement): VNode;
53
+ }
54
+ //# sourceMappingURL=action-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-override.d.ts","sourceRoot":"","sources":["../src/action-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEtE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EACH,WAAW,IAAI,OAAO,EACtB,iBAAiB,IAAI,aAAa,EAClC,cAAc,IAAI,UAAU,EAC5B,QAAQ,EACR,cAAc,IAAI,eAAe,EACjC,cAAc,IAAI,eAAe,EAC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AAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE;IAI5E,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,GAAG,KAAK;CAGjE"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.MouseListener = exports.KeyListener = void 0;
10
+ const inversify_1 = require("inversify");
11
+ const sprotty_1 = require("sprotty");
12
+ let KeyListener = exports.KeyListener = class KeyListener extends sprotty_1.KeyListener {
13
+ keyDown(element, event) {
14
+ return [];
15
+ }
16
+ keyUp(element, event) {
17
+ return [];
18
+ }
19
+ };
20
+ exports.KeyListener = KeyListener = __decorate([
21
+ (0, inversify_1.injectable)()
22
+ ], KeyListener);
23
+ let MouseListener = exports.MouseListener = class MouseListener extends sprotty_1.MouseListener {
24
+ mouseOver(target, event) {
25
+ return [];
26
+ }
27
+ mouseOut(target, event) {
28
+ return [];
29
+ }
30
+ mouseEnter(target, event) {
31
+ return [];
32
+ }
33
+ mouseLeave(target, event) {
34
+ return [];
35
+ }
36
+ mouseDown(target, event) {
37
+ return [];
38
+ }
39
+ mouseMove(target, event) {
40
+ return [];
41
+ }
42
+ mouseUp(target, event) {
43
+ return [];
44
+ }
45
+ wheel(target, event) {
46
+ return [];
47
+ }
48
+ doubleClick(target, event) {
49
+ return [];
50
+ }
51
+ contextMenu(target, event) {
52
+ return [];
53
+ }
54
+ dragOver(target, event) {
55
+ return [];
56
+ }
57
+ drop(target, event) {
58
+ return [];
59
+ }
60
+ decorate(vnode, element) {
61
+ return vnode;
62
+ }
63
+ };
64
+ exports.MouseListener = MouseListener = __decorate([
65
+ (0, inversify_1.injectable)()
66
+ ], MouseListener);
67
+ //# sourceMappingURL=action-override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-override.js","sourceRoot":"","sources":["../src/action-override.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAEvC,qCAWiB;AA+BV,IAAM,WAAW,yBAAjB,MAAM,WAAY,SAAQ,qBAAY;IAChC,OAAO,CAAC,OAAsB,EAAE,KAAoB;QACzD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,KAAK,CAAC,OAAsB,EAAE,KAAoB;QACvD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;sBARY,WAAW;IADvB,IAAA,sBAAU,GAAE;GACA,WAAW,CAQvB;AAGM,IAAM,aAAa,2BAAnB,MAAM,aAAc,SAAQ,uBAAc;IACpC,SAAS,CAAC,MAAqB,EAAE,KAAiB;QACvD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,QAAQ,CAAC,MAAqB,EAAE,KAAiB;QACtD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,UAAU,CAAC,MAAqB,EAAE,KAAiB;QACxD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,UAAU,CAAC,MAAqB,EAAE,KAAiB;QACxD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,SAAS,CAAC,MAAqB,EAAE,KAAiB;QACvD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,SAAS,CAAC,MAAqB,EAAE,KAAiB;QACvD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,OAAO,CAAC,MAAqB,EAAE,KAAiB;QACrD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,KAAK,CAAC,MAAqB,EAAE,KAAiB;QACnD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,WAAW,CAAC,MAAqB,EAAE,KAAiB;QACzD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,WAAW,CAAC,MAAqB,EAAE,KAAiB;QACzD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,QAAQ,CAAC,MAAqB,EAAE,KAAiB;QACtD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,IAAI,CAAC,MAAqB,EAAE,KAAiB;QAClD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,QAAQ,CAAC,KAAY,EAAE,OAAsB;QAClD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;wBApDY,aAAa;IADzB,IAAA,sBAAU,GAAE;GACA,aAAa,CAoDzB"}
@@ -0,0 +1,31 @@
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
+ import { FeatureModule } from '@eclipse-glsp/protocol';
17
+ import sprottyDefaultModule from 'sprotty/lib/base/di.config';
18
+ export declare const buttonModule: FeatureModule;
19
+ export declare const edgeEditModule: FeatureModule;
20
+ export declare const edgeIntersectionModule: FeatureModule;
21
+ export declare const edgeLayoutModule: FeatureModule;
22
+ export declare const expandModule: FeatureModule;
23
+ export declare const fadeModule: FeatureModule;
24
+ export declare const labelEditUiModule: FeatureModule;
25
+ export declare const modelSourceModule: FeatureModule;
26
+ export declare const moveModule: FeatureModule;
27
+ export declare const openModule: FeatureModule;
28
+ export declare const updateModule: FeatureModule;
29
+ export declare const zorderModule: FeatureModule;
30
+ export { sprottyDefaultModule };
31
+ //# sourceMappingURL=feature-modules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-modules.d.ts","sourceRoot":"","sources":["../src/feature-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAcvD,OAAO,oBAAoB,MAAM,4BAA4B,CAAC;AAG9D,eAAO,MAAM,YAAY,eAAkD,CAAC;AAC5E,eAAO,MAAM,cAAc,eAAoD,CAAC;AAChF,eAAO,MAAM,sBAAsB,eAA4D,CAAC;AAChG,eAAO,MAAM,gBAAgB,eAAsD,CAAC;AACpF,eAAO,MAAM,YAAY,eAAkD,CAAC;AAC5E,eAAO,MAAM,UAAU,eAAgD,CAAC;AACxE,eAAO,MAAM,iBAAiB,eAAuD,CAAC;AACtF,eAAO,MAAM,iBAAiB,eAAuD,CAAC;AACtF,eAAO,MAAM,UAAU,eAAgD,CAAC;AACxE,eAAO,MAAM,UAAU,eAAgD,CAAC;AACxE,eAAO,MAAM,YAAY,eAAkD,CAAC;AAC5E,eAAO,MAAM,YAAY,eAAkD,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2023 EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ /* eslint-disable no-restricted-imports */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.sprottyDefaultModule = exports.zorderModule = exports.updateModule = exports.openModule = exports.moveModule = exports.modelSourceModule = exports.labelEditUiModule = exports.fadeModule = exports.expandModule = exports.edgeLayoutModule = exports.edgeIntersectionModule = exports.edgeEditModule = exports.buttonModule = void 0;
20
+ const protocol_1 = require("@eclipse-glsp/protocol");
21
+ const di_config_1 = require("sprotty/lib/features/button/di.config");
22
+ const di_config_2 = require("sprotty/lib/features/edge-intersection/di.config");
23
+ const di_config_3 = require("sprotty/lib/features/edge-layout/di.config");
24
+ const di_config_4 = require("sprotty/lib/features/edit/di.config");
25
+ const di_config_5 = require("sprotty/lib/features/expand/di.config");
26
+ const di_config_6 = require("sprotty/lib/features/fade/di.config");
27
+ const di_config_7 = require("sprotty/lib/features/move/di.config");
28
+ const di_config_8 = require("sprotty/lib/features/update/di.config");
29
+ const di_config_9 = require("sprotty/lib/features/zorder/di.config");
30
+ const di_config_10 = require("sprotty/lib/model-source/di.config");
31
+ const di_config_11 = require("sprotty/lib/base/di.config");
32
+ exports.sprottyDefaultModule = di_config_11.default;
33
+ const di_config_12 = require("sprotty/lib/features/open/di.config");
34
+ exports.buttonModule = new protocol_1.FeatureModule(di_config_1.default.registry);
35
+ exports.edgeEditModule = new protocol_1.FeatureModule(di_config_4.edgeEditModule.registry);
36
+ exports.edgeIntersectionModule = new protocol_1.FeatureModule(di_config_2.default.registry);
37
+ exports.edgeLayoutModule = new protocol_1.FeatureModule(di_config_3.default.registry);
38
+ exports.expandModule = new protocol_1.FeatureModule(di_config_5.default.registry);
39
+ exports.fadeModule = new protocol_1.FeatureModule(di_config_6.default.registry);
40
+ exports.labelEditUiModule = new protocol_1.FeatureModule(di_config_4.labelEditUiModule.registry);
41
+ exports.modelSourceModule = new protocol_1.FeatureModule(di_config_10.default.registry);
42
+ exports.moveModule = new protocol_1.FeatureModule(di_config_7.default.registry);
43
+ exports.openModule = new protocol_1.FeatureModule(di_config_12.default.registry);
44
+ exports.updateModule = new protocol_1.FeatureModule(di_config_8.default.registry);
45
+ exports.zorderModule = new protocol_1.FeatureModule(di_config_9.default.registry);
46
+ //# sourceMappingURL=feature-modules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-modules.js","sourceRoot":"","sources":["../src/feature-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;AAClF,0CAA0C;;;AAE1C,qDAAuD;AACvD,qEAAwE;AACxE,gFAA6F;AAC7F,0EAAiF;AACjF,mEAG6C;AAC7C,qEAAwE;AACxE,mEAAoE;AACpE,mEAAoE;AACpE,qEAAwE;AACxE,qEAAwE;AACxE,mEAA0E;AAC1E,2DAA8D;AAgBrD,+BAhBF,oBAAoB,CAgBE;AAf7B,oEAAoE;AAEvD,QAAA,YAAY,GAAG,IAAI,wBAAa,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAC/D,QAAA,cAAc,GAAG,IAAI,wBAAa,CAAC,0BAAqB,CAAC,QAAQ,CAAC,CAAC;AACnE,QAAA,sBAAsB,GAAG,IAAI,wBAAa,CAAC,mBAA6B,CAAC,QAAQ,CAAC,CAAC;AACnF,QAAA,gBAAgB,GAAG,IAAI,wBAAa,CAAC,mBAAuB,CAAC,QAAQ,CAAC,CAAC;AACvE,QAAA,YAAY,GAAG,IAAI,wBAAa,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAC/D,QAAA,UAAU,GAAG,IAAI,wBAAa,CAAC,mBAAiB,CAAC,QAAQ,CAAC,CAAC;AAC3D,QAAA,iBAAiB,GAAG,IAAI,wBAAa,CAAC,6BAAwB,CAAC,QAAQ,CAAC,CAAC;AACzE,QAAA,iBAAiB,GAAG,IAAI,wBAAa,CAAC,oBAAwB,CAAC,QAAQ,CAAC,CAAC;AACzE,QAAA,UAAU,GAAG,IAAI,wBAAa,CAAC,mBAAiB,CAAC,QAAQ,CAAC,CAAC;AAC3D,QAAA,UAAU,GAAG,IAAI,wBAAa,CAAC,oBAAiB,CAAC,QAAQ,CAAC,CAAC;AAC3D,QAAA,YAAY,GAAG,IAAI,wBAAa,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAC/D,QAAA,YAAY,GAAG,IAAI,wBAAa,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,145 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2022-2023 STMicroelectronics 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
+ * Selective custom reexport of the sprotty API. Also provides augmentations/adaptions
18
+ * of certain type definitions for GLSP. Using this custom reexport allows us to gracefully
19
+ * update to newer sprotty versions without hard API breaks.
20
+ */
21
+ /**
22
+ * @eclipse-glsp/protocol
23
+ */
24
+ export * from '@eclipse-glsp/protocol';
25
+ export * from './action-override';
26
+ export * from 'sprotty/lib/base/actions/action-dispatcher';
27
+ export { ActionHandlerRegistration, ActionHandlerRegistry, configureActionHandler, onAction } from 'sprotty/lib/base/actions/action-handler';
28
+ export * from 'sprotty/lib/base/actions/diagram-locker';
29
+ export * from 'sprotty/lib/base/animations/animation';
30
+ export * from 'sprotty/lib/base/animations/animation-frame-syncer';
31
+ export * from 'sprotty/lib/base/animations/easing';
32
+ export * from 'sprotty/lib/base/commands/command';
33
+ export * from 'sprotty/lib/base/commands/command-registration';
34
+ export * from 'sprotty/lib/base/commands/command-stack';
35
+ export * from 'sprotty/lib/base/commands/command-stack-options';
36
+ export * from 'sprotty/lib/base/features/initialize-canvas';
37
+ export * from 'sprotty/lib/base/features/set-model';
38
+ export { FeatureSet, SChildElementImpl as GChildElement, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, SParentElementImpl as GParentElement, IModelIndex, ModelIndexImpl, createRandomId, isParent } from 'sprotty/lib/base/model/smodel';
39
+ export { CustomFeatures, EMPTY_ROOT, SModelElementConstructor as GModelElementConstructor, SModelElementRegistration as GModelElementRegistration, SModelFactory as GModelFactory, IModelFactory, SModelRegistry, createFeatureSet } from 'sprotty/lib/base/model/smodel-factory';
40
+ export * from 'sprotty/lib/base/model/smodel-utils';
41
+ export * from 'sprotty/lib/base/ui-extensions/ui-extension';
42
+ export * from 'sprotty/lib/base/ui-extensions/ui-extension-registry';
43
+ export * from 'sprotty/lib/base/views/dom-helper';
44
+ export { KeyTool } from 'sprotty/lib/base/views/key-tool';
45
+ export { MouseEventKind, MousePositionTracker, MouseTool, PopupMouseTool } from 'sprotty/lib/base/views/mouse-tool';
46
+ export * from 'sprotty/lib/base/views/thunk-view';
47
+ export * from 'sprotty/lib/base/views/view';
48
+ export * from 'sprotty/lib/base/views/viewer';
49
+ export * from 'sprotty/lib/base/views/viewer-cache';
50
+ export * from 'sprotty/lib/base/views/viewer-options';
51
+ export * from 'sprotty/lib/base/views/vnode-postprocessor';
52
+ export * from 'sprotty/lib/base/views/vnode-utils';
53
+ export * from './types';
54
+ export * from 'sprotty/lib/features/bounds/abstract-layout';
55
+ export * from 'sprotty/lib/features/bounds/bounds-manipulation';
56
+ export * from 'sprotty/lib/features/bounds/hbox-layout';
57
+ export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
58
+ export * from 'sprotty/lib/features/bounds/layout';
59
+ export * from 'sprotty/lib/features/bounds/layout-options';
60
+ export { Alignable, BoundsAware, SShapeElementImpl as GShapeElement, LayoutContainer, LayoutableChild, ModelLayoutOptions, boundsFeature, findChildrenAtPosition, getAbsoluteBounds, getAbsoluteClientBounds, isAlignable, isBoundsAware, isLayoutContainer, isLayoutableChild, isSizeable, layoutContainerFeature, layoutableChildFeature } from 'sprotty/lib/features/bounds/model';
61
+ export * from 'sprotty/lib/features/bounds/vbox-layout';
62
+ export * from 'sprotty/lib/features/bounds/views';
63
+ export { ButtonHandlerRegistry, IButtonHandlerRegistration, configureButtonHandler } from 'sprotty/lib/features/button/button-handler';
64
+ export { SButtonImpl as GButton, SButtonSchema as GButtonSchema } from 'sprotty/lib/features/button/model';
65
+ export { CommandPaletteActionProviderRegistry, RevealNamedElementActionProvider } from 'sprotty/lib/features/command-palette/action-providers';
66
+ export * from 'sprotty/lib/features/command-palette/command-palette';
67
+ export { Anchor, IContextMenuService, IContextMenuServiceProvider } from 'sprotty/lib/features/context-menu/context-menu-service';
68
+ export { ContextMenuProviderRegistry, DeleteContextMenuItemProvider } from 'sprotty/lib/features/context-menu/menu-providers';
69
+ export * from 'sprotty/lib/features/context-menu/mouse-listener';
70
+ export * from 'sprotty/lib/features/edge-layout/di.config';
71
+ export * from 'sprotty/lib/features/edge-layout/edge-layout';
72
+ export * from 'sprotty/lib/features/edge-layout/model';
73
+ export * from 'sprotty/lib/features/edit/delete';
74
+ export * from 'sprotty/lib/features/edit/edit-label';
75
+ export * from 'sprotty/lib/features/edit/edit-label-ui';
76
+ export * from 'sprotty/lib/features/edit/edit-routing';
77
+ export * from 'sprotty/lib/features/edit/model';
78
+ export * from 'sprotty/lib/features/expand/expand';
79
+ export * from 'sprotty/lib/features/expand/model';
80
+ export * from 'sprotty/lib/features/expand/views';
81
+ export { ExportSvgCommand, ExportSvgKeyListener, ExportSvgPostprocessor } from 'sprotty/lib/features/export/export';
82
+ export * from 'sprotty/lib/features/export/model';
83
+ export { SvgExporter } from 'sprotty/lib/features/export/svg-exporter';
84
+ export * from 'sprotty/lib/features/fade/fade';
85
+ export * from 'sprotty/lib/features/fade/model';
86
+ export * from 'sprotty/lib/features/hover/hover';
87
+ export * from 'sprotty/lib/features/hover/model';
88
+ export * from 'sprotty/lib/features/hover/popup-position-updater';
89
+ export * from 'sprotty/lib/features/decoration/decoration-placer';
90
+ export { Decoration, SDecoration as GDecoration, SIssue as GIssue, SIssueSeverity as GIssueSeverity, SIssueMarker } from 'sprotty/lib/features/decoration/model';
91
+ export * from 'sprotty/lib/features/decoration/views';
92
+ export * from 'sprotty/lib/features/edge-intersection/intersection-finder';
93
+ export * from 'sprotty/lib/features/edge-intersection/sweepline';
94
+ export * from 'sprotty/lib/features/move/model';
95
+ export * from 'sprotty/lib/features/move/move';
96
+ export * from 'sprotty/lib/features/move/snap';
97
+ export * from 'sprotty/lib/features/nameable/model';
98
+ export * from 'sprotty/lib/features/open/model';
99
+ export * from 'sprotty/lib/features/open/open';
100
+ export * from 'sprotty/lib/features/projection/model';
101
+ export * from 'sprotty/lib/features/projection/views';
102
+ export * from 'sprotty/lib/features/routing/abstract-edge-router';
103
+ export * from 'sprotty/lib/features/routing/anchor';
104
+ export * from 'sprotty/lib/features/routing/bezier-anchors';
105
+ export * from 'sprotty/lib/features/routing/bezier-edge-router';
106
+ export * from 'sprotty/lib/features/routing/manhattan-anchors';
107
+ export * from 'sprotty/lib/features/routing/manhattan-edge-router';
108
+ export { Connectable, SConnectableElementImpl as GConnectableElement, SDanglingAnchorImpl as GDanglingAnchor, SRoutableElementImpl as GRoutableElement, SRoutingHandleImpl as GRoutingHandle, RoutingHandleKind, connectableFeature, edgeInProgressID, edgeInProgressTargetHandleID, getAbsoluteRouteBounds, getRouteBounds, isConnectable } from 'sprotty/lib/features/routing/model';
109
+ export * from 'sprotty/lib/features/routing/polyline-anchors';
110
+ export * from 'sprotty/lib/features/routing/polyline-edge-router';
111
+ export * from 'sprotty/lib/features/routing/routing';
112
+ export * from 'sprotty/lib/features/routing/views';
113
+ export * from 'sprotty/lib/features/select/model';
114
+ export { GetSelectionCommand, SelectKeyboardListener, SelectMouseListener, SelectAllCommand as SprottySelectAllCommand, SelectCommand as SprottySelectCommand } from 'sprotty/lib/features/select/select';
115
+ export * from 'sprotty/lib/features/update/model-matching';
116
+ export * from 'sprotty/lib/features/update/update-model';
117
+ export * from 'sprotty/lib/features/viewport/center-fit';
118
+ export * from 'sprotty/lib/features/viewport/model';
119
+ export * from 'sprotty/lib/features/viewport/scroll';
120
+ export * from 'sprotty/lib/features/viewport/viewport';
121
+ export { ViewportRootElementImpl as GViewportRootElement } from 'sprotty/lib/features/viewport/viewport-root';
122
+ export * from 'sprotty/lib/features/viewport/zoom';
123
+ export * from 'sprotty/lib/features/zorder/zorder';
124
+ export { SCompartmentImpl as GCompartment, SGraphIndex as GGraphIndex, SLabelImpl as GLabel, SNodeImpl as GNode, SPortImpl as GPort, SEdgeImpl, SGraphImpl } from 'sprotty/lib/graph/sgraph';
125
+ export { BezierCurveEdgeView, SBezierControlHandleView as GBezierControlHandleView, SBezierCreateHandleView as GBezierCreateHandleView, SCompartmentView as GCompartmentView, SGraphView as GGraphView, SLabelView as GLabelView, SRoutingHandleView as GRoutingHandleView, JumpingPolylineEdgeView, PolylineEdgeView, PolylineEdgeViewWithGapsOnIntersections } from 'sprotty/lib/graph/views';
126
+ export * from './feature-modules';
127
+ export * from 'sprotty/lib/lib/generic-views';
128
+ export * from 'sprotty/lib/lib/html-views';
129
+ export * from 'sprotty/lib/lib/jsx';
130
+ export { CircularNode, CircularPort, DiamondNode, ForeignObjectElementImpl as GForeignObjectElement, HtmlRootImpl as GHtmlRoot, PreRenderedElementImpl as GPreRenderedElement, ShapedPreRenderedElementImpl as GShapedPreRenderedElement, RectangularNode, RectangularPort } from 'sprotty/lib/lib/model';
131
+ export * from 'sprotty/lib/lib/modules';
132
+ export * from 'sprotty/lib/lib/svg-views';
133
+ export * from 'sprotty/lib/model-source/commit-model';
134
+ export * from 'sprotty/lib/model-source/logging';
135
+ export * from 'sprotty/lib/model-source/model-source';
136
+ export * from 'sprotty/lib/utils/browser';
137
+ export * from 'sprotty/lib/utils/codicon';
138
+ export * from 'sprotty/lib/utils/color';
139
+ export * from 'sprotty/lib/utils/geometry';
140
+ export * from 'sprotty/lib/utils/inversify';
141
+ export * from 'sprotty/lib/utils/iterable';
142
+ export * from 'sprotty/lib/utils/keyboard';
143
+ export * from 'sprotty/lib/utils/logging';
144
+ export * from 'sprotty/lib/utils/registry';
145
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;;;GAIG;AAEH;;GAEG;AACH,cAAc,wBAAwB,CAAC;AAEvC,cAAc,mBAAmB,CAAC;AASlC,cAAc,4CAA4C,CAAC;AAC3D,OAAO,EACH,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,QAAQ,EACX,MAAM,yCAAyC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AAExD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oCAAoC,CAAC;AAEnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AAEpD,OAAO,EACH,UAAU,EACV,iBAAiB,IAAI,aAAa,EAClC,iBAAiB,IAAI,aAAa,EAClC,cAAc,IAAI,UAAU,EAC5B,kBAAkB,IAAI,cAAc,EACpC,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACX,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACH,cAAc,EACd,UAAU,EACV,wBAAwB,IAAI,wBAAwB,EACpD,yBAAyB,IAAI,yBAAyB,EACtD,aAAa,IAAI,aAAa,EAC9B,aAAa,EAEb,cAAc,EACd,gBAAgB,EACnB,MAAM,uCAAuC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AAEpD,cAAc,6CAA6C,CAAC;AA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