@eclipse-glsp/client 2.7.0-next.9 → 2.7.0

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 (164) hide show
  1. package/lib/base/action-dispatcher.d.ts +2 -1
  2. package/lib/base/action-dispatcher.d.ts.map +1 -1
  3. package/lib/base/action-dispatcher.js +48 -24
  4. package/lib/base/action-dispatcher.js.map +1 -1
  5. package/lib/base/default.module.d.ts.map +1 -1
  6. package/lib/base/default.module.js +2 -0
  7. package/lib/base/default.module.js.map +1 -1
  8. package/lib/base/editor-context-service.d.ts +4 -3
  9. package/lib/base/editor-context-service.d.ts.map +1 -1
  10. package/lib/base/editor-context-service.js +11 -1
  11. package/lib/base/editor-context-service.js.map +1 -1
  12. package/lib/base/model/diagram-loader.d.ts +8 -6
  13. package/lib/base/model/diagram-loader.d.ts.map +1 -1
  14. package/lib/base/model/diagram-loader.js +1 -1
  15. package/lib/base/model/diagram-loader.js.map +1 -1
  16. package/lib/base/model/glsp-model-source.d.ts +5 -2
  17. package/lib/base/model/glsp-model-source.d.ts.map +1 -1
  18. package/lib/base/model/glsp-model-source.js +28 -1
  19. package/lib/base/model/glsp-model-source.js.map +1 -1
  20. package/lib/base/selection-service.d.ts +4 -3
  21. package/lib/base/selection-service.d.ts.map +1 -1
  22. package/lib/base/selection-service.js +6 -1
  23. package/lib/base/selection-service.js.map +1 -1
  24. package/lib/base/shortcuts/available-shortcuts-extension.d.ts +1 -1
  25. package/lib/base/shortcuts/available-shortcuts-extension.d.ts.map +1 -1
  26. package/lib/base/shortcuts/available-shortcuts-extension.js +3 -4
  27. package/lib/base/shortcuts/available-shortcuts-extension.js.map +1 -1
  28. package/lib/base/view/mouse-tool.d.ts +1 -1
  29. package/lib/base/view/mouse-tool.d.ts.map +1 -1
  30. package/lib/base/view/mouse-tool.js +3 -19
  31. package/lib/base/view/mouse-tool.js.map +1 -1
  32. package/lib/features/change-bounds/move-element-handler.d.ts +2 -3
  33. package/lib/features/change-bounds/move-element-handler.d.ts.map +1 -1
  34. package/lib/features/change-bounds/move-element-handler.js +2 -3
  35. package/lib/features/change-bounds/move-element-handler.js.map +1 -1
  36. package/lib/features/change-bounds/resize/resize-handler.d.ts +2 -3
  37. package/lib/features/change-bounds/resize/resize-handler.d.ts.map +1 -1
  38. package/lib/features/change-bounds/resize/resize-handler.js +2 -3
  39. package/lib/features/change-bounds/resize/resize-handler.js.map +1 -1
  40. package/lib/features/export/default-png-diagram-exporter.d.ts +52 -0
  41. package/lib/features/export/default-png-diagram-exporter.d.ts.map +1 -0
  42. package/lib/features/export/default-png-diagram-exporter.js +157 -0
  43. package/lib/features/export/default-png-diagram-exporter.js.map +1 -0
  44. package/lib/features/export/default-svg-diagram-exporter.d.ts +32 -0
  45. package/lib/features/export/default-svg-diagram-exporter.d.ts.map +1 -0
  46. package/lib/features/export/default-svg-diagram-exporter.js +54 -0
  47. package/lib/features/export/default-svg-diagram-exporter.js.map +1 -0
  48. package/lib/features/export/diagram-export-postprocessor.d.ts +33 -0
  49. package/lib/features/export/diagram-export-postprocessor.d.ts.map +1 -0
  50. package/lib/features/export/diagram-export-postprocessor.js +84 -0
  51. package/lib/features/export/diagram-export-postprocessor.js.map +1 -0
  52. package/lib/features/export/diagram-exporter.d.ts +44 -0
  53. package/lib/features/export/diagram-exporter.d.ts.map +1 -0
  54. package/lib/features/export/diagram-exporter.js +18 -0
  55. package/lib/features/export/diagram-exporter.js.map +1 -0
  56. package/lib/features/export/export-modules.d.ts +1 -1
  57. package/lib/features/export/export-modules.d.ts.map +1 -1
  58. package/lib/features/export/export-modules.js +20 -3
  59. package/lib/features/export/export-modules.js.map +1 -1
  60. package/lib/features/export/export-result-action-handler.d.ts +28 -0
  61. package/lib/features/export/export-result-action-handler.d.ts.map +1 -0
  62. package/lib/features/export/export-result-action-handler.js +72 -0
  63. package/lib/features/export/export-result-action-handler.js.map +1 -0
  64. package/lib/features/export/export-svg-action-handler.d.ts +19 -0
  65. package/lib/features/export/export-svg-action-handler.d.ts.map +1 -1
  66. package/lib/features/export/export-svg-action-handler.js +4 -15
  67. package/lib/features/export/export-svg-action-handler.js.map +1 -1
  68. package/lib/features/export/glsp-svg-exporter.d.ts +18 -1
  69. package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
  70. package/lib/features/export/glsp-svg-exporter.js +44 -11
  71. package/lib/features/export/glsp-svg-exporter.js.map +1 -1
  72. package/lib/features/export/request-export-command.d.ts +29 -0
  73. package/lib/features/export/request-export-command.d.ts.map +1 -0
  74. package/lib/features/export/request-export-command.js +73 -0
  75. package/lib/features/export/request-export-command.js.map +1 -0
  76. package/lib/features/export/request-export-key-listener.d.ts +21 -0
  77. package/lib/features/export/request-export-key-listener.d.ts.map +1 -0
  78. package/lib/features/export/request-export-key-listener.js +40 -0
  79. package/lib/features/export/request-export-key-listener.js.map +1 -0
  80. package/lib/features/helper-lines/helper-line-feedback.d.ts +1 -1
  81. package/lib/features/helper-lines/helper-line-feedback.d.ts.map +1 -1
  82. package/lib/features/helper-lines/helper-line-feedback.js +2 -3
  83. package/lib/features/helper-lines/helper-line-feedback.js.map +1 -1
  84. package/lib/features/routing/edge-router.d.ts +2 -1
  85. package/lib/features/routing/edge-router.d.ts.map +1 -1
  86. package/lib/features/routing/edge-router.js +2 -1
  87. package/lib/features/routing/edge-router.js.map +1 -1
  88. package/lib/features/routing/routing-module.d.ts +1 -1
  89. package/lib/features/routing/routing-module.d.ts.map +1 -1
  90. package/lib/features/routing/routing-module.js +7 -1
  91. package/lib/features/routing/routing-module.js.map +1 -1
  92. package/lib/features/routing/sticky-manhattan-anchors.d.ts +29 -0
  93. package/lib/features/routing/sticky-manhattan-anchors.d.ts.map +1 -0
  94. package/lib/features/routing/sticky-manhattan-anchors.js +62 -0
  95. package/lib/features/routing/sticky-manhattan-anchors.js.map +1 -0
  96. package/lib/features/routing/sticky-manhattan-edge-router.d.ts +107 -0
  97. package/lib/features/routing/sticky-manhattan-edge-router.d.ts.map +1 -0
  98. package/lib/features/routing/sticky-manhattan-edge-router.js +626 -0
  99. package/lib/features/routing/sticky-manhattan-edge-router.js.map +1 -0
  100. package/lib/features/search-palette/search-palette.d.ts +2 -2
  101. package/lib/features/search-palette/search-palette.d.ts.map +1 -1
  102. package/lib/features/search-palette/search-palette.js +3 -4
  103. package/lib/features/search-palette/search-palette.js.map +1 -1
  104. package/lib/features/select/select-module.d.ts +1 -1
  105. package/lib/features/select/select-module.js +1 -1
  106. package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
  107. package/lib/features/tool-palette/tool-palette.js +1 -2
  108. package/lib/features/tool-palette/tool-palette.js.map +1 -1
  109. package/lib/features/tools/change-bounds/change-bounds-tool-move-feedback.d.ts +2 -3
  110. package/lib/features/tools/change-bounds/change-bounds-tool-move-feedback.d.ts.map +1 -1
  111. package/lib/features/tools/change-bounds/change-bounds-tool-move-feedback.js +2 -3
  112. package/lib/features/tools/change-bounds/change-bounds-tool-move-feedback.js.map +1 -1
  113. package/lib/features/viewport/origin-viewport.d.ts +2 -13
  114. package/lib/features/viewport/origin-viewport.d.ts.map +1 -1
  115. package/lib/features/viewport/origin-viewport.js +3 -19
  116. package/lib/features/viewport/origin-viewport.js.map +1 -1
  117. package/lib/index.d.ts +11 -1
  118. package/lib/index.d.ts.map +1 -1
  119. package/lib/index.js +11 -1
  120. package/lib/index.js.map +1 -1
  121. package/lib/views/gedge-view-with-gaps-on-intersections.d.ts +39 -0
  122. package/lib/views/gedge-view-with-gaps-on-intersections.d.ts.map +1 -0
  123. package/lib/views/gedge-view-with-gaps-on-intersections.js +85 -0
  124. package/lib/views/gedge-view-with-gaps-on-intersections.js.map +1 -0
  125. package/lib/views/rounded-corner-manhattan-edge-view.d.ts +58 -0
  126. package/lib/views/rounded-corner-manhattan-edge-view.d.ts.map +1 -0
  127. package/lib/views/rounded-corner-manhattan-edge-view.js +170 -0
  128. package/lib/views/rounded-corner-manhattan-edge-view.js.map +1 -0
  129. package/package.json +4 -6
  130. package/src/base/action-dispatcher.spec.ts +103 -3
  131. package/src/base/action-dispatcher.ts +50 -25
  132. package/src/base/default.module.ts +4 -0
  133. package/src/base/editor-context-service.ts +17 -5
  134. package/src/base/model/diagram-loader.ts +8 -6
  135. package/src/base/model/glsp-model-source.ts +35 -1
  136. package/src/base/selection-service.ts +11 -2
  137. package/src/base/shortcuts/available-shortcuts-extension.ts +3 -4
  138. package/src/base/view/mouse-tool.ts +4 -19
  139. package/src/features/change-bounds/move-element-handler.ts +3 -2
  140. package/src/features/change-bounds/resize/resize-handler.ts +4 -3
  141. package/src/features/export/default-png-diagram-exporter.ts +145 -0
  142. package/src/features/export/default-svg-diagram-exporter.ts +39 -0
  143. package/src/features/export/diagram-export-postprocessor.ts +82 -0
  144. package/src/features/export/diagram-exporter.ts +45 -0
  145. package/src/features/export/export-modules.ts +24 -4
  146. package/src/features/export/export-result-action-handler.ts +66 -0
  147. package/src/features/export/export-svg-action-handler.ts +7 -2
  148. package/src/features/export/glsp-svg-exporter.ts +48 -12
  149. package/src/features/export/request-export-command.ts +65 -0
  150. package/src/features/export/request-export-key-listener.ts +29 -0
  151. package/src/features/helper-lines/helper-line-feedback.ts +6 -4
  152. package/src/features/routing/edge-router.ts +2 -2
  153. package/src/features/routing/routing-module.ts +8 -1
  154. package/src/features/routing/sticky-manhattan-anchors.ts +53 -0
  155. package/src/features/routing/sticky-manhattan-edge-router.spec.ts +212 -0
  156. package/src/features/routing/sticky-manhattan-edge-router.ts +713 -0
  157. package/src/features/search-palette/search-palette.ts +3 -4
  158. package/src/features/select/select-module.ts +1 -1
  159. package/src/features/tool-palette/tool-palette.ts +1 -1
  160. package/src/features/tools/change-bounds/change-bounds-tool-move-feedback.ts +13 -3
  161. package/src/features/viewport/origin-viewport.ts +10 -23
  162. package/src/index.ts +11 -1
  163. package/src/views/gedge-view-with-gaps-on-intersections.tsx +99 -0
  164. package/src/views/rounded-corner-manhattan-edge-view.ts +171 -0
