@eclipse-glsp/client 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.
Files changed (180) hide show
  1. package/{lib/features/routing/glsp-manhattan-edge-router.d.ts → css/debug.css} +10 -5
  2. package/css/glsp-sprotty.css +5 -0
  3. package/css/grid.css +20 -0
  4. package/css/keyboard-tool-palette.css +0 -6
  5. package/css/tool-palette.css +30 -26
  6. package/lib/base/default.module.js +1 -1
  7. package/lib/base/default.module.js.map +1 -1
  8. package/lib/base/index.d.ts +1 -1
  9. package/lib/base/index.d.ts.map +1 -1
  10. package/lib/base/index.js +1 -1
  11. package/lib/base/index.js.map +1 -1
  12. package/lib/base/ui-extension/index.d.ts +18 -0
  13. package/lib/base/ui-extension/index.d.ts.map +1 -0
  14. package/lib/base/ui-extension/index.js +34 -0
  15. package/lib/base/ui-extension/index.js.map +1 -0
  16. package/lib/base/{ui-extension-registry.d.ts → ui-extension/ui-extension-registry.d.ts} +1 -1
  17. package/lib/base/ui-extension/ui-extension-registry.d.ts.map +1 -0
  18. package/lib/base/ui-extension/ui-extension-registry.js.map +1 -0
  19. package/lib/base/ui-extension/ui-extension.d.ts +39 -0
  20. package/lib/base/ui-extension/ui-extension.d.ts.map +1 -0
  21. package/lib/base/ui-extension/ui-extension.js +120 -0
  22. package/lib/base/ui-extension/ui-extension.js.map +1 -0
  23. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.d.ts.map +1 -1
  24. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.js +21 -7
  25. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.js.map +1 -1
  26. package/lib/features/accessibility/resize-key-tool/resize-key-handler.d.ts +2 -4
  27. package/lib/features/accessibility/resize-key-tool/resize-key-handler.d.ts.map +1 -1
  28. package/lib/features/accessibility/resize-key-tool/resize-key-handler.js +11 -7
  29. package/lib/features/accessibility/resize-key-tool/resize-key-handler.js.map +1 -1
  30. package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +5 -6
  31. package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -1
  32. package/lib/features/accessibility/view-key-tools/movement-key-tool.js +12 -8
  33. package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -1
  34. package/lib/features/change-bounds/snap.d.ts +1 -22
  35. package/lib/features/change-bounds/snap.d.ts.map +1 -1
  36. package/lib/features/change-bounds/snap.js +1 -37
  37. package/lib/features/change-bounds/snap.js.map +1 -1
  38. package/lib/features/command-palette/command-palette.d.ts.map +1 -1
  39. package/lib/features/command-palette/command-palette.js +4 -3
  40. package/lib/features/command-palette/command-palette.js.map +1 -1
  41. package/lib/features/debug/debug-bounds-decorator.d.ts +35 -0
  42. package/lib/features/debug/debug-bounds-decorator.d.ts.map +1 -0
  43. package/lib/features/debug/debug-bounds-decorator.js +149 -0
  44. package/lib/features/debug/debug-bounds-decorator.js.map +1 -0
  45. package/lib/features/debug/debug-manager.d.ts +29 -0
  46. package/lib/features/debug/debug-manager.d.ts.map +1 -0
  47. package/lib/features/debug/debug-manager.js +72 -0
  48. package/lib/features/debug/debug-manager.js.map +1 -0
  49. package/lib/features/debug/debug-model.d.ts +37 -0
  50. package/lib/features/debug/debug-model.d.ts.map +1 -0
  51. package/lib/features/debug/debug-model.js +73 -0
  52. package/lib/features/debug/debug-model.js.map +1 -0
  53. package/lib/features/debug/debug-module.d.ts +19 -0
  54. package/lib/features/debug/debug-module.d.ts.map +1 -0
  55. package/lib/features/debug/debug-module.js +31 -0
  56. package/lib/features/debug/debug-module.js.map +1 -0
  57. package/lib/features/debug/index.d.ts +20 -0
  58. package/lib/features/debug/index.d.ts.map +1 -0
  59. package/lib/features/debug/index.js +36 -0
  60. package/lib/features/debug/index.js.map +1 -0
  61. package/lib/features/grid/grid-manager.d.ts +32 -0
  62. package/lib/features/grid/grid-manager.d.ts.map +1 -0
  63. package/lib/features/grid/grid-manager.js +74 -0
  64. package/lib/features/grid/grid-manager.js.map +1 -0
  65. package/lib/features/grid/grid-model.d.ts +37 -0
  66. package/lib/features/grid/grid-model.d.ts.map +1 -0
  67. package/lib/features/grid/grid-model.js +73 -0
  68. package/lib/features/grid/grid-model.js.map +1 -0
  69. package/lib/features/grid/grid-module.d.ts +19 -0
  70. package/lib/features/grid/grid-module.d.ts.map +1 -0
  71. package/lib/features/grid/grid-module.js +32 -0
  72. package/lib/features/grid/grid-module.js.map +1 -0
  73. package/lib/features/grid/grid-snapper.d.ts +45 -0
  74. package/lib/features/grid/grid-snapper.d.ts.map +1 -0
  75. package/lib/features/grid/grid-snapper.js +83 -0
  76. package/lib/features/grid/grid-snapper.js.map +1 -0
  77. package/lib/features/grid/grid.d.ts +18 -0
  78. package/lib/features/grid/grid.d.ts.map +1 -0
  79. package/lib/features/grid/grid.js +3 -0
  80. package/lib/features/grid/grid.js.map +1 -0
  81. package/lib/features/grid/index.d.ts +21 -0
  82. package/lib/features/grid/index.d.ts.map +1 -0
  83. package/lib/features/grid/index.js +37 -0
  84. package/lib/features/grid/index.js.map +1 -0
  85. package/lib/features/helper-lines/helper-line-manager-default.d.ts +4 -1
  86. package/lib/features/helper-lines/helper-line-manager-default.d.ts.map +1 -1
  87. package/lib/features/helper-lines/helper-line-manager-default.js +11 -1
  88. package/lib/features/helper-lines/helper-line-manager-default.js.map +1 -1
  89. package/lib/features/index.d.ts +2 -0
  90. package/lib/features/index.d.ts.map +1 -1
  91. package/lib/features/index.js +2 -0
  92. package/lib/features/index.js.map +1 -1
  93. package/lib/features/label-edit-ui/label-edit-ui.d.ts.map +1 -1
  94. package/lib/features/label-edit-ui/label-edit-ui.js +4 -3
  95. package/lib/features/label-edit-ui/label-edit-ui.js.map +1 -1
  96. package/lib/features/routing/edge-router.d.ts +30 -0
  97. package/lib/features/routing/edge-router.d.ts.map +1 -0
  98. package/lib/features/routing/edge-router.js +116 -0
  99. package/lib/features/routing/edge-router.js.map +1 -0
  100. package/lib/features/routing/index.d.ts +1 -1
  101. package/lib/features/routing/index.d.ts.map +1 -1
  102. package/lib/features/routing/index.js +1 -1
  103. package/lib/features/routing/index.js.map +1 -1
  104. package/lib/features/routing/routing-module.d.ts.map +1 -1
  105. package/lib/features/routing/routing-module.js +4 -4
  106. package/lib/features/routing/routing-module.js.map +1 -1
  107. package/lib/features/tool-palette/tool-palette.d.ts +7 -0
  108. package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
  109. package/lib/features/tool-palette/tool-palette.js +80 -2
  110. package/lib/features/tool-palette/tool-palette.js.map +1 -1
  111. package/lib/features/viewport/index.d.ts +1 -0
  112. package/lib/features/viewport/index.d.ts.map +1 -1
  113. package/lib/features/viewport/index.js +1 -0
  114. package/lib/features/viewport/index.js.map +1 -1
  115. package/lib/features/viewport/origin-viewport.d.ts +36 -0
  116. package/lib/features/viewport/origin-viewport.d.ts.map +1 -0
  117. package/lib/features/viewport/origin-viewport.js +75 -0
  118. package/lib/features/viewport/origin-viewport.js.map +1 -0
  119. package/lib/features/viewport/viewport-modules.d.ts.map +1 -1
  120. package/lib/features/viewport/viewport-modules.js +4 -2
  121. package/lib/features/viewport/viewport-modules.js.map +1 -1
  122. package/lib/views/base-view-module.d.ts.map +1 -1
  123. package/lib/views/base-view-module.js +3 -2
  124. package/lib/views/base-view-module.js.map +1 -1
  125. package/lib/views/ggraph-view.d.ts +26 -0
  126. package/lib/views/ggraph-view.d.ts.map +1 -0
  127. package/lib/views/ggraph-view.js +71 -0
  128. package/lib/views/ggraph-view.js.map +1 -0
  129. package/lib/views/glsp-projection-view.d.ts +6 -1
  130. package/lib/views/glsp-projection-view.d.ts.map +1 -1
  131. package/lib/views/glsp-projection-view.js +30 -6
  132. package/lib/views/glsp-projection-view.js.map +1 -1
  133. package/lib/views/index.d.ts +1 -0
  134. package/lib/views/index.d.ts.map +1 -1
  135. package/lib/views/index.js +1 -0
  136. package/lib/views/index.js.map +1 -1
  137. package/package.json +3 -3
  138. package/src/base/default.module.ts +1 -1
  139. package/src/base/index.ts +1 -1
  140. package/src/base/ui-extension/index.ts +17 -0
  141. package/src/base/{ui-extension-registry.ts → ui-extension/ui-extension-registry.ts} +1 -1
  142. package/src/base/ui-extension/ui-extension.ts +119 -0
  143. package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.ts +24 -7
  144. package/src/features/accessibility/resize-key-tool/resize-key-handler.ts +9 -9
  145. package/src/features/accessibility/view-key-tools/movement-key-tool.ts +13 -11
  146. package/src/features/change-bounds/{snap.spec.ts → point-position-updater.spec.ts} +1 -12
  147. package/src/features/change-bounds/snap.ts +1 -24
  148. package/src/features/command-palette/command-palette.ts +2 -1
  149. package/src/features/debug/debug-bounds-decorator.tsx +171 -0
  150. package/src/features/debug/debug-manager.ts +56 -0
  151. package/src/features/debug/debug-model.ts +63 -0
  152. package/src/features/debug/debug-module.ts +32 -0
  153. package/src/features/debug/index.ts +19 -0
  154. package/src/features/grid/grid-manager.ts +60 -0
  155. package/src/features/grid/grid-model.ts +62 -0
  156. package/src/features/grid/grid-module.ts +34 -0
  157. package/src/features/grid/grid-snapper.spec.ts +30 -0
  158. package/src/features/grid/grid-snapper.ts +59 -0
  159. package/src/features/grid/grid.ts +18 -0
  160. package/src/features/grid/index.ts +20 -0
  161. package/src/features/helper-lines/helper-line-manager-default.ts +10 -2
  162. package/src/features/index.ts +2 -0
  163. package/src/features/label-edit-ui/label-edit-ui.ts +2 -1
  164. package/src/features/routing/{glsp-manhattan-edge-router.ts → edge-router.ts} +72 -2
  165. package/src/features/routing/index.ts +1 -1
  166. package/src/features/routing/routing-module.ts +3 -5
  167. package/src/features/tool-palette/tool-palette.ts +80 -3
  168. package/src/features/viewport/index.ts +1 -0
  169. package/src/features/viewport/origin-viewport.ts +68 -0
  170. package/src/features/viewport/viewport-modules.ts +4 -2
  171. package/src/views/base-view-module.ts +3 -3
  172. package/src/views/ggraph-view.tsx +56 -0
  173. package/src/views/glsp-projection-view.tsx +34 -7
  174. package/src/views/index.ts +1 -0
  175. package/lib/base/ui-extension-registry.d.ts.map +0 -1
  176. package/lib/base/ui-extension-registry.js.map +0 -1
  177. package/lib/features/routing/glsp-manhattan-edge-router.d.ts.map +0 -1
  178. package/lib/features/routing/glsp-manhattan-edge-router.js +0 -68
  179. package/lib/features/routing/glsp-manhattan-edge-router.js.map +0 -1
  180. /package/lib/base/{ui-extension-registry.js → ui-extension/ui-extension-registry.js} +0 -0
