@jupytergis/jupytergis-lab 0.2.0 → 0.3.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.
package/lib/index.js CHANGED
@@ -29,6 +29,7 @@ const plugin = {
29
29
  const stateDbManager = GlobalStateDbManager.getInstance();
30
30
  stateDbManager.initialize(state);
31
31
  addCommands(app, tracker, translator, formSchemaRegistry, layerBrowserRegistry, state, completionProviderManager);
32
+ app.shell.addClass('data-jgis-keybinding');
32
33
  // SOURCES context menu
33
34
  const newSourceSubMenu = new Menu({ commands: app.commands });
34
35
  newSourceSubMenu.title.label = translator
@@ -71,21 +72,11 @@ const plugin = {
71
72
  rank: 1,
72
73
  command: CommandIDs.removeSource
73
74
  });
74
- app.commands.addKeyBinding({
75
- command: CommandIDs.removeSource,
76
- keys: ['Delete'],
77
- selector: '.jp-gis-source.jp-gis-sourceUnused'
78
- });
79
75
  app.contextMenu.addItem({
80
76
  selector: '.jp-gis-source',
81
77
  rank: 1,
82
78
  command: CommandIDs.renameSource
83
79
  });
84
- app.commands.addKeyBinding({
85
- command: CommandIDs.renameSource,
86
- keys: ['F2'],
87
- selector: '.jp-gis-sourceItem'
88
- });
89
80
  // LAYERS and LAYER GROUPS context menu
90
81
  app.contextMenu.addItem({
91
82
  command: CommandIDs.symbology,
@@ -103,20 +94,15 @@ const plugin = {
103
94
  selector: '.jp-gis-layerItem',
104
95
  rank: 2
105
96
  });
106
- app.commands.addKeyBinding({
107
- command: CommandIDs.removeLayer,
108
- keys: ['Delete'],
109
- selector: '.jp-gis-layerItem'
110
- });
111
97
  app.contextMenu.addItem({
112
98
  command: CommandIDs.renameLayer,
113
99
  selector: '.jp-gis-layerItem',
114
100
  rank: 2
115
101
  });
116
- app.commands.addKeyBinding({
117
- command: CommandIDs.renameLayer,
118
- keys: ['F2'],
119
- selector: '.jp-gis-layerItem'
102
+ app.contextMenu.addItem({
103
+ command: CommandIDs.zoomToLayer,
104
+ selector: '.jp-gis-layerItem',
105
+ rank: 2
120
106
  });
121
107
  const moveLayerSubmenu = new Menu({ commands: app.commands });
122
108
  moveLayerSubmenu.title.label = translator
@@ -135,21 +121,11 @@ const plugin = {
135
121
  selector: '.jp-gis-layerGroupHeader',
136
122
  rank: 2
137
123
  });
138
- app.commands.addKeyBinding({
139
- command: CommandIDs.removeGroup,
140
- keys: ['Delete'],
141
- selector: '.jp-gis-layerGroupHeader'
142
- });
143
124
  app.contextMenu.addItem({
144
125
  command: CommandIDs.renameGroup,
145
126
  selector: '.jp-gis-layerGroupHeader',
146
127
  rank: 2
147
128
  });
148
- app.commands.addKeyBinding({
149
- command: CommandIDs.renameGroup,
150
- keys: ['F2'],
151
- selector: '.jp-gis-layerGroupHeader'
152
- });
153
129
  // Separator
154
130
  app.contextMenu.addItem({
155
131
  type: 'separator',
@@ -184,22 +160,6 @@ const plugin = {
184
160
  if (mainMenu) {
185
161
  populateMenus(mainMenu, isEnabled);
186
162
  }
187
- // Keybindings for the console
188
- app.commands.addKeyBinding({
189
- command: CommandIDs.executeConsole,
190
- keys: ['Shift Enter'],
191
- selector: ".jpgis-console .jp-CodeConsole[data-jp-interaction-mode='notebook'] .jp-CodeConsole-promptCell"
192
- });
193
- app.commands.addKeyBinding({
194
- command: CommandIDs.invokeCompleter,
195
- keys: ['Tab'],
196
- selector: '.jpgis-console .jp-CodeConsole-promptCell .jp-mod-completer-enabled'
197
- });
198
- app.commands.addKeyBinding({
199
- command: CommandIDs.selectCompleter,
200
- keys: ['Enter'],
201
- selector: '.jpgis-console .jp-ConsolePanel .jp-mod-completer-active'
202
- });
203
163
  }
204
164
  };
205
165
  const controlPanel = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/jupytergis-lab",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "JupyterGIS Lab extension.",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -53,9 +53,9 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@jupyter/collaborative-drive": "^3.0.0",
56
- "@jupytergis/base": "^0.2.0",
57
- "@jupytergis/jupytergis-core": "^0.2.0",
58
- "@jupytergis/schema": "^0.2.0",
56
+ "@jupytergis/base": "^0.3.0",
57
+ "@jupytergis/jupytergis-core": "^0.3.0",
58
+ "@jupytergis/schema": "^0.3.0",
59
59
  "@jupyterlab/application": "^4.3.0",
60
60
  "@jupyterlab/apputils": "^4.3.0",
61
61
  "@jupyterlab/coreutils": "^6.3.0",
package/style/base.css CHANGED
@@ -214,7 +214,7 @@ div.jGIS-toolbar-widget > div.jp-Toolbar-item:last-child {
214
214
 
215
215
  .jGIS-Mainview {
216
216
  width: 100%;
217
- height: 100%;
217
+ height: calc(100% - 16px);
218
218
  box-sizing: border-box;
219
219
  }
220
220