@jupytergis/base 0.5.0 → 0.6.1
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/annotations/components/Annotation.d.ts +2 -2
- package/lib/annotations/components/Annotation.js +3 -3
- package/lib/annotations/components/AnnotationFloater.d.ts +1 -1
- package/lib/annotations/components/AnnotationFloater.js +2 -2
- package/lib/annotations/components/Message.d.ts +2 -1
- package/lib/annotations/components/Message.js +3 -3
- package/lib/annotations/model.js +5 -5
- package/lib/commands/BaseCommandIDs.d.ts +32 -0
- package/lib/commands/BaseCommandIDs.js +43 -0
- package/lib/{commands.d.ts → commands/index.d.ts} +1 -1
- package/lib/{commands.js → commands/index.js} +59 -99
- package/lib/console/consoleview.d.ts +3 -3
- package/lib/console/consoleview.js +5 -5
- package/lib/constants.d.ts +2 -36
- package/lib/constants.js +5 -47
- package/lib/dialogs/ProcessingFormDialog.d.ts +4 -4
- package/lib/dialogs/ProcessingFormDialog.js +9 -11
- package/lib/dialogs/layerBrowserDialog.d.ts +1 -1
- package/lib/dialogs/layerBrowserDialog.js +7 -7
- package/lib/dialogs/layerCreationFormDialog.d.ts +4 -4
- package/lib/dialogs/layerCreationFormDialog.js +6 -6
- package/lib/dialogs/symbology/components/color_ramp/CanvasSelectComponent.d.ts +1 -1
- package/lib/dialogs/symbology/components/color_ramp/CanvasSelectComponent.js +3 -3
- package/lib/dialogs/symbology/components/color_ramp/ColorRamp.d.ts +3 -2
- package/lib/dialogs/symbology/components/color_ramp/ColorRamp.js +6 -7
- package/lib/dialogs/symbology/components/color_ramp/ColorRampEntry.d.ts +1 -1
- package/lib/dialogs/symbology/components/color_ramp/ColorRampEntry.js +1 -1
- package/lib/dialogs/symbology/components/color_ramp/ModeSelectRow.d.ts +1 -1
- package/lib/dialogs/symbology/components/color_ramp/ModeSelectRow.js +1 -1
- package/lib/dialogs/symbology/components/color_stops/StopContainer.d.ts +2 -2
- package/lib/dialogs/symbology/components/color_stops/StopContainer.js +4 -4
- package/lib/dialogs/symbology/components/color_stops/StopRow.d.ts +3 -3
- package/lib/dialogs/symbology/components/color_stops/StopRow.js +2 -2
- package/lib/dialogs/symbology/hooks/useGetBandInfo.js +5 -5
- package/lib/dialogs/symbology/hooks/useGetProperties.d.ts +1 -1
- package/lib/dialogs/symbology/hooks/useGetProperties.js +4 -4
- package/lib/dialogs/symbology/symbologyDialog.d.ts +8 -0
- package/lib/dialogs/symbology/symbologyDialog.js +1 -1
- package/lib/dialogs/symbology/symbologyUtils.js +38 -31
- package/lib/dialogs/symbology/tiff_layer/TiffRendering.d.ts +2 -2
- package/lib/dialogs/symbology/tiff_layer/TiffRendering.js +2 -2
- package/lib/dialogs/symbology/tiff_layer/components/BandRow.d.ts +2 -2
- package/lib/dialogs/symbology/tiff_layer/components/BandRow.js +4 -4
- package/lib/dialogs/symbology/tiff_layer/types/MultibandColor.d.ts +2 -2
- package/lib/dialogs/symbology/tiff_layer/types/MultibandColor.js +30 -20
- package/lib/dialogs/symbology/tiff_layer/types/SingleBandPseudoColor.d.ts +2 -2
- package/lib/dialogs/symbology/tiff_layer/types/SingleBandPseudoColor.js +23 -21
- package/lib/dialogs/symbology/vector_layer/VectorRendering.d.ts +2 -2
- package/lib/dialogs/symbology/vector_layer/VectorRendering.js +81 -39
- package/lib/dialogs/symbology/vector_layer/components/ValueSelect.d.ts +1 -1
- package/lib/dialogs/symbology/vector_layer/components/ValueSelect.js +1 -1
- package/lib/dialogs/symbology/vector_layer/types/Canonical.d.ts +4 -0
- package/lib/dialogs/symbology/vector_layer/types/Canonical.js +66 -0
- package/lib/dialogs/symbology/vector_layer/types/Categorized.d.ts +2 -2
- package/lib/dialogs/symbology/vector_layer/types/Categorized.js +142 -47
- package/lib/dialogs/symbology/vector_layer/types/Graduated.d.ts +2 -2
- package/lib/dialogs/symbology/vector_layer/types/Graduated.js +193 -99
- package/lib/dialogs/symbology/vector_layer/types/Heatmap.d.ts +2 -2
- package/lib/dialogs/symbology/vector_layer/types/Heatmap.js +7 -6
- package/lib/dialogs/symbology/vector_layer/types/SimpleSymbol.d.ts +2 -2
- package/lib/dialogs/symbology/vector_layer/types/SimpleSymbol.js +33 -30
- package/lib/formbuilder/creationform.js +3 -3
- package/lib/formbuilder/editform.js +3 -3
- package/lib/formbuilder/formselectors.d.ts +1 -1
- package/lib/formbuilder/formselectors.js +2 -2
- package/lib/formbuilder/objectform/baseform.d.ts +5 -4
- package/lib/formbuilder/objectform/baseform.js +16 -14
- package/lib/formbuilder/objectform/fileselectorwidget.d.ts +1 -1
- package/lib/formbuilder/objectform/fileselectorwidget.js +5 -5
- package/lib/formbuilder/objectform/layer/heatmapLayerForm.js +2 -2
- package/lib/formbuilder/objectform/layer/hillshadeLayerForm.js +1 -1
- package/lib/formbuilder/objectform/layer/layerform.d.ts +1 -1
- package/lib/formbuilder/objectform/layer/layerform.js +3 -2
- package/lib/formbuilder/objectform/process/dissolveProcessForm.d.ts +1 -1
- package/lib/formbuilder/objectform/process/dissolveProcessForm.js +5 -5
- package/lib/formbuilder/objectform/source/geojsonsource.js +4 -4
- package/lib/formbuilder/objectform/source/geotiffsource.js +4 -4
- package/lib/formbuilder/objectform/source/pathbasedsource.js +6 -6
- package/lib/formbuilder/objectform/source/sourceform.d.ts +1 -1
- package/lib/formbuilder/objectform/source/sourceform.js +1 -1
- package/lib/formbuilder/objectform/source/tilesourceform.js +3 -3
- package/lib/gdal.js +2 -2
- package/lib/icons.js +29 -29
- package/lib/index.d.ts +4 -3
- package/lib/index.js +4 -3
- package/lib/mainview/CollaboratorPointers.d.ts +1 -1
- package/lib/mainview/CollaboratorPointers.js +5 -5
- package/lib/mainview/FollowIndicator.d.ts +2 -2
- package/lib/mainview/FollowIndicator.js +3 -3
- package/lib/mainview/TemporalSlider.d.ts +1 -1
- package/lib/mainview/TemporalSlider.js +7 -7
- package/lib/mainview/mainView.d.ts +4 -2
- package/lib/mainview/mainView.js +232 -137
- package/lib/menus.d.ts +1 -1
- package/lib/menus.js +7 -7
- package/lib/panelview/annotationPanel.d.ts +2 -2
- package/lib/panelview/annotationPanel.js +1 -1
- package/lib/panelview/components/filter-panel/Filter.d.ts +2 -2
- package/lib/panelview/components/filter-panel/Filter.js +5 -5
- package/lib/panelview/components/filter-panel/FilterRow.d.ts +2 -2
- package/lib/panelview/components/identify-panel/IdentifyPanel.d.ts +1 -1
- package/lib/panelview/components/identify-panel/IdentifyPanel.js +5 -5
- package/lib/panelview/components/layers.d.ts +1 -1
- package/lib/panelview/components/layers.js +12 -12
- package/lib/panelview/leftpanel.d.ts +4 -2
- package/lib/panelview/leftpanel.js +24 -6
- package/lib/panelview/model.d.ts +1 -1
- package/lib/panelview/objectproperties.d.ts +1 -1
- package/lib/panelview/objectproperties.js +3 -3
- package/lib/panelview/rightpanel.d.ts +2 -1
- package/lib/panelview/rightpanel.js +13 -5
- package/lib/{processing.d.ts → processing/index.d.ts} +4 -4
- package/lib/{processing.js → processing/index.js} +19 -24
- package/lib/processing/processingCommands.d.ts +6 -0
- package/lib/processing/processingCommands.js +47 -0
- package/lib/processing/processingFormToParam.d.ts +2 -0
- package/lib/processing/processingFormToParam.js +15 -0
- package/lib/shared/components/Badge.d.ts +7 -0
- package/lib/shared/components/Badge.js +20 -0
- package/lib/shared/components/Button.d.ts +9 -0
- package/lib/shared/components/Button.js +21 -0
- package/lib/shared/components/Calendar.d.ts +47 -0
- package/lib/shared/components/Calendar.js +184 -0
- package/lib/shared/components/Checkbox.d.ts +4 -0
- package/lib/shared/components/Checkbox.js +25 -0
- package/lib/shared/components/DropdownMenu.d.ts +27 -0
- package/lib/shared/components/DropdownMenu.js +92 -0
- package/lib/shared/components/Pagination.d.ts +25 -0
- package/lib/shared/components/Pagination.js +68 -0
- package/lib/shared/components/Popover.d.ts +7 -0
- package/lib/shared/components/Popover.js +32 -0
- package/lib/shared/components/Tabs.d.ts +7 -0
- package/lib/shared/components/Tabs.js +31 -0
- package/lib/shared/components/ToggleGroup.d.ts +12 -0
- package/lib/shared/components/ToggleGroup.js +52 -0
- package/lib/shared/components/loading.d.ts +12 -0
- package/lib/shared/components/loading.js +6 -0
- package/lib/shared/components/utils.d.ts +2 -0
- package/lib/shared/components/utils.js +4 -0
- package/lib/shared/hooks/useIsFirstRender.d.ts +2 -0
- package/lib/shared/hooks/useIsFirstRender.js +10 -0
- package/lib/stacBrowser/StacBrowser.d.ts +7 -0
- package/lib/stacBrowser/StacBrowser.js +16 -0
- package/lib/stacBrowser/StacPanel.d.ts +14 -0
- package/lib/stacBrowser/StacPanel.js +16 -0
- package/lib/stacBrowser/components/StacFilterSection.d.ts +23 -0
- package/lib/stacBrowser/components/StacFilterSection.js +59 -0
- package/lib/stacBrowser/components/StacPanelFilters.d.ts +14 -0
- package/lib/stacBrowser/components/StacPanelFilters.js +81 -0
- package/lib/stacBrowser/components/StacPanelResults.d.ts +13 -0
- package/lib/stacBrowser/components/StacPanelResults.js +48 -0
- package/lib/stacBrowser/components/StacPanelView.d.ts +7 -0
- package/lib/stacBrowser/components/StacPanelView.js +20 -0
- package/lib/stacBrowser/constants.d.ts +25 -0
- package/lib/stacBrowser/constants.js +197 -0
- package/lib/stacBrowser/hooks/useStacSearch.d.ts +30 -0
- package/lib/stacBrowser/hooks/useStacSearch.js +221 -0
- package/lib/stacBrowser/index.d.ts +1 -0
- package/lib/stacBrowser/index.js +1 -0
- package/lib/stacBrowser/types/types.d.ts +124 -0
- package/lib/stacBrowser/types/types.js +1 -0
- package/lib/statusbar/StatusBar.d.ts +1 -1
- package/lib/statusbar/StatusBar.js +3 -3
- package/lib/toolbar/index.d.ts +0 -1
- package/lib/toolbar/index.js +0 -1
- package/lib/toolbar/widget.d.ts +1 -0
- package/lib/toolbar/widget.js +37 -16
- package/lib/tools.d.ts +29 -4
- package/lib/tools.js +74 -69
- package/lib/types.d.ts +2 -0
- package/lib/widget.d.ts +1 -1
- package/lib/widget.js +5 -5
- package/package.json +22 -8
- package/style/base.css +26 -0
- package/style/layerBrowser.css +10 -0
- package/style/shared/badge.css +61 -0
- package/style/shared/button.css +169 -0
- package/style/shared/calendar.css +274 -0
- package/style/shared/checkbox.css +28 -0
- package/style/shared/dropdownMenu.css +240 -0
- package/style/shared/pagination.css +167 -0
- package/style/shared/popover.css +53 -0
- package/style/shared/tabs.css +57 -0
- package/style/shared/toggle.css +85 -0
- package/style/stacBrowser.css +91 -0
- package/style/symbologyDialog.css +0 -7
- package/lib/mainview/spinner.d.ts +0 -6
- package/lib/mainview/spinner.js +0 -5
- package/lib/toolbar/usertoolbaritem.d.ts +0 -19
- package/lib/toolbar/usertoolbaritem.js +0 -59
package/lib/gdal.js
CHANGED
package/lib/icons.js
CHANGED
|
@@ -4,88 +4,88 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// This file is based on iconimports.ts in @jupyterlab/ui-components, but is manually generated.
|
|
6
6
|
import { LabIcon } from '@jupyterlab/ui-components';
|
|
7
|
+
import bookOpenSvgStr from '../style/icons/book_open.svg';
|
|
8
|
+
import clockSvgStr from '../style/icons/clock-solid.svg';
|
|
9
|
+
import geoJsonSvgStr from '../style/icons/geojson.svg';
|
|
10
|
+
import geolocationSvgStr from '../style/icons/geolocation.svg';
|
|
11
|
+
import infoSvgStr from '../style/icons/info-solid.svg';
|
|
7
12
|
import logoSvgStr from '../style/icons/logo.svg';
|
|
8
13
|
import logoMiniSvgStr from '../style/icons/logo_mini.svg';
|
|
9
14
|
import logoMiniAlternativeSvgStr from '../style/icons/logo_mini_alternative.svg';
|
|
10
|
-
import rasterSvgStr from '../style/icons/raster.svg';
|
|
11
|
-
import visibilitySvgStr from '../style/icons/visibility.svg';
|
|
12
|
-
import nonVisibilitySvgStr from '../style/icons/nonvisibility.svg';
|
|
13
|
-
import geoJsonSvgStr from '../style/icons/geojson.svg';
|
|
14
|
-
import moundSvgStr from '../style/icons/mound.svg';
|
|
15
15
|
import logoMiniQGZ from '../style/icons/logo_mini_qgz.svg';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import clockSvgStr from '../style/icons/clock-solid.svg';
|
|
20
|
-
import terminalToolbarSvgStr from '../style/icons/terminal_toolbar.svg';
|
|
21
|
-
import geolocationSvgStr from '../style/icons/geolocation.svg';
|
|
22
|
-
import targetWithoutCenterSvgStr from '../style/icons/target_without_center.svg';
|
|
16
|
+
import moundSvgStr from '../style/icons/mound.svg';
|
|
17
|
+
import nonVisibilitySvgStr from '../style/icons/nonvisibility.svg';
|
|
18
|
+
import rasterSvgStr from '../style/icons/raster.svg';
|
|
23
19
|
import targetWithCenterSvgStr from '../style/icons/target_with_center.svg';
|
|
20
|
+
import targetWithoutCenterSvgStr from '../style/icons/target_without_center.svg';
|
|
21
|
+
import terminalToolbarSvgStr from '../style/icons/terminal_toolbar.svg';
|
|
22
|
+
import vectorSquareSvgStr from '../style/icons/vector_square.svg';
|
|
23
|
+
import visibilitySvgStr from '../style/icons/visibility.svg';
|
|
24
24
|
export const logoIcon = new LabIcon({
|
|
25
25
|
name: 'jupytergis::logo',
|
|
26
|
-
svgstr: logoSvgStr
|
|
26
|
+
svgstr: logoSvgStr,
|
|
27
27
|
});
|
|
28
28
|
export const logoMiniIcon = new LabIcon({
|
|
29
29
|
name: 'jupytergis::logoMini',
|
|
30
|
-
svgstr: logoMiniSvgStr
|
|
30
|
+
svgstr: logoMiniSvgStr,
|
|
31
31
|
});
|
|
32
32
|
export const logoMiniAlternativeIcon = new LabIcon({
|
|
33
33
|
name: 'jupytergis::logoMiniAlternative',
|
|
34
|
-
svgstr: logoMiniAlternativeSvgStr
|
|
34
|
+
svgstr: logoMiniAlternativeSvgStr,
|
|
35
35
|
});
|
|
36
36
|
export const rasterIcon = new LabIcon({
|
|
37
37
|
name: 'jupytergis::raster',
|
|
38
|
-
svgstr: rasterSvgStr
|
|
38
|
+
svgstr: rasterSvgStr,
|
|
39
39
|
});
|
|
40
40
|
export const visibilityIcon = new LabIcon({
|
|
41
41
|
name: 'jupytergis::visibility',
|
|
42
|
-
svgstr: visibilitySvgStr
|
|
42
|
+
svgstr: visibilitySvgStr,
|
|
43
43
|
});
|
|
44
44
|
export const nonVisibilityIcon = new LabIcon({
|
|
45
45
|
name: 'jupytergis::nonVisibility',
|
|
46
|
-
svgstr: nonVisibilitySvgStr
|
|
46
|
+
svgstr: nonVisibilitySvgStr,
|
|
47
47
|
});
|
|
48
48
|
export const geoJSONIcon = new LabIcon({
|
|
49
49
|
name: 'jupytergis::geoJSON',
|
|
50
|
-
svgstr: geoJsonSvgStr
|
|
50
|
+
svgstr: geoJsonSvgStr,
|
|
51
51
|
});
|
|
52
52
|
export const moundIcon = new LabIcon({
|
|
53
53
|
name: 'jupytergis::mound',
|
|
54
|
-
svgstr: moundSvgStr
|
|
54
|
+
svgstr: moundSvgStr,
|
|
55
55
|
});
|
|
56
56
|
export const logoMiniIconQGZ = new LabIcon({
|
|
57
57
|
name: 'jupytergis::logoQGZ',
|
|
58
|
-
svgstr: logoMiniQGZ
|
|
58
|
+
svgstr: logoMiniQGZ,
|
|
59
59
|
});
|
|
60
60
|
export const bookOpenIcon = new LabIcon({
|
|
61
61
|
name: 'jupytergis::bookOpen',
|
|
62
|
-
svgstr: bookOpenSvgStr
|
|
62
|
+
svgstr: bookOpenSvgStr,
|
|
63
63
|
});
|
|
64
64
|
export const vectorSquareIcon = new LabIcon({
|
|
65
65
|
name: 'jupytergis::vectorSquare',
|
|
66
|
-
svgstr: vectorSquareSvgStr
|
|
66
|
+
svgstr: vectorSquareSvgStr,
|
|
67
67
|
});
|
|
68
68
|
export const infoIcon = new LabIcon({
|
|
69
69
|
name: 'jupytergis::info',
|
|
70
|
-
svgstr: infoSvgStr
|
|
70
|
+
svgstr: infoSvgStr,
|
|
71
71
|
});
|
|
72
72
|
export const clockIcon = new LabIcon({
|
|
73
73
|
name: 'jupytergis::clock',
|
|
74
|
-
svgstr: clockSvgStr
|
|
74
|
+
svgstr: clockSvgStr,
|
|
75
75
|
});
|
|
76
76
|
export const terminalToolbarIcon = new LabIcon({
|
|
77
77
|
name: 'jupytergis::terminalToolbar',
|
|
78
|
-
svgstr: terminalToolbarSvgStr
|
|
78
|
+
svgstr: terminalToolbarSvgStr,
|
|
79
79
|
});
|
|
80
80
|
export const geolocationIcon = new LabIcon({
|
|
81
81
|
name: 'jupytergis::geolocation',
|
|
82
|
-
svgstr: geolocationSvgStr
|
|
82
|
+
svgstr: geolocationSvgStr,
|
|
83
83
|
});
|
|
84
84
|
export const targetWithoutCenterIcon = new LabIcon({
|
|
85
85
|
name: 'jupytergis::targetWithCenter',
|
|
86
|
-
svgstr: targetWithCenterSvgStr
|
|
86
|
+
svgstr: targetWithCenterSvgStr,
|
|
87
87
|
});
|
|
88
88
|
export const targetWithCenterIcon = new LabIcon({
|
|
89
89
|
name: 'jupytergis::targetWithoutCenter',
|
|
90
|
-
svgstr: targetWithoutCenterSvgStr
|
|
90
|
+
svgstr: targetWithoutCenterSvgStr,
|
|
91
91
|
});
|
package/lib/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
export * from './annotations';
|
|
1
2
|
export * from './classificationModes';
|
|
2
|
-
export * from './commands';
|
|
3
|
+
export * from './commands/index';
|
|
3
4
|
export * from './constants';
|
|
4
5
|
export * from './dialogs/layerCreationFormDialog';
|
|
5
6
|
export * from './formbuilder/objectform/baseform';
|
|
6
7
|
export * from './icons';
|
|
7
8
|
export * from './mainview';
|
|
9
|
+
export * from './menus';
|
|
8
10
|
export * from './panelview';
|
|
11
|
+
export * from './stacBrowser';
|
|
9
12
|
export * from './store';
|
|
10
13
|
export * from './toolbar';
|
|
11
14
|
export * from './tools';
|
|
12
15
|
export * from './types';
|
|
13
16
|
export * from './widget';
|
|
14
|
-
export * from './annotations';
|
|
15
|
-
export * from './menus';
|
package/lib/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
export * from './annotations';
|
|
1
2
|
export * from './classificationModes';
|
|
2
|
-
export * from './commands';
|
|
3
|
+
export * from './commands/index';
|
|
3
4
|
export * from './constants';
|
|
4
5
|
export * from './dialogs/layerCreationFormDialog';
|
|
5
6
|
export * from './formbuilder/objectform/baseform';
|
|
6
7
|
export * from './icons';
|
|
7
8
|
export * from './mainview';
|
|
9
|
+
export * from './menus';
|
|
8
10
|
export * from './panelview';
|
|
11
|
+
export * from './stacBrowser';
|
|
9
12
|
export * from './store';
|
|
10
13
|
export * from './toolbar';
|
|
11
14
|
export * from './tools';
|
|
12
15
|
export * from './types';
|
|
13
16
|
export * from './widget';
|
|
14
|
-
export * from './annotations';
|
|
15
|
-
export * from './menus';
|
|
@@ -13,5 +13,5 @@ export type ClientPointer = {
|
|
|
13
13
|
longitude: number;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
declare const CollaboratorPointers:
|
|
16
|
+
declare const CollaboratorPointers: React.FC<ICollaboratorPointersProps>;
|
|
17
17
|
export default CollaboratorPointers;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { faArrowPointer, faWindowMinimize } from '@fortawesome/free-solid-svg-icons';
|
|
1
|
+
import { faArrowPointer, faWindowMinimize, } from '@fortawesome/free-solid-svg-icons';
|
|
2
2
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
const CollaboratorPointers = ({ clients }) => {
|
|
4
|
+
const CollaboratorPointers = ({ clients, }) => {
|
|
5
5
|
const [isOpen, setIsOpen] = useState(false);
|
|
6
6
|
return (React.createElement(React.Fragment, null, clients &&
|
|
7
7
|
Object.values(clients).map(client => (React.createElement("div", { className: "jGIS-Popup-Wrapper", style: {
|
|
8
8
|
left: `${client.coordinates.x}px`,
|
|
9
|
-
top: `${client.coordinates.y}px
|
|
9
|
+
top: `${client.coordinates.y}px`,
|
|
10
10
|
} },
|
|
11
11
|
React.createElement("div", { key: client.username, className: "jGIS-Remote-Pointer", style: {
|
|
12
12
|
color: client.color,
|
|
13
|
-
cursor: 'pointer'
|
|
13
|
+
cursor: 'pointer',
|
|
14
14
|
}, onClick: () => {
|
|
15
15
|
setIsOpen(!isOpen);
|
|
16
16
|
} },
|
|
17
17
|
React.createElement(FontAwesomeIcon, { icon: faArrowPointer, className: "jGIS-Remote-Pointer-Icon" })),
|
|
18
18
|
React.createElement("div", { style: {
|
|
19
19
|
visibility: isOpen ? 'visible' : 'hidden',
|
|
20
|
-
background: client.color
|
|
20
|
+
background: client.color,
|
|
21
21
|
}, className: "jGIS-Remote-Pointer-Popup jGIS-Floating-Pointer-Popup" },
|
|
22
22
|
React.createElement("div", { className: "jGIS-Popup-Topbar", onClick: () => {
|
|
23
23
|
setIsOpen(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { User } from '@jupyterlab/services';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
interface IFollowIndicatorProps {
|
|
4
4
|
remoteUser: User.IIdentity | null | undefined;
|
|
5
5
|
}
|
|
6
|
-
export declare
|
|
6
|
+
export declare const FollowIndicator: React.FC<IFollowIndicatorProps>;
|
|
7
7
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export const FollowIndicator = ({ remoteUser, }) => {
|
|
3
3
|
return (remoteUser === null || remoteUser === void 0 ? void 0 : remoteUser.display_name) ? (React.createElement("div", { style: {
|
|
4
4
|
position: 'absolute',
|
|
5
5
|
top: 1,
|
|
6
6
|
right: 3,
|
|
7
|
-
background: remoteUser.color
|
|
7
|
+
background: remoteUser.color,
|
|
8
8
|
} }, `Following ${remoteUser.display_name}`)) : null;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
@@ -4,5 +4,5 @@ interface ITemporalSliderProps {
|
|
|
4
4
|
model: IJupyterGISModel;
|
|
5
5
|
filterStates: IDict<IJGISFilterItem | undefined>;
|
|
6
6
|
}
|
|
7
|
-
declare const TemporalSlider:
|
|
7
|
+
declare const TemporalSlider: React.FC<ITemporalSliderProps>;
|
|
8
8
|
export default TemporalSlider;
|
|
@@ -2,9 +2,9 @@ import { faPause, faPlay } from '@fortawesome/free-solid-svg-icons';
|
|
|
2
2
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
3
|
import { Button, Slider } from '@jupyter/react-components';
|
|
4
4
|
import { format, isValid, parse } from 'date-fns';
|
|
5
|
-
import { daysInYear, millisecondsInDay, millisecondsInHour, millisecondsInMinute, millisecondsInSecond, millisecondsInWeek, minutesInMonth } from 'date-fns/constants';
|
|
5
|
+
import { daysInYear, millisecondsInDay, millisecondsInHour, millisecondsInMinute, millisecondsInSecond, millisecondsInWeek, minutesInMonth, } from 'date-fns/constants';
|
|
6
6
|
import React, { useEffect, useRef, useState } from 'react';
|
|
7
|
-
import { useGetProperties } from
|
|
7
|
+
import { useGetProperties } from "../dialogs/symbology/hooks/useGetProperties";
|
|
8
8
|
// List of common date formats to try
|
|
9
9
|
// TODO: Not even close to every valid format
|
|
10
10
|
const commonDateFormats = [
|
|
@@ -16,7 +16,7 @@ const commonDateFormats = [
|
|
|
16
16
|
'MM-dd-yyyy', // US format with hyphens (e.g., 10-05-2023)
|
|
17
17
|
'yyyy/MM/dd', // ISO format with slashes (e.g., 2023/10/05)
|
|
18
18
|
'dd.MM.yyyy', // European format with dots (e.g., 05.10.2023)
|
|
19
|
-
'MM.dd.yyyy' // US format with dots (e.g., 10.05.2023)
|
|
19
|
+
'MM.dd.yyyy', // US format with dots (e.g., 10.05.2023)
|
|
20
20
|
];
|
|
21
21
|
// Time steps in milliseconds
|
|
22
22
|
const stepMap = {
|
|
@@ -27,9 +27,9 @@ const stepMap = {
|
|
|
27
27
|
day: millisecondsInDay,
|
|
28
28
|
week: millisecondsInWeek,
|
|
29
29
|
month: minutesInMonth * millisecondsInMinute,
|
|
30
|
-
year: millisecondsInDay * daysInYear
|
|
30
|
+
year: millisecondsInDay * daysInYear,
|
|
31
31
|
};
|
|
32
|
-
const TemporalSlider = ({ model, filterStates }) => {
|
|
32
|
+
const TemporalSlider = ({ model, filterStates, }) => {
|
|
33
33
|
const [layerId, setLayerId] = useState('');
|
|
34
34
|
const [selectedFeature, setSelectedFeature] = useState('');
|
|
35
35
|
const [range, setRange] = useState({ start: 0, end: 1 }); // min/max of current range being displayed
|
|
@@ -153,7 +153,7 @@ const TemporalSlider = ({ model, filterStates }) => {
|
|
|
153
153
|
setMinMax({ min, max });
|
|
154
154
|
setRange({
|
|
155
155
|
start: (_b = currentState === null || currentState === void 0 ? void 0 : currentState.betweenMin) !== null && _b !== void 0 ? _b : min,
|
|
156
|
-
end: (_c = currentState === null || currentState === void 0 ? void 0 : currentState.betweenMax) !== null && _c !== void 0 ? _c : min + step
|
|
156
|
+
end: (_c = currentState === null || currentState === void 0 ? void 0 : currentState.betweenMax) !== null && _c !== void 0 ? _c : min + step,
|
|
157
157
|
});
|
|
158
158
|
model.addFeatureAsMs(layerId, selectedFeature);
|
|
159
159
|
}, [selectedFeature]);
|
|
@@ -189,7 +189,7 @@ const TemporalSlider = ({ model, filterStates }) => {
|
|
|
189
189
|
operator: 'between',
|
|
190
190
|
value: value,
|
|
191
191
|
betweenMin: value,
|
|
192
|
-
betweenMax: value + step
|
|
192
|
+
betweenMax: value + step,
|
|
193
193
|
};
|
|
194
194
|
const layer = model.getLayer(layerId);
|
|
195
195
|
if (!layer) {
|
|
@@ -12,7 +12,6 @@ interface IStates {
|
|
|
12
12
|
loading: boolean;
|
|
13
13
|
lightTheme: boolean;
|
|
14
14
|
remoteUser?: User.IIdentity | null;
|
|
15
|
-
firstLoad: boolean;
|
|
16
15
|
annotations: IDict<IAnnotation>;
|
|
17
16
|
clientPointers: IDict<ClientPointer>;
|
|
18
17
|
viewProjection: {
|
|
@@ -33,7 +32,9 @@ export declare class MainView extends React.Component<IProps, IStates> {
|
|
|
33
32
|
constructor(props: IProps);
|
|
34
33
|
componentDidMount(): Promise<void>;
|
|
35
34
|
componentWillUnmount(): void;
|
|
36
|
-
|
|
35
|
+
generateMap(center: number[], zoom: number): Promise<void>;
|
|
36
|
+
updateCenter: () => void;
|
|
37
|
+
getViewBbox: (targetProjection?: string) => import("ol/extent").Extent;
|
|
37
38
|
createSelectInteraction: () => void;
|
|
38
39
|
addContextMenu: () => void;
|
|
39
40
|
/**
|
|
@@ -192,5 +193,6 @@ export declare class MainView extends React.Component<IProps, IStates> {
|
|
|
192
193
|
private _loadingLayers;
|
|
193
194
|
private _originalFeatures;
|
|
194
195
|
private _highlightLayer;
|
|
196
|
+
private _updateCenter;
|
|
195
197
|
}
|
|
196
198
|
export {};
|