@@ -0,0 +1,32 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2026 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ import { Action, ExportFormat, ExportMimeType, GModelRoot, SvgExportOptions } from '@eclipse-glsp/sprotty';
17
+ import { DiagramExporter } from './diagram-exporter';
18
+ import { GLSPSvgExporter } from './glsp-svg-exporter';
19
+ /**
20
+ * Default SVG strategy for the unified export registry. Wraps {@link GLSPSvgExporter} —
21
+ * the same exporter that powers the legacy `RequestExportSvgAction` path — so adopter
22
+ * overrides on the SVG renderer (extending {@link GLSPSvgExporter}) participate in unified
23
+ * exports for free.
24
+ */
25
+ export declare class DefaultSvgDiagramExporter implements DiagramExporter<SvgExportOptions> {
26
+ readonly format: ExportFormat;
27
+ readonly mimeType: ExportMimeType;
28
+ readonly encoding: "text";
29
+ protected svgExporter: GLSPSvgExporter;
30
+ export(root: GModelRoot, options?: SvgExportOptions, cause?: Action): Promise<string>;
31
+ }
32
+ //# sourceMappingURL=default-svg-diagram-exporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-svg-diagram-exporter.d.ts","sourceRoot":"","sources":["../../../src/features/export/default-svg-diagram-exporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE3G,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;GAKG;AACH,qBACa,yBAA0B,YAAW,eAAe,CAAC,gBAAgB,CAAC;IAC/E,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAS;IACtC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAmB;IACpD,QAAQ,CAAC,QAAQ,EAAG,MAAM,CAAU;IAEX,SAAS,CAAC,WAAW,EAAE,eAAe,CAAC;IAE1D,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,GAAE,gBAAqB,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGlG"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2026 EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ 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.DefaultSvgDiagramExporter = void 0;
28
+ const inversify_1 = require("inversify");
29
+ const glsp_svg_exporter_1 = require("./glsp-svg-exporter");
30
+ /**
31
+ * Default SVG strategy for the unified export registry. Wraps {@link GLSPSvgExporter} —
32
+ * the same exporter that powers the legacy `RequestExportSvgAction` path — so adopter
33
+ * overrides on the SVG renderer (extending {@link GLSPSvgExporter}) participate in unified
34
+ * exports for free.
35
+ */
36
+ let DefaultSvgDiagramExporter = class DefaultSvgDiagramExporter {
37
+ constructor() {
38
+ this.format = 'svg';
39
+ this.mimeType = 'image/svg+xml';
40
+ this.encoding = 'text';
41
+ }
42
+ async export(root, options = {}, cause) {
43
+ return this.svgExporter.exportToString(root, options, cause);
44
+ }
45
+ };
46
+ exports.DefaultSvgDiagramExporter = DefaultSvgDiagramExporter;
47
+ __decorate([
48
+ (0, inversify_1.inject)(glsp_svg_exporter_1.GLSPSvgExporter),
49
+ __metadata("design:type", glsp_svg_exporter_1.GLSPSvgExporter)
50
+ ], DefaultSvgDiagramExporter.prototype, "svgExporter", void 0);
51
+ exports.DefaultSvgDiagramExporter = DefaultSvgDiagramExporter = __decorate([
52
+ (0, inversify_1.injectable)()
53
+ ], DefaultSvgDiagramExporter);
54
+ //# sourceMappingURL=default-svg-diagram-exporter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-svg-diagram-exporter.js","sourceRoot":"","sources":["../../../src/features/export/default-svg-diagram-exporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAGlF,yCAA+C;AAE/C,2DAAsD;AAEtD;;;;;GAKG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QACM,WAAM,GAAiB,KAAK,CAAC;QAC7B,aAAQ,GAAmB,eAAe,CAAC;QAC3C,aAAQ,GAAG,MAAe,CAAC;IAOxC,CAAC;IAHG,KAAK,CAAC,MAAM,CAAC,IAAgB,EAAE,UAA4B,EAAE,EAAE,KAAc;QACzE,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACJ,CAAA;AAVY,8DAAyB;AAKC;IAAlC,IAAA,kBAAM,EAAC,mCAAe,CAAC;8BAAwB,mCAAe;8DAAC;oCALvD,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAUrC"}
@@ -0,0 +1,33 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2026 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ import { Action, GModelElement, GModelRoot, IActionDispatcher, IVNodePostprocessor, RequestExportAction } from '@eclipse-glsp/sprotty';
17
+ import { VNode } from 'snabbdom';
18
+ import { DiagramExporter } from './diagram-exporter';
19
+ /**
20
+ * Postprocessor for the unified {@link RequestExportAction} flow. Captures the rendered model
21
+ * root from the `decorate` pass, then on `postUpdate` looks up the matching
22
+ * {@link DiagramExporter} by `format` and dispatches an {@link ExportResultAction} with the
23
+ * produced bytes.
24
+ */
25
+ export declare class DiagramExportPostprocessor implements IVNodePostprocessor {
26
+ protected exporters: DiagramExporter[];
27
+ protected actionDispatcher: IActionDispatcher;
28
+ protected root: GModelRoot;
29
+ decorate(vnode: VNode, element: GModelElement): VNode;
30
+ postUpdate(cause?: Action): void;
31
+ protected runExport(request: RequestExportAction): Promise<void>;
32
+ }
33
+ //# sourceMappingURL=diagram-export-postprocessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagram-export-postprocessor.d.ts","sourceRoot":"","sources":["../../../src/features/export/diagram-export-postprocessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,MAAM,EAEN,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EAEnB,mBAAmB,EAEtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;GAKG;AACH,qBACa,0BAA2B,YAAW,mBAAmB;IAC7B,SAAS,CAAC,SAAS,EAAE,eAAe,EAAE,CAAC;IAC3C,SAAS,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IAE/E,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;IAE3B,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,GAAG,KAAK;IAOrD,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;cAWhB,SAAS,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;CAmBzE"}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2026 EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ 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.DiagramExportPostprocessor = void 0;
28
+ const sprotty_1 = require("@eclipse-glsp/sprotty");
29
+ const inversify_1 = require("inversify");
30
+ /**
31
+ * Postprocessor for the unified {@link RequestExportAction} flow. Captures the rendered model
32
+ * root from the `decorate` pass, then on `postUpdate` looks up the matching
33
+ * {@link DiagramExporter} by `format` and dispatches an {@link ExportResultAction} with the
34
+ * produced bytes.
35
+ */
36
+ let DiagramExportPostprocessor = class DiagramExportPostprocessor {
37
+ decorate(vnode, element) {
38
+ if (element instanceof sprotty_1.GModelRoot) {
39
+ this.root = element;
40
+ }
41
+ return vnode;
42
+ }
43
+ postUpdate(cause) {
44
+ if (!this.root || !sprotty_1.RequestExportAction.is(cause)) {
45
+ return;
46
+ }
47
+ const request = cause;
48
+ this.runExport(request).catch(err => {
49
+ const message = err instanceof Error ? err.message : String(err);
50
+ this.actionDispatcher.dispatch(sprotty_1.RejectAction.create(message, { responseId: request.requestId }));
51
+ });
52
+ }
53
+ async runExport(request) {
54
+ var _a;
55
+ // First-bound-wins on duplicate formats: an adopter who registers a custom
56
+ // PNG exporter without `unbind`-ing the default will pick up the default. To
57
+ // override, rebind via `binding.rebind(DefaultPngDiagramExporter, MyPngExporter)`
58
+ // in your `DiagramExportModule` extension.
59
+ const exporter = this.exporters.find(candidate => candidate.format === request.format);
60
+ if (!exporter) {
61
+ throw new Error(`No DiagramExporter registered for format '${request.format}'`);
62
+ }
63
+ const data = await exporter.export(this.root, (_a = request.formatOptions) !== null && _a !== void 0 ? _a : {}, request);
64
+ this.actionDispatcher.dispatch(sprotty_1.ExportResultAction.create(exporter.format, data, {
65
+ mimeType: exporter.mimeType,
66
+ encoding: exporter.encoding,
67
+ responseId: request.requestId,
68
+ formatOptions: request.formatOptions
69
+ }));
70
+ }
71
+ };
72
+ exports.DiagramExportPostprocessor = DiagramExportPostprocessor;
73
+ __decorate([
74
+ (0, inversify_1.multiInject)(sprotty_1.TYPES.IDiagramExporter),
75
+ __metadata("design:type", Array)
76
+ ], DiagramExportPostprocessor.prototype, "exporters", void 0);
77
+ __decorate([
78
+ (0, inversify_1.inject)(sprotty_1.TYPES.IActionDispatcher),
79
+ __metadata("design:type", Object)
80
+ ], DiagramExportPostprocessor.prototype, "actionDispatcher", void 0);
81
+ exports.DiagramExportPostprocessor = DiagramExportPostprocessor = __decorate([
82
+ (0, inversify_1.injectable)()
83
+ ], DiagramExportPostprocessor);
84
+ //# sourceMappingURL=diagram-export-postprocessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagram-export-postprocessor.js","sourceRoot":"","sources":["../../../src/features/export/diagram-export-postprocessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,mDAU+B;AAC/B,yCAA4D;AAI5D;;;;;GAKG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAMnC,QAAQ,CAAC,KAAY,EAAE,OAAsB;QACzC,IAAI,OAAO,YAAY,oBAAU,EAAE,CAAC;YAChC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;QACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,UAAU,CAAC,KAAc;QACrB,IAAI,C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U,EAAE,OAAO,CAAC,SAAS;YAC7B,aAAa,EAAE,OAAO,CAAC,aAAa;SACvC,CAAC,CACL,CAAC;IACN,CAAC;CACJ,CAAA;AA3CY,gEAA0B;AACY;IAA9C,IAAA,uBAAW,EAAC,eAAK,CAAC,gBAAgB,CAAC;;6DAAwC;AACjC;IAA1C,IAAA,kBAAM,EAAC,eAAK,CAAC,iBAAiB,CAAC;;oEAA+C;qCAFtE,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CA2CtC"}
@@ -0,0 +1,44 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2026 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ import { Action, ExportEncoding, ExportFormat, ExportMimeType, GModelRoot } from '@eclipse-glsp/sprotty';
17
+ /**
18
+ * A pluggable strategy that turns the rendered diagram into the bytes of a specific export
19
+ * format. GLSP ships strategies for `'svg'` and `'png'` (both rendered client-side via the
20
+ * existing SVG export pipeline + `OffscreenCanvas` for PNG). Adopters add formats — PPTX,
21
+ * PDF, server-rendered PNG, … — by registering additional contributions.
22
+ *
23
+ * Implementations choose how the bytes are produced (DOM serialisation, canvas
24
+ * rasterisation, delegation to a backend service via Theia/Electron RPC, …) — the registry
25
+ * is runtime-agnostic. The generic `O` is the strategy-specific options shape (e.g.
26
+ * `PngExportOptions`) carried inside `RequestExportAction.formatOptions`; the postprocessor
27
+ * forwards the bag to the strategy, so each implementation reads its typed options directly
28
+ * without an in-method cast.
29
+ */
30
+ export interface DiagramExporter<O = unknown> {
31
+ /** Format identifier matched against `RequestExportAction.format` (lower-case). */
32
+ readonly format: ExportFormat;
33
+ /** MIME type written into the resulting `ExportResultAction.mimeType`. */
34
+ readonly mimeType: ExportMimeType;
35
+ /** Encoding of the produced `data` field — `'text'` for SVG markup, `'base64'` for binary formats, or any adopter-defined tag. */
36
+ readonly encoding: ExportEncoding;
37
+ /**
38
+ * Produce the export payload. `formatOptions` is the strategy-typed slice of
39
+ * `RequestExportAction.formatOptions`; `cause` carries the originating action so
40
+ * adopters can inspect request metadata beyond the per-format options.
41
+ */
42
+ export(root: GModelRoot, formatOptions: O, cause?: Action): Promise<string>;
43
+ }
44
+ //# sourceMappingURL=diagram-exporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagram-exporter.d.ts","sourceRoot":"","sources":["../../../src/features/export/diagram-exporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEzG;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IACxC,mFAAmF;IACnF,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,0EAA0E;IAC1E,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,kIAAkI;IAClI,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC/E"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2026 EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=diagram-exporter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagram-exporter.js","sourceRoot":"","sources":["../../../src/features/export/diagram-exporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF"}
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2019-2024 EclipseSource and others.
2
+ * Copyright (c) 2019-2026 EclipseSource and others.
3
3
  *
