@eclipse-glsp/client 2.2.0-next.325 → 2.2.0-next.328
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/css/command-palette.css +6 -2
- package/css/key-shortcut.css +6 -2
- package/css/keyboard-tool-palette.css +3 -1
- package/css/keyboard.css +3 -1
- package/css/tool-palette.css +6 -2
- package/lib/default-modules.d.ts.map +1 -1
- package/lib/default-modules.js +2 -1
- package/lib/default-modules.js.map +1 -1
- package/lib/features/accessibility/move-zoom/move-handler.js +1 -1
- package/lib/features/accessibility/move-zoom/move-handler.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +16 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +2 -16
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/command-palette/command-palette-module.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-module.js +2 -1
- package/lib/features/command-palette/command-palette-module.js.map +1 -1
- package/lib/features/command-palette/command-palette.d.ts +21 -0
- package/lib/features/command-palette/command-palette.d.ts.map +1 -0
- package/lib/features/command-palette/command-palette.js +46 -0
- package/lib/features/command-palette/command-palette.js.map +1 -0
- package/lib/features/command-palette/index.d.ts +1 -0
- package/lib/features/command-palette/index.d.ts.map +1 -1
- package/lib/features/command-palette/index.js +1 -0
- package/lib/features/command-palette/index.js.map +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.d.ts +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.d.ts.map +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.js +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.js.map +1 -1
- package/lib/features/helper-lines/helper-line-feedback.d.ts.map +1 -1
- package/lib/features/helper-lines/helper-line-feedback.js +42 -39
- package/lib/features/helper-lines/helper-line-feedback.js.map +1 -1
- package/lib/features/helper-lines/model.d.ts +3 -9
- package/lib/features/helper-lines/model.d.ts.map +1 -1
- package/lib/features/helper-lines/model.js +10 -28
- package/lib/features/helper-lines/model.js.map +1 -1
- package/lib/features/label-edit-ui/index.d.ts +18 -0
- package/lib/features/label-edit-ui/index.d.ts.map +1 -0
- package/lib/features/label-edit-ui/index.js +34 -0
- package/lib/features/label-edit-ui/index.js.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.d.ts +18 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.d.ts.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.js +27 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.js.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui.d.ts +21 -0
- package/lib/features/label-edit-ui/label-edit-ui.d.ts.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui.js +46 -0
- package/lib/features/label-edit-ui/label-edit-ui.js.map +1 -0
- package/lib/features/layout/layout-elements-action.d.ts +16 -1
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -1
- package/lib/features/layout/layout-elements-action.js +7 -6
- package/lib/features/layout/layout-elements-action.js.map +1 -1
- package/lib/features/viewport/reposition.d.ts +1 -1
- package/lib/features/viewport/reposition.d.ts.map +1 -1
- package/lib/features/viewport/reposition.js +10 -13
- package/lib/features/viewport/reposition.js.map +1 -1
- package/lib/utils/geometry-util.d.ts +42 -22
- package/lib/utils/geometry-util.d.ts.map +1 -1
- package/lib/utils/geometry-util.js +42 -83
- package/lib/utils/geometry-util.js.map +1 -1
- package/lib/utils/gmodel-util.js +1 -1
- package/lib/utils/gmodel-util.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +10 -20
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/package.json +4 -3
- package/src/base/feedback/index.ts +0 -1
- package/src/base/tool-manager/index.ts +2 -2
- package/src/default-modules.ts +2 -2
- package/src/features/accessibility/key-shortcut/index.ts +2 -2
- package/src/features/accessibility/keyboard-grid/index.ts +2 -2
- package/src/features/accessibility/keyboard-pointer/index.ts +2 -2
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-listener.ts +5 -2
- package/src/features/accessibility/keyboard-tool-palette/index.ts +2 -2
- package/src/features/accessibility/search/index.ts +2 -2
- package/src/features/command-palette/command-palette-module.ts +4 -3
- package/src/features/command-palette/command-palette.ts +34 -0
- package/src/features/command-palette/index.ts +2 -1
- package/src/features/helper-lines/index.ts +2 -2
- package/src/features/hover/index.ts +2 -2
- package/src/features/index.ts +2 -1
- package/src/features/label-edit-ui/index.ts +17 -0
- package/src/features/label-edit-ui/label-edit-ui-module.ts +24 -0
- package/src/features/label-edit-ui/label-edit-ui.ts +33 -0
- package/src/features/tool-palette/index.ts +2 -2
- package/src/features/tools/change-bounds/index.ts +2 -2
- package/src/features/tools/edge-creation/edge-creation-tool-feedback.ts +5 -2
- package/src/features/tools/edge-creation/index.ts +2 -2
- package/src/features/tools/edge-edit/index.ts +2 -2
- package/src/features/tools/marquee-selection/index.ts +2 -2
- package/src/views/index.ts +2 -2
- package/src/views/rounded-corner.ts +5 -2
package/css/command-palette.css
CHANGED
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
.command-palette {
|
|
18
18
|
transition: opacity 0.3s linear;
|
|
19
|
-
box-shadow:
|
|
19
|
+
box-shadow:
|
|
20
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.2),
|
|
21
|
+
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
.command-palette-suggestions {
|
|
@@ -25,7 +27,9 @@
|
|
|
25
27
|
overflow: auto;
|
|
26
28
|
box-sizing: border-box;
|
|
27
29
|
border: 1px solid rgba(60, 60, 60, 0.6);
|
|
28
|
-
box-shadow:
|
|
30
|
+
box-shadow:
|
|
31
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.2),
|
|
32
|
+
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
.command-palette-suggestions .icon {
|
package/css/key-shortcut.css
CHANGED
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
z-index: 9999;
|
|
31
31
|
width: 400px;
|
|
32
32
|
max-height: 512px;
|
|
33
|
-
box-shadow:
|
|
33
|
+
box-shadow:
|
|
34
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.2),
|
|
35
|
+
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
.keyboard-shortcuts-menu h3 {
|
|
@@ -45,7 +47,9 @@
|
|
|
45
47
|
background-color: #e4e1e1;
|
|
46
48
|
border: 1px solid #ccc;
|
|
47
49
|
border-radius: 3px;
|
|
48
|
-
box-shadow:
|
|
50
|
+
box-shadow:
|
|
51
|
+
0 1px 0 rgba(0, 0, 0, 0.2),
|
|
52
|
+
inset 0 0 0 1px rgba(255, 255, 255, 0.5);
|
|
49
53
|
color: #333;
|
|
50
54
|
display: inline-block;
|
|
51
55
|
font-size: 0.85em;
|
package/css/keyboard.css
CHANGED
package/css/tool-palette.css
CHANGED
|
@@ -47,7 +47,9 @@
|
|
|
47
47
|
text-align: left;
|
|
48
48
|
background: #cccccc;
|
|
49
49
|
border: 1px solid rgba(60, 60, 60, 0.6);
|
|
50
|
-
box-shadow:
|
|
50
|
+
box-shadow:
|
|
51
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.2),
|
|
52
|
+
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
51
53
|
display: flex;
|
|
52
54
|
align-items: center;
|
|
53
55
|
justify-content: space-between;
|
|
@@ -88,7 +90,9 @@
|
|
|
88
90
|
.palette-body {
|
|
89
91
|
background: rgba(100, 100, 100, 0.2);
|
|
90
92
|
border: 1px solid rgba(60, 60, 60, 0.6);
|
|
91
|
-
box-shadow:
|
|
93
|
+
box-shadow:
|
|
94
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.2),
|
|
95
|
+
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
92
96
|
}
|
|
93
97
|
|
|
94
98
|
.tool-group {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-modules.d.ts","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,cAAc,EACd,sBAAsB,EACtB,aAAa,EAEb,aAAa,
|
|
1
|
+
{"version":3,"file":"default-modules.d.ts","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,cAAc,EACd,sBAAsB,EACtB,aAAa,EAEb,aAAa,EAUhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AA8B9D,eAAO,MAAM,eAAe,sjBAsClB,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAElF;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACnC,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,eAAe,EAC/B,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GACvC,IAAI,CAQN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,uBAAuB,EAAE,sBAAsB,GAAG,SAAS,CAY9H"}
|
package/lib/default-modules.js
CHANGED
|
@@ -45,6 +45,7 @@ const node_creation_module_1 = require("./features/tools/node-creation/node-crea
|
|
|
45
45
|
const tool_focus_loss_module_1 = require("./features/tools/tool-focus-loss-module");
|
|
46
46
|
const validation_modules_1 = require("./features/validation/validation-modules");
|
|
47
47
|
const viewport_modules_1 = require("./features/viewport/viewport-modules");
|
|
48
|
+
const label_edit_ui_module_1 = require("./features/label-edit-ui/label-edit-ui-module");
|
|
48
49
|
exports.DEFAULT_MODULES = [
|
|
49
50
|
default_module_1.defaultModule,
|
|
50
51
|
sprotty_1.buttonModule,
|
|
@@ -62,7 +63,7 @@ exports.DEFAULT_MODULES = [
|
|
|
62
63
|
select_module_1.selectModule,
|
|
63
64
|
copy_paste_modules_1.copyPasteModule,
|
|
64
65
|
viewport_modules_1.viewportModule,
|
|
65
|
-
|
|
66
|
+
label_edit_ui_module_1.labelEditUiModule,
|
|
66
67
|
layout_module_1.layoutModule,
|
|
67
68
|
validation_modules_1.markerNavigatorModule,
|
|
68
69
|
type_hints_module_1.typeHintsModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-modules.js","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,
|
|
1
|
+
{"version":3,"file":"default-modules.js","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,mDAe+B;AAE/B,0DAAsD;AAEtD,mEAA+D;AAC/D,8FAAyF;AACzF,qFAAgF;AAChF,iFAA2E;AAC3E,+EAA2E;AAC3E,iGAA4F;AAC5F,qEAAgE;AAChE,0EAAqE;AACrE,gEAA4D;AAC5D,+EAA0E;AAC1E,mEAA+D;AAC/D,+EAA2E;AAC3E,sEAAkE;AAClE,mEAA+D;AAC/D,6GAAuG;AACvG,mEAA+D;AAC/D,qFAAgF;AAChF,qFAAgF;AAChF,wGAAkG;AAClG,yFAAoF;AACpF,gGAA8F;AAC9F,kFAAiF;AACjF,0GAAyG;AACzG,8FAA6F;AAC7F,oFAA8E;AAC9E,iFAAmG;AACnG,2EAAsE;AACtE,wFAAkF;AAErE,QAAA,eAAe,GAAG;IAC3B,8BAAa;IACb,sBAAY;IACZ,gCAAsB;IACtB,0BAAgB;IAChB,sBAAY;IACZ,6BAAY;IACZ,oBAAU;IACV,4BA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,uCAA6B,EAAC,GAAG,uBAAe,EAAE,GAAG,uBAAuB,CAAC,CAAC;IAC9F,oHAAoH;IACpH,4BAA4B;IAC5B,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC/B,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,YAAY,uBAAa,IAAI,WAAW,CAAC,SAAS,KAAK,8BAAa,CAAC,SAAS,CAAC,EAAE;QAC9G,MAAM,IAAI,KAAK,CACX,4HAA4H,CAC/H,CAAC;KACL;IACD,SAAS,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;IAC3B,OAAO,SAAS,CAAC;AACrB,CAAC;AAZD,gEAYC"}
|
|
@@ -136,7 +136,7 @@ let MoveElementHandler = class MoveElementHandler {
|
|
|
136
136
|
this.scheduleChangeBounds(this.toElementAndBounds(elementMoves));
|
|
137
137
|
}
|
|
138
138
|
getTargetBounds(element, action) {
|
|
139
|
-
let position = { x:
|
|
139
|
+
let position = sprotty_1.Point.add(element.bounds, { x: action.moveX, y: action.moveY });
|
|
140
140
|
if (this.snapper && action.snap) {
|
|
141
141
|
position = this.snapper.snap(position, element);
|
|
142
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"move-handler.js","sourceRoot":"","sources":["../../../../src/features/accessibility/move-zoom/move-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,mDAmB+B;AAC/B,yCAAyD;AACzD,mCAAiD;AACjD,iFAA4E;AAE5E,4DAA4G;AAC5G,8DAA0D;AAC1D,kEAAkE;AAkBlE,IAAiB,kBAAkB,CAUlC;AAVD,WAAiB,kBAAkB;IAClB,uBAAI,GAAG,oBAAoB,CAAC;IAEzC,SAAgB,EAAE,CAAC,MAAW;QAC1B,OAAO,gBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,mBAAA,IAAI,CAAC,CAAC;IACxC,CAAC;IAFe,qBAAE,KAEjB,CAAA;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AA2B;QACpD,MAAM,aAAa,GAAuB,EAAE,CAAC;QAC7C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;YACpC,MAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;YACzF,IAAI,OAAO,IAAI,IAAA,uBAAa,EAAC,OAAO,CAAC,EAAE;gBACnC,aAAa,CAAC,IAAI,CAAC;oBACf,SAAS,EAAE,WAAW,CAAC,SAAS;oBAChC,OAAO,EAAE;wBACL,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM;wBAC7B,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK;qBAC9B;oBACD,WAAW,EAAE;wBACT,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;wBAC3B,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;qBAC9B;iBACJ,CAAC,CAAC;aACN;SACJ;QACD,OAAO,aAAa,CAAC;IACzB,CAAC;CACJ,CAAA;AArGY,gDAAkB;AAEjB;IADT,IAAA,kBAAM,EAAC,6CAAoB,CAAC;8BACG,6CAAoB;gEAAC;AAG3C;IADT,IAAA,kBAAM,EAAC,eAAK,CAAC,iBAAiB,CAAC;;sDACQ;AAG9B;IADT,IAAA,kBAAM,EAAC,eAAK,CAAC,yBAAyB,CAAC;;8DACgB;AAI/C;IAFR,IAAA,kBAAM,EAAC,eAAK,CAAC,QAAQ,CAAC;IACtB,IAAA,oBAAQ,GAAE;;mDACiB;AAInB;IAFR,IAAA,kBAAM,EAAC,eAAK,CAAC,mBAAmB,CAAC;IACjC,IAAA,oBAAQ,GAAE;;8DACuC;6BAhBzC,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAqG9B"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2019-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 { BoundsAware, GModelElement, Point } from '@eclipse-glsp/sprotty';
|
|
2
17
|
import { ModifyCSSFeedbackAction } from '../../base/feedback/css-feedback';
|
|
3
18
|
/**
|
|
4
19
|
* A `MovementRestrictor` is an optional service that can be used by tools to validate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"movement-restrictor.d.ts","sourceRoot":"","sources":["../../../src/features/change-bounds/movement-restrictor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"movement-restrictor.d.ts","sourceRoot":"","sources":["../../../src/features/change-bounds/movement-restrictor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAU,WAAW,EAAE,aAAa,EAAyB,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAI3E;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IAC/D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,qBACa,2BAA4B,YAAW,mBAAmB;IACnE,UAAU,WAA4B;IAEtC,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO;IAsB9D,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,WAAW,EAAE,QAAQ,EAAE,aAAa,GAAG,WAAW,GAAG,OAAO;CAGlH;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC7C,OAAO,EAAE,aAAa,EACtB,kBAAkB,EAAE,mBAAmB,GACxC,uBAAuB,CAMzB;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC7C,OAAO,EAAE,aAAa,EACtB,kBAAkB,EAAE,mBAAmB,GACxC,uBAAuB,CAOzB"}
|
|
@@ -22,8 +22,8 @@ exports.removeMovementRestrictionFeedback = exports.createMovementRestrictionFee
|
|
|
22
22
|
*
|
|
23
23
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
24
|
********************************************************************************/
|
|
25
|
-
const inversify_1 = require("inversify");
|
|
26
25
|
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
26
|
+
const inversify_1 = require("inversify");
|
|
27
27
|
const css_feedback_1 = require("../../base/feedback/css-feedback");
|
|
28
28
|
const viewpoint_util_1 = require("../../utils/viewpoint-util");
|
|
29
29
|
const model_1 = require("./model");
|
|
@@ -55,21 +55,7 @@ let NoOverlapMovementRestrictor = class NoOverlapMovementRestrictor {
|
|
|
55
55
|
.map(e => e)).some(e => this.areOverlapping(e, ghostElement));
|
|
56
56
|
}
|
|
57
57
|
areOverlapping(element1, element2) {
|
|
58
|
-
|
|
59
|
-
const b2 = (0, viewpoint_util_1.toAbsoluteBounds)(element2);
|
|
60
|
-
const r1TopLeft = b1;
|
|
61
|
-
const r1BottomRight = { x: b1.x + b1.width, y: b1.y + b1.height };
|
|
62
|
-
const r2TopLeft = b2;
|
|
63
|
-
const r2BottomRight = { x: b2.x + b2.width, y: b2.y + b2.height };
|
|
64
|
-
// If one rectangle is on left side of other
|
|
65
|
-
if (r1TopLeft.x > r2BottomRight.x || r2TopLeft.x > r1BottomRight.x) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
// If one rectangle is above other
|
|
69
|
-
if (r1BottomRight.y < r2TopLeft.y || r2BottomRight.y < r1TopLeft.y) {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
return true;
|
|
58
|
+
return sprotty_1.Bounds.overlap((0, viewpoint_util_1.toAbsoluteBounds)(element1), (0, viewpoint_util_1.toAbsoluteBounds)(element2));
|
|
73
59
|
}
|
|
74
60
|
};
|
|
75
61
|
exports.NoOverlapMovementRestrictor = NoOverlapMovementRestrictor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"movement-restrictor.js","sourceRoot":"","sources":["../../../src/features/change-bounds/movement-restrictor.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"movement-restrictor.js","sourceRoot":"","sources":["../../../src/features/change-bounds/movement-restrictor.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAyG;AACzG,yCAAuC;AACvC,mEAA2E;AAC3E,+DAA8D;AAC9D,mCAA+D;AAqB/D;;;GAGG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAAjC;QACH,eAAU,GAAG,CAAC,sBAAsB,CAAC,CAAC;IA2B1C,CAAC;IAzBG,QAAQ,CAAC,OAAsB,EAAE,WAAmB;QAChD,IAAI,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE;YACjD,OAAO,KAAK,CAAC;SAChB;QACD,0CAA0C;QAC1C,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAgC,CAAC;QAC3E,YAAY,CAAC,MAAM,GAAG;YAClB,CAAC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C,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KACnG;IACD,OAAO,sCAAuB,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,kBAAkB,CAAC,UAAU,EAAE,CAAC,CAAC;AAC5F,CAAC;AATD,8EASC;AAED;;;;;GAKG;AACH,SAAgB,iCAAiC,CAC7C,OAAsB,EACtB,kBAAuC;IAEvC,MAAM,QAAQ,GAAoB,CAAC,OAAO,CAAC,CAAC;IAC5C,IAAI,OAAO,YAAY,wBAAc,EAAE;QACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,qBAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KACnG;IAED,OAAO,sCAAuB,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,kBAAkB,CAAC,UAAU,EAAE,CAAC,CAAC;AAC/F,CAAC;AAVD,8EAUC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette-module.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"command-palette-module.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAwC,aAAa,EAAwB,MAAM,uBAAuB,CAAC;AAClH,OAAO,kCAAkC,CAAC;AAK1C,eAAO,MAAM,oBAAoB,eAK/B,CAAC"}
|
|
@@ -18,10 +18,11 @@ exports.commandPaletteModule = void 0;
|
|
|
18
18
|
********************************************************************************/
|
|
19
19
|
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
20
20
|
require("../../../css/command-palette.css");
|
|
21
|
+
const command_palette_1 = require("./command-palette");
|
|
21
22
|
const command_palette_tool_1 = require("./command-palette-tool");
|
|
22
23
|
const server_command_palette_provider_1 = require("./server-command-palette-provider");
|
|
23
24
|
exports.commandPaletteModule = new sprotty_1.FeatureModule(bind => {
|
|
24
|
-
(0, sprotty_1.bindAsService)(bind, sprotty_1.TYPES.IUIExtension,
|
|
25
|
+
(0, sprotty_1.bindAsService)(bind, sprotty_1.TYPES.IUIExtension, command_palette_1.GlspCommandPalette);
|
|
25
26
|
bind(sprotty_1.TYPES.ICommandPaletteActionProviderRegistry).to(sprotty_1.CommandPaletteActionProviderRegistry).inSingletonScope();
|
|
26
27
|
(0, sprotty_1.bindAsService)(bind, sprotty_1.TYPES.ICommandPaletteActionProvider, server_command_palette_provider_1.ServerCommandPaletteActionProvider);
|
|
27
28
|
(0, sprotty_1.bindAsService)(bind, sprotty_1.TYPES.IDefaultTool, command_palette_tool_1.CommandPaletteTool);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette-module.js","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"command-palette-module.js","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAkH;AAClH,4CAA0C;AAC1C,uDAAuD;AACvD,iEAA4D;AAC5D,uFAAuF;AAE1E,QAAA,oBAAoB,GAAG,IAAI,uBAAa,CAAC,IAAI,CAAC,EAAE;IACzD,IAAA,uBAAa,EAAC,IAAI,EAAE,eAAK,CAAC,YAAY,EAAE,oCAAkB,CAAC,CAAC;IAC5D,IAAI,CAAC,eAAK,CAAC,qCAAqC,CAAC,CAAC,EAAE,CAAC,8CAAoC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC9G,IAAA,uBAAa,EAAC,IAAI,EAAE,eAAK,CAAC,6BAA6B,EAAE,oEAAkC,CAAC,CAAC;IAC7F,IAAA,uBAAa,EAAC,IAAI,EAAE,eAAK,CAAC,YAAY,EAAE,yCAAkB,CAAC,CAAC;AAChE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { CommandPalette } from '@eclipse-glsp/sprotty';
|
|
17
|
+
export declare class GlspCommandPalette extends CommandPalette {
|
|
18
|
+
protected initializeContents(containerElement: HTMLElement): void;
|
|
19
|
+
protected setContainerVisible(visible: boolean): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=command-palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-palette.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAsD,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG3G,qBACa,kBAAmB,SAAQ,cAAc;cAC/B,kBAAkB,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI;cAKvD,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAOjE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.GlspCommandPalette = void 0;
|
|
25
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
26
|
+
const inversify_1 = require("inversify");
|
|
27
|
+
let GlspCommandPalette = class GlspCommandPalette extends sprotty_1.CommandPalette {
|
|
28
|
+
initializeContents(containerElement) {
|
|
29
|
+
super.initializeContents(containerElement);
|
|
30
|
+
containerElement.classList.add(sprotty_1.CSS_UI_EXTENSION_CLASS);
|
|
31
|
+
}
|
|
32
|
+
setContainerVisible(visible) {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
if (visible) {
|
|
35
|
+
(_a = this.containerElement) === null || _a === void 0 ? void 0 : _a.classList.remove(sprotty_1.CSS_HIDDEN_EXTENSION_CLASS);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
(_b = this.containerElement) === null || _b === void 0 ? void 0 : _b.classList.add(sprotty_1.CSS_HIDDEN_EXTENSION_CLASS);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.GlspCommandPalette = GlspCommandPalette;
|
|
43
|
+
exports.GlspCommandPalette = GlspCommandPalette = __decorate([
|
|
44
|
+
(0, inversify_1.injectable)()
|
|
45
|
+
], GlspCommandPalette);
|
|
46
|
+
//# sourceMappingURL=command-palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-palette.js","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,mDAA2G;AAC3G,yCAAuC;AAGhC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAc;IAC/B,kBAAkB,CAAC,gBAA6B;QAC/D,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;QAC3C,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,gCAAsB,CAAC,CAAC;IAC3D,CAAC;IAEkB,mBAAmB,CAAC,OAAgB;;QACnD,IAAI,OAAO,EAAE;YACT,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,MAAM,CAAC,oCAA0B,CAAC,CAAC;SACvE;aAAM;YACH,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,GAAG,CAAC,oCAA0B,CAAC,CAAC;SACpE;IACL,CAAC;CACJ,CAAA;AAbY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAa9B"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
+
export * from './command-palette';
|
|
16
17
|
export * from './command-palette-module';
|
|
17
18
|
export * from './command-palette-tool';
|
|
18
19
|
export * from './server-command-palette-provider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC"}
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
*
|
|
30
30
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
31
31
|
********************************************************************************/
|
|
32
|
+
__exportStar(require("./command-palette"), exports);
|
|
32
33
|
__exportStar(require("./command-palette-module"), exports);
|
|
33
34
|
__exportStar(require("./command-palette-tool"), exports);
|
|
34
35
|
__exportStar(require("./server-command-palette-provider"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/command-palette/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAAyC;AACzC,yDAAuC;AACvC,oEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/command-palette/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,oDAAkC;AAClC,2DAAyC;AACzC,yDAAuC;AACvC,oEAAkD"}
|
|
@@ -18,8 +18,8 @@ import { DragAwareMouseListener } from '../../base/drag-aware-mouse-listener';
|
|
|
18
18
|
import { IFeedbackEmitter } from '../../base/feedback/feedback-action-dispatcher';
|
|
19
19
|
import { Tool } from '../../base/tool-manager/tool';
|
|
20
20
|
import { IMovementRestrictor } from '../change-bounds/movement-restrictor';
|
|
21
|
-
import { PositionSnapper } from '../change-bounds/position-snapper';
|
|
22
21
|
import { PointPositionUpdater } from '../change-bounds/point-position-updater';
|
|
22
|
+
import { PositionSnapper } from '../change-bounds/position-snapper';
|
|
23
23
|
export interface PositioningTool extends Tool {
|
|
24
24
|
readonly positionSnapper: PositionSnapper;
|
|
25
25
|
readonly movementRestrictor?: IMovementRestrictor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mouse-tracking-element-position-listener.d.ts","sourceRoot":"","sources":["../../../src/features/element-template/mouse-tracking-element-position-listener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,
|
|
1
|
+
{"version":3,"file":"mouse-tracking-element-position-listener.d.ts","sourceRoot":"","sources":["../../../src/features/element-template/mouse-tracking-element-position-listener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,MAAM,EAEN,UAAU,EACV,aAAa,EACb,UAAU,EAEV,KAAK,EAGR,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,OAAO,EACH,mBAAmB,EAG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EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,GAAG,KAAK;CAiBtH"}
|
|
@@ -73,7 +73,7 @@ let MouseTrackingElementPositionListener = class MouseTrackingElementPositionLis
|
|
|
73
73
|
getTargetPosition(target, event, element) {
|
|
74
74
|
let targetPosition = (0, viewpoint_util_1.getAbsolutePosition)(target, event);
|
|
75
75
|
if (this.cursorPosition === 'middle' && (0, sprotty_1.isBoundsAware)(element)) {
|
|
76
|
-
targetPosition = sprotty_1.Point.subtract(targetPosition,
|
|
76
|
+
targetPosition = sprotty_1.Point.subtract(targetPosition, sprotty_1.Dimension.center(element.bounds));
|
|
77
77
|
}
|
|
78
78
|
return targetPosition;
|
|
79
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mouse-tracking-element-position-listener.js","sourceRoot":"","sources":["../../../src/features/element-template/mouse-tracking-element-position-listener.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,
|
|
1
|
+
{"version":3,"file":"mouse-tracking-element-position-listener.js","sourceRoot":"","sources":["../../../src/features/element-template/mouse-tracking-element-position-listener.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,mDAU+B;AAC/B,yCAAuC;AACvC,oFAA8E;AAC9E,mEAAuF;AAGvF,+DAAiE;AACjE,8EAI8C;AAC9C,oFAA+E;AAE/E,gDAAgD;AAWzC,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,kDAAsB;IAK5E,YACc,SAAiB,EACjB,IAAqB,EACrB,iBAAwC,UAAU;QAE5D,KAAK,EAAE,CAAC;QAJE,cAAS,GAAT,SAAS,CAAQ;QACjB,SAAI,GAAJ,IAAI,CAAiB;QACrB,mBAAc,GAAd,cAAc,CAAoC;QAG5D,IAAI,CAAC,eAAe,GAAG,IAAI,6CAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC/E,CAAC;IA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ACZ,WAAW,GAAG,aAAa,CAAC;iBAC/B;aACJ;iBAAM;gBACH,MAAM,GAAG,IAAA,uDAAiC,EAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;aACrF;YACD,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,IAAA,uDAAiC,EAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;SAC1H;QACD,OAAO,WAAW,CAAC;IACvB,CAAC;CACJ,CAAA;AA3EY,oFAAoC;+CAApC,oCAAoC;IADhD,IAAA,sBAAU,GAAE;;GACA,oCAAoC,CA2EhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper-line-feedback.d.ts","sourceRoot":"","sources":["../../../src/features/helper-lines/helper-line-feedback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,MAAM,EACN,MAAM,EACN,uBAAuB,EACvB,aAAa,EAGb,aAAa,EACb,UAAU,EACV,OAAO,EACP,KAAK,EAEL,QAAQ,EAKX,MAAM,uBAAuB,CAAC;AAG/B,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"helper-line-feedback.d.ts","sourceRoot":"","sources":["../../../src/features/helper-lines/helper-line-feedback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,MAAM,EACN,MAAM,EACN,uBAAuB,EACvB,aAAa,EAGb,aAAa,EACb,UAAU,EACV,OAAO,EACP,KAAK,EAEL,QAAQ,EAKX,MAAM,uBAAuB,CAAC;AAG/B,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EACH,uBAAuB,EAM1B,MAAM,yBAAy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IAiGpH,SAAS,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAI5H,SAAS,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAI5F,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI;CAKzD;AAED,MAAM,WAAW,+BAAgC,SAAQ,MAAM;IAC3D,IAAI,EAAE,OAAO,+BAA+B,CAAC,IAAI,CAAC;CACrD;AAED,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,IAAI,sBAAsB,CAAC;IAExC,SAAgB,MAAM,CAAC,OAAO,GAAE,IAAI,CAAC,+BAA+B,EAAE,MAAM,CAAM,GAAG,+BAA+B,CAKnH;CACJ;AAED,qBACa,gCAAiC,SAAQ,eAAe;IAGxB,MAAM,EAAE,+BAA+B;IAFhF,MAAM,CAAC,QAAQ,CAAC,IAAI,uBAAwC;gBAEnB,MAAM,EAAE,+BAA+B;IAIvE,OAAO,CAAC,OAAO,EAAE,uBAAuB,GAAG,aAAa;CAKpE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAExD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAE5D;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAM/F"}
|
|
@@ -33,7 +33,6 @@ const inversify_1 = require("inversify");
|
|
|
33
33
|
const lodash_1 = require("lodash");
|
|
34
34
|
require("../../../css/helper-lines.css");
|
|
35
35
|
const feedback_command_1 = require("../../base/feedback/feedback-command");
|
|
36
|
-
const geometry_util_1 = require("../../utils/geometry-util");
|
|
37
36
|
const gmodel_util_1 = require("../../utils/gmodel-util");
|
|
38
37
|
const viewpoint_util_1 = require("../../utils/viewpoint-util");
|
|
39
38
|
const tools_1 = require("../tools");
|
|
@@ -125,12 +124,12 @@ let DrawHelperLinesFeedbackCommand = class DrawHelperLinesFeedbackCommand extend
|
|
|
125
124
|
const helperLines = [];
|
|
126
125
|
this.log('Find helperlines for viewport:', root);
|
|
127
126
|
const viewportBounds = (0, viewpoint_util_1.getViewportBounds)(root, root.canvasBounds);
|
|
128
|
-
if (lineTypes.includes(model_1.HelperLineType.Center) && this.isAligned(
|
|
129
|
-
helperLines.push(new model_1.HelperLine(
|
|
127
|
+
if (lineTypes.includes(model_1.HelperLineType.Center) && this.isAligned(sprotty_1.Bounds.centerX, viewportBounds, bounds, 2)) {
|
|
128
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.topCenter(viewportBounds), sprotty_1.Bounds.bottomCenter(viewportBounds), model_1.HelperLineType.Center));
|
|
130
129
|
this.log('- Reference bounds center align with viewport.', viewportBounds);
|
|
131
130
|
}
|
|
132
|
-
if (lineTypes.includes(model_1.HelperLineType.Middle) && this.isAligned(
|
|
133
|
-
helperLines.push(new model_1.HelperLine(
|
|
131
|
+
if (lineTypes.includes(model_1.HelperLineType.Middle) && this.isAligned(sprotty_1.Bounds.middle, viewportBounds, bounds, 2)) {
|
|
132
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.middleLeft(viewportBounds), sprotty_1.Bounds.middleRight(viewportBounds), model_1.HelperLineType.Middle));
|
|
134
133
|
this.log('- Reference bounds middle align with viewport.', viewportBounds);
|
|
135
134
|
}
|
|
136
135
|
if (helperLines.length > 0) {
|
|
@@ -144,73 +143,77 @@ let DrawHelperLinesFeedbackCommand = class DrawHelperLinesFeedbackCommand extend
|
|
|
144
143
|
}
|
|
145
144
|
calcHelperLinesForBounds(elementBounds, bounds, lineTypes) {
|
|
146
145
|
const helperLines = [];
|
|
147
|
-
if (lineTypes.includes(model_1.HelperLineType.Left) && this.isAligned(
|
|
148
|
-
const [above, below] =
|
|
149
|
-
helperLines.push(new model_1.HelperLine(
|
|
146
|
+
if (lineTypes.includes(model_1.HelperLineType.Left) && this.isAligned(sprotty_1.Bounds.left, elementBounds, bounds, this.alignmentEpsilon)) {
|
|
147
|
+
const [above, below] = sprotty_1.Bounds.sortBy(sprotty_1.Bounds.top, elementBounds, bounds); // higher top-value ==> lower
|
|
148
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.bottomLeft(below), sprotty_1.Bounds.topLeft(above), model_1.HelperLineType.Left));
|
|
150
149
|
this.log('- Reference bounds left align with element', elementBounds);
|
|
151
150
|
}
|
|
152
|
-
if (lineTypes.includes(model_1.HelperLineType.Center) && this.isAligned(
|
|
153
|
-
const [above, below] =
|
|
154
|
-
helperLines.push(new model_1.HelperLine(
|
|
151
|
+
if (lineTypes.includes(model_1.HelperLineType.Center) && this.isAligned(sprotty_1.Bounds.centerX, elementBounds, bounds, this.alignmentEpsilon)) {
|
|
152
|
+
const [above, below] = sprotty_1.Bounds.sortBy(sprotty_1.Bounds.top, elementBounds, bounds); // higher top-value ==> lower
|
|
153
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.topCenter(above), sprotty_1.Bounds.bottomCenter(below), model_1.HelperLineType.Center));
|
|
155
154
|
this.log('- Reference bounds center align with element', elementBounds);
|
|
156
155
|
}
|
|
157
|
-
if (lineTypes.includes(model_1.HelperLineType.Right) && this.isAligned(
|
|
158
|
-
const [above, below] =
|
|
159
|
-
helperLines.push(new model_1.HelperLine(
|
|
156
|
+
if (lineTypes.includes(model_1.HelperLineType.Right) && this.isAligned(sprotty_1.Bounds.right, elementBounds, bounds, this.alignmentEpsilon)) {
|
|
157
|
+
const [above, below] = sprotty_1.Bounds.sortBy(sprotty_1.Bounds.top, elementBounds, bounds); // higher top-value ==> lower
|
|
158
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.bottomRight(below), sprotty_1.Bounds.topRight(above), model_1.HelperLineType.Right));
|
|
160
159
|
this.log('- Reference bounds right align with element', elementBounds);
|
|
161
160
|
}
|
|
162
|
-
if (lineTypes.includes(model_1.HelperLineType.Bottom) && this.isAligned(
|
|
163
|
-
const [before, after] =
|
|
164
|
-
helperLines.push(new model_1.HelperLine(
|
|
161
|
+
if (lineTypes.includes(model_1.HelperLineType.Bottom) && this.isAligned(sprotty_1.Bounds.bottom, elementBounds, bounds, this.alignmentEpsilon)) {
|
|
162
|
+
const [before, after] = sprotty_1.Bounds.sortBy(sprotty_1.Bounds.left, elementBounds, bounds); // higher left-value ==> more to the right
|
|
163
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.bottomLeft(before), sprotty_1.Bounds.bottomRight(after), model_1.HelperLineType.Bottom));
|
|
165
164
|
this.log('- Reference bounds bottom align with element', elementBounds);
|
|
166
165
|
}
|
|
167
|
-
if (lineTypes.includes(model_1.HelperLineType.Middle) && this.isAligned(
|
|
168
|
-
const [before, after] =
|
|
169
|
-
helperLines.push(new model_1.HelperLine(
|
|
166
|
+
if (lineTypes.includes(model_1.HelperLineType.Middle) && this.isAligned(sprotty_1.Bounds.centerY, elementBounds, bounds, this.alignmentEpsilon)) {
|
|
167
|
+
const [before, after] = sprotty_1.Bounds.sortBy(sprotty_1.Bounds.left, elementBounds, bounds); // higher left-value ==> more to the right
|
|
168
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.middleLeft(before), sprotty_1.Bounds.middleRight(after), model_1.HelperLineType.Middle));
|
|
170
169
|
this.log('- Reference bounds middle align with element', elementBounds);
|
|
171
170
|
}
|
|
172
|
-
if (lineTypes.includes(model_1.HelperLineType.Top) && this.isAligned(
|
|
173
|
-
const [before, after] =
|
|
174
|
-
helperLines.push(new model_1.HelperLine(
|
|
171
|
+
if (lineTypes.includes(model_1.HelperLineType.Top) && this.isAligned(sprotty_1.Bounds.top, elementBounds, bounds, this.alignmentEpsilon)) {
|
|
172
|
+
const [before, after] = sprotty_1.Bounds.sortBy(sprotty_1.Bounds.left, elementBounds, bounds); // higher left-value ==> more to the right
|
|
173
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.topLeft(before), sprotty_1.Bounds.topRight(after), model_1.HelperLineType.Top));
|
|
175
174
|
this.log('- Reference bounds top align with element', elementBounds);
|
|
176
175
|
}
|
|
177
|
-
if (lineTypes.includes(model_1.HelperLineType.LeftRight) &&
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
if (lineTypes.includes(model_1.HelperLineType.LeftRight) &&
|
|
177
|
+
this.isMatch(sprotty_1.Bounds.left(elementBounds), sprotty_1.Bounds.right(bounds), this.alignmentEpsilon)) {
|
|
178
|
+
if (sprotty_1.Bounds.isAbove(bounds, elementBounds)) {
|
|
179
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.bottomLeft(elementBounds), sprotty_1.Bounds.topRight(bounds), model_1.HelperLineType.RightLeft));
|
|
180
180
|
this.log('- Reference bounds right aligns with element left', elementBounds);
|
|
181
181
|
}
|
|
182
182
|
else {
|
|
183
|
-
helperLines.push(new model_1.HelperLine(
|
|
183
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.topLeft(elementBounds), sprotty_1.Bounds.bottomRight(bounds), model_1.HelperLineType.RightLeft));
|
|
184
184
|
this.log('- Reference bounds right aligns with element left', elementBounds);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
if (lineTypes.includes(model_1.HelperLineType.LeftRight) &&
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
if (lineTypes.includes(model_1.HelperLineType.LeftRight) &&
|
|
188
|
+
this.isMatch(sprotty_1.Bounds.right(elementBounds), sprotty_1.Bounds.left(bounds), this.alignmentEpsilon)) {
|
|
189
|
+
if (sprotty_1.Bounds.isAbove(bounds, elementBounds)) {
|
|
190
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.bottomRight(elementBounds), sprotty_1.Bounds.topLeft(bounds), model_1.HelperLineType.LeftRight));
|
|
190
191
|
this.log('- Reference bounds left aligns with element right', elementBounds);
|
|
191
192
|
}
|
|
192
193
|
else {
|
|
193
|
-
helperLines.push(new model_1.HelperLine(
|
|
194
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.topRight(elementBounds), sprotty_1.Bounds.bottomLeft(bounds), model_1.HelperLineType.LeftRight));
|
|
194
195
|
this.log('- Reference bounds left aligns with element right', elementBounds);
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
|
-
if (lineTypes.includes(model_1.HelperLineType.TopBottom) &&
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
if (lineTypes.includes(model_1.HelperLineType.TopBottom) &&
|
|
199
|
+
this.isMatch(sprotty_1.Bounds.top(elementBounds), sprotty_1.Bounds.bottom(bounds), this.alignmentEpsilon)) {
|
|
200
|
+
if (sprotty_1.Bounds.isBefore(bounds, elementBounds)) {
|
|
201
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.topRight(elementBounds), sprotty_1.Bounds.bottomLeft(bounds), model_1.HelperLineType.BottomTop));
|
|
200
202
|
this.log('- Reference bounds bottom aligns with element top', elementBounds);
|
|
201
203
|
}
|
|
202
204
|
else {
|
|
203
|
-
helperLines.push(new model_1.HelperLine(
|
|
205
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.topLeft(elementBounds), sprotty_1.Bounds.bottomRight(bounds), model_1.HelperLineType.BottomTop));
|
|
204
206
|
this.log('- Reference bounds bottom aligns with element top', elementBounds);
|
|
205
207
|
}
|
|
206
208
|
}
|
|
207
|
-
if (lineTypes.includes(model_1.HelperLineType.TopBottom) &&
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
if (lineTypes.includes(model_1.HelperLineType.TopBottom) &&
|
|
210
|
+
this.isMatch(sprotty_1.Bounds.bottom(elementBounds), sprotty_1.Bounds.top(bounds), this.alignmentEpsilon)) {
|
|
211
|
+
if (sprotty_1.Bounds.isBefore(bounds, elementBounds)) {
|
|
212
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.bottomRight(elementBounds), sprotty_1.Bounds.topLeft(bounds), model_1.HelperLineType.TopBottom));
|
|
210
213
|
this.log('- Reference bounds top aligns with element bottom', elementBounds);
|
|
211
214
|
}
|
|
212
215
|
else {
|
|
213
|
-
helperLines.push(new model_1.HelperLine(
|
|
216
|
+
helperLines.push(new model_1.HelperLine(sprotty_1.Bounds.bottomLeft(elementBounds), sprotty_1.Bounds.topRight(bounds), model_1.HelperLineType.TopBottom));
|
|
214
217
|
this.log('- Reference bounds top aligns with element bottom', elementBounds);
|
|
215
218
|
}
|
|
216
219
|
}
|