@eclipse-glsp/sprotty 2.2.0-next.330 → 2.2.0-next.332
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/index.d.ts +0 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -2
- package/lib/index.js.map +1 -1
- package/lib/re-exports.d.ts +6 -6
- package/lib/re-exports.d.ts.map +1 -1
- package/lib/re-exports.js +8 -18
- package/lib/re-exports.js.map +1 -1
- package/lib/types.d.ts +3 -0
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -1
- package/lib/types.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +0 -2
- package/src/re-exports.ts +8 -22
- package/src/types.ts +4 -1
- package/lib/routing-override.d.ts +0 -31
- package/lib/routing-override.d.ts.map +0 -1
- package/lib/routing-override.js +0 -72
- package/lib/routing-override.js.map +0 -1
- package/lib/ui-extension-override.d.ts +0 -36
- package/lib/ui-extension-override.d.ts.map +0 -1
- package/lib/ui-extension-override.js +0 -118
- package/lib/ui-extension-override.js.map +0 -1
- package/src/routing-override.ts +0 -88
- package/src/ui-extension-override.ts +0 -118
package/lib/index.d.ts
CHANGED
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -32,7 +32,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
32
32
|
__exportStar(require("./action-override"), exports);
|
|
33
33
|
__exportStar(require("./feature-modules"), exports);
|
|
34
34
|
__exportStar(require("./re-exports"), exports);
|
|
35
|
-
__exportStar(require("./routing-override"), exports);
|
|
36
35
|
__exportStar(require("./types"), exports);
|
|
37
|
-
__exportStar(require("./ui-extension-override"), exports);
|
|
38
36
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,0CAAwB"}
|
package/lib/re-exports.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export * from 'sprotty/lib/base/features/set-model';
|
|
|
33
33
|
export { FeatureSet, SChildElementImpl as GChildElement, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, SParentElementImpl as GParentElement, IModelIndex, ModelIndexImpl, createRandomId, isParent } from 'sprotty/lib/base/model/smodel';
|
|
34
34
|
export { CustomFeatures, EMPTY_ROOT, SModelElementConstructor as GModelElementConstructor, SModelElementRegistration as GModelElementRegistration, SModelFactory as GModelFactory, IModelFactory, SModelRegistry, createFeatureSet } from 'sprotty/lib/base/model/smodel-factory';
|
|
35
35
|
export * from 'sprotty/lib/base/model/smodel-utils';
|
|
36
|
-
export
|
|
36
|
+
export * from 'sprotty/lib/base/ui-extensions/ui-extension';
|
|
37
37
|
export * from 'sprotty/lib/base/ui-extensions/ui-extension-registry';
|
|
38
38
|
export * from 'sprotty/lib/base/views/dom-helper';
|
|
39
39
|
export { KeyTool } from 'sprotty/lib/base/views/key-tool';
|
|
@@ -93,15 +93,15 @@ export * from 'sprotty/lib/features/open/model';
|
|
|
93
93
|
export * from 'sprotty/lib/features/open/open';
|
|
94
94
|
export * from 'sprotty/lib/features/projection/model';
|
|
95
95
|
export * from 'sprotty/lib/features/projection/views';
|
|
96
|
-
export
|
|
96
|
+
export * from 'sprotty/lib/features/routing/abstract-edge-router';
|
|
97
97
|
export * from 'sprotty/lib/features/routing/anchor';
|
|
98
98
|
export * from 'sprotty/lib/features/routing/bezier-anchors';
|
|
99
|
-
export
|
|
99
|
+
export * from 'sprotty/lib/features/routing/bezier-edge-router';
|
|
100
100
|
export * from 'sprotty/lib/features/routing/manhattan-anchors';
|
|
101
|
-
export
|
|
101
|
+
export * from 'sprotty/lib/features/routing/manhattan-edge-router';
|
|
102
102
|
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';
|
|
103
103
|
export * from 'sprotty/lib/features/routing/polyline-anchors';
|
|
104
|
-
export
|
|
104
|
+
export * from 'sprotty/lib/features/routing/polyline-edge-router';
|
|
105
105
|
export * from 'sprotty/lib/features/routing/routing';
|
|
106
106
|
export * from 'sprotty/lib/features/routing/views';
|
|
107
107
|
export * from 'sprotty/lib/features/select/model';
|
|
@@ -116,7 +116,7 @@ export { ViewportRootElementImpl as GViewportRootElement } from 'sprotty/lib/fea
|
|
|
116
116
|
export * from 'sprotty/lib/features/viewport/zoom';
|
|
117
117
|
export * from 'sprotty/lib/features/zorder/zorder';
|
|
118
118
|
export { SCompartmentImpl as GCompartment, SGraphIndex as GGraphIndex, SLabelImpl as GLabel, SNodeImpl as GNode, SPortImpl as GPort, SEdgeImpl, SGraphImpl } from 'sprotty/lib/graph/sgraph';
|
|
119
|
-
export { BezierCurveEdgeView, SBezierControlHandleView as GBezierControlHandleView, SBezierCreateHandleView as GBezierCreateHandleView, SCompartmentView as GCompartmentView,
|
|
119
|
+
export { BezierCurveEdgeView, SBezierControlHandleView as GBezierControlHandleView, SBezierCreateHandleView as GBezierCreateHandleView, SCompartmentView as GCompartmentView, SLabelView as GLabelView, SRoutingHandleView as GRoutingHandleView, JumpingPolylineEdgeView, PolylineEdgeView, PolylineEdgeViewWithGapsOnIntersections, SGraphView } from 'sprotty/lib/graph/views';
|
|
120
120
|
export * from 'sprotty/lib/lib/generic-views';
|
|
121
121
|
export * from 'sprotty/lib/lib/html-views';
|
|
122
122
|
export * from 'sprotty/lib/lib/jsx';
|
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;AAS9C,cAAc,4CAA4C,CAAC;AAC3D,OAAO,EACH,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,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,E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,EAClD,gBAAgB,IAAI,gBAAgB,EACpC,UAAU,IAAI,UAAU,EACxB,kBAAkB,IAAI,kBAAkB,EACxC,uBAAuB,EACvB,gBAAgB,EAChB,uCAAuC,EACvC,UAAU,EACb,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,cAAc,2BAA2B,CAAC;AAG1C,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,8 +29,8 @@ 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.RectangularPort = exports.RectangularNode = exports.GShapedPreRenderedElement = exports.GPreRenderedElement = exports.GHtmlRoot = exports.GForeignObjectElement = exports.DiamondNode = exports.CircularPort = exports.CircularNode = exports.PolylineEdgeViewWithGapsOnIntersections = exports.PolylineEdgeView = exports.JumpingPolylineEdgeView = exports.GRoutingHandleView = exports.GLabelView = exports.
|
|
32
|
+
exports.GRoutingHandle = exports.GRoutableElement = exports.GDanglingAnchor = exports.GConnectableElement = exports.isDecoration = exports.decorationFeature = exports.SIssueMarker = exports.GIssue = exports.GDecoration = exports.SvgExporter = exports.ExportSvgPostprocessor = exports.ExportSvgKeyListener = exports.ExportSvgCommand = exports.DeleteContextMenuItemProvider = exports.ContextMenuProviderRegistry = exports.RevealNamedElementActionProvider = exports.CommandPaletteActionProviderRegistry = exports.GButton = exports.configureButtonHandler = exports.ButtonHandlerRegistry = exports.layoutableChildFeature = exports.layoutContainerFeature = exports.isSizeable = exports.isLayoutableChild = exports.isLayoutContainer = exports.isBoundsAware = exports.isAlignable = exports.getAbsoluteClientBounds = exports.getAbsoluteBounds = exports.findChildrenAtPosition = exports.boundsFeature = exports.GShapeElement = exports.PopupMouseTool = exports.MouseTool = exports.MousePositionTracker = exports.KeyTool = exports.createFeatureSet = exports.SModelRegistry = exports.GModelFactory = exports.EMPTY_ROOT = exports.isParent = exports.createRandomId = exports.ModelIndexImpl = exports.GParentElement = exports.GModelRoot = exports.GModelElement = exports.GChildElement = exports.onAction = exports.configureActionHandler = exports.ActionHandlerRegistry = void 0;
|
|
33
|
+
exports.RectangularPort = exports.RectangularNode = exports.GShapedPreRenderedElement = exports.GPreRenderedElement = exports.GHtmlRoot = exports.GForeignObjectElement = exports.DiamondNode = exports.CircularPort = exports.CircularNode = exports.SGraphView = exports.PolylineEdgeViewWithGapsOnIntersections = exports.PolylineEdgeView = exports.JumpingPolylineEdgeView = exports.GRoutingHandleView = exports.GLabelView = exports.GCompartmentView = exports.GBezierCreateHandleView = exports.GBezierControlHandleView = exports.BezierCurveEdgeView = exports.SGraphImpl = exports.SEdgeImpl = exports.GPort = exports.GNode = exports.GLabel = exports.GGraphIndex = exports.GCompartment = exports.GViewportRootElement = exports.SprottySelectCommand = exports.SprottySelectAllCommand = exports.SelectMouseListener = exports.SelectKeyboardListener = exports.GetSelectionCommand = exports.isConnectable = exports.getRouteBounds = exports.getAbsoluteRouteBounds = exports.edgeInProgressTargetHandleID = exports.edgeInProgressID = exports.connectableFeature = void 0;
|
|
34
34
|
/**
|
|
35
35
|
* @eclipse-glsp/protocol
|
|
36
36
|
*/
|
|
@@ -73,8 +73,7 @@ Object.defineProperty(exports, "GModelFactory", { enumerable: true, get: functio
|
|
|
73
73
|
Object.defineProperty(exports, "SModelRegistry", { enumerable: true, get: function () { return smodel_factory_1.SModelRegistry; } });
|
|
74
74
|
Object.defineProperty(exports, "createFeatureSet", { enumerable: true, get: function () { return smodel_factory_1.createFeatureSet; } });
|
|
75
75
|
__exportStar(require("sprotty/lib/base/model/smodel-utils"), exports);
|
|
76
|
-
|
|
77
|
-
Object.defineProperty(exports, "isUIExtension", { enumerable: true, get: function () { return ui_extension_1.isUIExtension; } });
|
|
76
|
+
__exportStar(require("sprotty/lib/base/ui-extensions/ui-extension"), exports);
|
|
78
77
|
__exportStar(require("sprotty/lib/base/ui-extensions/ui-extension-registry"), exports);
|
|
79
78
|
__exportStar(require("sprotty/lib/base/views/dom-helper"), exports);
|
|
80
79
|
var key_tool_1 = require("sprotty/lib/base/views/key-tool");
|
|
@@ -178,20 +177,12 @@ __exportStar(require("sprotty/lib/features/open/model"), exports);
|
|
|
178
177
|
__exportStar(require("sprotty/lib/features/open/open"), exports);
|
|
179
178
|
__exportStar(require("sprotty/lib/features/projection/model"), exports);
|
|
180
179
|
__exportStar(require("sprotty/lib/features/projection/views"), exports);
|
|
181
|
-
|
|
182
|
-
Object.defineProperty(exports, "DefaultAnchors", { enumerable: true, get: function () { return abstract_edge_router_1.DefaultAnchors; } });
|
|
183
|
-
Object.defineProperty(exports, "Side", { enumerable: true, get: function () { return abstract_edge_router_1.Side; } });
|
|
184
|
-
Object.defineProperty(exports, "SprottyAbstractEdgeRouter", { enumerable: true, get: function () { return abstract_edge_router_1.AbstractEdgeRouter; } });
|
|
180
|
+
__exportStar(require("sprotty/lib/features/routing/abstract-edge-router"), exports);
|
|
185
181
|
__exportStar(require("sprotty/lib/features/routing/anchor"), exports);
|
|
186
182
|
__exportStar(require("sprotty/lib/features/routing/bezier-anchors"), exports);
|
|
187
|
-
|
|
188
|
-
Object.defineProperty(exports, "AddRemoveBezierSegmentAction", { enumerable: true, get: function () { return bezier_edge_router_1.AddRemoveBezierSegmentAction; } });
|
|
189
|
-
Object.defineProperty(exports, "AddRemoveBezierSegmentCommand", { enumerable: true, get: function () { return bezier_edge_router_1.AddRemoveBezierSegmentCommand; } });
|
|
190
|
-
Object.defineProperty(exports, "BezierMouseListener", { enumerable: true, get: function () { return bezier_edge_router_1.BezierMouseListener; } });
|
|
191
|
-
Object.defineProperty(exports, "SprottyBezierEdgeRouter", { enumerable: true, get: function () { return bezier_edge_router_1.BezierEdgeRouter; } });
|
|
183
|
+
__exportStar(require("sprotty/lib/features/routing/bezier-edge-router"), exports);
|
|
192
184
|
__exportStar(require("sprotty/lib/features/routing/manhattan-anchors"), exports);
|
|
193
|
-
|
|
194
|
-
Object.defineProperty(exports, "SprottyManhattanEdgeRouter", { enumerable: true, get: function () { return manhattan_edge_router_1.ManhattanEdgeRouter; } });
|
|
185
|
+
__exportStar(require("sprotty/lib/features/routing/manhattan-edge-router"), exports);
|
|
195
186
|
// Alias SModel types
|
|
196
187
|
var model_4 = require("sprotty/lib/features/routing/model");
|
|
197
188
|
Object.defineProperty(exports, "GConnectableElement", { enumerable: true, get: function () { return model_4.SConnectableElementImpl; } });
|
|
@@ -205,8 +196,7 @@ Object.defineProperty(exports, "getAbsoluteRouteBounds", { enumerable: true, get
|
|
|
205
196
|
Object.defineProperty(exports, "getRouteBounds", { enumerable: true, get: function () { return model_4.getRouteBounds; } });
|
|
206
197
|
Object.defineProperty(exports, "isConnectable", { enumerable: true, get: function () { return model_4.isConnectable; } });
|
|
207
198
|
__exportStar(require("sprotty/lib/features/routing/polyline-anchors"), exports);
|
|
208
|
-
|
|
209
|
-
Object.defineProperty(exports, "SprottyPolylineEdgeRouter", { enumerable: true, get: function () { return polyline_edge_router_1.PolylineEdgeRouter; } });
|
|
199
|
+
__exportStar(require("sprotty/lib/features/routing/polyline-edge-router"), exports);
|
|
210
200
|
__exportStar(require("sprotty/lib/features/routing/routing"), exports);
|
|
211
201
|
__exportStar(require("sprotty/lib/features/routing/views"), exports);
|
|
212
202
|
__exportStar(require("sprotty/lib/features/select/model"), exports);
|
|
@@ -248,12 +238,12 @@ Object.defineProperty(exports, "BezierCurveEdgeView", { enumerable: true, get: f
|
|
|
248
238
|
Object.defineProperty(exports, "GBezierControlHandleView", { enumerable: true, get: function () { return views_1.SBezierControlHandleView; } });
|
|
249
239
|
Object.defineProperty(exports, "GBezierCreateHandleView", { enumerable: true, get: function () { return views_1.SBezierCreateHandleView; } });
|
|
250
240
|
Object.defineProperty(exports, "GCompartmentView", { enumerable: true, get: function () { return views_1.SCompartmentView; } });
|
|
251
|
-
Object.defineProperty(exports, "GGraphView", { enumerable: true, get: function () { return views_1.SGraphView; } });
|
|
252
241
|
Object.defineProperty(exports, "GLabelView", { enumerable: true, get: function () { return views_1.SLabelView; } });
|
|
253
242
|
Object.defineProperty(exports, "GRoutingHandleView", { enumerable: true, get: function () { return views_1.SRoutingHandleView; } });
|
|
254
243
|
Object.defineProperty(exports, "JumpingPolylineEdgeView", { enumerable: true, get: function () { return views_1.JumpingPolylineEdgeView; } });
|
|
255
244
|
Object.defineProperty(exports, "PolylineEdgeView", { enumerable: true, get: function () { return views_1.PolylineEdgeView; } });
|
|
256
245
|
Object.defineProperty(exports, "PolylineEdgeViewWithGapsOnIntersections", { enumerable: true, get: function () { return views_1.PolylineEdgeViewWithGapsOnIntersections; } });
|
|
246
|
+
Object.defineProperty(exports, "SGraphView", { enumerable: true, get: function () { return views_1.SGraphView; } });
|
|
257
247
|
// ------------------ Library ------------------
|
|
258
248
|
__exportStar(require("sprotty/lib/lib/generic-views"), exports);
|
|
259
249
|
__exportStar(require("sprotty/lib/lib/html-views"), 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,6EAA2D;AAC3D,0EAMiD;AAJ7C,uHAAA,qBAAqB,OAAA;AAErB,wHAAA,sBAAsB,OAAA;AACtB,0GAAA,QAAQ,OAAA;AAEZ,0EAAwD;AAExD,wEAAsD;AACtD,qFAAmE;AACnE,qEAAmD;AAEnD,oEAAkD;AAClD,iFAA+D;AAC/D,0EAAwD;AACxD,kFAAgE;AAEhE,8EAA4D;AAC5D,sEAAoD;AACpD,uEAAuE;AACvE,wDAUuC;AARnC,uGAAA,iBAAiB,OAAiB;AAClC,uGAAA,iBAAiB,OAAiB;AAClC,oGAAA,cAAc,OAAc;AAC5B,wGAAA,kBAAkB,OAAkB;AAEpC,wGAAA,cAAc,OAAA;AACd,wGAAA,cAAc,OAAA;AACd,kGAAA,QAAQ,OAAA;AAGZ,wEAU+C;AAR3C,4GAAA,UAAU,OAAA;AAGV,+GAAA,aAAa,OAAiB;AAE9B,yEAAyE;AACzE,gHAAA,cAAc,OAAA;AACd,kHAAA,gBAAgB,OAAA;AAEpB,sEAAoD;AAEpD,
|
|
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,6EAA2D;AAC3D,0EAMiD;AAJ7C,uHAAA,qBAAqB,OAAA;AAErB,wHAAA,s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AA4B;AACpD,gHAAA,uBAAuB,OAA2B;AAClD,yGAAA,gBAAgB,OAAoB;AACpC,mGAAA,UAAU,OAAc;AACxB,2GAAA,kBAAkB,OAAsB;AACxC,gHAAA,uBAAuB,OAAA;AACvB,yGAAA,gBAAgB,OAAA;AAChB,gIAAA,uCAAuC,OAAA;AACvC,mGAAA,UAAU,OAAA;AAGd,gDAAgD;AAEhD,gEAA8C;AAC9C,6DAA2C;AAC3C,sDAAoC;AACpC,qBAAqB;AACrB,+CAU+B;AAT3B,qGAAA,YAAY,OAAA;AACZ,qGAAA,YAAY,OAAA;AACZ,oGAAA,WAAW,OAAA;AACX,8GAAA,wBAAwB,OAAyB;AACjD,kGAAA,YAAY,OAAa;AACzB,4GAAA,sBAAsB,OAAuB;AAC7C,kHAAA,4BAA4B,OAA6B;AACzD,wGAAA,eAAe,OAAA;AACf,wGAAA,eAAe,OAAA;AAEnB,0DAAwC;AACxC,4DAA0C;AAE1C,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/lib/types.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ export declare const TYPES: {
|
|
|
22
22
|
IDiagramOptions: symbol;
|
|
23
23
|
IDiagramStartup: symbol;
|
|
24
24
|
IToolManager: symbol;
|
|
25
|
+
IDebugManager: symbol;
|
|
26
|
+
Grid: symbol;
|
|
27
|
+
IGridManager: symbol;
|
|
25
28
|
Action: symbol;
|
|
26
29
|
IActionDispatcher: symbol;
|
|
27
30
|
IActionDispatcherProvider: symbol;
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,KAAK;;;;;;;;IASd,gEAAgE
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,KAAK;;;;;;;;IASd,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBnE,CAAC"}
|
package/lib/types.js
CHANGED
|
@@ -25,5 +25,5 @@ const IGModelRootListener = Symbol('IGModelRootListener');
|
|
|
25
25
|
exports.TYPES = Object.assign(Object.assign({}, sprotty_1.TYPES), { IAsyncClipboardService: Symbol('IAsyncClipboardService'), IEditorContextServiceProvider: Symbol('IEditorContextProvider'), IFeedbackActionDispatcher: Symbol('IFeedbackActionDispatcher'), IToolFactory: Symbol('Factory<Tool>'), ITypeHintProvider: Symbol('ITypeHintProvider'), IMovementRestrictor: Symbol('IMovementRestrictor'), ISelectionListener: Symbol('ISelectionListener'),
|
|
26
26
|
/** @deprecated Use {@link TYPES.IGModelRootListener} instead */
|
|
27
27
|
// eslint-disable-next-line deprecation/deprecation
|
|
28
|
-
ISModelRootListener: IGModelRootListener, IGModelRootListener: IGModelRootListener, IContextMenuProvider: Symbol('IContextMenuProvider'), ICopyPasteHandler: Symbol('ICopyPasteHandler'), ITool: Symbol('ITool'), IDefaultTool: Symbol('IDefaultTool'), IEditModeListener: Symbol('IEditModeListener'), IMarqueeBehavior: Symbol('IMarqueeBehavior'), IHelperLineManager: Symbol('IHelperLineManager'), IHelperLineOptions: Symbol('IHelperLineOptions'), IElementNavigator: Symbol('IElementNavigator'), ILocalElementNavigator: Symbol('ILocalElementNavigator'), IDiagramOptions: Symbol('IDiagramOptions'), IDiagramStartup: Symbol('IDiagramStartup'), IToolManager: Symbol('IToolManager') });
|
|
28
|
+
ISModelRootListener: IGModelRootListener, IGModelRootListener: IGModelRootListener, IContextMenuProvider: Symbol('IContextMenuProvider'), ICopyPasteHandler: Symbol('ICopyPasteHandler'), ITool: Symbol('ITool'), IDefaultTool: Symbol('IDefaultTool'), IEditModeListener: Symbol('IEditModeListener'), IMarqueeBehavior: Symbol('IMarqueeBehavior'), IHelperLineManager: Symbol('IHelperLineManager'), IHelperLineOptions: Symbol('IHelperLineOptions'), IElementNavigator: Symbol('IElementNavigator'), ILocalElementNavigator: Symbol('ILocalElementNavigator'), IDiagramOptions: Symbol('IDiagramOptions'), IDiagramStartup: Symbol('IDiagramStartup'), IToolManager: Symbol('IToolManager'), IDebugManager: Symbol('IDebugManager'), Grid: Symbol('Grid'), IGridManager: Symbol('IGridManager') });
|
|
29
29
|
//# sourceMappingURL=types.js.map
|
package/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qCAAgD;AAEhD;;;GAGG;AAEH,MAAM,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAE7C,QAAA,KAAK,mCACX,eAAY,KACf,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC,EACxD,6BAA6B,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAC/D,yBAAyB,EAAE,MAAM,CAAC,2BAA2B,CAAC,EAC9D,YAAY,EAAE,MAAM,CAAC,eAAe,CAAC,EACrC,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC,EAC9C,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC,EAClD,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,gEAAgE;IAChE,mDAAmD;IACnD,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC,EACpD,iBAAiB,EAAE,MAAM,CAAC,mB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AAC,mBAAmB,CAAC,EAC9C,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,EACtB,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC,EACpC,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC,EAC9C,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAAC,EAC5C,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC,EAChD,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC,EAChD,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC,EAC9C,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC,EACxD,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC,EAC1C,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC,EAC1C,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC,EACpC,aAAa,EAAE,MAAM,CAAC,eAAe,CAAC,EACtC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,EACpB,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC,IACtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/sprotty",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.332+ca7c9ae",
|
|
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.2.0-next.
|
|
36
|
+
"@eclipse-glsp/protocol": "2.2.0-next.332+ca7c9ae",
|
|
37
37
|
"autocompleter": "^9.1.0",
|
|
38
38
|
"snabbdom": "^3.5.1",
|
|
39
39
|
"sprotty": "1.0.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ca7c9aecfaa198b8ceed3bf488abfc3d3d552e07"
|
|
54
54
|
}
|
package/src/index.ts
CHANGED
package/src/re-exports.ts
CHANGED
|
@@ -74,7 +74,7 @@ export {
|
|
|
74
74
|
} from 'sprotty/lib/base/model/smodel-factory';
|
|
75
75
|
export * from 'sprotty/lib/base/model/smodel-utils';
|
|
76
76
|
|
|
77
|
-
export
|
|
77
|
+
export * from 'sprotty/lib/base/ui-extensions/ui-extension';
|
|
78
78
|
export * from 'sprotty/lib/base/ui-extensions/ui-extension-registry';
|
|
79
79
|
|
|
80
80
|
export * from 'sprotty/lib/base/views/dom-helper';
|
|
@@ -131,7 +131,7 @@ export {
|
|
|
131
131
|
} from 'sprotty/lib/features/command-palette/action-providers';
|
|
132
132
|
export * from 'sprotty/lib/features/command-palette/command-palette';
|
|
133
133
|
|
|
134
|
-
// Exclude menu item.
|
|
134
|
+
// Exclude menu item. Already provided by glsp-protocol
|
|
135
135
|
export { Anchor, IContextMenuService, IContextMenuServiceProvider } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
136
136
|
export { ContextMenuProviderRegistry, DeleteContextMenuItemProvider } from 'sprotty/lib/features/context-menu/menu-providers';
|
|
137
137
|
export * from 'sprotty/lib/features/context-menu/mouse-listener';
|
|
@@ -194,25 +194,12 @@ export * from 'sprotty/lib/features/open/open';
|
|
|
194
194
|
export * from 'sprotty/lib/features/projection/model';
|
|
195
195
|
export * from 'sprotty/lib/features/projection/views';
|
|
196
196
|
|
|
197
|
-
export
|
|
198
|
-
DefaultAnchors,
|
|
199
|
-
LinearRouteOptions,
|
|
200
|
-
Side,
|
|
201
|
-
AbstractEdgeRouter as SprottyAbstractEdgeRouter
|
|
202
|
-
} from 'sprotty/lib/features/routing/abstract-edge-router';
|
|
197
|
+
export * from 'sprotty/lib/features/routing/abstract-edge-router';
|
|
203
198
|
export * from 'sprotty/lib/features/routing/anchor';
|
|
204
199
|
export * from 'sprotty/lib/features/routing/bezier-anchors';
|
|
205
|
-
export
|
|
206
|
-
AddRemoveBezierSegmentAction,
|
|
207
|
-
AddRemoveBezierSegmentCommand,
|
|
208
|
-
BezierMouseListener,
|
|
209
|
-
BezierEdgeRouter as SprottyBezierEdgeRouter
|
|
210
|
-
} from 'sprotty/lib/features/routing/bezier-edge-router';
|
|
200
|
+
export * from 'sprotty/lib/features/routing/bezier-edge-router';
|
|
211
201
|
export * from 'sprotty/lib/features/routing/manhattan-anchors';
|
|
212
|
-
export
|
|
213
|
-
ManhattanRouterOptions,
|
|
214
|
-
ManhattanEdgeRouter as SprottyManhattanEdgeRouter
|
|
215
|
-
} from 'sprotty/lib/features/routing/manhattan-edge-router';
|
|
202
|
+
export * from 'sprotty/lib/features/routing/manhattan-edge-router';
|
|
216
203
|
|
|
217
204
|
// Alias SModel types
|
|
218
205
|
export {
|
|
@@ -230,7 +217,7 @@ export {
|
|
|
230
217
|
isConnectable
|
|
231
218
|
} from 'sprotty/lib/features/routing/model';
|
|
232
219
|
export * from 'sprotty/lib/features/routing/polyline-anchors';
|
|
233
|
-
export
|
|
220
|
+
export * from 'sprotty/lib/features/routing/polyline-edge-router';
|
|
234
221
|
export * from 'sprotty/lib/features/routing/routing';
|
|
235
222
|
export * from 'sprotty/lib/features/routing/views';
|
|
236
223
|
|
|
@@ -279,12 +266,12 @@ export {
|
|
|
279
266
|
SBezierControlHandleView as GBezierControlHandleView,
|
|
280
267
|
SBezierCreateHandleView as GBezierCreateHandleView,
|
|
281
268
|
SCompartmentView as GCompartmentView,
|
|
282
|
-
SGraphView as GGraphView,
|
|
283
269
|
SLabelView as GLabelView,
|
|
284
270
|
SRoutingHandleView as GRoutingHandleView,
|
|
285
271
|
JumpingPolylineEdgeView,
|
|
286
272
|
PolylineEdgeView,
|
|
287
|
-
PolylineEdgeViewWithGapsOnIntersections
|
|
273
|
+
PolylineEdgeViewWithGapsOnIntersections,
|
|
274
|
+
SGraphView
|
|
288
275
|
} from 'sprotty/lib/graph/views';
|
|
289
276
|
|
|
290
277
|
// ------------------ Library ------------------
|
|
@@ -326,4 +313,3 @@ export * from 'sprotty/lib/utils/iterable';
|
|
|
326
313
|
export * from 'sprotty/lib/utils/keyboard';
|
|
327
314
|
export * from 'sprotty/lib/utils/logging';
|
|
328
315
|
export * from 'sprotty/lib/utils/registry';
|
|
329
|
-
|
package/src/types.ts
CHANGED
|
@@ -47,5 +47,8 @@ export const TYPES = {
|
|
|
47
47
|
ILocalElementNavigator: Symbol('ILocalElementNavigator'),
|
|
48
48
|
IDiagramOptions: Symbol('IDiagramOptions'),
|
|
49
49
|
IDiagramStartup: Symbol('IDiagramStartup'),
|
|
50
|
-
IToolManager: Symbol('IToolManager')
|
|
50
|
+
IToolManager: Symbol('IToolManager'),
|
|
51
|
+
IDebugManager: Symbol('IDebugManager'),
|
|
52
|
+
Grid: Symbol('Grid'),
|
|
53
|
+
IGridManager: Symbol('IGridManager')
|
|
51
54
|
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 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 { Point } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { SConnectableElementImpl, SParentElementImpl, SRoutableElementImpl, AbstractEdgeRouter as SprottyAbstractEdgeRouter, BezierEdgeRouter as SprottyBezierEdgeRouter, ManhattanEdgeRouter as SprottyManhattanEdgeRouter, PolylineEdgeRouter as SprottyPolylineEdgeRouter } from 'sprotty';
|
|
18
|
-
import { GConnectableElement, GParentElement, GRoutableElement } from './re-exports';
|
|
19
|
-
export declare abstract class AbstractEdgeRouter extends SprottyAbstractEdgeRouter {
|
|
20
|
-
getTranslatedAnchor(connectable: SConnectableElementImpl, refPoint: Point, refContainer: SParentElementImpl, edge: SRoutableElementImpl, anchorCorrection?: number | undefined): Point;
|
|
21
|
-
}
|
|
22
|
-
export declare class PolylineEdgeRouter extends SprottyPolylineEdgeRouter {
|
|
23
|
-
getTranslatedAnchor(connectable: GConnectableElement, refPoint: Point, refContainer: GParentElement, edge: GRoutableElement, anchorCorrection?: number | undefined): Point;
|
|
24
|
-
}
|
|
25
|
-
export declare class ManhattanEdgeRouter extends SprottyManhattanEdgeRouter {
|
|
26
|
-
getTranslatedAnchor(connectable: GConnectableElement, refPoint: Point, refContainer: GParentElement, edge: GRoutableElement, anchorCorrection?: number | undefined): Point;
|
|
27
|
-
}
|
|
28
|
-
export declare class BezierEdgeRouter extends SprottyBezierEdgeRouter {
|
|
29
|
-
getTranslatedAnchor(connectable: GConnectableElement, refPoint: Point, refContainer: GParentElement, edge: GRoutableElement, anchorCorrection?: number | undefined): Point;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=routing-override.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routing-override.d.ts","sourceRoot":"","sources":["../src/routing-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,OAAO,EACH,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,IAAI,yBAAyB,EAC/C,gBAAgB,IAAI,uBAAuB,EAC3C,mBAAmB,IAAI,0BAA0B,EACjD,kBAAkB,IAAI,yBAAyB,EAClD,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErF,8BACsB,kBAAmB,SAAQ,yBAAyB;IAC7D,mBAAmB,CACxB,WAAW,EAAE,uBAAuB,EACpC,QAAQ,EAAE,KAAK,EACf,YAAY,EAAE,kBAAkB,EAChC,IAAI,EAAE,oBAAoB,EAC1B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,GACtC,KAAK;CAKX;AAED,qBACa,kBAAmB,SAAQ,yBAAyB;IACpD,mBAAmB,CACxB,WAAW,EAAE,mBAAmB,EAChC,QAAQ,EAAE,KAAK,EACf,YAAY,EAAE,cAAc,EAC5B,IAAI,EAAE,gBAAgB,EACtB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,GACtC,KAAK;CAKX;AAED,qBACa,mBAAoB,SAAQ,0BAA0B;IACtD,mBAAmB,CACxB,WAAW,EAAE,mBAAmB,EAChC,QAAQ,EAAE,KAAK,EACf,YAAY,EAAE,cAAc,EAC5B,IAAI,EAAE,gBAAgB,EACtB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,GACtC,KAAK;CAKX;AAED,qBACa,gBAAiB,SAAQ,uBAAuB;IAChD,mBAAmB,CACxB,WAAW,EAAE,mBAAmB,EAChC,QAAQ,EAAE,KAAK,EACf,YAAY,EAAE,cAAc,EAC5B,IAAI,EAAE,gBAAgB,EACtB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,GACtC,KAAK;CAKX"}
|
package/lib/routing-override.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2024 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
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
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;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.BezierEdgeRouter = exports.ManhattanEdgeRouter = exports.PolylineEdgeRouter = exports.AbstractEdgeRouter = void 0;
|
|
25
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
26
|
-
const inversify_1 = require("inversify");
|
|
27
|
-
const sprotty_1 = require("sprotty");
|
|
28
|
-
let AbstractEdgeRouter = class AbstractEdgeRouter extends sprotty_1.AbstractEdgeRouter {
|
|
29
|
-
getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection) {
|
|
30
|
-
// users may define all kinds of anchors and anchor computers, we want to make sure we return a valid one in any case
|
|
31
|
-
const anchor = super.getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection);
|
|
32
|
-
return protocol_1.Point.isValid(anchor) ? anchor : refPoint;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.AbstractEdgeRouter = AbstractEdgeRouter;
|
|
36
|
-
exports.AbstractEdgeRouter = AbstractEdgeRouter = __decorate([
|
|
37
|
-
(0, inversify_1.injectable)()
|
|
38
|
-
], AbstractEdgeRouter);
|
|
39
|
-
let PolylineEdgeRouter = class PolylineEdgeRouter extends sprotty_1.PolylineEdgeRouter {
|
|
40
|
-
getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection) {
|
|
41
|
-
// users may define all kinds of anchors and anchor computers, we want to make sure we return a valid one in any case
|
|
42
|
-
const anchor = super.getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection);
|
|
43
|
-
return protocol_1.Point.isValid(anchor) ? anchor : refPoint;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
exports.PolylineEdgeRouter = PolylineEdgeRouter;
|
|
47
|
-
exports.PolylineEdgeRouter = PolylineEdgeRouter = __decorate([
|
|
48
|
-
(0, inversify_1.injectable)()
|
|
49
|
-
], PolylineEdgeRouter);
|
|
50
|
-
let ManhattanEdgeRouter = class ManhattanEdgeRouter extends sprotty_1.ManhattanEdgeRouter {
|
|
51
|
-
getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection) {
|
|
52
|
-
// users may define all kinds of anchors and anchor computers, we want to make sure we return a valid one in any case
|
|
53
|
-
const anchor = super.getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection);
|
|
54
|
-
return protocol_1.Point.isValid(anchor) ? anchor : refPoint;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
exports.ManhattanEdgeRouter = ManhattanEdgeRouter;
|
|
58
|
-
exports.ManhattanEdgeRouter = ManhattanEdgeRouter = __decorate([
|
|
59
|
-
(0, inversify_1.injectable)()
|
|
60
|
-
], ManhattanEdgeRouter);
|
|
61
|
-
let BezierEdgeRouter = class BezierEdgeRouter extends sprotty_1.BezierEdgeRouter {
|
|
62
|
-
getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection) {
|
|
63
|
-
// users may define all kinds of anchors and anchor computers, we want to make sure we return a valid one in any case
|
|
64
|
-
const anchor = super.getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection);
|
|
65
|
-
return protocol_1.Point.isValid(anchor) ? anchor : refPoint;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
exports.BezierEdgeRouter = BezierEdgeRouter;
|
|
69
|
-
exports.BezierEdgeRouter = BezierEdgeRouter = __decorate([
|
|
70
|
-
(0, inversify_1.injectable)()
|
|
71
|
-
], BezierEdgeRouter);
|
|
72
|
-
//# sourceMappingURL=routing-override.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routing-override.js","sourceRoot":"","sources":["../src/routing-override.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,qDAA+C;AAC/C,yCAAuC;AACvC,qCAQiB;AAIV,IAAe,kBAAkB,GAAjC,MAAe,kBAAmB,SAAQ,4BAAyB;IAC7D,mBAAmB,CACxB,WAAoC,EACpC,QAAe,EACf,YAAgC,EAChC,IAA0B,EAC1B,gBAAqC;QAErC,qHAAqH;QACrH,MAAM,MAAM,GAAG,KAAK,CAAC,mBAAmB,CAAC,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACtG,OAAO,gBAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;IACrD,CAAC;CACJ,CAAA;AAZqB,gDAAkB;6BAAlB,kBAAkB;IADvC,IAAA,sBAAU,GAAE;GACS,kBAAkB,CAYvC;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAyB;IACpD,mBAAmB,CACx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AAC,CAAC,CAAC,QAAQ,CAAC;IACrD,CAAC;CACJ,CAAA;AAZY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAY5B"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 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 '../css/ui-extension.css';
|
|
17
|
-
import { AbstractUIExtension as SprottyAbstractUIExtension } from 'sprotty';
|
|
18
|
-
export declare const CSS_UI_EXTENSION_CLASS = "ui-extension";
|
|
19
|
-
export declare const CSS_HIDDEN_EXTENSION_CLASS = "hidden";
|
|
20
|
-
export declare abstract class AbstractUIExtension extends SprottyAbstractUIExtension {
|
|
21
|
-
protected get diagramContainerId(): string;
|
|
22
|
-
protected get parentContainerSelector(): string;
|
|
23
|
-
protected get containerSelector(): string;
|
|
24
|
-
protected get initialized(): boolean;
|
|
25
|
-
protected initialize(): boolean;
|
|
26
|
-
protected getOrCreateContainer(): HTMLElement;
|
|
27
|
-
protected getContainer(): HTMLElement | null;
|
|
28
|
-
protected createContainer(parent: HTMLElement): HTMLElement;
|
|
29
|
-
protected initializeContainer(container: HTMLElement): void;
|
|
30
|
-
protected getParentContainer(): HTMLElement | null;
|
|
31
|
-
protected insertContainerIntoParent(container: HTMLElement, parent: HTMLElement): void;
|
|
32
|
-
protected setContainerVisible(visible: boolean): void;
|
|
33
|
-
protected isContainerVisible(): boolean;
|
|
34
|
-
protected toggleContainerVisible(): void;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=ui-extension-override.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-extension-override.d.ts","sourceRoot":"","sources":["../src/ui-extension-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAE5E,eAAO,MAAM,sBAAsB,iBAAiB,CAAC;AACrD,eAAO,MAAM,0BAA0B,WAAW,CAAC;AAInD,8BACsB,mBAAoB,SAAQ,0BAA0B;IACxE,SAAS,KAAK,kBAAkB,IAAI,MAAM,CAEzC;IAED,SAAS,KAAK,uBAAuB,IAAI,MAAM,CAE9C;IAED,SAAS,KAAK,iBAAiB,IAAI,MAAM,CAExC;IAED,SAAS,KAAK,WAAW,IAAI,OAAO,CAEnC;cAEkB,UAAU,IAAI,OAAO;cAgBrB,oBAAoB,IAAI,WAAW;IAoBtD,SAAS,CAAC,YAAY,IAAI,WAAW,GAAG,IAAI;IAI5C,SAAS,CAAC,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW;IAM3D,SAAS,CAAC,mBAAmB,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI;IAI3D,SAAS,CAAC,kBAAkB,IAAI,WAAW,GAAG,IAAI;IAIlD,SAAS,CAAC,yBAAyB,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI;cAInE,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAS9D,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIvC,SAAS,CAAC,sBAAsB,IAAI,IAAI;CAG3C"}
|
|
@@ -1,118 +0,0 @@
|
|
|
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.AbstractUIExtension = exports.CSS_HIDDEN_EXTENSION_CLASS = exports.CSS_UI_EXTENSION_CLASS = void 0;
|
|
10
|
-
/********************************************************************************
|
|
11
|
-
* Copyright (c) 2024 EclipseSource and others.
|
|
12
|
-
*
|
|
13
|
-
* This program and the accompanying materials are made available under the
|
|
14
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
15
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
16
|
-
*
|
|
17
|
-
* This Source Code may also be made available under the following Secondary
|
|
18
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
19
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
20
|
-
* with the GNU Classpath Exception which is available at
|
|
21
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
22
|
-
*
|
|
23
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
|
-
********************************************************************************/
|
|
25
|
-
require("../css/ui-extension.css");
|
|
26
|
-
const inversify_1 = require("inversify");
|
|
27
|
-
const sprotty_1 = require("sprotty");
|
|
28
|
-
exports.CSS_UI_EXTENSION_CLASS = 'ui-extension';
|
|
29
|
-
exports.CSS_HIDDEN_EXTENSION_CLASS = 'hidden';
|
|
30
|
-
// An override to enables more fine-grained control of the container structure for the UI extension.
|
|
31
|
-
let AbstractUIExtension = class AbstractUIExtension extends sprotty_1.AbstractUIExtension {
|
|
32
|
-
get diagramContainerId() {
|
|
33
|
-
return this.options.baseDiv;
|
|
34
|
-
}
|
|
35
|
-
get parentContainerSelector() {
|
|
36
|
-
return '#' + this.diagramContainerId;
|
|
37
|
-
}
|
|
38
|
-
get containerSelector() {
|
|
39
|
-
return '#' + this.id();
|
|
40
|
-
}
|
|
41
|
-
get initialized() {
|
|
42
|
-
return !!this.containerElement;
|
|
43
|
-
}
|
|
44
|
-
initialize() {
|
|
45
|
-
if (this.initialized) {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
try {
|
|
49
|
-
this.containerElement = this.getOrCreateContainer();
|
|
50
|
-
this.initializeContainer(this.containerElement);
|
|
51
|
-
this.initializeContents(this.containerElement);
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
const msg = error instanceof Error ? error.message : `Could not retrieve container element for UI extension ${this.id}`;
|
|
55
|
-
this.logger.error(this, msg);
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
getOrCreateContainer() {
|
|
61
|
-
if (this.containerElement) {
|
|
62
|
-
return this.containerElement;
|
|
63
|
-
}
|
|
64
|
-
// check if the container already exists, independent from any potential parent container
|
|
65
|
-
// this allows us to use existing elements defined anywhere in the document
|
|
66
|
-
const existingContainer = this.getContainer();
|
|
67
|
-
if (existingContainer) {
|
|
68
|
-
return existingContainer;
|
|
69
|
-
}
|
|
70
|
-
// to create a container the parent container
|
|
71
|
-
const parent = this.getParentContainer();
|
|
72
|
-
if (!(parent === null || parent === void 0 ? void 0 : parent.isConnected)) {
|
|
73
|
-
throw new Error(`Could not obtain attached parent for initializing UI extension ${this.id}`);
|
|
74
|
-
}
|
|
75
|
-
const container = this.createContainer(parent);
|
|
76
|
-
this.insertContainerIntoParent(container, parent);
|
|
77
|
-
return container;
|
|
78
|
-
}
|
|
79
|
-
getContainer() {
|
|
80
|
-
return document.querySelector(this.containerSelector);
|
|
81
|
-
}
|
|
82
|
-
createContainer(parent) {
|
|
83
|
-
const container = document.createElement('div');
|
|
84
|
-
container.id = parent.id + '_' + this.id();
|
|
85
|
-
return container;
|
|
86
|
-
}
|
|
87
|
-
initializeContainer(container) {
|
|
88
|
-
container.classList.add(exports.CSS_UI_EXTENSION_CLASS, this.containerClass());
|
|
89
|
-
}
|
|
90
|
-
getParentContainer() {
|
|
91
|
-
return document.querySelector(this.parentContainerSelector);
|
|
92
|
-
}
|
|
93
|
-
insertContainerIntoParent(container, parent) {
|
|
94
|
-
parent.insertBefore(container, parent.firstChild);
|
|
95
|
-
}
|
|
96
|
-
setContainerVisible(visible) {
|
|
97
|
-
var _a, _b;
|
|
98
|
-
// the parent class simply sets the style directly, however classes provide more fine-grained control
|
|
99
|
-
if (visible) {
|
|
100
|
-
(_a = this.containerElement) === null || _a === void 0 ? void 0 : _a.classList.remove(exports.CSS_HIDDEN_EXTENSION_CLASS);
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
(_b = this.containerElement) === null || _b === void 0 ? void 0 : _b.classList.add(exports.CSS_HIDDEN_EXTENSION_CLASS);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
isContainerVisible() {
|
|
107
|
-
var _a;
|
|
108
|
-
return !((_a = this.containerElement) === null || _a === void 0 ? void 0 : _a.classList.contains(exports.CSS_HIDDEN_EXTENSION_CLASS));
|
|
109
|
-
}
|
|
110
|
-
toggleContainerVisible() {
|
|
111
|
-
this.setContainerVisible(!this.isContainerVisible());
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
exports.AbstractUIExtension = AbstractUIExtension;
|
|
115
|
-
exports.AbstractUIExtension = AbstractUIExtension = __decorate([
|
|
116
|
-
(0, inversify_1.injectable)()
|
|
117
|
-
], AbstractUIExtension);
|
|
118
|
-
//# sourceMappingURL=ui-extension-override.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-extension-override.js","sourceRoot":"","sources":["../src/ui-extension-override.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mCAAiC;AAEjC,yCAAuC;AACvC,qCAA4E;AAE/D,QAAA,sBAAsB,GAAG,cAAc,CAAC;AACxC,QAAA,0BAA0B,GAAG,QAAQ,CAAC;AAEnD,oGAAoG;AAG7F,IAAe,mBAAmB,GAAlC,MAAe,mBAAoB,SAAQ,6BAA0B;IACxE,IAAc,kBAAkB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,IAAc,uBAAuB;QACjC,OAAO,GAAG,GAAG,IAAI,CAAC,kBAAkB,CAAC;IACzC,CAAC;IAED,IAAc,iBAAiB;QAC3B,OAAO,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC3B,CAAC;IAED,IAAc,WAAW;QACrB,OAAO,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAEkB,UAAU;QACzB,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,IAAI,CAAC;YACD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;YACpD,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YAChD,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,GAAG,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,yDAAyD,IAAI,CAAC,EAAE,EAAE,CAAC;YACxH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,I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,kBAAkB;QACxB,OAAO,QAAQ,CAAC,aAAa,CAAc,IAAI,CAAC,uBAAuB,CAAE,CAAC;IAC9E,CAAC;IAES,yBAAyB,CAAC,SAAsB,EAAE,MAAmB;QAC3E,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;IACtD,CAAC;IAEkB,mBAAmB,CAAC,OAAgB;;QACnD,qGAAqG;QACrG,IAAI,OAAO,EAAE,CAAC;YACV,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,MAAM,CAAC,kCAA0B,CAAC,CAAC;QACxE,CAAC;aAAM,CAAC;YACJ,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,GAAG,CAAC,kCAA0B,CAAC,CAAC;QACrE,CAAC;IACL,CAAC;IAES,kBAAkB;;QACxB,OAAO,CAAC,CAAA,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,QAAQ,CAAC,kCAA0B,CAAC,CAAA,CAAC;IAClF,CAAC;IAES,sBAAsB;QAC5B,IAAI,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACzD,CAAC;CACJ,CAAA;AA3FqB,kDAAmB;8BAAnB,mBAAmB;IADxC,IAAA,sBAAU,GAAE;GACS,mBAAmB,CA2FxC"}
|
package/src/routing-override.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 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
|
-
import { Point } from '@eclipse-glsp/protocol';
|
|
18
|
-
import { injectable } from 'inversify';
|
|
19
|
-
import {
|
|
20
|
-
SConnectableElementImpl,
|
|
21
|
-
SParentElementImpl,
|
|
22
|
-
SRoutableElementImpl,
|
|
23
|
-
AbstractEdgeRouter as SprottyAbstractEdgeRouter,
|
|
24
|
-
BezierEdgeRouter as SprottyBezierEdgeRouter,
|
|
25
|
-
ManhattanEdgeRouter as SprottyManhattanEdgeRouter,
|
|
26
|
-
PolylineEdgeRouter as SprottyPolylineEdgeRouter
|
|
27
|
-
} from 'sprotty';
|
|
28
|
-
import { GConnectableElement, GParentElement, GRoutableElement } from './re-exports';
|
|
29
|
-
|
|
30
|
-
@injectable()
|
|
31
|
-
export abstract class AbstractEdgeRouter extends SprottyAbstractEdgeRouter {
|
|
32
|
-
override getTranslatedAnchor(
|
|
33
|
-
connectable: SConnectableElementImpl,
|
|
34
|
-
refPoint: Point,
|
|
35
|
-
refContainer: SParentElementImpl,
|
|
36
|
-
edge: SRoutableElementImpl,
|
|
37
|
-
anchorCorrection?: number | undefined
|
|
38
|
-
): Point {
|
|
39
|
-
// users may define all kinds of anchors and anchor computers, we want to make sure we return a valid one in any case
|
|
40
|
-
const anchor = super.getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection);
|
|
41
|
-
return Point.isValid(anchor) ? anchor : refPoint;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@injectable()
|
|
46
|
-
export class PolylineEdgeRouter extends SprottyPolylineEdgeRouter {
|
|
47
|
-
override getTranslatedAnchor(
|
|
48
|
-
connectable: GConnectableElement,
|
|
49
|
-
refPoint: Point,
|
|
50
|
-
refContainer: GParentElement,
|
|
51
|
-
edge: GRoutableElement,
|
|
52
|
-
anchorCorrection?: number | undefined
|
|
53
|
-
): Point {
|
|
54
|
-
// users may define all kinds of anchors and anchor computers, we want to make sure we return a valid one in any case
|
|
55
|
-
const anchor = super.getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection);
|
|
56
|
-
return Point.isValid(anchor) ? anchor : refPoint;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@injectable()
|
|
61
|
-
export class ManhattanEdgeRouter extends SprottyManhattanEdgeRouter {
|
|
62
|
-
override getTranslatedAnchor(
|
|
63
|
-
connectable: GConnectableElement,
|
|
64
|
-
refPoint: Point,
|
|
65
|
-
refContainer: GParentElement,
|
|
66
|
-
edge: GRoutableElement,
|
|
67
|
-
anchorCorrection?: number | undefined
|
|
68
|
-
): Point {
|
|
69
|
-
// users may define all kinds of anchors and anchor computers, we want to make sure we return a valid one in any case
|
|
70
|
-
const anchor = super.getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection);
|
|
71
|
-
return Point.isValid(anchor) ? anchor : refPoint;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@injectable()
|
|
76
|
-
export class BezierEdgeRouter extends SprottyBezierEdgeRouter {
|
|
77
|
-
override getTranslatedAnchor(
|
|
78
|
-
connectable: GConnectableElement,
|
|
79
|
-
refPoint: Point,
|
|
80
|
-
refContainer: GParentElement,
|
|
81
|
-
edge: GRoutableElement,
|
|
82
|
-
anchorCorrection?: number | undefined
|
|
83
|
-
): Point {
|
|
84
|
-
// users may define all kinds of anchors and anchor computers, we want to make sure we return a valid one in any case
|
|
85
|
-
const anchor = super.getTranslatedAnchor(connectable, refPoint, refContainer, edge, anchorCorrection);
|
|
86
|
-
return Point.isValid(anchor) ? anchor : refPoint;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 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 '../css/ui-extension.css';
|
|
17
|
-
|
|
18
|
-
import { injectable } from 'inversify';
|
|
19
|
-
import { AbstractUIExtension as SprottyAbstractUIExtension } from 'sprotty';
|
|
20
|
-
|
|
21
|
-
export const CSS_UI_EXTENSION_CLASS = 'ui-extension';
|
|
22
|
-
export const CSS_HIDDEN_EXTENSION_CLASS = 'hidden';
|
|
23
|
-
|
|
24
|
-
// An override to enables more fine-grained control of the container structure for the UI extension.
|
|
25
|
-
|
|
26
|
-
@injectable()
|
|
27
|
-
export abstract class AbstractUIExtension extends SprottyAbstractUIExtension {
|
|
28
|
-
protected get diagramContainerId(): string {
|
|
29
|
-
return this.options.baseDiv;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
protected get parentContainerSelector(): string {
|
|
33
|
-
return '#' + this.diagramContainerId;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
protected get containerSelector(): string {
|
|
37
|
-
return '#' + this.id();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
protected get initialized(): boolean {
|
|
41
|
-
return !!this.containerElement;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
protected override initialize(): boolean {
|
|
45
|
-
if (this.initialized) {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
try {
|
|
49
|
-
this.containerElement = this.getOrCreateContainer();
|
|
50
|
-
this.initializeContainer(this.containerElement);
|
|
51
|
-
this.initializeContents(this.containerElement);
|
|
52
|
-
} catch (error) {
|
|
53
|
-
const msg = error instanceof Error ? error.message : `Could not retrieve container element for UI extension ${this.id}`;
|
|
54
|
-
this.logger.error(this, msg);
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
protected override getOrCreateContainer(): HTMLElement {
|
|
61
|
-
if (this.containerElement) {
|
|
62
|
-
return this.containerElement;
|
|
63
|
-
}
|
|
64
|
-
// check if the container already exists, independent from any potential parent container
|
|
65
|
-
// this allows us to use existing elements defined anywhere in the document
|
|
66
|
-
const existingContainer = this.getContainer();
|
|
67
|
-
if (existingContainer) {
|
|
68
|
-
return existingContainer;
|
|
69
|
-
}
|
|
70
|
-
// to create a container the parent container
|
|
71
|
-
const parent = this.getParentContainer();
|
|
72
|
-
if (!parent?.isConnected) {
|
|
73
|
-
throw new Error(`Could not obtain attached parent for initializing UI extension ${this.id}`);
|
|
74
|
-
}
|
|
75
|
-
const container = this.createContainer(parent);
|
|
76
|
-
this.insertContainerIntoParent(container, parent);
|
|
77
|
-
return container;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
protected getContainer(): HTMLElement | null {
|
|
81
|
-
return document.querySelector<HTMLElement>(this.containerSelector);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
protected createContainer(parent: HTMLElement): HTMLElement {
|
|
85
|
-
const container = document.createElement('div');
|
|
86
|
-
container.id = parent.id + '_' + this.id();
|
|
87
|
-
return container;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
protected initializeContainer(container: HTMLElement): void {
|
|
91
|
-
container.classList.add(CSS_UI_EXTENSION_CLASS, this.containerClass());
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
protected getParentContainer(): HTMLElement | null {
|
|
95
|
-
return document.querySelector<HTMLElement>(this.parentContainerSelector)!;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
protected insertContainerIntoParent(container: HTMLElement, parent: HTMLElement): void {
|
|
99
|
-
parent.insertBefore(container, parent.firstChild);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
protected override setContainerVisible(visible: boolean): void {
|
|
103
|
-
// the parent class simply sets the style directly, however classes provide more fine-grained control
|
|
104
|
-
if (visible) {
|
|
105
|
-
this.containerElement?.classList.remove(CSS_HIDDEN_EXTENSION_CLASS);
|
|
106
|
-
} else {
|
|
107
|
-
this.containerElement?.classList.add(CSS_HIDDEN_EXTENSION_CLASS);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
protected isContainerVisible(): boolean {
|
|
112
|
-
return !this.containerElement?.classList.contains(CSS_HIDDEN_EXTENSION_CLASS);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
protected toggleContainerVisible(): void {
|
|
116
|
-
this.setContainerVisible(!this.isContainerVisible());
|
|
117
|
-
}
|
|
118
|
-
}
|