4
4
  * This program and the accompanying materials are made available under the
5
5
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -1 +1 @@
1
- {"version":3,"file":"export-modules.d.ts","sourceRoot":"","sources":["../../../src/features/export/export-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAQH,aAAa,EAEhB,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,YAAY,eAQxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,eAQlC,CAAC"}
1
+ {"version":3,"file":"export-modules.d.ts","sourceRoot":"","sources":["../../../src/features/export/export-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAQH,aAAa,EAEhB,MAAM,uBAAuB,CAAC;AAU/B,eAAO,MAAM,YAAY,eAiBxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,eAYlC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.standaloneExportModule = exports.exportModule = void 0;
4
4
  /********************************************************************************
5
- * Copyright (c) 2019-2024 EclipseSource and others.
5
+ * Copyright (c) 2019-2026 EclipseSource and others.
6
6
  *
7
7
  * This program and the accompanying materials are made available under the
8
8
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -16,14 +16,28 @@ exports.standaloneExportModule = exports.exportModule = void 0;
16
16
  *
17
17
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
18
18
  ********************************************************************************/
19
+ /* eslint-disable @typescript-eslint/no-deprecated */
19
20
  const sprotty_1 = require("@eclipse-glsp/sprotty");
21
+ const default_png_diagram_exporter_1 = require("./default-png-diagram-exporter");
22
+ const default_svg_diagram_exporter_1 = require("./default-svg-diagram-exporter");
23
+ const diagram_export_postprocessor_1 = require("./diagram-export-postprocessor");
24
+ const export_result_action_handler_1 = require("./export-result-action-handler");
20
25
  const export_svg_action_handler_1 = require("./export-svg-action-handler");
21
26
  const glsp_svg_exporter_1 = require("./glsp-svg-exporter");
27
+ const request_export_command_1 = require("./request-export-command");
28
+ const request_export_key_listener_1 = require("./request-export-key-listener");
22
29
  exports.exportModule = new sprotty_1.FeatureModule((bind, _unbind, isBound) => {
23
30
  const context = { bind, isBound };
31
+ (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.SvgExporter, glsp_svg_exporter_1.GLSPSvgExporter);
32
+ // Unified export pipeline.
33
+ (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.HiddenVNodePostprocessor, diagram_export_postprocessor_1.DiagramExportPostprocessor);
34
+ (0, sprotty_1.configureCommand)(context, request_export_command_1.RequestExportCommand);
35
+ (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.IDiagramExporter, default_svg_diagram_exporter_1.DefaultSvgDiagramExporter);
36
+ (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.IDiagramExporter, default_png_diagram_exporter_1.DefaultPngDiagramExporter);
37
+ // Legacy SVG-only pipeline kept functional for adopters still dispatching the
38
+ // deprecated `RequestExportSvgAction` / `ExportSvgAction`.
24
39
  (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.HiddenVNodePostprocessor, sprotty_1.ExportSvgPostprocessor);
25
40
  (0, sprotty_1.configureCommand)(context, sprotty_1.ExportSvgCommand);
26
- bind(sprotty_1.TYPES.SvgExporter).to(glsp_svg_exporter_1.GLSPSvgExporter).inSingletonScope();
27
41
  }, { featureId: Symbol('export') });
28
42
  /**
29
43
  * Feature module that is intended for the standalone deployment of GLSP (i.e. plain webapp)
@@ -32,7 +46,10 @@ exports.exportModule = new sprotty_1.FeatureModule((bind, _unbind, isBound) => {
32
46
  */
33
47
  exports.standaloneExportModule = new sprotty_1.FeatureModule((bind, _unbind, isBound) => {
34
48
  const context = { bind, isBound };
35
- (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.KeyListener, sprotty_1.ExportSvgKeyListener);
49
+ (0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.KeyListener, request_export_key_listener_1.RequestExportKeyListener);
50
+ bind(export_result_action_handler_1.ExportResultActionHandler).toSelf().inSingletonScope();
51
+ (0, sprotty_1.configureActionHandler)(context, sprotty_1.ExportResultAction.KIND, export_result_action_handler_1.ExportResultActionHandler);
52
+ // Legacy download path: bound so adopters dispatching `ExportSvgAction` still get a download.
36
53
  bind(export_svg_action_handler_1.ExportSvgActionHandler).toSelf().inSingletonScope();
37
54
  (0, sprotty_1.configureActionHandler)(context, sprotty_1.ExportSvgAction.KIND, export_svg_action_handler_1.ExportSvgActionHandler);
38
55
  }, { featureId: Symbol('standaloneExport'), requires: exports.exportModule });
@@ -1 +1 @@
1
- {"version":3,"file":"export-modules.js","sourceRoot":"","sources":["../../../src/features/export/export-modules.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAU+B;AAC/B,2EAAqE;AACrE,2DAAsD;AAEzC,QAAA,YAAY,GAAG,IAA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8FAA8F;IAC9F,IAAI,CAAC,kDAAsB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzD,IAAA,gCAAsB,EAAC,OAAO,EAAE,yBAAe,CAAC,IAAI,EAAE,kDAAsB,CAAC,CAAC;AAClF,CAAC,EACD,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,oBAAY,EAAE,CACpE,CAAC"}
@@ -0,0 +1,28 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2026 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ import { ExportResultAction, IActionHandler } from '@eclipse-glsp/sprotty';
17
+ /**
18
+ * Default handler for the unified {@link ExportResultAction} — triggers a browser file
19
+ * download for UI-driven flows. Bound by `standaloneExportModule`; integrations that
20
+ * provide their own download UX omit it.
21
+ */
22
+ export declare class ExportResultActionHandler implements IActionHandler {
23
+ handle(action: ExportResultAction): void;
24
+ protected toBlob(action: ExportResultAction): Blob;
25
+ protected extensionFor(format: string): string;
26
+ protected decodeBase64(data: string): ArrayBuffer;
27
+ }
28
+ //# sourceMappingURL=export-result-action-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-result-action-handler.d.ts","sourceRoot":"","sources":["../../../src/features/export/export-result-action-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI3E;;;;GAIG;AACH,qBACa,yBAA0B,YAAW,cAAc;IAC5D,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAQxC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAiBlD,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI9C,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW;CASpD"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2026 EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.ExportResultActionHandler = void 0;
25
+ const sprotty_1 = require("@eclipse-glsp/sprotty");
26
+ const file_saver_1 = require("file-saver");
27
+ const inversify_1 = require("inversify");
28
+ /**
29
+ * Default handler for the unified {@link ExportResultAction} — triggers a browser file
30
+ * download for UI-driven flows. Bound by `standaloneExportModule`; integrations that
31
+ * provide their own download UX omit it.
32
+ */
33
+ let ExportResultActionHandler = class ExportResultActionHandler {
34
+ handle(action) {
35
+ if (!sprotty_1.ExportResultAction.is(action)) {
36
+ return;
37
+ }
38
+ const blob = this.toBlob(action);
39
+ (0, file_saver_1.saveAs)(blob, `diagram.${this.extensionFor(action.format)}`);
40
+ }
41
+ toBlob(action) {
42
+ // `encoding` is `ProposalString<'text' | 'base64'>` — an open union. Reject unknown
43
+ // tags explicitly: silently treating an arbitrary value as text would mojibake binary
44
+ // payloads, while treating it as base64 would corrupt text payloads.
45
+ switch (action.encoding) {
46
+ case 'text':
47
+ return new Blob([action.data], { type: `${action.mimeType};charset=utf-8` });
48
+ case 'base64':
49
+ return new Blob([this.decodeBase64(action.data)], { type: action.mimeType });
50
+ default:
51
+ throw new Error(`ExportResultActionHandler: unsupported encoding '${action.encoding}' for format '${action.format}'. ` +
52
+ 'Adopters that ship a custom encoding must also subclass this handler to decode it.');
53
+ }
54
+ }
55
+ extensionFor(format) {
56
+ return format.toLowerCase();
57
+ }
58
+ decodeBase64(data) {
59
+ const binary = atob(data);
60
+ const buffer = new ArrayBuffer(binary.length);
61
+ const view = new Uint8Array(buffer);
62
+ for (let i = 0; i < binary.length; ++i) {
63
+ view[i] = binary.charCodeAt(i);
64
+ }
65
+ return buffer;
66
+ }
67
+ };
68
+ exports.ExportResultActionHandler = ExportResultActionHandler;
69
+ exports.ExportResultActionHandler = ExportResultActionHandler = __decorate([
70
+ (0, inversify_1.injectable)()
71
+ ], ExportResultActionHandler);
72
+ //# sourceMappingURL=export-result-action-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-result-action-handler.js","sourceRoot":"","sources":["../../../src/features/export/export-result-action-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,mDAA2E;AAC3E,2CAAoC;AACpC,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CAAC,CAAC;QACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;YACrC,IAAI,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAA;AAvCY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAuCrC"}
@@ -1,9 +1,28 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2023-2026 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
+ ********************************************************************************/
1
16
  import { ExportSvgAction, IActionHandler } from '@eclipse-glsp/sprotty';
2
17
  /**
3
18
  * The default handler for {@link ExportSvgAction}s. This generic handler can be used in
4
19
  * any GLSP project independent of the target platform. However, platform integration modules typically
5
20
  * * this handler is rebound to an application specific handler in platform integration modules
6
21
  * (e.g. the Theia integration)
22
+ *
23
+ * @deprecated Use the unified export pipeline ({@link RequestExportAction} +
24
+ * {@link DiagramExporter}) and bind your own {@link IActionHandler} for
25
+ * {@link ExportResultAction} instead.
7
26
  */
8
27
  export declare class ExportSvgActionHandler implements IActionHandler {
9
28
  handle(action: ExportSvgAction): void;
@@ -1 +1 @@
1
- {"version":3,"file":"export-svg-action-handler.d.ts","sourceRoot":"","sources":["../../../src/features/export/export-svg-action-handler.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAExE;;;;;GAKG;AACH,qBACa,sBAAuB,YAAW,cAAc;IACzD,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;CAIxC"}
1
+ {"version":3,"file":"export-svg-action-handler.d.ts","sourceRoot":"","sources":["../../../src/features/export/export-svg-action-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIxE;;;;;;;;;GASG;AACH,qBACa,sBAAuB,YAAW,cAAc;IACzD,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;CAIxC"}
@@ -7,21 +7,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.ExportSvgActionHandler = void 0;
10
- /********************************************************************************
11
- * Copyright (c) 2023 EclipseSource and others.
12
- *
13
- * This program and the accompanying materials are made available under the
14
- * terms of the Eclipse Public License v. 2.0 which is available at
15
- * http://www.eclipse.org/legal/epl-2.0.
16
- *
17
- * This Source Code may also be made available under the following Secondary
18
- * Licenses when the conditions for such availability set forth in the Eclipse
19
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
20
- * with the GNU Classpath Exception which is available at
21
- * https://www.gnu.org/software/classpath/license.html.
22
- *
23
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
24
- ********************************************************************************/
25
10
  const file_saver_1 = require("file-saver");
26
11
  const inversify_1 = require("inversify");
27
12
  /**
@@ -29,6 +14,10 @@ const inversify_1 = require("inversify");
29
14
  * any GLSP project independent of the target platform. However, platform integration modules typically
30
15
  * * this handler is rebound to an application specific handler in platform integration modules
31
16
  * (e.g. the Theia integration)
17
+ *
18
+ * @deprecated Use the unified export pipeline ({@link RequestExportAction} +
19
+ * {@link DiagramExporter}) and bind your own {@link IActionHandler} for
20
+ * {@link ExportResultAction} instead.
32
21
  */
33
22
  let ExportSvgActionHandler = class ExportSvgActionHandler {
34
23
  handle(action) {
@@ -1 +1 @@
1
- {"version":3,"file":"export-svg-action-handler.js","sourceRoot":"","sources":["../../../src/features/export/export-svg-action-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2CAAoC;AACpC,yCAAuC;AAGvC;;;;;GAKG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,MAAM,CAAC,MAAuB;QAC1B,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC,CAAC;QAC1E,IAAA,mBAAM,EAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAChC,CAAC;CACJ,CAAA;AALY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAKlC"}
1
+ {"version":3,"file":"export-svg-action-handler.js","sourceRoot":"","sources":["../../../src/features/export/export-svg-action-handler.ts"],"names":[],"mappings":";;;;;;;;;AAiBA,2CAAoC;AACpC,yCAAuC;AAEvC;;;;;;;;;GASG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,MAAM,CAAC,MAAuB;QAC1B,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC,CAAC;QAC1E,IAAA,mBAAM,EAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAChC,CAAC;CACJ,CAAA;AALY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAKlC"}
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2024 EclipseSource and others.
2
+ * Copyright (c) 2022-2026 EclipseSource and others.
3
3
  *
4
4
  * This program and the accompanying materials are made available under the
5
5
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -15,7 +15,24 @@
15
15
  ********************************************************************************/
16
16
  import { Action, ExportSvgAction, ExportSvgOptions, GModelRoot, RequestAction, RequestExportSvgAction, SvgExporter } from '@eclipse-glsp/sprotty';
17
17
  export declare class GLSPSvgExporter extends SvgExporter {
18
+ /**
19
+ * Legacy entry point for the SVG-only export flow. New code should use the unified
20
+ * `RequestExportAction` flow (registered via the `DiagramExporter` registry);
21
+ * adopters that previously bound {@link RequestExportSvgAction} should migrate to
22
+ * `RequestExportAction` with `format: 'svg'`.
23
+ *
24
+ * @deprecated Use the unified export pipeline. Retained for backward compatibility
25
+ * with the legacy {@link RequestExportSvgAction} / {@link ExportSvgAction} flow.
26
+ */
18
27
  export(root: GModelRoot, request?: RequestExportSvgAction): void;
28
+ /**
29
+ * Produce the serialised SVG string without dispatching any action. Throws on
30
+ * failure (no document, no SVG element). Used by the legacy `export()` path and
31
+ * by unified-export strategies (`DefaultSvgDiagramExporter`, `DefaultPngDiagramExporter`)
32
+ * that need the SVG bytes without the action-dispatch side effect.
33
+ */
34
+ exportToString(root: GModelRoot, options?: ExportSvgOptions, cause?: Action): string;
35
+ protected dispatchRejectionIfRequested(request: RequestExportSvgAction | undefined, message: string): void;
19
36
  protected createSvg(svgElement: SVGSVGElement, root: GModelRoot, options?: ExportSvgOptions, cause?: Action): string;
20
37
  protected findSvgElement(): SVGSVGElement | null;
21
38
  protected prepareSvgElement(svgElement: SVGSVGElement, root: GModelRoot, request?: RequestAction<ExportSvgAction>): SVGSVGElement;
@@ -1 +1 @@
1
- {"version":3,"file":"glsp-svg-exporter.d.ts","sourceRoot":"","sources":["../../../src/features/export/glsp-svg-exporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,aAAa,EAC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