@eclipse-glsp/client 2.2.0-next.356 → 2.2.0-next.358
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/lib/default-modules.d.ts +3 -2
- package/lib/default-modules.d.ts.map +1 -1
- package/lib/default-modules.js +5 -4
- package/lib/default-modules.js.map +1 -1
- package/lib/features/viewport/viewport-handler.js +1 -1
- package/lib/features/viewport/viewport-handler.js.map +1 -1
- package/package.json +3 -3
- package/src/default-modules.ts +7 -4
- package/src/features/viewport/viewport-handler.ts +1 -1
package/lib/default-modules.d.ts
CHANGED
|
@@ -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
|
|
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(
|
|
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
|
|
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"}
|
package/lib/default-modules.js
CHANGED
|
@@ -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
|
|
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(
|
|
96
|
-
return new sprotty_1.FeatureModule((bind, unbind, isBound, rebind) => configureDiagramOptions({ bind, unbind, isBound, rebind },
|
|
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;AAClE,mEAA+D;AAC/D,6GAAuG;AACvG,mEAA+D;AAC/D,qFAAgF;AAChF,qFAAgF;AAChF,wGAAkG;AAClG,yFAAoF;AACpF,gGAA8F;AAC9F,kFAAiF;AACjF,0GAAyG;AACzG,8FAA6F;AAC7F,oFAA8E;AAC9E,iFAAmG;AACnG,2EAAsE;
|
|
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,wFAAkF;AAClF,+EAA0E;AAC1E,mEAA+D;AAC/D,+EAA2E;AAC3E,sEAAkE;AAClE,mEAA+D;AAC/D,6GAAuG;AACvG,mEAA+D;AAC/D,qFAAgF;AAChF,qFAAgF;AAChF,wGAAkG;AAClG,yFAAoF;AACpF,gGAA8F;AAC9F,kFAAiF;AACjF,0GAAyG;AACzG,8FAA6F;AAC7F,oFAA8E;AAC9E,iFAAmG;AACnG,2EAAsE;AAEzD,QAAA,eAAe,GAAG;IAC3B,8BAAa;IACb,sBAAY;IACZ,gCAAsB;IACtB,0BAAgB;IAChB,sBAAY;IACZ,6BAAY;IACZ,oBAAU;IACV,4BAAY;IACZ,6CAAoB;IACpB,uCAAiB;IACjB,oCAAgB;IAChB,mCAAe;IACf,0BAAW;IACX,4BAAY;IACZ,oCAAe;IACf,iCAAc;IACd,wCAAiB;IACjB,4BAAY;IACZ,0CAAqB;IACr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,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"}
|
|
@@ -41,7 +41,7 @@ let RestoreViewportHandler = class RestoreViewportHandler {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
get graphSelector() {
|
|
44
|
-
const rootId = this.domHelper.createUniqueDOMElementId(this.editorContext.modelRoot);
|
|
44
|
+
const rootId = CSS.escape(this.domHelper.createUniqueDOMElementId(this.editorContext.modelRoot));
|
|
45
45
|
return `#${rootId}`;
|
|
46
46
|
}
|
|
47
47
|
async postRequestModel() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-handler.js","sourceRoot":"","sources":["../../../src/features/viewport/viewport-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAiF;AACjF,yCAA+C;AAC/C,8EAAyE;AACzE,kEAA8D;AAE9D,uDAAwE;AACxE,sDAA0D;AAE1D;;GAEG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAU/B,MAAM,CAAC,MAAc;QACjB,IAAI,+BAAwB,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,wBAAc,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,CAAC;YAC9F,IAAI,CAAC,UAAU,EAAE,CAAC;QACtB,CAAC;IACL,CAAC;IAED,IAAI,aAAa;QACb,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"viewport-handler.js","sourceRoot":"","sources":["../../../src/features/viewport/viewport-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAiF;AACjF,yCAA+C;AAC/C,8EAAyE;AACzE,kEAA8D;AAE9D,uDAAwE;AACxE,sDAA0D;AAE1D;;GAEG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAU/B,MAAM,CAAC,MAAc;QACjB,IAAI,+BAAwB,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,wBAAc,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,CAAC;YAC9F,IAAI,CAAC,UAAU,EAAE,CAAC;QACtB,CAAC;IACL,CAAC;IAED,IAAI,aAAa;QACb,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC;QACjG,OAAO,IAAI,MAAM,EAAE,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,gBAAgB;QAClB,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAES,UAAU;;QAChB,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;YAC7B,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,YAAY,CAAC,cAAc,0CAAE,aAAa,CAAc,IAAI,CAAC,aAAa,CAAC,CAAC;YACnG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,EAAE,CAAC;QACvB,CAAC;IACL,CAAC;IAES,cAAc,CAAC,QAAgB;QACrC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YACzB,IAAI,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACnC,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;YACrD,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,SAAS,CAAC,EAAE;gBAC9C,IAAI,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACnC,QAAQ,CAAC,UAAU,EAAE,CAAC;oBACtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC9C,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;gBAC5B,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,IAAI;aAChB,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AApDY,wDAAsB;AAErB;IADT,IAAA,kBAAM,EAAC,eAAK,CAAC,SAAS,CAAC;8BACH,mBAAS;yDAAC;AAGrB;IADT,IAAA,kBAAM,EAAC,4BAAY,CAAC;8BACG,4BAAY;4DAAC;AAG3B;IADT,IAAA,kBAAM,EAAC,6CAAoB,CAAC;8BACJ,6CAAoB;6DAAC;iCARrC,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAoDlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/client",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.358+398cecf",
|
|
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.
|
|
49
|
+
"@eclipse-glsp/sprotty": "2.2.0-next.358+398cecf",
|
|
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": "
|
|
66
|
+
"gitHead": "398cecff300762208594edadf1dea75ab42de5a3"
|
|
67
67
|
}
|
package/src/default-modules.ts
CHANGED
|
@@ -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
|
|
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(
|
|
113
|
-
return new FeatureModule((bind, unbind, isBound, rebind) =>
|
|
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
|
/**
|
|
@@ -42,7 +42,7 @@ export class RestoreViewportHandler implements IActionHandler, IDiagramStartup {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
get graphSelector(): string {
|
|
45
|
-
const rootId = this.domHelper.createUniqueDOMElementId(this.editorContext.modelRoot);
|
|
45
|
+
const rootId = CSS.escape(this.domHelper.createUniqueDOMElementId(this.editorContext.modelRoot));
|
|
46
46
|
return `#${rootId}`;
|
|
47
47
|
}
|
|
48
48
|
|