@eclipse-glsp/client 2.2.0-next.351 → 2.2.0-next.353

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 (349) hide show
  1. package/css/grid.css +8 -6
  2. package/lib/base/action-dispatcher.spec.d.ts +2 -0
  3. package/lib/base/action-dispatcher.spec.d.ts.map +1 -0
  4. package/lib/base/action-dispatcher.spec.js +78 -0
  5. package/lib/base/action-dispatcher.spec.js.map +1 -0
  6. package/lib/base/auto-complete/index.d.ts +21 -0
  7. package/lib/base/auto-complete/index.d.ts.map +1 -0
  8. package/lib/base/auto-complete/index.js +37 -0
  9. package/lib/base/auto-complete/index.js.map +1 -0
  10. package/lib/base/feedback/index.d.ts +20 -0
  11. package/lib/base/feedback/index.d.ts.map +1 -0
  12. package/lib/base/feedback/index.js +36 -0
  13. package/lib/base/feedback/index.js.map +1 -0
  14. package/lib/base/focus/index.d.ts +18 -0
  15. package/lib/base/focus/index.d.ts.map +1 -0
  16. package/lib/base/focus/index.js +34 -0
  17. package/lib/base/focus/index.js.map +1 -0
  18. package/lib/base/index.d.ts +32 -0
  19. package/lib/base/index.d.ts.map +1 -0
  20. package/lib/base/index.js +48 -0
  21. package/lib/base/index.js.map +1 -0
  22. package/lib/base/model/index.d.ts +20 -0
  23. package/lib/base/model/index.d.ts.map +1 -0
  24. package/lib/base/model/index.js +36 -0
  25. package/lib/base/model/index.js.map +1 -0
  26. package/lib/base/model/model-initialization-constraint.spec.d.ts +2 -0
  27. package/lib/base/model/model-initialization-constraint.spec.d.ts.map +1 -0
  28. package/lib/base/model/model-initialization-constraint.spec.js +97 -0
  29. package/lib/base/model/model-initialization-constraint.spec.js.map +1 -0
  30. package/lib/base/selection-service.spec.d.ts +2 -0
  31. package/lib/base/selection-service.spec.d.ts.map +1 -0
  32. package/lib/base/selection-service.spec.js +283 -0
  33. package/lib/base/selection-service.spec.js.map +1 -0
  34. package/lib/base/tool-manager/index.d.ts +18 -0
  35. package/lib/base/tool-manager/index.d.ts.map +1 -0
  36. package/lib/base/tool-manager/index.js +34 -0
  37. package/lib/base/tool-manager/index.js.map +1 -0
  38. package/lib/base/view/index.d.ts +19 -0
  39. package/lib/base/view/index.d.ts.map +1 -0
  40. package/lib/base/view/index.js +35 -0
  41. package/lib/base/view/index.js.map +1 -0
  42. package/lib/features/accessibility/edge-autocomplete/index.d.ts +20 -0
  43. package/lib/features/accessibility/edge-autocomplete/index.d.ts.map +1 -0
  44. package/lib/features/accessibility/edge-autocomplete/index.js +36 -0
  45. package/lib/features/accessibility/edge-autocomplete/index.js.map +1 -0
  46. package/lib/features/accessibility/element-navigation/index.d.ts +22 -0
  47. package/lib/features/accessibility/element-navigation/index.d.ts.map +1 -0
  48. package/lib/features/accessibility/element-navigation/index.js +38 -0
  49. package/lib/features/accessibility/element-navigation/index.js.map +1 -0
  50. package/lib/features/accessibility/focus-tracker/index.d.ts +18 -0
  51. package/lib/features/accessibility/focus-tracker/index.d.ts.map +1 -0
  52. package/lib/features/accessibility/focus-tracker/index.js +34 -0
  53. package/lib/features/accessibility/focus-tracker/index.js.map +1 -0
  54. package/lib/features/accessibility/index.d.ts +31 -0
  55. package/lib/features/accessibility/index.d.ts.map +1 -0
  56. package/lib/features/accessibility/index.js +47 -0
  57. package/lib/features/accessibility/index.js.map +1 -0
  58. package/lib/features/accessibility/key-shortcut/di.config.d.ts +24 -0
  59. package/lib/features/accessibility/key-shortcut/di.config.d.ts.map +1 -0
  60. package/lib/features/accessibility/key-shortcut/di.config.js +37 -0
  61. package/lib/features/accessibility/key-shortcut/di.config.js.map +1 -0
  62. package/lib/features/accessibility/key-shortcut/index.d.ts +19 -0
  63. package/lib/features/accessibility/key-shortcut/index.d.ts.map +1 -0
  64. package/lib/features/accessibility/key-shortcut/index.js +35 -0
  65. package/lib/features/accessibility/key-shortcut/index.js.map +1 -0
  66. package/lib/features/accessibility/keyboard-grid/index.d.ts +21 -0
  67. package/lib/features/accessibility/keyboard-grid/index.d.ts.map +1 -0
  68. package/lib/features/accessibility/keyboard-grid/index.js +37 -0
  69. package/lib/features/accessibility/keyboard-grid/index.js.map +1 -0
  70. package/lib/features/accessibility/keyboard-pointer/index.d.ts +22 -0
  71. package/lib/features/accessibility/keyboard-pointer/index.d.ts.map +1 -0
  72. package/lib/features/accessibility/keyboard-pointer/index.js +38 -0
  73. package/lib/features/accessibility/keyboard-pointer/index.js.map +1 -0
  74. package/lib/features/accessibility/keyboard-tool-palette/index.d.ts +18 -0
  75. package/lib/features/accessibility/keyboard-tool-palette/index.d.ts.map +1 -0
  76. package/lib/features/accessibility/keyboard-tool-palette/index.js +34 -0
  77. package/lib/features/accessibility/keyboard-tool-palette/index.js.map +1 -0
  78. package/lib/features/accessibility/move-zoom/index.d.ts +19 -0
  79. package/lib/features/accessibility/move-zoom/index.d.ts.map +1 -0
  80. package/lib/features/accessibility/move-zoom/index.js +35 -0
  81. package/lib/features/accessibility/move-zoom/index.js.map +1 -0
  82. package/lib/features/accessibility/resize-key-tool/index.d.ts +19 -0
  83. package/lib/features/accessibility/resize-key-tool/index.d.ts.map +1 -0
  84. package/lib/features/accessibility/resize-key-tool/index.js +35 -0
  85. package/lib/features/accessibility/resize-key-tool/index.js.map +1 -0
  86. package/lib/features/accessibility/search/index.d.ts +19 -0
  87. package/lib/features/accessibility/search/index.d.ts.map +1 -0
  88. package/lib/features/accessibility/search/index.js +35 -0
  89. package/lib/features/accessibility/search/index.js.map +1 -0
  90. package/lib/features/accessibility/toast/index.d.ts +19 -0
  91. package/lib/features/accessibility/toast/index.d.ts.map +1 -0
  92. package/lib/features/accessibility/toast/index.js +35 -0
  93. package/lib/features/accessibility/toast/index.js.map +1 -0
  94. package/lib/features/accessibility/view-key-tools/index.d.ts +20 -0
  95. package/lib/features/accessibility/view-key-tools/index.d.ts.map +1 -0
  96. package/lib/features/accessibility/view-key-tools/index.js +36 -0
  97. package/lib/features/accessibility/view-key-tools/index.js.map +1 -0
  98. package/lib/features/bounds/freeform-layout.spec.d.ts +3 -0
  99. package/lib/features/bounds/freeform-layout.spec.d.ts.map +1 -0
  100. package/lib/features/bounds/freeform-layout.spec.js +201 -0
  101. package/lib/features/bounds/freeform-layout.spec.js.map +1 -0
  102. package/lib/features/bounds/hbox-layout.spec.d.ts +3 -0
  103. package/lib/features/bounds/hbox-layout.spec.d.ts.map +1 -0
  104. package/lib/features/bounds/hbox-layout.spec.js +160 -0
  105. package/lib/features/bounds/hbox-layout.spec.js.map +1 -0
  106. package/lib/features/bounds/index.d.ts +24 -0
  107. package/lib/features/bounds/index.d.ts.map +1 -0
  108. package/lib/features/bounds/index.js +40 -0
  109. package/lib/features/bounds/index.js.map +1 -0
  110. package/lib/features/bounds/layouter-test-util.spec.d.ts +32 -0
  111. package/lib/features/bounds/layouter-test-util.spec.d.ts.map +1 -0
  112. package/lib/features/bounds/layouter-test-util.spec.js +96 -0
  113. package/lib/features/bounds/layouter-test-util.spec.js.map +1 -0
  114. package/lib/features/bounds/vbox-layout.spec.d.ts +3 -0
  115. package/lib/features/bounds/vbox-layout.spec.d.ts.map +1 -0
  116. package/lib/features/bounds/vbox-layout.spec.js +160 -0
  117. package/lib/features/bounds/vbox-layout.spec.js.map +1 -0
  118. package/lib/features/change-bounds/index.d.ts +21 -0
  119. package/lib/features/change-bounds/index.d.ts.map +1 -0
  120. package/lib/features/change-bounds/index.js +37 -0
  121. package/lib/features/change-bounds/index.js.map +1 -0
  122. package/lib/features/change-bounds/snap.spec.d.ts +17 -0
  123. package/lib/features/change-bounds/snap.spec.d.ts.map +1 -0
  124. package/lib/features/change-bounds/snap.spec.js +83 -0
  125. package/lib/features/change-bounds/snap.spec.js.map +1 -0
  126. package/lib/features/command-palette/index.d.ts +19 -0
  127. package/lib/features/command-palette/index.d.ts.map +1 -0
  128. package/lib/features/command-palette/index.js +35 -0
  129. package/lib/features/command-palette/index.js.map +1 -0
  130. package/lib/features/context-menu/index.d.ts +20 -0
  131. package/lib/features/context-menu/index.d.ts.map +1 -0
  132. package/lib/features/context-menu/index.js +36 -0
  133. package/lib/features/context-menu/index.js.map +1 -0
  134. package/lib/features/copy-paste/index.d.ts +20 -0
  135. package/lib/features/copy-paste/index.d.ts.map +1 -0
  136. package/lib/features/copy-paste/index.js +36 -0
  137. package/lib/features/copy-paste/index.js.map +1 -0
  138. package/lib/features/debug/debug-bounds-decorator.d.ts +1 -0
  139. package/lib/features/debug/debug-bounds-decorator.d.ts.map +1 -1
  140. package/lib/features/debug/debug-bounds-decorator.js +26 -27
  141. package/lib/features/debug/debug-bounds-decorator.js.map +1 -1
  142. package/lib/features/decoration/index.d.ts +18 -0
  143. package/lib/features/decoration/index.d.ts.map +1 -0
  144. package/lib/features/decoration/index.js +34 -0
  145. package/lib/features/decoration/index.js.map +1 -0
  146. package/lib/features/element-template/index.d.ts +20 -0
  147. package/lib/features/element-template/index.d.ts.map +1 -0
  148. package/lib/features/element-template/index.js +36 -0
  149. package/lib/features/element-template/index.js.map +1 -0
  150. package/lib/features/export/index.d.ts +19 -0
  151. package/lib/features/export/index.d.ts.map +1 -0
  152. package/lib/features/export/index.js +35 -0
  153. package/lib/features/export/index.js.map +1 -0
  154. package/lib/features/helper-lines/helper-line-feedback.d.ts +2 -2
  155. package/lib/features/helper-lines/index.d.ts +22 -0
  156. package/lib/features/helper-lines/index.d.ts.map +1 -0
  157. package/lib/features/helper-lines/index.js +38 -0
  158. package/lib/features/helper-lines/index.js.map +1 -0
  159. package/lib/features/helper-lines/view.d.ts +1 -0
  160. package/lib/features/helper-lines/view.d.ts.map +1 -1
  161. package/lib/features/helper-lines/view.js +5 -6
  162. package/lib/features/helper-lines/view.js.map +1 -1
  163. package/lib/features/hints/index.d.ts +19 -0
  164. package/lib/features/hints/index.d.ts.map +1 -0
  165. package/lib/features/hints/index.js +35 -0
  166. package/lib/features/hints/index.js.map +1 -0
  167. package/lib/features/hints/type-hint-provider.spec.d.ts +2 -0
  168. package/lib/features/hints/type-hint-provider.spec.d.ts.map +1 -0
  169. package/lib/features/hints/type-hint-provider.spec.js +333 -0
  170. package/lib/features/hints/type-hint-provider.spec.js.map +1 -0
  171. package/lib/features/hover/index.d.ts +18 -0
  172. package/lib/features/hover/index.d.ts.map +1 -0
  173. package/lib/features/hover/index.js +34 -0
  174. package/lib/features/hover/index.js.map +1 -0
  175. package/lib/features/index.d.ts +43 -0
  176. package/lib/features/index.d.ts.map +1 -0
  177. package/lib/features/index.js +59 -0
  178. package/lib/features/index.js.map +1 -0
  179. package/lib/features/label-edit/index.d.ts +19 -0
  180. package/lib/features/label-edit/index.d.ts.map +1 -0
  181. package/lib/features/label-edit/index.js +35 -0
  182. package/lib/features/label-edit/index.js.map +1 -0
  183. package/lib/features/layout/index.d.ts +18 -0
  184. package/lib/features/layout/index.d.ts.map +1 -0
  185. package/lib/features/layout/index.js +34 -0
  186. package/lib/features/layout/index.js.map +1 -0
  187. package/lib/features/layout/layout-elements-action.spec.d.ts +3 -0
  188. package/lib/features/layout/layout-elements-action.spec.d.ts.map +1 -0
  189. package/lib/features/layout/layout-elements-action.spec.js +329 -0
  190. package/lib/features/layout/layout-elements-action.spec.js.map +1 -0
  191. package/lib/features/navigation/index.d.ts +19 -0
  192. package/lib/features/navigation/index.d.ts.map +1 -0
  193. package/lib/features/navigation/index.js +35 -0
  194. package/lib/features/navigation/index.js.map +1 -0
  195. package/lib/features/navigation/navigation-target-resolver.spec.d.ts +3 -0
  196. package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +1 -0
  197. package/lib/features/navigation/navigation-target-resolver.spec.js +53 -0
  198. package/lib/features/navigation/navigation-target-resolver.spec.js.map +1 -0
  199. package/lib/features/reconnect/index.d.ts +17 -0
  200. package/lib/features/reconnect/index.d.ts.map +1 -0
  201. package/lib/features/reconnect/index.js +33 -0
  202. package/lib/features/reconnect/index.js.map +1 -0
  203. package/lib/features/routing/glsp-manhattan-edge-router.d.ts +20 -0
  204. package/lib/features/routing/glsp-manhattan-edge-router.d.ts.map +1 -0
  205. package/lib/features/routing/glsp-manhattan-edge-router.js +68 -0
  206. package/lib/features/routing/glsp-manhattan-edge-router.js.map +1 -0
  207. package/lib/features/routing/index.d.ts +18 -0
  208. package/lib/features/routing/index.d.ts.map +1 -0
  209. package/lib/features/routing/index.js +34 -0
  210. package/lib/features/routing/index.js.map +1 -0
  211. package/lib/features/save/index.d.ts +18 -0
  212. package/lib/features/save/index.d.ts.map +1 -0
  213. package/lib/features/save/index.js +34 -0
  214. package/lib/features/save/index.js.map +1 -0
  215. package/lib/features/select/index.d.ts +19 -0
  216. package/lib/features/select/index.d.ts.map +1 -0
  217. package/lib/features/select/index.js +35 -0
  218. package/lib/features/select/index.js.map +1 -0
  219. package/lib/features/source-model-watcher/index.d.ts +18 -0
  220. package/lib/features/source-model-watcher/index.d.ts.map +1 -0
  221. package/lib/features/source-model-watcher/index.js +34 -0
  222. package/lib/features/source-model-watcher/index.js.map +1 -0
  223. package/lib/features/status/index.d.ts +18 -0
  224. package/lib/features/status/index.d.ts.map +1 -0
  225. package/lib/features/status/index.js +34 -0
  226. package/lib/features/status/index.js.map +1 -0
  227. package/lib/features/svg-metadata/index.d.ts +18 -0
  228. package/lib/features/svg-metadata/index.d.ts.map +1 -0
  229. package/lib/features/svg-metadata/index.js +34 -0
  230. package/lib/features/svg-metadata/index.js.map +1 -0
  231. package/lib/features/tool-palette/index.d.ts +18 -0
  232. package/lib/features/tool-palette/index.d.ts.map +1 -0
  233. package/lib/features/tool-palette/index.js +34 -0
  234. package/lib/features/tool-palette/index.js.map +1 -0
  235. package/lib/features/tools/change-bounds/index.d.ts +20 -0
  236. package/lib/features/tools/change-bounds/index.d.ts.map +1 -0
  237. package/lib/features/tools/change-bounds/index.js +36 -0
  238. package/lib/features/tools/change-bounds/index.js.map +1 -0
  239. package/lib/features/tools/change-bounds/view.d.ts +1 -0
  240. package/lib/features/tools/change-bounds/view.d.ts.map +1 -1
  241. package/lib/features/tools/change-bounds/view.js +3 -4
  242. package/lib/features/tools/change-bounds/view.js.map +1 -1
  243. package/lib/features/tools/deletion/index.d.ts +18 -0
  244. package/lib/features/tools/deletion/index.d.ts.map +1 -0
  245. package/lib/features/tools/deletion/index.js +34 -0
  246. package/lib/features/tools/deletion/index.js.map +1 -0
  247. package/lib/features/tools/edge-creation/index.d.ts +21 -0
  248. package/lib/features/tools/edge-creation/index.d.ts.map +1 -0
  249. package/lib/features/tools/edge-creation/index.js +37 -0
  250. package/lib/features/tools/edge-creation/index.js.map +1 -0
  251. package/lib/features/tools/edge-creation/view.d.ts +17 -1
  252. package/lib/features/tools/edge-creation/view.d.ts.map +1 -1
  253. package/lib/features/tools/edge-creation/view.js +3 -4
  254. package/lib/features/tools/edge-creation/view.js.map +1 -1
  255. package/lib/features/tools/edge-edit/index.d.ts +19 -0
  256. package/lib/features/tools/edge-edit/index.d.ts.map +1 -0
  257. package/lib/features/tools/edge-edit/index.js +35 -0
  258. package/lib/features/tools/edge-edit/index.js.map +1 -0
  259. package/lib/features/tools/index.d.ts +24 -0
  260. package/lib/features/tools/index.d.ts.map +1 -0
  261. package/lib/features/tools/index.js +40 -0
  262. package/lib/features/tools/index.js.map +1 -0
  263. package/lib/features/tools/marquee-selection/index.d.ts +23 -0
  264. package/lib/features/tools/marquee-selection/index.d.ts.map +1 -0
  265. package/lib/features/tools/marquee-selection/index.js +39 -0
  266. package/lib/features/tools/marquee-selection/index.js.map +1 -0
  267. package/lib/features/tools/marquee-selection/marquee-behavior.spec.d.ts +17 -0
  268. package/lib/features/tools/marquee-selection/marquee-behavior.spec.d.ts.map +1 -0
  269. package/lib/features/tools/marquee-selection/marquee-behavior.spec.js +165 -0
  270. package/lib/features/tools/marquee-selection/marquee-behavior.spec.js.map +1 -0
  271. package/lib/features/tools/marquee-selection/view.d.ts +17 -1
  272. package/lib/features/tools/marquee-selection/view.d.ts.map +1 -1
  273. package/lib/features/tools/marquee-selection/view.js +4 -5
  274. package/lib/features/tools/marquee-selection/view.js.map +1 -1
  275. package/lib/features/tools/node-creation/index.d.ts +18 -0
  276. package/lib/features/tools/node-creation/index.d.ts.map +1 -0
  277. package/lib/features/tools/node-creation/index.js +34 -0
  278. package/lib/features/tools/node-creation/index.js.map +1 -0
  279. package/lib/features/tools/node-creation/node-creation-views.d.ts +1 -0
  280. package/lib/features/tools/node-creation/node-creation-views.d.ts.map +1 -1
  281. package/lib/features/tools/node-creation/node-creation-views.js +15 -16
  282. package/lib/features/tools/node-creation/node-creation-views.js.map +1 -1
  283. package/lib/features/undo-redo/index.d.ts +18 -0
  284. package/lib/features/undo-redo/index.d.ts.map +1 -0
  285. package/lib/features/undo-redo/index.js +34 -0
  286. package/lib/features/undo-redo/index.js.map +1 -0
  287. package/lib/features/validation/index.d.ts +20 -0
  288. package/lib/features/validation/index.d.ts.map +1 -0
  289. package/lib/features/validation/index.js +36 -0
  290. package/lib/features/validation/index.js.map +1 -0
  291. package/lib/features/validation/marker-navigator.spec.d.ts +3 -0
  292. package/lib/features/validation/marker-navigator.spec.d.ts.map +1 -0
  293. package/lib/features/validation/marker-navigator.spec.js +166 -0
  294. package/lib/features/validation/marker-navigator.spec.js.map +1 -0
  295. package/lib/features/viewport/index.d.ts +20 -0
  296. package/lib/features/viewport/index.d.ts.map +1 -0
  297. package/lib/features/viewport/index.js +36 -0
  298. package/lib/features/viewport/index.js.map +1 -0
  299. package/lib/tsconfig.tsbuildinfo +1 -0
  300. package/lib/utils/gmodel-util.spec.d.ts +2 -0
  301. package/lib/utils/gmodel-util.spec.d.ts.map +1 -0
  302. package/lib/utils/gmodel-util.spec.js +186 -0
  303. package/lib/utils/gmodel-util.spec.js.map +1 -0
  304. package/lib/utils/index.d.ts +23 -0
  305. package/lib/utils/index.d.ts.map +1 -0
  306. package/lib/utils/index.js +39 -0
  307. package/lib/utils/index.js.map +1 -0
  308. package/lib/views/compartments.d.ts +17 -1
  309. package/lib/views/compartments.d.ts.map +1 -1
  310. package/lib/views/compartments.js +4 -5
  311. package/lib/views/compartments.js.map +1 -1
  312. package/lib/views/gedge-view.d.ts +1 -0
  313. package/lib/views/gedge-view.d.ts.map +1 -1
  314. package/lib/views/gedge-view.js +4 -5
  315. package/lib/views/gedge-view.js.map +1 -1
  316. package/lib/views/ggraph-view.d.ts +0 -1
  317. package/lib/views/ggraph-view.d.ts.map +1 -1
  318. package/lib/views/ggraph-view.js +2 -12
  319. package/lib/views/ggraph-view.js.map +1 -1
  320. package/lib/views/glsp-projection-view.d.ts +1 -1
  321. package/lib/views/glsp-projection-view.d.ts.map +1 -1
  322. package/lib/views/glsp-projection-view.js +26 -73
  323. package/lib/views/glsp-projection-view.js.map +1 -1
  324. package/lib/views/index.d.ts +23 -0
  325. package/lib/views/index.d.ts.map +1 -0
  326. package/lib/views/index.js +39 -0
  327. package/lib/views/index.js.map +1 -0
  328. package/lib/views/issue-marker-view.d.ts +1 -0
  329. package/lib/views/issue-marker-view.d.ts.map +1 -1
  330. package/lib/views/issue-marker-view.js +6 -7
  331. package/lib/views/issue-marker-view.js.map +1 -1
  332. package/lib/views/rounded-corner-view.d.ts +17 -1
  333. package/lib/views/rounded-corner-view.d.ts.map +1 -1
  334. package/lib/views/rounded-corner-view.js +7 -8
  335. package/lib/views/rounded-corner-view.js.map +1 -1
  336. package/package.json +3 -3
  337. package/src/default-modules.spec.ts +56 -0
  338. package/src/features/debug/debug-bounds-decorator.tsx +1 -4
  339. package/src/features/helper-lines/view.tsx +1 -3
  340. package/src/features/tools/change-bounds/view.tsx +1 -3
  341. package/src/features/tools/edge-creation/view.tsx +2 -4
  342. package/src/features/tools/marquee-selection/view.tsx +2 -4
  343. package/src/features/tools/node-creation/node-creation-views.tsx +1 -4
  344. package/src/views/compartments.tsx +2 -4
  345. package/src/views/gedge-view.tsx +2 -4
  346. package/src/views/ggraph-view.tsx +2 -12
  347. package/src/views/glsp-projection-view.tsx +13 -76
  348. package/src/views/issue-marker-view.tsx +1 -3
  349. package/src/views/rounded-corner-view.tsx +2 -4
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2021 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
+ const chai_1 = require("chai");
19
+ const marquee_behavior_1 = require("./marquee-behavior");
20
+ describe('MarqueeUtil', () => {
21
+ function initUtil(marqueeBehavior) {
22
+ const util = new marquee_behavior_1.MarqueeUtil(marqueeBehavior);
23
+ util.updateStartPoint({ x: 0, y: 0 });
24
+ util.updateCurrentPoint({ x: 0, y: 0 });
25
+ return util;
26
+ }
27
+ describe('Node marquee', () => {
28
+ const node = { x: 20, y: 20, width: 200, height: 50 };
29
+ it('touch element', () => {
30
+ const util = initUtil();
31
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(false);
32
+ util.updateCurrentPoint({ x: 30, y: 50 });
33
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(true);
34
+ util.updateCurrentPoint({ x: 250, y: 85 });
35
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(true);
36
+ util.updateStartPoint({ x: 30, y: 25 });
37
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(true);
38
+ });
39
+ it('touch element (reverse)', () => {
40
+ const util = initUtil();
41
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(false);
42
+ util.updateStartPoint({ x: 30, y: 50 });
43
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(true);
44
+ util.updateStartPoint({ x: 250, y: 85 });
45
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(true);
46
+ util.updateCurrentPoint({ x: 30, y: 25 });
47
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(true);
48
+ });
49
+ it('mark entire element', () => {
50
+ const util = initUtil({ entireElement: true, entireEdge: false });
51
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(false);
52
+ util.updateCurrentPoint({ x: 30, y: 50 });
53
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(false);
54
+ util.updateCurrentPoint({ x: 250, y: 85 });
55
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(true);
56
+ util.updateStartPoint({ x: 30, y: 85 });
57
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(false);
58
+ });
59
+ it('mark entire element (reverse)', () => {
60
+ const util = initUtil({ entireElement: true, entireEdge: false });
61
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(false);
62
+ util.updateStartPoint({ x: 30, y: 50 });
63
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(false);
64
+ util.updateStartPoint({ x: 250, y: 85 });
65
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(true);
66
+ util.updateCurrentPoint({ x: 30, y: 85 });
67
+ (0, chai_1.expect)(util.isNodeMarked(node)).is.equals(false);
68
+ });
69
+ });
70
+ describe('Edge marquee', () => {
71
+ const edge = [
72
+ { x: 20, y: 40 },
73
+ { x: 40, y: 20 }
74
+ ];
75
+ const edge2 = [
76
+ { x: 20, y: 20 },
77
+ { x: 40, y: 40 },
78
+ { x: 50, y: 10 }
79
+ ];
80
+ it('touch edge', () => {
81
+ const util = initUtil();
82
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
83
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
84
+ util.updateCurrentPoint({ x: 20, y: 20 });
85
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
86
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
87
+ util.updateCurrentPoint({ x: 30, y: 30 });
88
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
89
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
90
+ util.updateCurrentPoint({ x: 50, y: 50 });
91
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
92
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
93
+ util.updateStartPoint({ x: 25, y: 25 });
94
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
95
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
96
+ });
97
+ it('touch edge (reverse)', () => {
98
+ const util = initUtil();
99
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
100
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
101
+ util.updateStartPoint({ x: 20, y: 20 });
102
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
103
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
104
+ util.updateStartPoint({ x: 30, y: 30 });
105
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
106
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
107
+ util.updateStartPoint({ x: 50, y: 50 });
108
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
109
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
110
+ util.updateCurrentPoint({ x: 25, y: 25 });
111
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
112
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
113
+ });
114
+ it('mark entire edge', () => {
115
+ const util = initUtil({ entireElement: false, entireEdge: true });
116
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
117
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
118
+ util.updateCurrentPoint({ x: 20, y: 20 });
119
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
120
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
121
+ util.updateCurrentPoint({ x: 30, y: 30 });
122
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
123
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
124
+ util.updateCurrentPoint({ x: 45, y: 50 });
125
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
126
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
127
+ util.updateCurrentPoint({ x: 55, y: 50 });
128
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
129
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
130
+ util.updateStartPoint({ x: 25, y: 25 });
131
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
132
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
133
+ });
134
+ it('mark entire edge (reverse)', () => {
135
+ const util = initUtil({ entireElement: false, entireEdge: true });
136
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
137
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
138
+ util.updateStartPoint({ x: 20, y: 20 });
139
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
140
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
141
+ util.updateStartPoint({ x: 30, y: 30 });
142
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
143
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
144
+ util.updateStartPoint({ x: 45, y: 50 });
145
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
146
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
147
+ util.updateStartPoint({ x: 55, y: 50 });
148
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(true);
149
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(true);
150
+ util.updateCurrentPoint({ x: 25, y: 25 });
151
+ (0, chai_1.expect)(util.isEdgeMarked(edge)).is.equals(false);
152
+ (0, chai_1.expect)(util.isEdgeMarked(edge2)).is.equals(false);
153
+ });
154
+ it('edge path should be marked', () => {
155
+ const path = 'M 599.968775008469,272.3972942960205 L 677.0904664855072,232';
156
+ const util = initUtil({ entireElement: false, entireEdge: true });
157
+ (0, chai_1.expect)(util.isEdgePathMarked(path)).is.equals(false);
158
+ util.updateCurrentPoint({ x: 600, y: 300 });
159
+ (0, chai_1.expect)(util.isEdgePathMarked(path)).is.equals(false);
160
+ util.updateCurrentPoint({ x: 700, y: 300 });
161
+ (0, chai_1.expect)(util.isEdgePathMarked(path)).is.equals(true);
162
+ });
163
+ });
164
+ });
165
+ //# sourceMappingURL=marquee-behavior.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marquee-behavior.spec.js","sourceRoot":"","sources":["../../../../src/features/tools/marquee-selection/marquee-behavior.spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;AAElF,+BAA8B;AAC9B,yDAAmE;AAEnE,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IACzB,SAAS,QAAQ,CAAC,eAAkC;QAChD,MAAM,IAAI,GAAG,IAAI,8BAAW,CAAC,eAAe,CAAC,CAAC;QAC9C,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACtC,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;QAC1B,MAAM,IAAI,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EA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;YACjD,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YAC1C,IAAA,aAAM,EAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,IAAA,aAAM,EAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;YAClC,MAAM,IAAI,GAAG,8DAA8D,CAAC;YAC5E,MAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YAClE,IAAA,aAAM,EAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACrD,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YAC5C,IAAA,aAAM,EAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACrD,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YAC5C,IAAA,aAAM,EAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,5 +1,21 @@
1
- import { VNode } from 'snabbdom';
1
+ /********************************************************************************
2
+ * Copyright (c) 2021-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
+ /** @jsx svg */
2
17
  import { RectangularNodeView, RenderingContext } from '@eclipse-glsp/sprotty';