@@ -1,68 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2022-2023 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.GLSPManhattanEdgeRouter = void 0;
19
- const sprotty_1 = require("@eclipse-glsp/sprotty");
20
- class GLSPManhattanEdgeRouter extends sprotty_1.ManhattanEdgeRouter {
21
- applyInnerHandleMoves(edge, moves) {
22
- const route = this.route(edge);
23
- const routingPoints = edge.routingPoints;
24
- const minimalPointDistance = this.getOptions(edge).minimalPointDistance;
25
- moves.forEach(move => {
26
- const handle = move.handle;
27
- const index = handle.pointIndex;
28
- const correctedX = this.correctX(routingPoints, index, move.toPosition.x, minimalPointDistance);
29
- const correctedY = this.correctY(routingPoints, index, move.toPosition.y, minimalPointDistance);
30
- switch (handle.kind) {
31
- case 'manhattan-50%':
32
- if (index < 0) {
33
- if (routingPoints.length === 0) {
34
- routingPoints.push({ x: correctedX, y: correctedY });
35
- move.handle.pointIndex = 0;
36
- }
37
- else if ((0, sprotty_1.almostEquals)(route[0].x, route[1].x)) {
38
- this.alignX(routingPoints, 0, correctedX);
39
- }
40
- else {
41
- this.alignY(routingPoints, 0, correctedY);
42
- }
43
- }
44
- else if (index < routingPoints.length - 1) {
45
- if ((0, sprotty_1.almostEquals)(routingPoints[index].x, routingPoints[index + 1].x)) {
46
- this.alignX(routingPoints, index, correctedX);
47
- this.alignX(routingPoints, index + 1, correctedX);
48
- }
49
- else {
50
- this.alignY(routingPoints, index, correctedY);
51
- this.alignY(routingPoints, index + 1, correctedY);
52
- }
53
- }
54
- else {
55
- if ((0, sprotty_1.almostEquals)(route[route.length - 2].x, route[route.length - 1].x)) {
56
- this.alignX(routingPoints, routingPoints.length - 1, correctedX);
57
- }
58
- else {
59
- this.alignY(routingPoints, routingPoints.length - 1, correctedY);
60
- }
61
- }
62
- break;
63
- }
64
- });
65
- }
66
- }
67
- exports.GLSPManhattanEdgeRouter = GLSPManhattanEdgeRouter;
68
- //# sourceMappingURL=glsp-manhattan-edge-router.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glsp-manhattan-edge-router.js","sourceRoot":"","sources":["../../../src/features/routing/glsp-manhattan-edge-router.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,mDAAgH;AAEhH,MAAa,uBAAwB,SAAQ,6BAAmB;IACzC,qBAAqB,CAAC,IAAsB,EAAE,KAA2B;QACxF,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/B,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACzC,MAAM,oBAAoB,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC;QACxE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACjB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC3B,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC;YAChC,MAAM,UAAU,GAAG,IAAI,CAAC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