@eclipse-glsp/client 2.7.0-next.0 → 2.7.0-next.11
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/base/auto-complete/auto-complete-widget.d.ts +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +3 -5
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/auto-complete/validation-decorator.d.ts +1 -1
- package/lib/base/auto-complete/validation-decorator.d.ts.map +1 -1
- package/lib/base/auto-complete/validation-decorator.js +1 -4
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/default.module.d.ts +1 -1
- package/lib/base/default.module.js +2 -2
- package/lib/base/default.module.js.map +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.d.ts +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.js +2 -4
- package/lib/base/feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/base/feedback/feedback-command.d.ts +1 -1
- package/lib/base/feedback/feedback-command.js +2 -2
- package/lib/base/feedback/feedback-command.js.map +1 -1
- package/lib/base/focus/focus-tracker.d.ts +1 -1
- package/lib/base/focus/focus-tracker.js +1 -1
- package/lib/base/model/model-change-service.d.ts +1 -1
- package/lib/base/model/model-change-service.js +1 -1
- package/lib/base/ui-extension/ui-extension.d.ts +1 -1
- package/lib/base/ui-extension/ui-extension.js +3 -3
- package/lib/base/ui-extension/ui-extension.js.map +1 -1
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.d.ts +1 -1
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.js +1 -1
- package/lib/features/bounds/bounds-module.d.ts +1 -1
- package/lib/features/bounds/bounds-module.js +2 -2
- package/lib/features/bounds/bounds-module.js.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +1 -1
- package/lib/features/bounds/hbox-layout.d.ts +1 -1
- package/lib/features/bounds/hbox-layout.js +1 -2
- package/lib/features/bounds/hbox-layout.js.map +1 -1
- package/lib/features/bounds/vbox-layout.d.ts +1 -1
- package/lib/features/bounds/vbox-layout.js +1 -2
- package/lib/features/bounds/vbox-layout.js.map +1 -1
- package/lib/features/change-bounds/model.d.ts +1 -1
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +1 -2
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/point-position-updater.d.ts +1 -1
- package/lib/features/change-bounds/point-position-updater.js +3 -4
- package/lib/features/change-bounds/point-position-updater.js.map +1 -1
- package/lib/features/change-bounds/snap.d.ts +1 -1
- package/lib/features/change-bounds/snap.js +15 -0
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/command-palette/command-palette.d.ts +1 -1
- package/lib/features/command-palette/command-palette.js +1 -1
- package/lib/features/context-menu/context-menu-module.d.ts +1 -1
- package/lib/features/context-menu/context-menu-module.js +1 -2
- package/lib/features/context-menu/context-menu-module.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +2 -2
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/debug/debug-bounds-decorator.d.ts +1 -1
- package/lib/features/debug/debug-bounds-decorator.js +12 -13
- package/lib/features/debug/debug-bounds-decorator.js.map +1 -1
- package/lib/features/label-edit-ui/label-edit-ui.d.ts +4 -1
- package/lib/features/label-edit-ui/label-edit-ui.d.ts.map +1 -1
- package/lib/features/label-edit-ui/label-edit-ui.js +38 -1
- package/lib/features/label-edit-ui/label-edit-ui.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +1 -1
- package/lib/features/navigation/navigation-action-handler.js +1 -1
- package/lib/features/routing/edge-router.d.ts +2 -1
- package/lib/features/routing/edge-router.d.ts.map +1 -1
- package/lib/features/routing/edge-router.js +2 -1
- package/lib/features/routing/edge-router.js.map +1 -1
- package/lib/features/routing/routing-module.d.ts +1 -1
- package/lib/features/routing/routing-module.d.ts.map +1 -1
- package/lib/features/routing/routing-module.js +7 -1
- package/lib/features/routing/routing-module.js.map +1 -1
- package/lib/features/routing/sticky-manhattan-anchors.d.ts +29 -0
- package/lib/features/routing/sticky-manhattan-anchors.d.ts.map +1 -0
- package/lib/features/routing/sticky-manhattan-anchors.js +62 -0
- package/lib/features/routing/sticky-manhattan-anchors.js.map +1 -0
- package/lib/features/routing/sticky-manhattan-edge-router.d.ts +107 -0
- package/lib/features/routing/sticky-manhattan-edge-router.d.ts.map +1 -0
- package/lib/features/routing/sticky-manhattan-edge-router.js +626 -0
- package/lib/features/routing/sticky-manhattan-edge-router.js.map +1 -0
- package/lib/features/tool-palette/tool-palette.d.ts +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +1 -3
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/index.d.ts +5 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/views/gedge-view-with-gaps-on-intersections.d.ts +39 -0
- package/lib/views/gedge-view-with-gaps-on-intersections.d.ts.map +1 -0
- package/lib/views/gedge-view-with-gaps-on-intersections.js +85 -0
- package/lib/views/gedge-view-with-gaps-on-intersections.js.map +1 -0
- package/lib/views/issue-marker-view.d.ts +1 -1
- package/lib/views/issue-marker-view.js +9 -10
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-manhattan-edge-view.d.ts +58 -0
- package/lib/views/rounded-corner-manhattan-edge-view.d.ts.map +1 -0
- package/lib/views/rounded-corner-manhattan-edge-view.js +170 -0
- package/lib/views/rounded-corner-manhattan-edge-view.js.map +1 -0
- package/package.json +4 -4
- package/src/base/action-dispatcher.spec.ts +2 -2
- package/src/base/action-dispatcher.ts +1 -1
- package/src/base/auto-complete/auto-complete-widget.ts +3 -3
- package/src/base/auto-complete/validation-decorator.ts +3 -4
- package/src/base/default.module.ts +2 -2
- package/src/base/feedback/feedback-action-dispatcher.ts +2 -2
- package/src/base/feedback/feedback-command.ts +2 -2
- package/src/base/focus/focus-tracker.ts +1 -1
- package/src/base/model/model-change-service.ts +1 -1
- package/src/base/model/model-initialization-constraint.spec.ts +2 -2
- package/src/base/selection-service.spec.ts +3 -4
- package/src/base/ui-extension/ui-extension.ts +3 -3
- package/src/default-modules.spec.ts +2 -2
- package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.ts +1 -1
- package/src/features/bounds/bounds-module.ts +2 -2
- package/src/features/bounds/glsp-hidden-bounds-updater.ts +1 -1
- package/src/features/bounds/hbox-layout.spec.ts +2 -2
- package/src/features/bounds/hbox-layout.ts +2 -2
- package/src/features/bounds/vbox-layout.spec.ts +2 -2
- package/src/features/bounds/vbox-layout.ts +2 -2
- package/src/features/change-bounds/model.ts +1 -2
- package/src/features/change-bounds/point-position-updater.spec.ts +3 -3
- package/src/features/change-bounds/point-position-updater.ts +4 -4
- package/src/features/change-bounds/snap.ts +2 -2
- package/src/features/command-palette/command-palette.ts +1 -1
- package/src/features/context-menu/context-menu-module.ts +2 -2
- package/src/features/context-menu/delete-element-context-menu.ts +2 -2
- package/src/features/copy-paste/copy-paste-context-menu.ts +2 -2
- package/src/features/debug/debug-bounds-decorator.tsx +2 -2
- package/src/features/label-edit-ui/label-edit-ui.ts +36 -3
- package/src/features/layout/layout-elements-action.spec.ts +2 -2
- package/src/features/navigation/navigation-action-handler.ts +3 -3
- package/src/features/routing/edge-router.ts +2 -2
- package/src/features/routing/routing-module.ts +8 -1
- package/src/features/routing/sticky-manhattan-anchors.ts +53 -0
- package/src/features/routing/sticky-manhattan-edge-router.spec.ts +212 -0
- package/src/features/routing/sticky-manhattan-edge-router.ts +713 -0
- package/src/features/tool-palette/tool-palette.ts +1 -3
- package/src/index.ts +5 -1
- package/src/views/gedge-view-with-gaps-on-intersections.tsx +99 -0
- package/src/views/issue-marker-view.tsx +2 -2
- package/src/views/rounded-corner-manhattan-edge-view.ts +171 -0
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
var StickyManhattanRectangularAnchor_1, StickyManhattanDiamondAnchor_1, StickyManhattanEllipticAnchor_1;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.StickyManhattanEllipticAnchor = exports.StickyManhattanDiamondAnchor = exports.StickyManhattanRectangularAnchor = void 0;
|
|
11
|
+
/********************************************************************************
|
|
12
|
+
* Copyright (c) 2026 EclipseSource and others.
|
|
13
|
+
*
|
|
14
|
+
* This program and the accompanying materials are made available under the
|
|
15
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
16
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
17
|
+
*
|
|
18
|
+
* This Source Code may also be made available under the following Secondary
|
|
19
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
20
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
21
|
+
* with the GNU Classpath Exception which is available at
|
|
22
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
23
|
+
*
|
|
24
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
25
|
+
********************************************************************************/
|
|
26
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
27
|
+
const inversify_1 = require("inversify");
|
|
28
|
+
const sticky_manhattan_edge_router_1 = require("./sticky-manhattan-edge-router");
|
|
29
|
+
// Anchor computers are keyed by `<routerKind>:<anchorKind>` in the AnchorComputerRegistry.
|
|
30
|
+
// The sticky router has its own routerKind, so dedicated subclasses must be registered even
|
|
31
|
+
// though their geometry behavior is identical to the standard Manhattan anchors.
|
|
32
|
+
let StickyManhattanRectangularAnchor = StickyManhattanRectangularAnchor_1 = class StickyManhattanRectangularAnchor extends sprotty_1.ManhattanRectangularAnchor {
|
|
33
|
+
get kind() {
|
|
34
|
+
return StickyManhattanRectangularAnchor_1.KIND;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.StickyManhattanRectangularAnchor = StickyManhattanRectangularAnchor;
|
|
38
|
+
StickyManhattanRectangularAnchor.KIND = sticky_manhattan_edge_router_1.GLSPStickyManhattanEdgeRouter.KIND + ':' + sprotty_1.RECTANGULAR_ANCHOR_KIND;
|
|
39
|
+
exports.StickyManhattanRectangularAnchor = StickyManhattanRectangularAnchor = StickyManhattanRectangularAnchor_1 = __decorate([
|
|
40
|
+
(0, inversify_1.injectable)()
|
|
41
|
+
], StickyManhattanRectangularAnchor);
|
|
42
|
+
let StickyManhattanDiamondAnchor = StickyManhattanDiamondAnchor_1 = class StickyManhattanDiamondAnchor extends sprotty_1.ManhattanDiamondAnchor {
|
|
43
|
+
get kind() {
|
|
44
|
+
return StickyManhattanDiamondAnchor_1.KIND;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.StickyManhattanDiamondAnchor = StickyManhattanDiamondAnchor;
|
|
48
|
+
StickyManhattanDiamondAnchor.KIND = sticky_manhattan_edge_router_1.GLSPStickyManhattanEdgeRouter.KIND + ':' + sprotty_1.DIAMOND_ANCHOR_KIND;
|
|
49
|
+
exports.StickyManhattanDiamondAnchor = StickyManhattanDiamondAnchor = StickyManhattanDiamondAnchor_1 = __decorate([
|
|
50
|
+
(0, inversify_1.injectable)()
|
|
51
|
+
], StickyManhattanDiamondAnchor);
|
|
52
|
+
let StickyManhattanEllipticAnchor = StickyManhattanEllipticAnchor_1 = class StickyManhattanEllipticAnchor extends sprotty_1.ManhattanEllipticAnchor {
|
|
53
|
+
get kind() {
|
|
54
|
+
return StickyManhattanEllipticAnchor_1.KIND;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
exports.StickyManhattanEllipticAnchor = StickyManhattanEllipticAnchor;
|
|
58
|
+
StickyManhattanEllipticAnchor.KIND = sticky_manhattan_edge_router_1.GLSPStickyManhattanEdgeRouter.KIND + ':' + sprotty_1.ELLIPTIC_ANCHOR_KIND;
|
|
59
|
+
exports.StickyManhattanEllipticAnchor = StickyManhattanEllipticAnchor = StickyManhattanEllipticAnchor_1 = __decorate([
|
|
60
|
+
(0, inversify_1.injectable)()
|
|
61
|
+
], StickyManhattanEllipticAnchor);
|
|
62
|
+
//# sourceMappingURL=sticky-manhattan-anchors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticky-manhattan-anchors.js","sourceRoot":"","sources":["../../../src/features/routing/sticky-manhattan-anchors.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAO+B;AAC/B,yCAAuC;AACvC,iFAA+E;AAE/E,2FAA2F;AAC3F,4FAA4F;AAC5F,iFAAiF;AAG1E,IAAM,gCAAgC,wCAAtC,MAAM,gCAAiC,SAAQ,oCAA0B;IAE5E,IAAa,IAAI;QACb,OAAO,kCAAgC,CAAC,IAAI,CAAC;IACjD,CAAC;;AAJQ,4EAAgC;AAChB,qCAAI,GAAG,4DAA6B,CAAC,IAAI,GAAG,GAAG,GAAG,iCAAuB,AAArE,CAAsE;2CAD1F,gCAAgC;IAD5C,IAAA,sBAAU,GAAE;GACA,gCAAgC,CAK5C;AAGM,IAAM,4BAA4B,oCAAlC,MAAM,4BAA6B,SAAQ,gCAAsB;IAEpE,IAAa,IAAI;QACb,OAAO,8BAA4B,CAAC,IAAI,CAAC;IAC7C,CAAC;;AAJQ,oEAA4B;AACZ,iCAAI,GAAG,4DAA6B,CAAC,IAAI,GAAG,GAAG,GAAG,6BAAmB,AAAjE,CAAkE;uCADtF,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CAKxC;AAGM,IAAM,6BAA6B,qCAAnC,MAAM,6BAA8B,SAAQ,iCAAuB;IAEtE,IAAa,IAAI;QACb,OAAO,+BAA6B,CAAC,IAAI,CAAC;IAC9C,CAAC;;AAJQ,sEAA6B;AACb,kCAAI,GAAG,4DAA6B,CAAC,IAAI,GAAG,GAAG,GAAG,8BAAoB,AAAlE,CAAmE;wCADvF,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAKzC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022-2026 Imixs Software Solutions GmbH.
|
|
3
|
+
* Copyright (c) 2026 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
|
+
import { DefaultAnchors, GRoutableElement, GRoutingHandle, LinearRouteOptions, Point, ResolvedHandleMove, RoutedPoint, Side } from '@eclipse-glsp/sprotty';
|
|
18
|
+
import { GLSPAbstractEdgeRouter } from './edge-router';
|
|
19
|
+
export interface StickyManhattanRouterOptions extends LinearRouteOptions {
|
|
20
|
+
/**
|
|
21
|
+
* Tolerance in pixels for deciding whether a segment is strictly vertical or
|
|
22
|
+
* horizontal. Defaults to `1` to accommodate the sub-pixel drift typical for
|
|
23
|
+
* Manhattan-routed coordinates.
|
|
24
|
+
*/
|
|
25
|
+
axisTolerance: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* An alternative Manhattan-style edge router that preserves existing bend points.
|
|
29
|
+
*
|
|
30
|
+
* In contrast to the standard {@link GLSPManhattanEdgeRouter} which recomputes the
|
|
31
|
+
* full route whenever a connected node moves, this router only adjusts the corner
|
|
32
|
+
* adjacent to the moved endpoint. Intermediate bend points are kept in place, which
|
|
33
|
+
* results in more predictable routing when users reposition nodes in complex
|
|
34
|
+
* diagrams.
|
|
35
|
+
*
|
|
36
|
+
* Opt-in per edge by setting `edge.routerKind = 'sticky-manhattan'`.
|
|
37
|
+
*
|
|
38
|
+
* @experimental The API surface and implementation details of this router may
|
|
39
|
+
* change in future releases, potentially in breaking ways, as we iterate on the
|
|
40
|
+
* initial implementation.
|
|
41
|
+
*
|
|
42
|
+
* Based on the original `BPMNManhattanRouter` by Ralph Soika (Imixs Software
|
|
43
|
+
* Solutions GmbH), contributed via https://github.com/eclipse-glsp/glsp/discussions/1642.
|
|
44
|
+
*/
|
|
45
|
+
export declare class GLSPStickyManhattanEdgeRouter extends GLSPAbstractEdgeRouter {
|
|
46
|
+
static readonly KIND = "sticky-manhattan";
|
|
47
|
+
/** Move-detection baseline: source/target bounds at the last persistence. */
|
|
48
|
+
protected readonly elementPositions: WeakMap<GRoutableElement, {
|
|
49
|
+
sourceX: number;
|
|
50
|
+
sourceY: number;
|
|
51
|
+
targetX: number;
|
|
52
|
+
targetY: number;
|
|
53
|
+
}>;
|
|
54
|
+
get kind(): string;
|
|
55
|
+
protected getOptions(edge: GRoutableElement): StickyManhattanRouterOptions;
|
|
56
|
+
route(edge: GRoutableElement): RoutedPoint[];
|
|
57
|
+
protected commitRoute(edge: GRoutableElement, routedPoints: RoutedPoint[]): void;
|
|
58
|
+
/** Snapshots current source/target bounds as the move-detection baseline. */
|
|
59
|
+
protected captureBaseline(edge: GRoutableElement): void;
|
|
60
|
+
/**
|
|
61
|
+
* Computes the intermediate corner points between source and target anchors.
|
|
62
|
+
*
|
|
63
|
+
* If the edge already has routing points and the connected nodes have moved
|
|
64
|
+
* since the previous route, the existing corners are preserved and only the
|
|
65
|
+
* endpoints closest to the moved node(s) slide along their constrained axis.
|
|
66
|
+
* Otherwise the corners are recomputed from scratch based on the current node
|
|
67
|
+
* geometry.
|
|
68
|
+
*/
|
|
69
|
+
protected createRoutedCorners(edge: GRoutableElement): RoutedPoint[];
|
|
70
|
+
/**
|
|
71
|
+
* Adjusts the endpoints of the existing route so they follow the moved node(s).
|
|
72
|
+
* The corner adjacent to a moved endpoint slides along its constrained axis so
|
|
73
|
+
* that the route stays orthogonal without discarding intermediate bend points.
|
|
74
|
+
*/
|
|
75
|
+
protected applyFollowLogic(points: Point[], edge: GRoutableElement, sourceAnchors?: DefaultAnchors): void;
|
|
76
|
+
createRoutingHandles(edge: GRoutableElement): void;
|
|
77
|
+
protected getInnerHandlePosition(edge: GRoutableElement, route: RoutedPoint[], handle: GRoutingHandle): Point | undefined;
|
|
78
|
+
protected applyInnerHandleMoves(edge: GRoutableElement, moves: ResolvedHandleMove[]): void;
|
|
79
|
+
cleanupRoutingPoints(edge: GRoutableElement, routingPoints: Point[], updateHandles: boolean, addRoutingPoints: boolean, sourceAnchors?: DefaultAnchors, targetAnchors?: DefaultAnchors): void;
|
|
80
|
+
protected removeHandle(edge: GRoutableElement, pointIndex: number): void;
|
|
81
|
+
/**
|
|
82
|
+
* Inserts an additional corner when the first/last routing point is outside
|
|
83
|
+
* the node bounds in the direction of the adjacent segment. This keeps the
|
|
84
|
+
* route orthogonal after routing points have been dragged outside the node.
|
|
85
|
+
*/
|
|
86
|
+
protected addAdditionalCorner(edge: GRoutableElement, points: Point[], currentAnchors: DefaultAnchors, otherAnchors: DefaultAnchors, updateHandles: boolean): void;
|
|
87
|
+
/** Inserts intermediate corner points so every segment is strictly orthogonal. */
|
|
88
|
+
protected manhattanify(points: Point[], edge: GRoutableElement): void;
|
|
89
|
+
/**
|
|
90
|
+
* Picks the sides on source and target for a fresh default route, preferring
|
|
91
|
+
* (in order) direct, one-corner, and finally two-corner connections.
|
|
92
|
+
*/
|
|
93
|
+
protected getBestConnectionAnchors(sourceAnchors: DefaultAnchors, targetAnchors: DefaultAnchors, options: StickyManhattanRouterOptions): {
|
|
94
|
+
source: Side;
|
|
95
|
+
target: Side;
|
|
96
|
+
};
|
|
97
|
+
/** Computes 0, 1, or 2 corner points for a fresh default route between the given sides. */
|
|
98
|
+
protected calculateCorners(sourceAnchors: DefaultAnchors, targetAnchors: DefaultAnchors, sides: {
|
|
99
|
+
source: Side;
|
|
100
|
+
target: Side;
|
|
101
|
+
}, options: StickyManhattanRouterOptions): Point[];
|
|
102
|
+
protected correctX(routingPoints: Point[], index: number, x: number, minimalPointDistance: number): number;
|
|
103
|
+
protected correctY(routingPoints: Point[], index: number, y: number, minimalPointDistance: number): number;
|
|
104
|
+
protected alignX(points: Point[], index: number, x: number): void;
|
|
105
|
+
protected alignY(points: Point[], index: number, y: number): void;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=sticky-manhattan-edge-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticky-manhattan-edge-router.d.ts","sourceRoot":"","sources":["../../../src/features/routing/sticky-manhattan-edge-router.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;kFAekF;AAClF,OAAO,EAEH,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,IAAI,EACP,MAAM,uBAAuB,CAAC;AAE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