@eclipse-glsp/client 2.2.0-next.350 → 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.
- package/css/grid.css +8 -6
- package/lib/base/action-dispatcher.spec.d.ts +2 -0
- package/lib/base/action-dispatcher.spec.d.ts.map +1 -0
- package/lib/base/action-dispatcher.spec.js +78 -0
- package/lib/base/action-dispatcher.spec.js.map +1 -0
- package/lib/base/auto-complete/index.d.ts +21 -0
- package/lib/base/auto-complete/index.d.ts.map +1 -0
- package/lib/base/auto-complete/index.js +37 -0
- package/lib/base/auto-complete/index.js.map +1 -0
- package/lib/base/feedback/index.d.ts +20 -0
- package/lib/base/feedback/index.d.ts.map +1 -0
- package/lib/base/feedback/index.js +36 -0
- package/lib/base/feedback/index.js.map +1 -0
- package/lib/base/focus/index.d.ts +18 -0
- package/lib/base/focus/index.d.ts.map +1 -0
- package/lib/base/focus/index.js +34 -0
- package/lib/base/focus/index.js.map +1 -0
- package/lib/base/index.d.ts +32 -0
- package/lib/base/index.d.ts.map +1 -0
- package/lib/base/index.js +48 -0
- package/lib/base/index.js.map +1 -0
- package/lib/base/model/index.d.ts +20 -0
- package/lib/base/model/index.d.ts.map +1 -0
- package/lib/base/model/index.js +36 -0
- package/lib/base/model/index.js.map +1 -0
- package/lib/base/model/model-initialization-constraint.spec.d.ts +2 -0
- package/lib/base/model/model-initialization-constraint.spec.d.ts.map +1 -0
- package/lib/base/model/model-initialization-constraint.spec.js +97 -0
- package/lib/base/model/model-initialization-constraint.spec.js.map +1 -0
- package/lib/base/selection-service.spec.d.ts +2 -0
- package/lib/base/selection-service.spec.d.ts.map +1 -0
- package/lib/base/selection-service.spec.js +283 -0
- package/lib/base/selection-service.spec.js.map +1 -0
- package/lib/base/tool-manager/index.d.ts +18 -0
- package/lib/base/tool-manager/index.d.ts.map +1 -0
- package/lib/base/tool-manager/index.js +34 -0
- package/lib/base/tool-manager/index.js.map +1 -0
- package/lib/base/view/index.d.ts +19 -0
- package/lib/base/view/index.d.ts.map +1 -0
- package/lib/base/view/index.js +35 -0
- package/lib/base/view/index.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/index.d.ts +20 -0
- package/lib/features/accessibility/edge-autocomplete/index.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/index.js +36 -0
- package/lib/features/accessibility/edge-autocomplete/index.js.map +1 -0
- package/lib/features/accessibility/element-navigation/index.d.ts +22 -0
- package/lib/features/accessibility/element-navigation/index.d.ts.map +1 -0
- package/lib/features/accessibility/element-navigation/index.js +38 -0
- package/lib/features/accessibility/element-navigation/index.js.map +1 -0
- package/lib/features/accessibility/focus-tracker/index.d.ts +18 -0
- package/lib/features/accessibility/focus-tracker/index.d.ts.map +1 -0
- package/lib/features/accessibility/focus-tracker/index.js +34 -0
- package/lib/features/accessibility/focus-tracker/index.js.map +1 -0
- package/lib/features/accessibility/index.d.ts +31 -0
- package/lib/features/accessibility/index.d.ts.map +1 -0
- package/lib/features/accessibility/index.js +47 -0
- package/lib/features/accessibility/index.js.map +1 -0
- package/lib/features/accessibility/key-shortcut/di.config.d.ts +24 -0
- package/lib/features/accessibility/key-shortcut/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/key-shortcut/di.config.js +37 -0
- package/lib/features/accessibility/key-shortcut/di.config.js.map +1 -0
- package/lib/features/accessibility/key-shortcut/index.d.ts +19 -0
- package/lib/features/accessibility/key-shortcut/index.d.ts.map +1 -0
- package/lib/features/accessibility/key-shortcut/index.js +35 -0
- package/lib/features/accessibility/key-shortcut/index.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/index.d.ts +21 -0
- package/lib/features/accessibility/keyboard-grid/index.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/index.js +37 -0
- package/lib/features/accessibility/keyboard-grid/index.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/index.d.ts +22 -0
- package/lib/features/accessibility/keyboard-pointer/index.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/index.js +38 -0
- package/lib/features/accessibility/keyboard-pointer/index.js.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/index.d.ts +18 -0
- package/lib/features/accessibility/keyboard-tool-palette/index.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/index.js +34 -0
- package/lib/features/accessibility/keyboard-tool-palette/index.js.map +1 -0
- package/lib/features/accessibility/move-zoom/index.d.ts +19 -0
- package/lib/features/accessibility/move-zoom/index.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/index.js +35 -0
- package/lib/features/accessibility/move-zoom/index.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/index.d.ts +19 -0
- package/lib/features/accessibility/resize-key-tool/index.d.ts.map +1 -0
- package/lib/features/accessibility/resize-key-tool/index.js +35 -0
- package/lib/features/accessibility/resize-key-tool/index.js.map +1 -0
- package/lib/features/accessibility/search/index.d.ts +19 -0
- package/lib/features/accessibility/search/index.d.ts.map +1 -0
- package/lib/features/accessibility/search/index.js +35 -0
- package/lib/features/accessibility/search/index.js.map +1 -0
- package/lib/features/accessibility/toast/index.d.ts +19 -0
- package/lib/features/accessibility/toast/index.d.ts.map +1 -0
- package/lib/features/accessibility/toast/index.js +35 -0
- package/lib/features/accessibility/toast/index.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/index.d.ts +20 -0
- package/lib/features/accessibility/view-key-tools/index.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/index.js +36 -0
- package/lib/features/accessibility/view-key-tools/index.js.map +1 -0
- package/lib/features/bounds/freeform-layout.spec.d.ts +3 -0
- package/lib/features/bounds/freeform-layout.spec.d.ts.map +1 -0
- package/lib/features/bounds/freeform-layout.spec.js +201 -0
- package/lib/features/bounds/freeform-layout.spec.js.map +1 -0
- package/lib/features/bounds/hbox-layout.spec.d.ts +3 -0
- package/lib/features/bounds/hbox-layout.spec.d.ts.map +1 -0
- package/lib/features/bounds/hbox-layout.spec.js +160 -0
- package/lib/features/bounds/hbox-layout.spec.js.map +1 -0
- package/lib/features/bounds/index.d.ts +24 -0
- package/lib/features/bounds/index.d.ts.map +1 -0
- package/lib/features/bounds/index.js +40 -0
- package/lib/features/bounds/index.js.map +1 -0
- package/lib/features/bounds/layouter-test-util.spec.d.ts +32 -0
- package/lib/features/bounds/layouter-test-util.spec.d.ts.map +1 -0
- package/lib/features/bounds/layouter-test-util.spec.js +96 -0
- package/lib/features/bounds/layouter-test-util.spec.js.map +1 -0
- package/lib/features/bounds/vbox-layout.spec.d.ts +3 -0
- package/lib/features/bounds/vbox-layout.spec.d.ts.map +1 -0
- package/lib/features/bounds/vbox-layout.spec.js +160 -0
- package/lib/features/bounds/vbox-layout.spec.js.map +1 -0
- package/lib/features/change-bounds/index.d.ts +21 -0
- package/lib/features/change-bounds/index.d.ts.map +1 -0
- package/lib/features/change-bounds/index.js +37 -0
- package/lib/features/change-bounds/index.js.map +1 -0
- package/lib/features/change-bounds/snap.spec.d.ts +17 -0
- package/lib/features/change-bounds/snap.spec.d.ts.map +1 -0
- package/lib/features/change-bounds/snap.spec.js +83 -0
- package/lib/features/change-bounds/snap.spec.js.map +1 -0
- package/lib/features/command-palette/index.d.ts +19 -0
- package/lib/features/command-palette/index.d.ts.map +1 -0
- package/lib/features/command-palette/index.js +35 -0
- package/lib/features/command-palette/index.js.map +1 -0
- package/lib/features/context-menu/index.d.ts +20 -0
- package/lib/features/context-menu/index.d.ts.map +1 -0
- package/lib/features/context-menu/index.js +36 -0
- package/lib/features/context-menu/index.js.map +1 -0
- package/lib/features/copy-paste/index.d.ts +20 -0
- package/lib/features/copy-paste/index.d.ts.map +1 -0
- package/lib/features/copy-paste/index.js +36 -0
- package/lib/features/copy-paste/index.js.map +1 -0
- package/lib/features/debug/debug-bounds-decorator.d.ts +1 -0
- package/lib/features/debug/debug-bounds-decorator.d.ts.map +1 -1
- package/lib/features/debug/debug-bounds-decorator.js +26 -27
- package/lib/features/debug/debug-bounds-decorator.js.map +1 -1
- package/lib/features/decoration/index.d.ts +18 -0
- package/lib/features/decoration/index.d.ts.map +1 -0
- package/lib/features/decoration/index.js +34 -0
- package/lib/features/decoration/index.js.map +1 -0
- package/lib/features/element-template/index.d.ts +20 -0
- package/lib/features/element-template/index.d.ts.map +1 -0
- package/lib/features/element-template/index.js +36 -0
- package/lib/features/element-template/index.js.map +1 -0
- package/lib/features/export/index.d.ts +19 -0
- package/lib/features/export/index.d.ts.map +1 -0
- package/lib/features/export/index.js +35 -0
- package/lib/features/export/index.js.map +1 -0
- package/lib/features/helper-lines/helper-line-feedback.d.ts +2 -2
- package/lib/features/helper-lines/index.d.ts +22 -0
- package/lib/features/helper-lines/index.d.ts.map +1 -0
- package/lib/features/helper-lines/index.js +38 -0
- package/lib/features/helper-lines/index.js.map +1 -0
- package/lib/features/helper-lines/view.d.ts +1 -0
- package/lib/features/helper-lines/view.d.ts.map +1 -1
- package/lib/features/helper-lines/view.js +5 -6
- package/lib/features/helper-lines/view.js.map +1 -1
- package/lib/features/hints/index.d.ts +19 -0
- package/lib/features/hints/index.d.ts.map +1 -0
- package/lib/features/hints/index.js +35 -0
- package/lib/features/hints/index.js.map +1 -0
- package/lib/features/hints/type-hint-provider.spec.d.ts +2 -0
- package/lib/features/hints/type-hint-provider.spec.d.ts.map +1 -0
- package/lib/features/hints/type-hint-provider.spec.js +333 -0
- package/lib/features/hints/type-hint-provider.spec.js.map +1 -0
- package/lib/features/hover/index.d.ts +18 -0
- package/lib/features/hover/index.d.ts.map +1 -0
- package/lib/features/hover/index.js +34 -0
- package/lib/features/hover/index.js.map +1 -0
- package/lib/features/index.d.ts +43 -0
- package/lib/features/index.d.ts.map +1 -0
- package/lib/features/index.js +59 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/label-edit/index.d.ts +19 -0
- package/lib/features/label-edit/index.d.ts.map +1 -0
- package/lib/features/label-edit/index.js +35 -0
- package/lib/features/label-edit/index.js.map +1 -0
- package/lib/features/layout/index.d.ts +18 -0
- package/lib/features/layout/index.d.ts.map +1 -0
- package/lib/features/layout/index.js +34 -0
- package/lib/features/layout/index.js.map +1 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts +3 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +1 -0
- package/lib/features/layout/layout-elements-action.spec.js +329 -0
- package/lib/features/layout/layout-elements-action.spec.js.map +1 -0
- package/lib/features/navigation/index.d.ts +19 -0
- package/lib/features/navigation/index.d.ts.map +1 -0
- package/lib/features/navigation/index.js +35 -0
- package/lib/features/navigation/index.js.map +1 -0
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts +3 -0
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +1 -0
- package/lib/features/navigation/navigation-target-resolver.spec.js +53 -0
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +1 -0
- package/lib/features/reconnect/index.d.ts +17 -0
- package/lib/features/reconnect/index.d.ts.map +1 -0
- package/lib/features/reconnect/index.js +33 -0
- package/lib/features/reconnect/index.js.map +1 -0
- package/lib/features/routing/glsp-manhattan-edge-router.d.ts +20 -0
- package/lib/features/routing/glsp-manhattan-edge-router.d.ts.map +1 -0
- package/lib/features/routing/glsp-manhattan-edge-router.js +68 -0
- package/lib/features/routing/glsp-manhattan-edge-router.js.map +1 -0
- package/lib/features/routing/index.d.ts +18 -0
- package/lib/features/routing/index.d.ts.map +1 -0
- package/lib/features/routing/index.js +34 -0
- package/lib/features/routing/index.js.map +1 -0
- package/lib/features/save/index.d.ts +18 -0
- package/lib/features/save/index.d.ts.map +1 -0
- package/lib/features/save/index.js +34 -0
- package/lib/features/save/index.js.map +1 -0
- package/lib/features/select/index.d.ts +19 -0
- package/lib/features/select/index.d.ts.map +1 -0
- package/lib/features/select/index.js +35 -0
- package/lib/features/select/index.js.map +1 -0
- package/lib/features/source-model-watcher/index.d.ts +18 -0
- package/lib/features/source-model-watcher/index.d.ts.map +1 -0
- package/lib/features/source-model-watcher/index.js +34 -0
- package/lib/features/source-model-watcher/index.js.map +1 -0
- package/lib/features/status/index.d.ts +18 -0
- package/lib/features/status/index.d.ts.map +1 -0
- package/lib/features/status/index.js +34 -0
- package/lib/features/status/index.js.map +1 -0
- package/lib/features/svg-metadata/index.d.ts +18 -0
- package/lib/features/svg-metadata/index.d.ts.map +1 -0
- package/lib/features/svg-metadata/index.js +34 -0
- package/lib/features/svg-metadata/index.js.map +1 -0
- package/lib/features/tool-palette/index.d.ts +18 -0
- package/lib/features/tool-palette/index.d.ts.map +1 -0
- package/lib/features/tool-palette/index.js +34 -0
- package/lib/features/tool-palette/index.js.map +1 -0
- package/lib/features/tools/change-bounds/index.d.ts +20 -0
- package/lib/features/tools/change-bounds/index.d.ts.map +1 -0
- package/lib/features/tools/change-bounds/index.js +36 -0
- package/lib/features/tools/change-bounds/index.js.map +1 -0
- package/lib/features/tools/change-bounds/view.d.ts +1 -0
- package/lib/features/tools/change-bounds/view.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/view.js +3 -4
- package/lib/features/tools/change-bounds/view.js.map +1 -1
- package/lib/features/tools/deletion/index.d.ts +18 -0
- package/lib/features/tools/deletion/index.d.ts.map +1 -0
- package/lib/features/tools/deletion/index.js +34 -0
- package/lib/features/tools/deletion/index.js.map +1 -0
- package/lib/features/tools/edge-creation/index.d.ts +21 -0
- package/lib/features/tools/edge-creation/index.d.ts.map +1 -0
- package/lib/features/tools/edge-creation/index.js +37 -0
- package/lib/features/tools/edge-creation/index.js.map +1 -0
- package/lib/features/tools/edge-creation/view.d.ts +17 -1
- package/lib/features/tools/edge-creation/view.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/view.js +3 -4
- package/lib/features/tools/edge-creation/view.js.map +1 -1
- package/lib/features/tools/edge-edit/index.d.ts +19 -0
- package/lib/features/tools/edge-edit/index.d.ts.map +1 -0
- package/lib/features/tools/edge-edit/index.js +35 -0
- package/lib/features/tools/edge-edit/index.js.map +1 -0
- package/lib/features/tools/index.d.ts +24 -0
- package/lib/features/tools/index.d.ts.map +1 -0
- package/lib/features/tools/index.js +40 -0
- package/lib/features/tools/index.js.map +1 -0
- package/lib/features/tools/marquee-selection/index.d.ts +23 -0
- package/lib/features/tools/marquee-selection/index.d.ts.map +1 -0
- package/lib/features/tools/marquee-selection/index.js +39 -0
- package/lib/features/tools/marquee-selection/index.js.map +1 -0
- package/lib/features/tools/marquee-selection/marquee-behavior.spec.d.ts +17 -0
- package/lib/features/tools/marquee-selection/marquee-behavior.spec.d.ts.map +1 -0
- package/lib/features/tools/marquee-selection/marquee-behavior.spec.js +165 -0
- package/lib/features/tools/marquee-selection/marquee-behavior.spec.js.map +1 -0
- package/lib/features/tools/marquee-selection/view.d.ts +17 -1
- package/lib/features/tools/marquee-selection/view.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/view.js +4 -5
- package/lib/features/tools/marquee-selection/view.js.map +1 -1
- package/lib/features/tools/node-creation/index.d.ts +18 -0
- package/lib/features/tools/node-creation/index.d.ts.map +1 -0
- package/lib/features/tools/node-creation/index.js +34 -0
- package/lib/features/tools/node-creation/index.js.map +1 -0
- package/lib/features/tools/node-creation/node-creation-views.d.ts +1 -0
- package/lib/features/tools/node-creation/node-creation-views.d.ts.map +1 -1
- package/lib/features/tools/node-creation/node-creation-views.js +15 -16
- package/lib/features/tools/node-creation/node-creation-views.js.map +1 -1
- package/lib/features/undo-redo/index.d.ts +18 -0
- package/lib/features/undo-redo/index.d.ts.map +1 -0
- package/lib/features/undo-redo/index.js +34 -0
- package/lib/features/undo-redo/index.js.map +1 -0
- package/lib/features/validation/index.d.ts +20 -0
- package/lib/features/validation/index.d.ts.map +1 -0
- package/lib/features/validation/index.js +36 -0
- package/lib/features/validation/index.js.map +1 -0
- package/lib/features/validation/marker-navigator.spec.d.ts +3 -0
- package/lib/features/validation/marker-navigator.spec.d.ts.map +1 -0
- package/lib/features/validation/marker-navigator.spec.js +166 -0
- package/lib/features/validation/marker-navigator.spec.js.map +1 -0
- package/lib/features/viewport/index.d.ts +20 -0
- package/lib/features/viewport/index.d.ts.map +1 -0
- package/lib/features/viewport/index.js +36 -0
- package/lib/features/viewport/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/utils/gmodel-util.spec.d.ts +2 -0
- package/lib/utils/gmodel-util.spec.d.ts.map +1 -0
- package/lib/utils/gmodel-util.spec.js +186 -0
- package/lib/utils/gmodel-util.spec.js.map +1 -0
- package/lib/utils/index.d.ts +23 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +39 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/views/compartments.d.ts +17 -1
- package/lib/views/compartments.d.ts.map +1 -1
- package/lib/views/compartments.js +4 -5
- package/lib/views/compartments.js.map +1 -1
- package/lib/views/gedge-view.d.ts +1 -0
- package/lib/views/gedge-view.d.ts.map +1 -1
- package/lib/views/gedge-view.js +4 -5
- package/lib/views/gedge-view.js.map +1 -1
- package/lib/views/ggraph-view.d.ts +0 -1
- package/lib/views/ggraph-view.d.ts.map +1 -1
- package/lib/views/ggraph-view.js +2 -12
- package/lib/views/ggraph-view.js.map +1 -1
- package/lib/views/glsp-projection-view.d.ts +1 -1
- package/lib/views/glsp-projection-view.d.ts.map +1 -1
- package/lib/views/glsp-projection-view.js +26 -73
- package/lib/views/glsp-projection-view.js.map +1 -1
- package/lib/views/index.d.ts +23 -0
- package/lib/views/index.d.ts.map +1 -0
- package/lib/views/index.js +39 -0
- package/lib/views/index.js.map +1 -0
- package/lib/views/issue-marker-view.d.ts +1 -0
- package/lib/views/issue-marker-view.d.ts.map +1 -1
- package/lib/views/issue-marker-view.js +6 -7
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-view.d.ts +17 -1
- package/lib/views/rounded-corner-view.d.ts.map +1 -1
- package/lib/views/rounded-corner-view.js +7 -8
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/package.json +3 -3
- package/src/default-modules.spec.ts +56 -0
- package/src/features/debug/debug-bounds-decorator.tsx +1 -4
- package/src/features/helper-lines/view.tsx +1 -3
- package/src/features/tools/change-bounds/view.tsx +1 -3
- package/src/features/tools/edge-creation/view.tsx +2 -4
- package/src/features/tools/marquee-selection/view.tsx +2 -4
- package/src/features/tools/node-creation/node-creation-views.tsx +1 -4
- package/src/views/compartments.tsx +2 -4
- package/src/views/gedge-view.tsx +2 -4
- package/src/views/ggraph-view.tsx +2 -12
- package/src/views/glsp-projection-view.tsx +13 -76
- package/src/views/issue-marker-view.tsx +1 -3
- package/src/views/rounded-corner-view.tsx +2 -4
|
@@ -0,0 +1,23 @@
|
|
|
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 './argument-utils';
|
|
17
|
+
export * from './geometry-util';
|
|
18
|
+
export * from './gmodel-util';
|
|
19
|
+
export * from './html-utils';
|
|
20
|
+
export * from './layout-utils';
|
|
21
|
+
export * from './marker';
|
|
22
|
+
export * from './viewpoint-util';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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("./argument-utils"), exports);
|
|
33
|
+
__exportStar(require("./geometry-util"), exports);
|
|
34
|
+
__exportStar(require("./gmodel-util"), exports);
|
|
35
|
+
__exportStar(require("./html-utils"), exports);
|
|
36
|
+
__exportStar(require("./layout-utils"), exports);
|
|
37
|
+
__exportStar(require("./marker"), exports);
|
|
38
|
+
__exportStar(require("./viewpoint-util"), exports);
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAiC;AACjC,kDAAgC;AAChC,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
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 { GCompartment, RenderingContext, ShapeView } from '@eclipse-glsp/sprotty';
|
|
18
|
+
import { VNode } from 'snabbdom';
|
|
3
19
|
export declare class StructureCompartmentView extends ShapeView {
|
|
4
20
|
render(model: Readonly<GCompartment>, context: RenderingContext): VNode | undefined;
|
|
5
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compartments.d.ts","sourceRoot":"","sources":["../../src/views/compartments.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compartments.d.ts","sourceRoot":"","sources":["../../src/views/compartments.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,eAAe;AACf,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAO,MAAM,uBAAuB,CAAC;AAEvF,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,qBACa,wBAAyB,SAAQ,SAAS;IACnD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK,GAAG,SAAS;CAYtF"}
|
|
@@ -22,17 +22,16 @@ exports.StructureCompartmentView = void 0;
|
|
|
22
22
|
*
|
|
23
23
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
24
|
********************************************************************************/
|
|
25
|
-
|
|
25
|
+
/** @jsx svg */
|
|
26
26
|
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
27
|
-
|
|
28
|
-
const JSX = { createElement: sprotty_1.svg };
|
|
27
|
+
const inversify_1 = require("inversify");
|
|
29
28
|
let StructureCompartmentView = class StructureCompartmentView extends sprotty_1.ShapeView {
|
|
30
29
|
render(model, context) {
|
|
31
30
|
if (!this.isVisible(model, context)) {
|
|
32
31
|
return undefined;
|
|
33
32
|
}
|
|
34
|
-
return (
|
|
35
|
-
|
|
33
|
+
return ((0, sprotty_1.svg)("g", null,
|
|
34
|
+
(0, sprotty_1.svg)("rect", { "class-sprotty-comp": true, x: '0', y: '0', width: model.size.width, height: model.size.height }),
|
|
36
35
|
context.renderChildren(model)));
|
|
37
36
|
}
|
|
38
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compartments.js","sourceRoot":"","sources":["../../src/views/compartments.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"compartments.js","sourceRoot":"","sources":["../../src/views/compartments.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,eAAe;AACf,mDAAuF;AACvF,yCAAuC;AAIhC,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,mBAAS;IACnD,MAAM,CAAC,KAA6B,EAAE,OAAyB;QAC3D,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC;YAClC,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,OAAO,CACH;YACI,mDAA0B,IAAI,EAAE,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAS;YACtG,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAC9B,CACP,CAAC;IACN,CAAC;CACJ,CAAA;AAbY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,sBAAU,GAAE;GACA,wBAAwB,CAapC"}
|
|
@@ -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 { Point, PolylineEdgeView, RenderingContext } from '@eclipse-glsp/sprotty';
|
|
17
18
|
import { Classes, VNode } from 'snabbdom';
|
|
18
19
|
import { GEdge } from '../model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gedge-view.d.ts","sourceRoot":"","sources":["../../src/views/gedge-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAO,MAAM,uBAAuB,CAAC;AAEvF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"gedge-view.d.ts","sourceRoot":"","sources":["../../src/views/gedge-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,eAAe;AACf,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAO,MAAM,uBAAuB,CAAC;AAEvF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,qBACa,SAAU,SAAQ,gBAAgB;IAClC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK;IAgBxE,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,gBAAgB,GAAG,OAAO;cAIrE,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,gBAAgB,GAAG,KAAK;cAI9E,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,gBAAgB,GAAG,KAAK,EAAE;IAMzG,SAAS,CAAC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK;IAatE,SAAS,CAAC,qBAAqB,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,MAAM;CAS7D"}
|
package/lib/views/gedge-view.js
CHANGED
|
@@ -22,11 +22,10 @@ exports.GEdgeView = void 0;
|
|
|
22
22
|
*
|
|
23
23
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
24
|
********************************************************************************/
|
|
25
|
+
/** @jsx svg */
|
|
25
26
|
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
26
27
|
const inversify_1 = require("inversify");
|
|
27
28
|
const argument_utils_1 = require("../utils/argument-utils");
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
|
-
const JSX = { createElement: sprotty_1.svg };
|
|
30
29
|
let GEdgeView = class GEdgeView extends sprotty_1.PolylineEdgeView {
|
|
31
30
|
render(edge, context) {
|
|
32
31
|
const router = this.edgeRouterRegistry.get(edge.routerKind);
|
|
@@ -34,7 +33,7 @@ let GEdgeView = class GEdgeView extends sprotty_1.PolylineEdgeView {
|
|
|
34
33
|
if (route.length === 0) {
|
|
35
34
|
return this.renderDanglingEdge('Cannot compute route', edge, context);
|
|
36
35
|
}
|
|
37
|
-
return (
|
|
36
|
+
return ((0, sprotty_1.svg)("g", Object.assign({ "class-sprotty-edge": true, "class-mouseover": edge.hoverFeedback }, this.additionalClasses(edge, context)),
|
|
38
37
|
this.renderLine(edge, route, context),
|
|
39
38
|
this.renderAdditionals(edge, route, context),
|
|
40
39
|
context.renderChildren(edge, { route })));
|
|
@@ -43,7 +42,7 @@ let GEdgeView = class GEdgeView extends sprotty_1.PolylineEdgeView {
|
|
|
43
42
|
return {};
|
|
44
43
|
}
|
|
45
44
|
renderLine(_edge, segments, _context) {
|
|
46
|
-
return
|
|
45
|
+
return (0, sprotty_1.svg)("path", { d: this.createPathForSegments(segments) });
|
|
47
46
|
}
|
|
48
47
|
renderAdditionals(edge, segments, _context) {
|
|
49
48
|
// for additional padding we draw another transparent path with larger stroke width
|
|
@@ -51,7 +50,7 @@ let GEdgeView = class GEdgeView extends sprotty_1.PolylineEdgeView {
|
|
|
51
50
|
return edgePadding ? [this.renderMouseHandle(segments, edgePadding)] : [];
|
|
52
51
|
}
|
|
53
52
|
renderMouseHandle(segments, padding) {
|
|
54
|
-
return (
|
|
53
|
+
return ((0, sprotty_1.svg)("path", { "class-mouse-handle": true, d: this.createPathForSegments(segments), "style-stroke-width": padding * 2, "style-stroke": 'transparent', "style-stroke-dasharray": 'none', "style-stroke-dashoffset": '0' }));
|
|
55
54
|
}
|
|
56
55
|
createPathForSegments(segments) {
|
|
57
56
|
const firstPoint = segments[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gedge-view.js","sourceRoot":"","sources":["../../src/views/gedge-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAuF;AACvF,yCAAuC;
|
|
1
|
+
{"version":3,"file":"gedge-view.js","sourceRoot":"","sources":["../../src/views/gedge-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,eAAe;AACf,mDAAuF;AACvF,yCAAuC;AAGvC,4DAAsD;AAG/C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,0BAAgB;IAClC,MAAM,CAAC,IAAqB,EAAE,OAAyB;QAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5D,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC1E,CAAC;QAED,OAAO,CACH,8DAAuB,IAAI,qBAAmB,IAAI,CAAC,aAAa,IAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC;YACtG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;YACrC,IAAI,CAAC,iBAAiB,CAAC,IAAI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,EAAE,CAAC;QAC/B,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAA;AArDY,8BAAS;oBAAT,SAAS;IADrB,IAAA,sBAAU,GAAE;GACA,SAAS,CAqDrB"}
|
|
@@ -21,6 +21,5 @@ export declare class GGraphView extends SGraphView {
|
|
|
21
21
|
render(model: Readonly<SGraphImpl>, context: RenderingContext): VNode;
|
|
22
22
|
protected getGridStyle(viewport: Readonly<SGraphImpl>, context: RenderingContext): GridStyle;
|
|
23
23
|
protected getBackgroundBounds(viewport: Readonly<SGraphImpl>, context: RenderingContext, gridManager: GridManager): Writable<Bounds>;
|
|
24
|
-
protected getBackgroundImage(viewport: Readonly<SGraphImpl>, context: RenderingContext, gridManager: GridManager): string;
|
|
25
24
|
}
|
|
26
25
|
//# sourceMappingURL=ggraph-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ggraph-view.d.ts","sourceRoot":"","sources":["../../src/views/ggraph-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAoB,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAErH,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAGvE,qBACa,UAAW,SAAQ,UAAU;IACL,SAAS,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IAE5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK;IAQ9E,SAAS,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"ggraph-view.d.ts","sourceRoot":"","sources":["../../src/views/ggraph-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAoB,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAErH,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAGvE,qBACa,UAAW,SAAQ,UAAU;IACL,SAAS,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IAE5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK;IAQ9E,SAAS,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,SAAS;IAc5F,SAAS,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC;CAKvI"}
|
package/lib/views/ggraph-view.js
CHANGED
|
@@ -38,8 +38,7 @@ let GGraphView = class GGraphView extends sprotty_1.SGraphView {
|
|
|
38
38
|
return graph;
|
|
39
39
|
}
|
|
40
40
|
getGridStyle(viewport, context) {
|
|
41
|
-
|
|
42
|
-
if (context.targetKind === 'hidden' || !((_a = this.gridManager) === null || _a === void 0 ? void 0 : _a.isGridVisible)) {
|
|
41
|
+
if (context.targetKind === 'hidden' || !this.gridManager) {
|
|
43
42
|
return {};
|
|
44
43
|
}
|
|
45
44
|
const bounds = this.getBackgroundBounds(viewport, context, this.gridManager);
|
|
@@ -48,11 +47,7 @@ let GGraphView = class GGraphView extends sprotty_1.SGraphView {
|
|
|
48
47
|
[grid_style_1.GridProperty.GRID_BACKGROUND_Y]: bounds.y + 'px',
|
|
49
48
|
[grid_style_1.GridProperty.GRID_BACKGROUND_WIDTH]: bounds.width + 'px',
|
|
50
49
|
[grid_style_1.GridProperty.GRID_BACKGROUND_HEIGHT]: bounds.height + 'px',
|
|
51
|
-
[grid_style_1.GridProperty.GRID_BACKGROUND_ZOOM]: viewport.zoom + ''
|
|
52
|
-
[grid_style_1.GridProperty.GRID_BACKGROUND_IMAGE]: this.getBackgroundImage(viewport, context, this.gridManager),
|
|
53
|
-
backgroundPosition: `${bounds.x}px ${bounds.y}px`,
|
|
54
|
-
backgroundSize: `${bounds.width}px ${bounds.height}px`
|
|
55
|
-
// we do not set the background-image directly in the style object, because we want to toggle it on and off via CSS
|
|
50
|
+
[grid_style_1.GridProperty.GRID_BACKGROUND_ZOOM]: viewport.zoom + ''
|
|
56
51
|
};
|
|
57
52
|
}
|
|
58
53
|
getBackgroundBounds(viewport, context, gridManager) {
|
|
@@ -60,11 +55,6 @@ let GGraphView = class GGraphView extends sprotty_1.SGraphView {
|
|
|
60
55
|
const size = sprotty_1.Dimension.fromPoint(sprotty_1.Point.multiplyScalar(gridManager.grid, viewport.zoom));
|
|
61
56
|
return Object.assign(Object.assign({}, position), size);
|
|
62
57
|
}
|
|
63
|
-
getBackgroundImage(viewport, context, gridManager) {
|
|
64
|
-
const color = getComputedStyle(document.documentElement).getPropertyValue(grid_style_1.GridProperty.GRID_COLOR).trim().replace(/#/g, '%23');
|
|
65
|
-
// eslint-disable-next-line max-len
|
|
66
|
-
return `url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${gridManager.grid.x} ${gridManager.grid.y}"><rect width="${gridManager.grid.x}" height="${gridManager.grid.y}" x="0" y="0" fill="none" stroke="${color}" stroke-width="1" /></svg>')`;
|
|
67
|
-
}
|
|
68
58
|
};
|
|
69
59
|
exports.GGraphView = GGraphView;
|
|
70
60
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ggraph-view.js","sourceRoot":"","sources":["../../src/views/ggraph-view.tsx"],"names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Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
+
/** @jsx html */
|
|
16
17
|
import { Bounds, EdgeRouterRegistry, GViewportRootElement, IViewArgs, ProjectedViewportView, ProjectionParams, RenderingContext, SGraphImpl, ViewProjection, Writable } from '@eclipse-glsp/sprotty';
|
|
17
18
|
import { VNode } from 'snabbdom';
|
|
18
19
|
import { GridManager, GridStyle } from '../features/grid/grid-manager';
|
|
@@ -26,7 +27,6 @@ export declare class GLSPProjectionView extends ProjectedViewportView {
|
|
|
26
27
|
protected renderSvg(model: Readonly<GViewportRootElement>, context: RenderingContext, args?: IViewArgs): VNode;
|
|
27
28
|
protected getGridStyle(viewport: Readonly<SGraphImpl>, context: RenderingContext): GridStyle;
|
|
28
29
|
protected getBackgroundBounds(viewport: Readonly<SGraphImpl>, context: RenderingContext, gridManager: GridManager): Writable<Bounds>;
|
|
29
|
-
protected getBackgroundImage(viewport: Readonly<SGraphImpl>, context: RenderingContext, gridManager: GridManager): string;
|
|
30
30
|
protected renderProjectionBar(projections: ViewProjection[], model: Readonly<GViewportRootElement>, modelBounds: Bounds, orientation: 'horizontal' | 'vertical'): VNode;
|
|
31
31
|
protected renderViewport(model: Readonly<GViewportRootElement>, params: ProjectionParams): VNode;
|
|
32
32
|
protected renderProjection(projection: ViewProjection, model: Readonly<GViewportRootElement>, params: ProjectionParams): VNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-projection-view.d.ts","sourceRoot":"","sources":["../../src/views/glsp-projection-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;
|
|
1
|
+
{"version":3,"file":"glsp-projection-view.d.ts","sourceRoot":"","sources":["../../src/views/glsp-projection-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gBAAgB;AAChB,OAAO,EACH,MAAM,EAEN,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EAET,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AAgB,GACzB,KAAK;CAWX"}
|
|
@@ -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.GLSPProjectionView = void 0;
|
|
2
13
|
/********************************************************************************
|
|
3
14
|
* Copyright (c) 2017-2024 TypeFox and others.
|
|
4
15
|
*
|
|
@@ -14,30 +25,18 @@
|
|
|
14
25
|
*
|
|
15
26
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
27
|
********************************************************************************/
|
|
17
|
-
|
|
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.GLSPProjectionView = void 0;
|
|
28
|
+
/** @jsx html */
|
|
28
29
|
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
29
30
|
const inversify_1 = require("inversify");
|
|
30
31
|
const snabbdom_1 = require("snabbdom");
|
|
31
32
|
const grid_manager_1 = require("../features/grid/grid-manager");
|
|
32
33
|
const grid_style_1 = require("../features/grid/grid-style");
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
|
-
const JSX = { createElement: sprotty_1.html };
|
|
35
34
|
/**
|
|
36
35
|
* Special viewport root view that renders horizontal and vertical projection bars for quick navigation.
|
|
37
36
|
*/
|
|
38
37
|
let GLSPProjectionView = class GLSPProjectionView extends sprotty_1.ProjectedViewportView {
|
|
39
38
|
render(model, context, args) {
|
|
40
|
-
const rootNode = (
|
|
39
|
+
const rootNode = ((0, sprotty_1.html)("div", { "class-sprotty-graph": false, style: { width: '100%', height: '100%' } },
|
|
41
40
|
this.renderSvg(model, context, args),
|
|
42
41
|
this.renderProjections(model, context, args)));
|
|
43
42
|
(0, sprotty_1.setAttr)(rootNode, 'tabindex', 1);
|
|
@@ -52,8 +51,7 @@ let GLSPProjectionView = class GLSPProjectionView extends sprotty_1.ProjectedVie
|
|
|
52
51
|
return svg;
|
|
53
52
|
}
|
|
54
53
|
getGridStyle(viewport, context) {
|
|
55
|
-
|
|
56
|
-
if (context.targetKind === 'hidden' || !((_a = this.gridManager) === null || _a === void 0 ? void 0 : _a.isGridVisible)) {
|
|
54
|
+
if (context.targetKind === 'hidden' || !this.gridManager) {
|
|
57
55
|
return {};
|
|
58
56
|
}
|
|
59
57
|
const bounds = this.getBackgroundBounds(viewport, context, this.gridManager);
|
|
@@ -62,11 +60,7 @@ let GLSPProjectionView = class GLSPProjectionView extends sprotty_1.ProjectedVie
|
|
|
62
60
|
[grid_style_1.GridProperty.GRID_BACKGROUND_Y]: bounds.y + 'px',
|
|
63
61
|
[grid_style_1.GridProperty.GRID_BACKGROUND_WIDTH]: bounds.width + 'px',
|
|
64
62
|
[grid_style_1.GridProperty.GRID_BACKGROUND_HEIGHT]: bounds.height + 'px',
|
|
65
|
-
[grid_style_1.GridProperty.GRID_BACKGROUND_ZOOM]: viewport.zoom + ''
|
|
66
|
-
[grid_style_1.GridProperty.GRID_BACKGROUND_IMAGE]: this.getBackgroundImage(viewport, context, this.gridManager),
|
|
67
|
-
backgroundPosition: `${bounds.x}px ${bounds.y}px`,
|
|
68
|
-
backgroundSize: `${bounds.width}px ${bounds.height}px`
|
|
69
|
-
// we do not set the background-image directly in the style object, because we want to toggle it on and off via CSS
|
|
63
|
+
[grid_style_1.GridProperty.GRID_BACKGROUND_ZOOM]: viewport.zoom + ''
|
|
70
64
|
};
|
|
71
65
|
}
|
|
72
66
|
getBackgroundBounds(viewport, context, gridManager) {
|
|
@@ -74,21 +68,10 @@ let GLSPProjectionView = class GLSPProjectionView extends sprotty_1.ProjectedVie
|
|
|
74
68
|
const size = sprotty_1.Dimension.fromPoint(sprotty_1.Point.multiplyScalar(gridManager.grid, viewport.zoom));
|
|
75
69
|
return Object.assign(Object.assign({}, position), size);
|
|
76
70
|
}
|
|
77
|
-
getBackgroundImage(viewport, context, gridManager) {
|
|
78
|
-
const color = getComputedStyle(document.documentElement).getPropertyValue(grid_style_1.GridProperty.GRID_COLOR).trim().replace(/#/g, '%23');
|
|
79
|
-
// eslint-disable-next-line max-len
|
|
80
|
-
return `url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${gridManager.grid.x} ${gridManager.grid.y}"><rect width="${gridManager.grid.x}" height="${gridManager.grid.y}" x="0" y="0" fill="none" stroke="${color}" stroke-width="1" /></svg>')`;
|
|
81
|
-
}
|
|
82
71
|
renderProjectionBar(projections, model, modelBounds, orientation) {
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
params.factor =
|
|
87
|
-
orientation === 'horizontal' ? model.canvasBounds.width / modelBounds.width : model.canvasBounds.height / modelBounds.height;
|
|
88
|
-
params.zoomedFactor = params.factor / model.zoom;
|
|
89
|
-
return (JSX.createElement("div", { "class-sprotty-projection-bar": true, "class-horizontal": orientation === 'horizontal', "class-vertical": orientation === 'vertical', "class-bordered-projection-bar": true },
|
|
90
|
-
this.renderViewport(model, params),
|
|
91
|
-
projections.map(p => this.renderProjection(p, model, params))));
|
|
72
|
+
const vnode = super.renderProjectionBar(projections, model, modelBounds, orientation);
|
|
73
|
+
(0, sprotty_1.setClass)(vnode, 'bordered-projection-bar', true);
|
|
74
|
+
return vnode;
|
|
92
75
|
}
|
|
93
76
|
renderViewport(model, params) {
|
|
94
77
|
let canvasSize;
|
|
@@ -127,49 +110,19 @@ let GLSPProjectionView = class GLSPProjectionView extends sprotty_1.ProjectedVie
|
|
|
127
110
|
top: `${viewportPos}px`,
|
|
128
111
|
height: `${viewportSize}px`
|
|
129
112
|
};
|
|
130
|
-
return
|
|
113
|
+
return (0, sprotty_1.html)("div", { "class-sprotty-viewport": viewportSize !== 0, "class-projection-scroll-bar": true, style: style });
|
|
131
114
|
}
|
|
132
115
|
renderProjection(projection, model, params) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (
|
|
137
|
-
|
|
138
|
-
projPos = (projection.projectedBounds.x - params.modelBounds.x) * params.factor;
|
|
139
|
-
projSize = projection.projectedBounds.width * params.factor;
|
|
116
|
+
const vnode = super.renderProjection(projection, model, params);
|
|
117
|
+
(0, sprotty_1.setClass)(vnode, 'glsp-projection', true);
|
|
118
|
+
const style = vnode.data.style;
|
|
119
|
+
if (style.left) {
|
|
120
|
+
style.height = '60%';
|
|
140
121
|
}
|
|
141
122
|
else {
|
|
142
|
-
|
|
143
|
-
projPos = (projection.projectedBounds.y - params.modelBounds.y) * params.factor;
|
|
144
|
-
projSize = projection.projectedBounds.height * params.factor;
|
|
123
|
+
style.width = '60%';
|
|
145
124
|
}
|
|
146
|
-
|
|
147
|
-
projSize += projPos;
|
|
148
|
-
projPos = 0;
|
|
149
|
-
}
|
|
150
|
-
else if (projPos > canvasSize) {
|
|
151
|
-
projPos = canvasSize;
|
|
152
|
-
}
|
|
153
|
-
if (projSize < 0) {
|
|
154
|
-
projSize = 0;
|
|
155
|
-
}
|
|
156
|
-
else if (projPos + projSize > canvasSize) {
|
|
157
|
-
projSize = canvasSize - projPos;
|
|
158
|
-
}
|
|
159
|
-
const style = params.orientation === 'horizontal'
|
|
160
|
-
? {
|
|
161
|
-
left: `${projPos}px`,
|
|
162
|
-
width: `${projSize}px`,
|
|
163
|
-
height: '60%'
|
|
164
|
-
}
|
|
165
|
-
: {
|
|
166
|
-
top: `${projPos}px`,
|
|
167
|
-
height: `${projSize}px`,
|
|
168
|
-
width: '60%'
|
|
169
|
-
};
|
|
170
|
-
const result = (JSX.createElement("div", { id: `${params.orientation}-projection:${projection.elementId}`, "class-sprotty-projection": true, "class-glsp-projection": true, style: style }));
|
|
171
|
-
projection.cssClasses.forEach(cl => (0, sprotty_1.setClass)(result, cl, true));
|
|
172
|
-
return result;
|
|
125
|
+
return vnode;
|
|
173
126
|
}
|
|
174
127
|
};
|
|
175
128
|
exports.GLSPProjectionView = GLSPProjectionView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-projection-view.js","sourceRoot":"","sources":["../../src/views/glsp-projection-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"glsp-projection-view.js","sourceRoot":"","sources":["../../src/views/glsp-projection-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gBAAgB;AAChB,mDAgB+B;AAC/B,yCAAyD;AACzD,uCAAgD;AAChD,gEAAuE;AACvE,4DAA2D;AAE3D;;GAEG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAA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AE,CAAC;YAC1C,YAAY,GAAG,CAAC,CAAC;QACrB,CAAC;QACD,MAAM,KAAK,GACP,MAAM,CAAC,WAAW,KAAK,YAAY;YAC/B,CAAC,CAAC;gBACI,IAAI,EAAE,GAAG,WAAW,IAAI;gBACxB,KAAK,EAAE,GAAG,YAAY,IAAI;aAC7B;YACH,CAAC,CAAC;gBACI,GAAG,EAAE,GAAG,WAAW,IAAI;gBACvB,MAAM,EAAE,GAAG,YAAY,IAAI;aAC9B,CAAC;QACZ,OAAO,uDAA6B,YAAY,KAAK,CAAC,iCAA+B,IAAI,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC;IAChH,CAAC;IAEkB,gBAAgB,CAC/B,UAA0B,EAC1B,KAAqC,EACrC,MAAwB;QAExB,MAAM,KAAK,GAAG,KAAK,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QAChE,IAAA,kBAAQ,EAAC,KAAK,EAAE,iBAAiB,EAAE,IAAI,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAK,CAAC,KAAM,CAAC;QACjC,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACb,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;QACzB,CAAC;aAAM,CAAC;YACJ,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AAjHY,gDAAkB;AACC;IAA3B,IAAA,kBAAM,EAAC,4BAAkB,CAAC;8BAAqB,4BAAkB;8DAAC;AACxB;IAA1C,IAAA,kBAAM,EAAC,0BAAW,CAAC;IAAE,IAAA,oBAAQ,GAAE;8BAAyB,0BAAW;uDAAC;6BAF5D,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAiH9B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 './base-view-module';
|
|
17
|
+
export * from './compartments';
|
|
18
|
+
export * from './gedge-view';
|
|
19
|
+
export * from './glsp-projection-view';
|
|
20
|
+
export * from './issue-marker-view';
|
|
21
|
+
export * from './rounded-corner-view';
|
|
22
|
+
export * from './rounded-corner';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/views/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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("./base-view-module"), exports);
|
|
33
|
+
__exportStar(require("./compartments"), exports);
|
|
34
|
+
__exportStar(require("./gedge-view"), exports);
|
|
35
|
+
__exportStar(require("./glsp-projection-view"), exports);
|
|
36
|
+
__exportStar(require("./issue-marker-view"), exports);
|
|
37
|
+
__exportStar(require("./rounded-corner-view"), exports);
|
|
38
|
+
__exportStar(require("./rounded-corner"), exports);
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/views/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAmC;AACnC,iDAA+B;AAC/B,+CAA6B;AAC7B,yDAAuC;AACvC,sDAAoC;AACpC,wDAAsC;AACtC,mDAAiC"}
|
|
@@ -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 { GIssueSeverity, IssueMarkerView, RenderingContext } from '@eclipse-glsp/sprotty';
|
|
17
18
|
import { VNode } from 'snabbdom';
|
|
18
19
|
import { GIssueMarker } from '../features/validation/issue-marker';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-marker-view.d.ts","sourceRoot":"","sources":["../../src/views/issue-marker-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAiB,MAAM,uBAAuB,CAAC;AAEzG,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"issue-marker-view.d.ts","sourceRoot":"","sources":["../../src/views/issue-marker-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,eAAe;AACf,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAiB,MAAM,uBAAuB,CAAC;AAEzG,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,qBACa,gBAAiB,SAAQ,eAAe;IACxC,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,GAAG,KAAK;IAcxE,SAAS,CAAC,4BAA4B,CAAC,QAAQ,EAAE,cAAc,GAAG,KAAK;IAUvE,SAAS,KAAK,MAAM,IAAI,MAAM,CAE7B;IAED,SAAS,CAAC,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;CAWrE"}
|
|
@@ -23,27 +23,26 @@ exports.GIssueMarkerView = void 0;
|
|
|
23
23
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
24
|
********************************************************************************/
|
|
25
25
|
/* eslint-disable max-len */
|
|
26
|
+
/** @jsx svg */
|
|
26
27
|
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
27
28
|
const inversify_1 = require("inversify");
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
|
-
const JSX = { createElement: sprotty_1.svg };
|
|
30
29
|
let GIssueMarkerView = class GIssueMarkerView extends sprotty_1.IssueMarkerView {
|
|
31
30
|
render(marker, _context) {
|
|
32
31
|
const maxSeverity = super.getMaxSeverity(marker);
|
|
33
|
-
const group = (
|
|
34
|
-
|
|
32
|
+
const group = ((0, sprotty_1.svg)("g", { "class-sprotty-issue": true },
|
|
33
|
+
(0, sprotty_1.svg)("g", null,
|
|
35
34
|
this.getGlspIssueMarkerBackground(maxSeverity),
|
|
36
|
-
|
|
35
|
+
(0, sprotty_1.svg)("path", { d: this.getGlspIssueMarkerPath(maxSeverity) }))));
|
|
37
36
|
(0, sprotty_1.setClass)(group, 'sprotty-' + maxSeverity, true);
|
|
38
37
|
return group;
|
|
39
38
|
}
|
|
40
39
|
getGlspIssueMarkerBackground(severity) {
|
|
41
40
|
switch (severity) {
|
|
42
41
|
case 'warning':
|
|
43
|
-
return
|
|
42
|
+
return (0, sprotty_1.svg)("polygon", { "class-sprotty-issue-background": true, points: '8 2, 15.9 14.9, 0.2 14.9' });
|
|
44
43
|
case 'error':
|
|
45
44
|
case 'info':
|
|
46
|
-
return
|
|
45
|
+
return (0, sprotty_1.svg)("circle", { "class-sprotty-issue-background": true, r: this.radius, cx: this.radius, cy: this.radius });
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
get radius() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-marker-view.js","sourceRoot":"","sources":["../../src/views/issue-marker-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4BAA4B;AAC5B,mDAAyG;AACzG,yCAAuC;
|
|
1
|
+
{"version":3,"file":"issue-marker-view.js","sourceRoot":"","sources":["../../src/views/issue-marker-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4BAA4B;AAC5B,eAAe;AACf,mDAAyG;AACzG,yCAAuC;AAKhC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,yBAAe;IACxC,MAAM,CAAC,MAAoB,EAAE,QAA0B;QAC5D,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACjD,MAAM,KAAK,GAAG,CACV,iDAAwB,IAAI;YACxB;gBACK,IAAI,CAAC,4BAA4B,CAAC,WAAW,CAAC;gBAC/C,6BAAM,CAAC,EAAE,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,GAAI,CACrD,CACJ,CACP,CAAC;QACF,IAAA,kBAAQ,EAAC,KAAK,EAAE,UAAU,GAAG,WAAW,EAAE,IAAI,CAAC,CAAC;QAChD,OAAO,KAAK,CAAC;IACjB,CAAC;IAES,4BAA4B,CAAC,QAAwB;QAC3D,QAAQ,QAAQ,EAAE,CAAC;YACf,KAAK,SAAS;gBACV,OAAO,kEAAyC,IAAI,EAAE,MAAM,EAAC,0BAA0B,GAAG,CAAC;YAC/F,KAAK,OAAO,CAAC;YACb,KAAK,MAAM;gBACP,OAAO,iEAAwC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,E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