@jupytergis/jupytergis-qgis 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/plugins.js +3 -2
- package/package.json +4 -4
package/lib/plugins.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ConsolePanel, IConsoleTracker } from '@jupyterlab/console';
|
|
|
6
6
|
import { PathExt } from '@jupyterlab/coreutils';
|
|
7
7
|
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
|
|
8
8
|
import { Widget } from '@lumino/widgets';
|
|
9
|
-
import { logoMiniIcon, requestAPI } from '@jupytergis/base';
|
|
9
|
+
import { logoMiniIcon, logoMiniIconQGZ, requestAPI } from '@jupytergis/base';
|
|
10
10
|
import { JupyterGISWidgetFactory } from '@jupytergis/jupytergis-core';
|
|
11
11
|
import { IJupyterGISDocTracker } from '@jupytergis/schema';
|
|
12
12
|
import { QGSModelFactory, QGZModelFactory } from './modelfactory';
|
|
@@ -82,7 +82,7 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
|
|
|
82
82
|
extensions: ['.qgz', '.QGZ'],
|
|
83
83
|
fileFormat: 'base64',
|
|
84
84
|
contentType: 'QGZ',
|
|
85
|
-
icon:
|
|
85
|
+
icon: logoMiniIconQGZ
|
|
86
86
|
});
|
|
87
87
|
const QGISSharedModelFactory = () => {
|
|
88
88
|
return new JupyterGISDoc();
|
|
@@ -90,6 +90,7 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
|
|
|
90
90
|
drive.sharedModelFactory.registerDocumentFactory('QGS', QGISSharedModelFactory);
|
|
91
91
|
drive.sharedModelFactory.registerDocumentFactory('QGZ', QGISSharedModelFactory);
|
|
92
92
|
const widgetCreatedCallback = (sender, widget) => {
|
|
93
|
+
widget.title.icon = logoMiniIconQGZ;
|
|
93
94
|
// Notify the instance tracker if restore data needs to update.
|
|
94
95
|
widget.context.pathChanged.connect(() => {
|
|
95
96
|
tracker.save(widget);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupytergis/jupytergis-qgis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "JupyterGIS QGIS extension.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@jupyter/collaborative-drive": "^3.0.0",
|
|
57
|
-
"@jupytergis/base": "^0.
|
|
58
|
-
"@jupytergis/jupytergis-core": "^0.
|
|
59
|
-
"@jupytergis/schema": "^0.
|
|
57
|
+
"@jupytergis/base": "^0.3.0",
|
|
58
|
+
"@jupytergis/jupytergis-core": "^0.3.0",
|
|
59
|
+
"@jupytergis/schema": "^0.3.0",
|
|
60
60
|
"@jupyterlab/application": "^4.3.0",
|
|
61
61
|
"@jupyterlab/apputils": "^4.3.0",
|
|
62
62
|
"@jupyterlab/coreutils": "^6.3.0",
|