18
+ import { VNode } from 'snabbdom';
3
19
  import { MarqueeNode } from './model';
4
20
  export declare class MarqueeView extends RectangularNodeView {
5
21
  render(node: MarqueeNode, context: RenderingContext): VNode;
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/features/tools/marquee-selection/view.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAO,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKtC,qBACa,WAAY,SAAQ,mBAAmB;IACvC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK;CAiBvE"}
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/features/tools/marquee-selection/view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,eAAe;AACf,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAO,MAAM,uBAAuB,CAAC;AAEnF,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,qBACa,WAAY,SAAQ,mBAAmB;IACvC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK;CAiBvE"}
@@ -22,14 +22,13 @@ exports.MarqueeView = void 0;
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");
25
+ /** @jsx svg */
26
26
  const sprotty_1 = require("@eclipse-glsp/sprotty");
27
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
28
- const JSX = { createElement: sprotty_1.svg };
27
+ const inversify_1 = require("inversify");
29
28
  let MarqueeView = class MarqueeView extends sprotty_1.RectangularNodeView {
30
29
  render(node, context) {
31
- const graph = (JSX.createElement("g", null,
32
- JSX.createElement("rect", { "class-sprotty-node": true, "class-marquee": true, x: node.startPoint.x - node.endPoint.x <= 0 ? node.startPoint.x : node.endPoint.x, y: node.startPoint.y - node.endPoint.y <= 0 ? node.startPoint.y : node.endPoint.y, rx: 0, ry: 0, width: Math.abs(node.startPoint.x - node.endPoint.x), height: Math.abs(node.startPoint.y - node.endPoint.y) })));
30
+ const graph = ((0, sprotty_1.svg)("g", null,
31
+ (0, sprotty_1.svg)("rect", { "class-sprotty-node": true, "class-marquee": true, x: node.startPoint.x - node.endPoint.x <= 0 ? node.startPoint.x : node.endPoint.x, y: node.startPoint.y - node.endPoint.y <= 0 ? node.startPoint.y : node.endPoint.y, rx: 0, ry: 0, width: Math.abs(node.startPoint.x - node.endPoint.x), height: Math.abs(node.startPoint.y - node.endPoint.y) })));
33
32
  return graph;
34
33
  }
35
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../src/features/tools/marquee-selection/view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AAEvC,mDAAmF;AAGnF,6DAA6D;AAC7D,MAAM,GAAG,GAAG,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iB,EAAE,OAAyB;QACxD,MAAM,KAAK,GAAG,CACV;YACI,mDACwB,IAAI,mBACT,IAAI,EACnB,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACjF,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACjF,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,CAAC,EACL,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EACpD,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,GACjD,CACR,CACP,CAAC;QACF,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AAlBY,kCAAW;sBAAX,WAAW;IADvB,IAAA,sBAAU,GAAE;GACA,WAAW,CAkBvB"}
@@ -0,0 +1,18 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2023 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ export * from './node-creation-module';
17
+ export * from './node-creation-tool';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/tools/node-creation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /********************************************************************************
18
+ * Copyright (c) 2023 EclipseSource and others.
19
+ *
20
+ * This program and the accompanying materials are made available under the
21
+ * terms of the Eclipse Public License v. 2.0 which is available at
22
+ * http://www.eclipse.org/legal/epl-2.0.
23
+ *
24
+ * This Source Code may also be made available under the following Secondary
25
+ * Licenses when the conditions for such availability set forth in the Eclipse
26
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
27
+ * with the GNU Classpath Exception which is available at
28
+ * https://www.gnu.org/software/classpath/license.html.
29
+ *
30
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
31
+ ********************************************************************************/
32
+ __exportStar(require("./node-creation-module"), exports);
33
+ __exportStar(require("./node-creation-tool"), exports);
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/tools/node-creation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yDAAuC;AACvC,uDAAqC"}
@@ -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
+ /** @jsx svg */
16
17
  import { IView, RenderingContext } from '@eclipse-glsp/sprotty';
17
18
  import { VNode } from 'snabbdom';
18
19
  import { Grid } from '../../grid/grid';
@@ -1 +1 @@
1
- {"version":3,"file":"node-creation-views.d.ts","sourceRoot":"","sources":["../../../../src/features/tools/node-creation/node-creation-views.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAwB,MAAM,uBAAuB,CAAC;AAEtF,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAc,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKjE,qBACa,mBAAoB,YAAW,KAAK;IACb,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;IAEtD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK,GAAG,SAAS;IAetF,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,MAAM;CAG9D"}
1
+ {"version":3,"file":"node-creation-views.d.ts","sourceRoot":"","sources":["../../../../src/features/tools/node-creation/node-creation-views.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,eAAe;AACf,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAwB,MAAM,uBAAuB,CAAC;AAEtF,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAc,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjE,qBACa,mBAAoB,YAAW,KAAK;IACb,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;IAEtD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK,GAAG,SAAS;IAetF,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,MAAM;CAG9D"}
@@ -1,4 +1,15 @@
1
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 __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.InsertIndicatorView = void 0;
2
13
  /********************************************************************************
3
14
  * Copyright (c) 2024 Axon Ivy AG and others.
4
15
  *
@@ -14,32 +25,20 @@
14
25
  *
15
26
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
27
  ********************************************************************************/
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
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.InsertIndicatorView = void 0;
28
+ /** @jsx svg */
28
29
  const sprotty_1 = require("@eclipse-glsp/sprotty");
29
30
  const inversify_1 = require("inversify");
30
31
  const argument_utils_1 = require("../../../utils/argument-utils");
31
32
  const insert_indicator_1 = require("./insert-indicator");
32
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
- const JSX = { createElement: sprotty_1.svg };
34
33
  let InsertIndicatorView = class InsertIndicatorView {
35
34
  render(model, context) {
36
35
  if (context.targetKind === 'hidden') {
37
36
  return undefined;
38
37
  }
39
38
  const size = this.getSize(model);
40
- const node = (JSX.createElement("g", null,
41
- JSX.createElement("polyline", { "class-sprotty-node": true, "class-insert-indicator": true, points: `0,${-size / 2} 0,${size / 2}` }),
42
- JSX.createElement("polyline", { "class-sprotty-node": true, "class-insert-indicator": true, points: `${-size / 2},0 ${size / 2},0` })));
39
+ const node = ((0, sprotty_1.svg)("g", null,
40
+ (0, sprotty_1.svg)("polyline", { "class-sprotty-node": true, "class-insert-indicator": true, points: `0,${-size / 2} 0,${size / 2}` }),
41
+ (0, sprotty_1.svg)("polyline", { "class-sprotty-node": true, "class-insert-indicator": true, points: `${-size / 2},0 ${size / 2},0` })));
43
42
  model.cssClasses.forEach(cl => (0, sprotty_1.setClass)(node, cl, true));
44
43
  return node;
45
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"node-cre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AuB;8BAD7C,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;GACA,mBAAmB,CAqB/B"}
1
+ {"version":3,"file":"node-creation-views.js","sourceRoot":"","sources":["../../../../src/features/tools/node-creation/node-creation-views.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,eAAe;AACf,mDAAsF;AACtF,yCAAyD;AAEzD,kEAA0D;AAE1D,yDAAiE;AAG1D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAG5B,MAAM,CAAC,KAAgC,EAAE,OAAyB;QAC9D,IAAI,OAAO,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;YAClC,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjC,MAAM,IAAI,GAAG,CACT;YACI,uDAA8B,IAAI,4BAA0B,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,GAAa;YACrH,uDAA8B,IAAI,4BAA0B,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI,GAAa,CACrH,CACP,CAAC;QACF,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,IAAA,kBAAQ,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QACzD,OAAO,IAAI,CAAC;IAChB,CAAC;IAES,OAAO,CAAC,KAAgC;;QAC9C,OAAO,MAAA,MAAA,0BAAS,CAAC,SAAS,CAAC,KAAK,EAAE,6BAAU,CAAC,mCAAI,MAAA,IAAI,CAAC,IAAI,0CAAE,CAAC,mCAAI,EAAE,CAAC;IACxE,CAAC;CACJ,CAAA;AArBY,kDAAmB;AACc;IAAzC,IAAA,oBAAQ,GAAE;IAAE,IAAA,kBAAM,EAAC,eAAK,CAAC,IAAI,CAAC;;iDAAuB;8BAD7C,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;GACA,mBAAmB,CAqB/B"}
@@ -0,0 +1,18 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2023 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ export * from './undo-redo-key-listener';
17
+ export * from './undo-redo-module';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/undo-redo/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /********************************************************************************
18
+ * Copyright (c) 2023 EclipseSource and others.
19
+ *
20
+ * This program and the accompanying materials are made available under the
21
+ * terms of the Eclipse Public License v. 2.0 which is available at
22
+ * http://www.eclipse.org/legal/epl-2.0.
23
+ *
24
+ * This Source Code may also be made available under the following Secondary
25
+ * Licenses when the conditions for such availability set forth in the Eclipse
26
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
27
+ * with the GNU Classpath Exception which is available at
28
+ * https://www.gnu.org/software/classpath/license.html.
29
+ *
30
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
31
+ ********************************************************************************/
32
+ __exportStar(require("./undo-redo-key-listener"), exports);
33
+ __exportStar(require("./undo-redo-module"), exports);
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/undo-redo/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAAyC;AACzC,qDAAmC"}
@@ -0,0 +1,20 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2023 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ export * from './issue-marker';
17
+ export * from './marker-navigator';
18
+ export * from './validate';
19
+ export * from './validation-modules';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/validation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /********************************************************************************
18
+ * Copyright (c) 2023 EclipseSource and others.
19
+ *
20
+ * This program and the accompanying materials are made available under the
21
+ * terms of the Eclipse Public License v. 2.0 which is available at
22
+ * http://www.eclipse.org/legal/epl-2.0.
23
+ *
24
+ * This Source Code may also be made available under the following Secondary
25
+ * Licenses when the conditions for such availability set forth in the Eclipse
26
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
27
+ * with the GNU Classpath Exception which is available at
28
+ * https://www.gnu.org/software/classpath/license.html.
29
+ *
30
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
31
+ ********************************************************************************/
32
+ __exportStar(require("./issue-marker"), exports);
33
+ __exportStar(require("./marker-navigator"), exports);
34
+ __exportStar(require("./validate"), exports);
35
+ __exportStar(require("./validation-modules"), exports);
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAA+B;AAC/B,qDAAmC;AACnC,6CAA2B;AAC3B,uDAAqC"}
@@ -0,0 +1,3 @@
1
+ import 'mocha';
2
+ import 'reflect-metadata';
3
+ //# sourceMappingURL=marker-navigator.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marker-navigator.spec.d.ts","sourceRoot":"","sources":["../../../src/features/validation/marker-navigator.spec.ts"],"names":[],"mappings":"AAkBA,OAAO,OAAO,CAAC;AACf,OAAO,kBAAkB,CAAC"}