@eclipse-glsp/client 2.2.0-next.356 → 2.2.0-next.357

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.
@@ -21,10 +21,11 @@ export declare const DEFAULT_MODULES: readonly [FeatureModule, FeatureModule, Fe
21
21
  * Wraps the {@link configureDiagramOptions} utility function in a module. Adopters can either include this
22
22
  * module into the container {@link ModuleConfiguration} or configure the container after its creation
23
23
  * (e.g. using the {@link configureDiagramOptions} utility function).
24
- * @param options The diagram instance specific configuration options
24
+ * @param diagramOptions The diagram instance specific configuration options
25
+ * @param viewerOptions Optional {@link ViewerOptions} that should be configured
25
26
  * @returns The corresponding {@link FeatureModule}
26
27
  */
27
- export declare function createDiagramOptionsModule(options: IDiagramOptions): FeatureModule;
28
+ export declare function createDiagramOptionsModule(diagramOptions: IDiagramOptions, viewerOptions?: Partial<ViewerOptions>): FeatureModule;
28
29
  /**
29
30
  * Utility function to bind the diagram instance specific configuration options.
30
31
  * In addition to binding the {@link IDiagramOptions} this function also overrides the
@@ -1 +1 @@
1
- {"version":3,"file":"default-modules.d.ts","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,cAAc,EACd,sBAAsB,EACtB,aAAa,EAEb,aAAa,EAUhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AA8B9D,eAAO,MAAM,eAAe,sjBAsClB,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAElF;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACnC,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,eAAe,EAC/B,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GACvC,IAAI,CAQN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,uBAAuB,EAAE,sBAAsB,GAAG,SAAS,CAY9H"}
1
+ {"version":3,"file":"default-modules.d.ts","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,cAAc,EACd,sBAAsB,EACtB,aAAa,EAEb,aAAa,EAUhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AA8B9D,eAAO,MAAM,eAAe,sjBAsClB,CAAC;AAEX;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAC,cAAc,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAIjI;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACnC,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,eAAe,EAC/B,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GACvC,IAAI,CAQN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,uBAAuB,EAAE,sBAAsB,GAAG,SAAS,CAY9H"}
@@ -27,6 +27,7 @@ const element_template_module_1 = require("./features/element-template/element-t
27
27
  const export_modules_1 = require("./features/export/export-modules");
28
28
  const type_hints_module_1 = require("./features/hints/type-hints-module");
29
29
  const hover_module_1 = require("./features/hover/hover-module");
30
+ const label_edit_ui_module_1 = require("./features/label-edit-ui/label-edit-ui-module");
30
31
  const label_edit_module_1 = require("./features/label-edit/label-edit-module");
31
32
  const layout_module_1 = require("./features/layout/layout-module");
32
33
  const navigation_module_1 = require("./features/navigation/navigation-module");
@@ -45,7 +46,6 @@ const node_creation_module_1 = require("./features/tools/node-creation/node-crea
45
46
  const tool_focus_loss_module_1 = require("./features/tools/tool-focus-loss-module");
46
47
  const validation_modules_1 = require("./features/validation/validation-modules");
47
48
  const viewport_modules_1 = require("./features/viewport/viewport-modules");
48
- const label_edit_ui_module_1 = require("./features/label-edit-ui/label-edit-ui-module");
49
49
  exports.DEFAULT_MODULES = [
50
50
  default_module_1.defaultModule,
51
51
  sprotty_1.buttonModule,
@@ -89,11 +89,12 @@ exports.DEFAULT_MODULES = [
89
89
  * Wraps the {@link configureDiagramOptions} utility function in a module. Adopters can either include this
90
90
  * module into the container {@link ModuleConfiguration} or configure the container after its creation
91
91
  * (e.g. using the {@link configureDiagramOptions} utility function).
92
- * @param options The diagram instance specific configuration options
92
+ * @param diagramOptions The diagram instance specific configuration options
93
+ * @param viewerOptions Optional {@link ViewerOptions} that should be configured
93
94
  * @returns The corresponding {@link FeatureModule}
94
95
  */
95
- function createDiagramOptionsModule(options) {
96
- return new sprotty_1.FeatureModule((bind, unbind, isBound, rebind) => configureDiagramOptions({ bind, unbind, isBound, rebind }, options));
96
+ function createDiagramOptionsModule(diagramOptions, viewerOptions) {
97
+ return new sprotty_1.FeatureModule((bind, unbind, isBound, rebind) => configureDiagramOptions({ bind, unbind, isBound, rebind }, diagramOptions, viewerOptions));
97
98
  }
98
99
  exports.createDiagramOptionsModule = createDiagramOptionsModule;
99
100
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"default-modules.js","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,mDAe+B;AAE/B,0DAAsD;AAEtD,mEAA+D;AAC/D,8FAAyF;AACzF,qFAAgF;AAChF,iFAA2E;AAC3E,+EAA2E;AAC3E,iGAA4F;AAC5F,qEAAgE;AAChE,0EAAqE;AACrE,gEAA4D;AAC5D,+EAA0E;AAC1E,mEAA+D;AAC/D,+EAA2E;AAC3E,sEAAkE;AACl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AC9B,aAAa,EAClB,CAAC;IACH,OAAO,CAAC,IAAI,CAAC,eAAK,CAAC,eAAe,CAAC,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;AACxE,CAAC;AAZD,0DAYC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,0BAA0B,CAAC,SAAoB,EAAE,GAAG,uBAA+C;IAC/G,MAAM,OAAO,GAAG,IAAA,uCAA6B,EAAC,GAAG,uBAAe,EAAE,GAAG,uBAAuB,CAAC,CAAC;IAC9F,oHAAoH;IACpH,4BAA4B;IAC5B,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC/B,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,YAAY,uBAAa,IAAI,WAAW,CAAC,SAAS,KAAK,8BAAa,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/G,MAAM,IAAI,KAAK,CACX,4HAA4H,CAC/H,CAAC;IACN,CAAC;IACD,SAAS,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;IAC3B,OAAO,SAAS,CAAC;AACrB,CAAC;AAZD,gEAYC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp/client",
3
- "version": "2.2.0-next.356+7e20238",
3
+ "version": "2.2.0-next.357+974690a",
4
4
  "description": "A sprotty-based client for GLSP",
5
5
  "keywords": [
6
6
  "eclipse",
@@ -46,7 +46,7 @@
46
46
  "watch": "tsc -w"
47
47
  },
48
48
  "dependencies": {
49
- "@eclipse-glsp/sprotty": "2.2.0-next.356+7e20238",
49
+ "@eclipse-glsp/sprotty": "2.2.0-next.357+974690a",
50
50
  "autocompleter": "^9.1.2",
51
51
  "file-saver": "^2.0.5",
52
52
  "lodash": "4.17.21",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "7e20238d692310d2095826ffb9800750a43599dc"
66
+ "gitHead": "974690aa256ccc0a4a7465adb7385a320c19789a"
67
67
  }
@@ -42,6 +42,7 @@ import { elementTemplateModule } from './features/element-template/element-templ
42
42
  import { exportModule } from './features/export/export-modules';
43
43
  import { typeHintsModule } from './features/hints/type-hints-module';
44
44
  import { hoverModule } from './features/hover/hover-module';
45
+ import { labelEditUiModule } from './features/label-edit-ui/label-edit-ui-module';
45
46
  import { labelEditModule } from './features/label-edit/label-edit-module';
46
47
  import { layoutModule } from './features/layout/layout-module';
47
48
  import { navigationModule } from './features/navigation/navigation-module';
@@ -60,7 +61,6 @@ import { nodeCreationToolModule } from './features/tools/node-creation/node-crea
60
61
  import { toolFocusLossModule } from './features/tools/tool-focus-loss-module';
61
62
  import { markerNavigatorModule, validationModule } from './features/validation/validation-modules';
62
63
  import { viewportModule } from './features/viewport/viewport-modules';
63
- import { labelEditUiModule } from './features/label-edit-ui/label-edit-ui-module';
64
64
 
65
65
  export const DEFAULT_MODULES = [
66
66
  defaultModule,
@@ -106,11 +106,14 @@ export const DEFAULT_MODULES = [
106
106
  * Wraps the {@link configureDiagramOptions} utility function in a module. Adopters can either include this
107
107
  * module into the container {@link ModuleConfiguration} or configure the container after its creation
108
108
  * (e.g. using the {@link configureDiagramOptions} utility function).
109
- * @param options The diagram instance specific configuration options
109
+ * @param diagramOptions The diagram instance specific configuration options
110
+ * @param viewerOptions Optional {@link ViewerOptions} that should be configured
110
111
  * @returns The corresponding {@link FeatureModule}
111
112
  */
112
- export function createDiagramOptionsModule(options: IDiagramOptions): FeatureModule {
113
- return new FeatureModule((bind, unbind, isBound, rebind) => configureDiagramOptions({ bind, unbind, isBound, rebind }, options));
113
+ export function createDiagramOptionsModule(diagramOptions: IDiagramOptions, viewerOptions?: Partial<ViewerOptions>): FeatureModule {
114
+ return new FeatureModule((bind, unbind, isBound, rebind) =>
115
+ configureDiagramOptions({ bind, unbind, isBound, rebind }, diagramOptions, viewerOptions)
116
+ );
114
117
  }
115
118
 
116
119
  /**