@jupytergis/base 0.1.5 → 0.1.6
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.
|
@@ -191,7 +191,7 @@ const SingleBandPseudoColor = ({ context, state, okSignalPromise, cancel, layerI
|
|
|
191
191
|
colorExpr.push(stop.output);
|
|
192
192
|
});
|
|
193
193
|
// fallback value
|
|
194
|
-
colorExpr.push([0, 0, 0,
|
|
194
|
+
colorExpr.push([0, 0, 0, 0.0]);
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
197
|
case 'exact': {
|
|
@@ -208,7 +208,7 @@ const SingleBandPseudoColor = ({ context, state, okSignalPromise, cancel, layerI
|
|
|
208
208
|
colorExpr.push(stop.output);
|
|
209
209
|
});
|
|
210
210
|
// fallback value
|
|
211
|
-
colorExpr.push([0, 0, 0,
|
|
211
|
+
colorExpr.push([0, 0, 0, 0.0]);
|
|
212
212
|
break;
|
|
213
213
|
}
|
|
214
214
|
}
|
package/lib/toolbar/widget.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IJGISExternalCommand, JupyterGISModel } from '@jupytergis/schema';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
2
|
+
import { Toolbar, ReactiveToolbar } from '@jupyterlab/ui-components';
|
|
3
3
|
import { CommandRegistry } from '@lumino/commands';
|
|
4
4
|
import { Widget } from '@lumino/widgets';
|
|
5
5
|
export declare const TOOLBAR_SEPARATOR_CLASS = "jGIS-Toolbar-Separator";
|
|
@@ -10,7 +10,7 @@ export declare class Separator extends Widget {
|
|
|
10
10
|
*/
|
|
11
11
|
constructor();
|
|
12
12
|
}
|
|
13
|
-
export declare class ToolbarWidget extends
|
|
13
|
+
export declare class ToolbarWidget extends ReactiveToolbar {
|
|
14
14
|
constructor(options: ToolbarWidget.IOptions);
|
|
15
15
|
}
|
|
16
16
|
export declare namespace ToolbarWidget {
|
package/lib/toolbar/widget.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandToolbarButton } from '@jupyterlab/apputils';
|
|
2
|
-
import { ReactWidget,
|
|
2
|
+
import { ReactWidget, ReactiveToolbar, ToolbarButton, addIcon, redoIcon, undoIcon, terminalIcon } from '@jupyterlab/ui-components';
|
|
3
3
|
import { Menu, Widget } from '@lumino/widgets';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { CommandIDs } from '../constants';
|
|
@@ -15,9 +15,9 @@ export class Separator extends Widget {
|
|
|
15
15
|
this.addClass(TOOLBAR_SEPARATOR_CLASS);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
export class ToolbarWidget extends
|
|
18
|
+
export class ToolbarWidget extends ReactiveToolbar {
|
|
19
19
|
constructor(options) {
|
|
20
|
-
super(
|
|
20
|
+
super();
|
|
21
21
|
this.addClass('jGIS-toolbar-widget');
|
|
22
22
|
if (options.commands) {
|
|
23
23
|
this.addItem('undo', new CommandToolbarButton({
|
|
@@ -96,7 +96,7 @@ export class ToolbarWidget extends Toolbar {
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
this.addItem('New', NewButton);
|
|
99
|
-
this.addItem('spacer',
|
|
99
|
+
this.addItem('spacer', ReactiveToolbar.createSpacerItem());
|
|
100
100
|
// Users
|
|
101
101
|
this.addItem('users', ReactWidget.create(React.createElement(UsersItem, { model: options.model })));
|
|
102
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupytergis/base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "A JupyterLab extension for 3D modelling.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@deathbeds/jupyterlab-rjsf": "^1.1.0",
|
|
42
42
|
"@jupyter/docprovider": "^2.0.0",
|
|
43
43
|
"@jupyter/ydoc": "^1.0.0",
|
|
44
|
-
"@jupytergis/schema": "^0.1.
|
|
44
|
+
"@jupytergis/schema": "^0.1.6",
|
|
45
45
|
"@jupyterlab/application": "^4.0.0",
|
|
46
46
|
"@jupyterlab/apputils": "^4.0.0",
|
|
47
47
|
"@jupyterlab/completer": "^4.2.4",
|