@jupytergis/base 0.15.0 → 0.16.0-alpha.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/commands/BaseCommandIDs.d.ts +5 -0
- package/lib/commands/BaseCommandIDs.js +5 -0
- package/lib/commands/index.js +218 -47
- package/lib/commands/operationCommands.js +2 -2
- package/lib/constants.js +5 -1
- package/lib/{panelview/annotationPanel.js → features/annotations/AnnotationsPanel.js} +1 -1
- package/lib/{annotations → features/annotations}/index.d.ts +1 -0
- package/lib/{annotations → features/annotations}/index.js +1 -0
- package/lib/{console → features/console}/consoleview.js +1 -1
- package/lib/{panelview/filter-panel → features/filter}/Filter.js +4 -4
- package/lib/{panelview/filter-panel → features/filter}/FilterRow.d.ts +3 -2
- package/lib/{panelview/filter-panel → features/filter}/FilterRow.js +2 -1
- package/lib/{panelview/identify-panel → features/identify}/IdentifyPanel.d.ts +2 -0
- package/lib/features/identify/IdentifyPanel.js +102 -0
- package/lib/features/identify/components/FeatureCard.d.ts +17 -0
- package/lib/features/identify/components/FeatureCard.js +26 -0
- package/lib/features/identify/components/FeatureCardHeader.d.ts +11 -0
- package/lib/features/identify/components/FeatureCardHeader.js +30 -0
- package/lib/features/identify/components/FeatureFloater.d.ts +7 -0
- package/lib/features/identify/components/FeatureFloater.js +19 -0
- package/lib/features/identify/components/FeaturePropertyList.d.ts +11 -0
- package/lib/features/identify/components/FeaturePropertyList.js +18 -0
- package/lib/features/identify/components/FeatureRow.d.ts +13 -0
- package/lib/features/identify/components/FeatureRow.js +25 -0
- package/lib/features/identify/components/PropertyEditors.d.ts +44 -0
- package/lib/features/identify/components/PropertyEditors.js +56 -0
- package/lib/features/identify/hooks/useIdentifyPropertyEditor.d.ts +11 -0
- package/lib/features/identify/hooks/useIdentifyPropertyEditor.js +132 -0
- package/lib/features/identify/types/editorTypes.d.ts +21 -0
- package/lib/features/identify/utils/getFeatureIdentifier.d.ts +5 -0
- package/lib/features/identify/utils/getFeatureIdentifier.js +14 -0
- package/lib/features/identify/utils/highlightLayer.d.ts +11 -0
- package/lib/features/identify/utils/highlightLayer.js +57 -0
- package/lib/features/identify/utils/highlightStyle.d.ts +7 -0
- package/lib/features/identify/utils/highlightStyle.js +40 -0
- package/lib/{dialogs/layerBrowserDialog.js → features/layer-browser/index.js} +2 -2
- package/lib/features/layers/forms/layer/geoTiffLayerForm.d.ts +3 -0
- package/lib/{formbuilder/objectform/layer/webGlLayerForm.js → features/layers/forms/layer/geoTiffLayerForm.js} +5 -5
- package/lib/{formbuilder/objectform → features/layers/forms}/layer/heatmapLayerForm.js +4 -4
- package/lib/{formbuilder/objectform → features/layers/forms}/layer/hillshadeLayerForm.js +4 -4
- package/lib/{formbuilder/objectform → features/layers/forms}/layer/index.d.ts +1 -1
- package/lib/{formbuilder/objectform → features/layers/forms}/layer/index.js +1 -1
- package/lib/{formbuilder/objectform → features/layers/forms}/layer/layerform.d.ts +1 -1
- package/lib/{formbuilder/objectform → features/layers/forms}/layer/layerform.js +4 -4
- package/lib/features/layers/forms/layer/storySegmentLayerForm.js +150 -0
- package/lib/{formbuilder/objectform → features/layers/forms}/layer/vectorlayerform.js +4 -4
- package/lib/{formbuilder/objectform → features/layers/forms}/source/geojsonsource.js +5 -5
- package/lib/features/layers/forms/source/geopackagesource.d.ts +3 -0
- package/lib/features/layers/forms/source/geopackagesource.js +93 -0
- package/lib/{formbuilder/objectform → features/layers/forms}/source/geotiffsource.js +5 -5
- package/lib/{formbuilder/objectform → features/layers/forms}/source/index.d.ts +1 -0
- package/lib/{formbuilder/objectform → features/layers/forms}/source/index.js +1 -0
- package/lib/{formbuilder/objectform → features/layers/forms}/source/pathbasedsource.js +5 -5
- package/lib/{formbuilder/objectform → features/layers/forms}/source/sourceform.d.ts +1 -1
- package/lib/{formbuilder/objectform → features/layers/forms}/source/sourceform.js +4 -4
- package/lib/{formbuilder/objectform → features/layers/forms}/source/tilesourceform.js +4 -4
- package/lib/{formbuilder/objectform → features/layers/forms}/source/wmsTileSource.d.ts +1 -1
- package/lib/{formbuilder/objectform → features/layers/forms}/source/wmsTileSource.js +6 -6
- package/lib/{dialogs → features/layers}/layerCreationFormDialog.d.ts +1 -1
- package/lib/{dialogs → features/layers}/layerCreationFormDialog.js +1 -1
- package/lib/features/layers/symbology/Grammar.d.ts +11 -0
- package/lib/features/layers/symbology/Grammar.js +235 -0
- package/lib/{dialogs/symbology/vector_layer/types → features/layers/symbology}/Heatmap.d.ts +1 -1
- package/lib/{dialogs/symbology/vector_layer/types → features/layers/symbology}/Heatmap.js +30 -10
- package/lib/{dialogs → features/layers}/symbology/classificationModes.d.ts +6 -6
- package/lib/{dialogs → features/layers}/symbology/classificationModes.js +48 -44
- package/lib/{dialogs → features/layers}/symbology/colorRampUtils.d.ts +1 -0
- package/lib/{dialogs → features/layers}/symbology/colorRampUtils.js +12 -1
- package/lib/features/layers/symbology/components/MappingRow.d.ts +40 -0
- package/lib/features/layers/symbology/components/MappingRow.js +516 -0
- package/lib/features/layers/symbology/components/NumericInput.d.ts +20 -0
- package/lib/features/layers/symbology/components/NumericInput.js +44 -0
- package/lib/features/layers/symbology/components/ScaleEditor.d.ts +33 -0
- package/lib/features/layers/symbology/components/ScaleEditor.js +221 -0
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ColorRampControls.d.ts +1 -1
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ColorRampControls.js +3 -2
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ColorRampSelector.d.ts +2 -1
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ColorRampSelector.js +6 -1
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ModeSelectRow.d.ts +1 -1
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/RgbaColorPicker.js +39 -9
- package/lib/{dialogs → features/layers}/symbology/components/color_stops/StopRow.d.ts +1 -1
- package/lib/{dialogs → features/layers}/symbology/components/color_stops/StopRow.js +1 -1
- package/lib/features/layers/symbology/grammarToOLLayer.d.ts +27 -0
- package/lib/features/layers/symbology/grammarToOLLayer.js +145 -0
- package/lib/features/layers/symbology/grammarToOLStyle.d.ts +32 -0
- package/lib/features/layers/symbology/grammarToOLStyle.js +467 -0
- package/lib/{dialogs → features/layers}/symbology/hooks/useGetBandInfo.d.ts +1 -1
- package/lib/{dialogs → features/layers}/symbology/hooks/useGetBandInfo.js +1 -1
- package/lib/{dialogs → features/layers}/symbology/hooks/useGetProperties.js +1 -1
- package/lib/{dialogs → features/layers}/symbology/hooks/useGetSymbology.js +4 -2
- package/lib/features/layers/symbology/styleBuilder.d.ts +21 -0
- package/lib/features/layers/symbology/styleBuilder.js +145 -0
- package/lib/{dialogs → features/layers}/symbology/symbologyDialog.d.ts +1 -1
- package/lib/{dialogs → features/layers}/symbology/symbologyDialog.js +12 -12
- package/lib/{dialogs → features/layers}/symbology/symbologyUtils.d.ts +18 -10
- package/lib/{dialogs → features/layers}/symbology/symbologyUtils.js +0 -84
- package/lib/{panelview/objectproperties.d.ts → features/objectproperties/index.d.ts} +1 -1
- package/lib/{panelview/objectproperties.js → features/objectproperties/index.js} +5 -10
- package/lib/{dialogs → features/processing}/ProcessingFormDialog.d.ts +1 -1
- package/lib/{dialogs → features/processing}/ProcessingFormDialog.js +28 -14
- package/lib/features/processing/forms/MapExtentToggle.d.ts +13 -0
- package/lib/features/processing/forms/MapExtentToggle.js +20 -0
- package/lib/features/processing/forms/clipRasterByExtentForm.d.ts +10 -0
- package/lib/features/processing/forms/clipRasterByExtentForm.js +99 -0
- package/lib/{formbuilder/objectform/process → features/processing/forms}/dissolveProcessForm.js +5 -5
- package/lib/{formbuilder/objectform → features/processing/forms}/processingForm.d.ts +1 -1
- package/lib/{formbuilder/objectform → features/processing/forms}/processingForm.js +6 -6
- package/lib/features/processing/forms/rasterizeForm.d.ts +10 -0
- package/lib/features/processing/forms/rasterizeForm.js +75 -0
- package/lib/features/processing/forms/useMapExtent.d.ts +22 -0
- package/lib/features/processing/forms/useMapExtent.js +57 -0
- package/lib/{processing → features/processing}/index.d.ts +19 -2
- package/lib/features/processing/index.js +1246 -0
- package/lib/{processing → features/processing}/processingCommands.d.ts +1 -1
- package/lib/features/processing/processingCommands.js +168 -0
- package/lib/features/processing/serverProcessing.d.ts +51 -0
- package/lib/features/processing/serverProcessing.js +99 -0
- package/lib/{stacBrowser → features/stac-browser}/components/StacPanel.js +2 -2
- package/lib/{stacBrowser → features/stac-browser}/components/filter-extension/QueryableComboBox.js +5 -5
- package/lib/{stacBrowser → features/stac-browser}/components/filter-extension/QueryableRow.js +1 -1
- package/lib/{stacBrowser → features/stac-browser}/components/filter-extension/StacFilterExtensionPanel.js +2 -2
- package/lib/{stacBrowser → features/stac-browser}/components/filter-extension/StacQueryableFilters.js +1 -1
- package/lib/{stacBrowser → features/stac-browser}/components/geodes/StacFilterSection.js +3 -3
- package/lib/{stacBrowser → features/stac-browser}/components/shared/StacPanelResults.js +3 -3
- package/lib/{stacBrowser → features/stac-browser}/components/shared/StacSpatialExtent.js +1 -1
- package/lib/{stacBrowser → features/stac-browser}/components/shared/StacTemporalExtent.js +1 -1
- package/lib/{stacBrowser → features/stac-browser}/context/StacResultsContext.js +2 -2
- package/lib/{stacBrowser → features/stac-browser}/hooks/useGeodesSearch.js +2 -2
- package/lib/{stacBrowser → features/stac-browser}/hooks/useStacFilterExtension.js +3 -3
- package/lib/{stacBrowser → features/stac-browser}/hooks/useStacSearch.js +1 -1
- package/lib/features/stac-browser/types/types.js +1 -0
- package/lib/{panelview/story-maps → features/story}/SpectaPanel.d.ts +4 -1
- package/lib/{panelview/story-maps → features/story}/SpectaPanel.js +3 -4
- package/lib/{panelview/story-maps → features/story}/StoryEditorPanel.js +1 -1
- package/lib/{panelview/story-maps → features/story}/StoryViewerPanel.d.ts +12 -11
- package/lib/features/story/StoryViewerPanel.js +64 -0
- package/lib/features/story/__tests__/fixtures/listStoryTestItems.d.ts +9 -0
- package/lib/features/story/__tests__/fixtures/listStoryTestItems.js +21 -0
- package/lib/features/story/components/ListStoryMapOverlayPanel.d.ts +10 -0
- package/lib/features/story/components/ListStoryMapOverlayPanel.js +11 -0
- package/lib/features/story/components/ListStoryMarkdownMeasurePane.d.ts +11 -0
- package/lib/features/story/components/ListStoryMarkdownMeasurePane.js +55 -0
- package/lib/features/story/components/ListStoryOverlayMarkdown.d.ts +15 -0
- package/lib/features/story/components/ListStoryOverlayMarkdown.js +93 -0
- package/lib/features/story/components/ListStoryStageOverlay.d.ts +12 -0
- package/lib/features/story/components/ListStoryStageOverlay.js +132 -0
- package/lib/features/story/components/ListStoryVirtualScrollTrack.d.ts +6 -0
- package/lib/features/story/components/ListStoryVirtualScrollTrack.js +7 -0
- package/lib/{panelview/story-maps → features/story}/components/SpectaDesktopView.d.ts +4 -2
- package/lib/features/story/components/SpectaDesktopView.js +67 -0
- package/lib/{panelview/story-maps → features/story}/components/SpectaMobileView.d.ts +2 -4
- package/lib/{panelview/story-maps → features/story}/components/SpectaMobileView.js +3 -3
- package/lib/features/story/components/SpectaSingleModeContent.d.ts +18 -0
- package/lib/features/story/components/SpectaSingleModeContent.js +8 -0
- package/lib/features/story/context/ListStoryScrollTrackContext.d.ts +15 -0
- package/lib/features/story/context/ListStoryScrollTrackContext.js +142 -0
- package/lib/features/story/hooks/useCurrentSegmentIndex.d.ts +3 -0
- package/lib/features/story/hooks/useCurrentSegmentIndex.js +17 -0
- package/lib/features/story/hooks/useListStoryScroll.d.ts +15 -0
- package/lib/features/story/hooks/useListStoryScroll.js +107 -0
- package/lib/features/story/hooks/useQueuedMarkdownHeightMeasure.d.ts +19 -0
- package/lib/features/story/hooks/useQueuedMarkdownHeightMeasure.js +56 -0
- package/lib/features/story/hooks/useStoryImagePreload.d.ts +1 -0
- package/lib/features/story/hooks/useStoryImagePreload.js +24 -0
- package/lib/{panelview/story-maps → features/story}/hooks/useStoryMap.d.ts +2 -7
- package/lib/{panelview/story-maps → features/story}/hooks/useStoryMap.js +20 -44
- package/lib/features/story/hooks/useStoryScrollState.d.ts +21 -0
- package/lib/features/story/hooks/useStoryScrollState.js +39 -0
- package/lib/features/story/hooks/useStorySegmentSync.d.ts +8 -0
- package/lib/features/story/hooks/useStorySegmentSync.js +51 -0
- package/lib/features/story/types/types.d.ts +38 -0
- package/lib/features/story/types/types.js +1 -0
- package/lib/features/story/utils/computeListStoryScrollState.d.ts +12 -0
- package/lib/features/story/utils/computeListStoryScrollState.js +70 -0
- package/lib/features/story/utils/listStoryMeasureQueue.d.ts +11 -0
- package/lib/features/story/utils/listStoryMeasureQueue.js +14 -0
- package/lib/features/story/utils/listStoryScrollTrack.d.ts +17 -0
- package/lib/features/story/utils/listStoryScrollTrack.js +72 -0
- package/lib/features/story/utils/spectaPresentation.d.ts +9 -0
- package/lib/features/story/utils/spectaPresentation.js +37 -0
- package/lib/features/story/utils/storySegmentViewItems.d.ts +5 -0
- package/lib/features/story/utils/storySegmentViewItems.js +30 -0
- package/lib/index.d.ts +11 -9
- package/lib/index.js +11 -9
- package/lib/keybindings.json +5 -0
- package/lib/mainview/OpenEOTileLayer.d.ts +49 -0
- package/lib/mainview/OpenEOTileLayer.js +179 -0
- package/lib/mainview/TemporalSlider.js +11 -9
- package/lib/mainview/geoJsonFeaturePatch.d.ts +9 -0
- package/lib/mainview/geoJsonFeaturePatch.js +43 -0
- package/lib/mainview/mainView.d.ts +90 -7
- package/lib/mainview/mainView.js +1196 -586
- package/lib/mainview/mainviewwidget.d.ts +5 -1
- package/lib/mainview/mainviewwidget.js +4 -2
- package/lib/shared/components/Button.d.ts +1 -1
- package/lib/shared/components/DropdownMenu.d.ts +1 -0
- package/lib/shared/components/DropdownMenu.js +3 -2
- package/lib/shared/components/NativeSelect.d.ts +8 -0
- package/lib/shared/components/NativeSelect.js +29 -0
- package/lib/shared/components/Tabs.d.ts +3 -3
- package/lib/shared/components/Tabs.js +5 -5
- package/lib/{formbuilder → shared/formbuilder}/creationform.js +71 -4
- package/lib/{formbuilder → shared/formbuilder}/editform.js +1 -1
- package/lib/{formbuilder → shared/formbuilder}/formselectors.d.ts +2 -2
- package/lib/{formbuilder → shared/formbuilder}/formselectors.js +10 -4
- package/lib/shared/formbuilder/index.d.ts +4 -0
- package/lib/shared/formbuilder/index.js +4 -0
- package/lib/{formbuilder → shared/formbuilder}/objectform/SchemaForm.d.ts +1 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/StoryEditorForm.d.ts +1 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/StoryEditorForm.js +1 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/components/LayerSelect.js +1 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/components/SegmentFormSymbology.js +4 -4
- package/lib/{formbuilder → shared/formbuilder}/objectform/components/SourcePropertiesField.js +1 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/components/StorySegmentReset.js +1 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/components/WmsTileSourceUrlInput.js +4 -4
- package/lib/{formbuilder → shared/formbuilder}/objectform/fileselectorwidget.js +8 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/schemaUtils.d.ts +3 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/schemaUtils.js +11 -0
- package/lib/{formbuilder → shared/formbuilder}/objectform/useSchemaFormState.d.ts +1 -1
- package/lib/{formbuilder → shared/formbuilder}/objectform/useSchemaFormState.js +1 -1
- package/lib/{icons.d.ts → shared/icons.d.ts} +2 -0
- package/lib/{icons.js → shared/icons.js} +28 -18
- package/lib/tools.d.ts +2 -0
- package/lib/tools.js +138 -4
- package/lib/types.d.ts +6 -1
- package/lib/types.js +6 -1
- package/lib/{menus.js → workspace/menus.js} +10 -2
- package/lib/workspace/panels/components/TabbedPanel.d.ts +17 -0
- package/lib/workspace/panels/components/TabbedPanel.js +19 -0
- package/lib/{panelview → workspace/panels}/components/layers.js +63 -18
- package/lib/workspace/panels/components/legendItem.js +680 -0
- package/lib/workspace/panels/hooks/useLayerTree.d.ts +19 -0
- package/lib/workspace/panels/hooks/useLayerTree.js +103 -0
- package/lib/workspace/panels/hooks/useRightPanelOptions.d.ts +27 -0
- package/lib/workspace/panels/hooks/useRightPanelOptions.js +72 -0
- package/lib/workspace/panels/hooks/useUIState.d.ts +2 -0
- package/lib/workspace/panels/hooks/useUIState.js +25 -0
- package/lib/{panelview → workspace/panels}/index.d.ts +1 -1
- package/lib/{panelview → workspace/panels}/index.js +1 -1
- package/lib/{panelview → workspace/panels}/leftpanel.d.ts +1 -1
- package/lib/workspace/panels/leftpanel.js +70 -0
- package/lib/{panelview/rightpanel.d.ts → workspace/panels/mergedpanel.d.ts} +6 -5
- package/lib/workspace/panels/mergedpanel.js +166 -0
- package/lib/workspace/panels/rightpanel.d.ts +25 -0
- package/lib/{panelview → workspace/panels}/rightpanel.js +53 -63
- package/lib/{statusbar → workspace/statusbar}/StatusBar.js +5 -4
- package/lib/{toolbar → workspace/toolbar}/widget.d.ts +2 -0
- package/lib/{toolbar → workspace/toolbar}/widget.js +33 -5
- package/lib/{widget.d.ts → workspace/widget.d.ts} +7 -5
- package/lib/{widget.js → workspace/widget.js} +16 -7
- package/package.json +16 -4
- package/style/base.css +109 -1
- package/style/icons/geopackage.svg +95 -0
- package/style/icons/pencil_solid.svg +7 -0
- package/style/identify.css +95 -0
- package/style/layerBrowser.css +28 -0
- package/style/leftPanel.css +25 -0
- package/style/shared/button.css +12 -0
- package/style/shared/dropdownMenu.css +9 -0
- package/style/shared/nativeSelect.css +75 -0
- package/style/shared/tabs.css +1 -1
- package/style/spectaProgressBar.css +0 -1
- package/style/storyPanel.css +140 -9
- package/style/storySpectaArticleOverlay.css +129 -0
- package/style/symbologyDialog.css +285 -27
- package/lib/dialogs/symbology/tiff_layer/TiffRendering.d.ts +0 -4
- package/lib/dialogs/symbology/tiff_layer/TiffRendering.js +0 -42
- package/lib/dialogs/symbology/tiff_layer/components/BandRow.d.ts +0 -23
- package/lib/dialogs/symbology/tiff_layer/components/BandRow.js +0 -59
- package/lib/dialogs/symbology/tiff_layer/types/MultibandColor.d.ts +0 -4
- package/lib/dialogs/symbology/tiff_layer/types/MultibandColor.js +0 -92
- package/lib/dialogs/symbology/tiff_layer/types/SingleBandPseudoColor.d.ts +0 -5
- package/lib/dialogs/symbology/tiff_layer/types/SingleBandPseudoColor.js +0 -313
- package/lib/dialogs/symbology/vector_layer/VectorRendering.d.ts +0 -4
- package/lib/dialogs/symbology/vector_layer/VectorRendering.js +0 -112
- package/lib/dialogs/symbology/vector_layer/components/ValueSelect.d.ts +0 -8
- package/lib/dialogs/symbology/vector_layer/components/ValueSelect.js +0 -9
- package/lib/dialogs/symbology/vector_layer/types/Canonical.d.ts +0 -4
- package/lib/dialogs/symbology/vector_layer/types/Canonical.js +0 -130
- package/lib/dialogs/symbology/vector_layer/types/Categorized.d.ts +0 -4
- package/lib/dialogs/symbology/vector_layer/types/Categorized.js +0 -243
- package/lib/dialogs/symbology/vector_layer/types/Graduated.d.ts +0 -4
- package/lib/dialogs/symbology/vector_layer/types/Graduated.js +0 -362
- package/lib/dialogs/symbology/vector_layer/types/SimpleSymbol.d.ts +0 -4
- package/lib/dialogs/symbology/vector_layer/types/SimpleSymbol.js +0 -120
- package/lib/formbuilder/index.d.ts +0 -4
- package/lib/formbuilder/index.js +0 -4
- package/lib/formbuilder/objectform/layer/storySegmentLayerForm.js +0 -95
- package/lib/formbuilder/objectform/layer/webGlLayerForm.d.ts +0 -3
- package/lib/formbuilder/objectform/process/index.d.ts +0 -1
- package/lib/formbuilder/objectform/process/index.js +0 -1
- package/lib/panelview/components/legendItem.js +0 -210
- package/lib/panelview/identify-panel/IdentifyPanel.js +0 -102
- package/lib/panelview/leftpanel.js +0 -139
- package/lib/panelview/story-maps/StoryViewerPanel.js +0 -116
- package/lib/panelview/story-maps/components/SpectaDesktopView.js +0 -49
- package/lib/processing/index.js +0 -200
- package/lib/processing/processingCommands.js +0 -67
- /package/lib/{panelview/annotationPanel.d.ts → features/annotations/AnnotationsPanel.d.ts} +0 -0
- /package/lib/{annotations → features/annotations}/components/Annotation.d.ts +0 -0
- /package/lib/{annotations → features/annotations}/components/Annotation.js +0 -0
- /package/lib/{annotations → features/annotations}/components/AnnotationFloater.d.ts +0 -0
- /package/lib/{annotations → features/annotations}/components/AnnotationFloater.js +0 -0
- /package/lib/{annotations → features/annotations}/components/Message.d.ts +0 -0
- /package/lib/{annotations → features/annotations}/components/Message.js +0 -0
- /package/lib/{annotations → features/annotations}/model.d.ts +0 -0
- /package/lib/{annotations → features/annotations}/model.js +0 -0
- /package/lib/{console → features/console}/consoleview.d.ts +0 -0
- /package/lib/{console → features/console}/index.d.ts +0 -0
- /package/lib/{console → features/console}/index.js +0 -0
- /package/lib/{panelview/filter-panel → features/filter}/Filter.d.ts +0 -0
- /package/lib/{stacBrowser/types/types.js → features/identify/types/editorTypes.js} +0 -0
- /package/lib/{dialogs/layerBrowserDialog.d.ts → features/layer-browser/index.d.ts} +0 -0
- /package/lib/{formbuilder/objectform → features/layers/forms}/layer/heatmapLayerForm.d.ts +0 -0
- /package/lib/{formbuilder/objectform → features/layers/forms}/layer/hillshadeLayerForm.d.ts +0 -0
- /package/lib/{formbuilder/objectform → features/layers/forms}/layer/storySegmentLayerForm.d.ts +0 -0
- /package/lib/{formbuilder/objectform → features/layers/forms}/layer/vectorlayerform.d.ts +0 -0
- /package/lib/{formbuilder/objectform → features/layers/forms}/source/geojsonsource.d.ts +0 -0
- /package/lib/{formbuilder/objectform → features/layers/forms}/source/geotiffsource.d.ts +0 -0
- /package/lib/{formbuilder/objectform → features/layers/forms}/source/pathbasedsource.d.ts +0 -0
- /package/lib/{formbuilder/objectform → features/layers/forms}/source/tilesourceform.d.ts +0 -0
- /package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ColorRampSelectorEntry.d.ts +0 -0
- /package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ColorRampSelectorEntry.js +0 -0
- /package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ModeSelectRow.js +0 -0
- /package/lib/{dialogs → features/layers}/symbology/components/color_ramp/RgbaColorPicker.d.ts +0 -0
- /package/lib/{dialogs → features/layers}/symbology/components/color_ramp/cmocean.json +0 -0
- /package/lib/{dialogs → features/layers}/symbology/components/color_stops/StopContainer.d.ts +0 -0
- /package/lib/{dialogs → features/layers}/symbology/components/color_stops/StopContainer.js +0 -0
- /package/lib/{dialogs → features/layers}/symbology/hooks/useEffectiveSymbologyParams.d.ts +0 -0
- /package/lib/{dialogs → features/layers}/symbology/hooks/useEffectiveSymbologyParams.js +0 -0
- /package/lib/{dialogs → features/layers}/symbology/hooks/useGetProperties.d.ts +0 -0
- /package/lib/{dialogs → features/layers}/symbology/hooks/useGetSymbology.d.ts +0 -0
- /package/lib/{dialogs → features/layers}/symbology/hooks/useOkSignal.d.ts +0 -0
- /package/lib/{dialogs → features/layers}/symbology/hooks/useOkSignal.js +0 -0
- /package/lib/{formbuilder/objectform/process → features/processing/forms}/dissolveProcessForm.d.ts +0 -0
- /package/lib/{processing → features/processing}/processingFormToParam.d.ts +0 -0
- /package/lib/{processing → features/processing}/processingFormToParam.js +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/StacPanel.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/filter-extension/QueryableComboBox.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/filter-extension/QueryableRow.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/filter-extension/StacFilterExtensionPanel.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/filter-extension/StacQueryableFilters.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/geodes/StacFilterSection.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/geodes/StacGeodesFilterPanel.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/geodes/StacGeodesFilterPanel.js +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/shared/StacPanelResults.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/shared/StacSpatialExtent.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/components/shared/StacTemporalExtent.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/constants.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/constants.js +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/context/StacResultsContext.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/hooks/useGeodesSearch.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/hooks/useStacFilterExtension.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/hooks/useStacSearch.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/index.d.ts +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/index.js +0 -0
- /package/lib/{stacBrowser → features/stac-browser}/types/types.d.ts +0 -0
- /package/lib/{panelview/story-maps → features/story}/StoryEditorPanel.d.ts +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/PreviewModeSwitch.d.ts +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/PreviewModeSwitch.js +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StoryContentSection.d.ts +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StoryContentSection.js +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StoryImageSection.d.ts +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StoryImageSection.js +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StoryNavBar.d.ts +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StoryNavBar.js +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StorySubtitleSection.d.ts +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StorySubtitleSection.js +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StoryTitleSection.d.ts +0 -0
- /package/lib/{panelview/story-maps → features/story}/components/StoryTitleSection.js +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/creationform.d.ts +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/editform.d.ts +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/SchemaForm.js +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/components/LayerSelect.d.ts +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/components/OpacitySlider.d.ts +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/components/OpacitySlider.js +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/components/SegmentFormSymbology.d.ts +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/components/SourcePropertiesField.d.ts +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/components/StorySegmentReset.d.ts +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/components/WmsTileSourceUrlInput.d.ts +0 -0
- /package/lib/{formbuilder → shared/formbuilder}/objectform/fileselectorwidget.d.ts +0 -0
- /package/lib/{store.d.ts → shared/store.d.ts} +0 -0
- /package/lib/{store.js → shared/store.js} +0 -0
- /package/lib/{menus.d.ts → workspace/menus.d.ts} +0 -0
- /package/lib/{panelview → workspace/panels}/components/layers.d.ts +0 -0
- /package/lib/{panelview → workspace/panels}/components/legendItem.d.ts +0 -0
- /package/lib/{panelview → workspace/panels}/header.d.ts +0 -0
- /package/lib/{panelview → workspace/panels}/header.js +0 -0
- /package/lib/{statusbar → workspace/statusbar}/SpectaPresentationProgressBar.d.ts +0 -0
- /package/lib/{statusbar → workspace/statusbar}/SpectaPresentationProgressBar.js +0 -0
- /package/lib/{statusbar → workspace/statusbar}/StatusBar.d.ts +0 -0
- /package/lib/{toolbar → workspace/toolbar}/index.d.ts +0 -0
- /package/lib/{toolbar → workspace/toolbar}/index.js +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* Specta article typography for list story stage overlay markdown (subset of specta/style/article.css). */
|
|
2
|
+
|
|
3
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget {
|
|
4
|
+
--jp-content-font-family: 'Source Serif 4', Georgia, serif;
|
|
5
|
+
--jp-code-font-family:
|
|
6
|
+
'Source Code Pro', Menlo, Monaco, 'Courier New', Courier, monospace;
|
|
7
|
+
--jp-code-font-size: 14px;
|
|
8
|
+
font-family: var(--jp-content-font-family);
|
|
9
|
+
font-size: 1rem;
|
|
10
|
+
line-height: 1.6;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget h1 {
|
|
14
|
+
font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
15
|
+
letter-spacing: -0.014em;
|
|
16
|
+
line-height: 38px;
|
|
17
|
+
margin-bottom: 24px;
|
|
18
|
+
margin-top: 1.5em !important;
|
|
19
|
+
font-size: 32px;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget h2 {
|
|
24
|
+
font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
25
|
+
margin-top: 1em !important;
|
|
26
|
+
font-size: 1.6em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget h3 {
|
|
30
|
+
margin-top: 1em !important;
|
|
31
|
+
font-size: 1.3em;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget h4 {
|
|
35
|
+
margin-top: 1em;
|
|
36
|
+
font-size: 1.2em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget h5 {
|
|
40
|
+
margin-top: 1em;
|
|
41
|
+
font-size: 1.1em;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget h6 {
|
|
45
|
+
margin-top: 1em;
|
|
46
|
+
font-size: 1em;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget p {
|
|
50
|
+
font-size: 1rem;
|
|
51
|
+
line-height: 1.6;
|
|
52
|
+
margin-bottom: 1.2em;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget a {
|
|
56
|
+
color: #007bff;
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget a:hover {
|
|
61
|
+
text-decoration: underline;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget pre {
|
|
65
|
+
background-color: var(--jp-cell-editor-background) !important;
|
|
66
|
+
padding: 32px !important;
|
|
67
|
+
border-radius: 4px !important;
|
|
68
|
+
border: 1px solid var(--jp-cell-editor-border-color) !important;
|
|
69
|
+
overflow-x: auto;
|
|
70
|
+
margin-top: 56px !important;
|
|
71
|
+
font-size: 0.85em !important;
|
|
72
|
+
line-height: 1.4 !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget pre code {
|
|
76
|
+
color: #222;
|
|
77
|
+
background-color: transparent !important;
|
|
78
|
+
padding: 0;
|
|
79
|
+
font-size: 14px !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget code {
|
|
83
|
+
background-color: #e9ecef;
|
|
84
|
+
padding: 0.2em 0.4em;
|
|
85
|
+
border-radius: 4px;
|
|
86
|
+
font-size: 14px !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget img {
|
|
90
|
+
max-width: 100%;
|
|
91
|
+
height: auto;
|
|
92
|
+
display: block;
|
|
93
|
+
margin: 1.5em auto;
|
|
94
|
+
border-radius: 4px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget blockquote {
|
|
98
|
+
border-left: 3px solid transparent;
|
|
99
|
+
padding-left: 16px;
|
|
100
|
+
margin: 1.2em 0;
|
|
101
|
+
font-style: italic;
|
|
102
|
+
color: var(--jp-ui-font-color2);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget ul,
|
|
106
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget ol {
|
|
107
|
+
margin-bottom: 1.2em;
|
|
108
|
+
padding-left: 1.5em;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.jgis-story-stage-overlay-content .specta-article-host-widget li {
|
|
112
|
+
margin-bottom: 0.4em;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.jgis-story-stage-overlay-content
|
|
116
|
+
.specta-article-host-widget
|
|
117
|
+
.jp-MarkdownOutput {
|
|
118
|
+
padding-left: 0 !important;
|
|
119
|
+
padding-right: 0 !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.jgis-story-overlay-markdown-plain {
|
|
123
|
+
margin: 0;
|
|
124
|
+
white-space: pre-wrap;
|
|
125
|
+
word-break: break-word;
|
|
126
|
+
font-family: var(--jp-content-font-family, var(--jp-ui-font-family1));
|
|
127
|
+
font-size: 1rem;
|
|
128
|
+
line-height: 1.6;
|
|
129
|
+
}
|
|
@@ -14,6 +14,18 @@ select option {
|
|
|
14
14
|
max-height: 80%;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
@media (max-width: 768px) {
|
|
18
|
+
.jp-gis-symbology-dialog .jp-Dialog-content {
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
max-height: 90%;
|
|
22
|
+
margin: 0;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
padding-left: 8px;
|
|
25
|
+
padding-right: 8px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
17
29
|
.jp-gis-symbology-row {
|
|
18
30
|
display: flex;
|
|
19
31
|
justify-content: space-between;
|
|
@@ -53,12 +65,6 @@ select option {
|
|
|
53
65
|
max-width: 25%;
|
|
54
66
|
}
|
|
55
67
|
|
|
56
|
-
.jp-gis-band-container {
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-direction: column;
|
|
59
|
-
gap: 13px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
68
|
.jp-gis-layer-symbology-container {
|
|
63
69
|
display: flex;
|
|
64
70
|
flex-direction: column;
|
|
@@ -121,27 +127,6 @@ select option {
|
|
|
121
127
|
padding-top: 0.5rem;
|
|
122
128
|
}
|
|
123
129
|
|
|
124
|
-
.jp-gis-band-info-loading-container {
|
|
125
|
-
display: flex;
|
|
126
|
-
justify-content: center;
|
|
127
|
-
align-items: center;
|
|
128
|
-
gap: 2rem;
|
|
129
|
-
margin: auto;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.jp-gis-band-info-loading-container > span {
|
|
133
|
-
font-size: 1rem;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@keyframes spin {
|
|
137
|
-
from {
|
|
138
|
-
transform: rotate(0deg);
|
|
139
|
-
}
|
|
140
|
-
to {
|
|
141
|
-
transform: rotate(360deg);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
130
|
.jp-gis-color-ramp-dropdown {
|
|
146
131
|
display: flex;
|
|
147
132
|
flex-direction: column;
|
|
@@ -263,6 +248,279 @@ select option {
|
|
|
263
248
|
-webkit-appearance: none;
|
|
264
249
|
}
|
|
265
250
|
|
|
251
|
+
/* ---------------------------------------------------------------------------
|
|
252
|
+
* Grammar layer sections
|
|
253
|
+
* --------------------------------------------------------------------------*/
|
|
254
|
+
|
|
255
|
+
.jp-gis-grammar-layer-section {
|
|
256
|
+
border: 1px solid var(--jp-border-color1);
|
|
257
|
+
border-radius: 4px;
|
|
258
|
+
margin-bottom: 8px;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.jp-gis-grammar-layer-header {
|
|
263
|
+
display: flex;
|
|
264
|
+
align-items: center;
|
|
265
|
+
gap: 6px;
|
|
266
|
+
padding: 4px 6px;
|
|
267
|
+
background: var(--jp-layout-color2);
|
|
268
|
+
border-bottom: 1px solid var(--jp-border-color2);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.jp-gis-grammar-layer-label {
|
|
272
|
+
font-size: var(--jp-ui-font-size1);
|
|
273
|
+
font-weight: 600;
|
|
274
|
+
color: var(--jp-ui-font-color1);
|
|
275
|
+
flex: 1 0 auto;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.jp-gis-grammar-transform-row {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
gap: 6px;
|
|
282
|
+
padding: 4px 6px;
|
|
283
|
+
background: var(--jp-layout-color2);
|
|
284
|
+
border-bottom: 1px solid var(--jp-border-color2);
|
|
285
|
+
font-size: var(--jp-ui-font-size1);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.jp-gis-grammar-transform-row label {
|
|
289
|
+
color: var(--jp-ui-font-color2);
|
|
290
|
+
white-space: nowrap;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* ---------------------------------------------------------------------------
|
|
294
|
+
* Grammar rule rows
|
|
295
|
+
* --------------------------------------------------------------------------*/
|
|
296
|
+
|
|
297
|
+
.jp-gis-grammar-rule {
|
|
298
|
+
border: 1px solid var(--jp-border-color2);
|
|
299
|
+
border-radius: 4px;
|
|
300
|
+
overflow: hidden;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* 6-column grid: field | scheme | preview | arrow | channel | × */
|
|
304
|
+
.jp-gis-grammar-rule-grid {
|
|
305
|
+
display: grid;
|
|
306
|
+
grid-template-columns: max-content max-content 1fr auto max-content auto;
|
|
307
|
+
align-items: center;
|
|
308
|
+
column-gap: 4px;
|
|
309
|
+
row-gap: 3px;
|
|
310
|
+
padding: 4px 6px;
|
|
311
|
+
position: relative;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.jp-gis-grammar-rule-grid .jp-gis-grammar-channel-select {
|
|
315
|
+
width: 100%;
|
|
316
|
+
min-width: 0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.jp-gis-grammar-rule-grid .jp-gis-grammar-channel-select .jgis-combobox-button,
|
|
320
|
+
.jp-gis-grammar-rule-grid .jp-gis-grammar-channel-select .jgis-native-select {
|
|
321
|
+
width: 100%;
|
|
322
|
+
box-sizing: border-box;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@media (max-width: 768px) {
|
|
326
|
+
.jp-gis-grammar-rule-grid {
|
|
327
|
+
grid-template-columns: 1fr 1fr auto;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.jp-gis-grammar-rule-editor {
|
|
332
|
+
border-top: 1px solid var(--jp-border-color2);
|
|
333
|
+
padding: 8px;
|
|
334
|
+
display: flex;
|
|
335
|
+
flex-direction: column;
|
|
336
|
+
gap: 8px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/* Preview button spans all channel rows — stretches vertically */
|
|
340
|
+
.jp-gis-grammar-preview-btn {
|
|
341
|
+
background: none;
|
|
342
|
+
border: 1px solid var(--jp-border-color2);
|
|
343
|
+
border-radius: 4px;
|
|
344
|
+
padding: 4px 8px;
|
|
345
|
+
cursor: pointer;
|
|
346
|
+
display: flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
align-self: stretch;
|
|
349
|
+
justify-content: flex-start;
|
|
350
|
+
gap: 6px;
|
|
351
|
+
min-width: 0;
|
|
352
|
+
min-height: 36px;
|
|
353
|
+
overflow: hidden;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.jp-gis-scale-preview {
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
gap: 6px;
|
|
360
|
+
font-size: var(--jp-ui-font-size1);
|
|
361
|
+
min-height: 16px;
|
|
362
|
+
overflow: hidden;
|
|
363
|
+
width: 100%;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.jp-gis-scale-meta {
|
|
367
|
+
font-size: var(--jp-ui-font-size1);
|
|
368
|
+
color: var(--jp-ui-font-color2);
|
|
369
|
+
overflow: hidden;
|
|
370
|
+
text-overflow: ellipsis;
|
|
371
|
+
white-space: nowrap;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.jp-gis-scale-swatch {
|
|
375
|
+
flex-shrink: 0;
|
|
376
|
+
width: 18px;
|
|
377
|
+
height: 18px;
|
|
378
|
+
border-radius: 3px;
|
|
379
|
+
border: 1px solid var(--jp-border-color1);
|
|
380
|
+
display: inline-block;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.jp-gis-scale-dot {
|
|
384
|
+
flex-shrink: 0;
|
|
385
|
+
width: 10px;
|
|
386
|
+
height: 10px;
|
|
387
|
+
border-radius: 50%;
|
|
388
|
+
display: inline-block;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.jp-gis-grammar-arrow {
|
|
392
|
+
color: var(--jp-ui-font-color2);
|
|
393
|
+
text-align: center;
|
|
394
|
+
padding: 0 2px;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.jp-gis-grammar-delete-btn {
|
|
398
|
+
background: none;
|
|
399
|
+
border: none;
|
|
400
|
+
cursor: pointer;
|
|
401
|
+
color: var(--jp-ui-font-color2);
|
|
402
|
+
padding: 0 4px;
|
|
403
|
+
font-size: 16px;
|
|
404
|
+
line-height: 1;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* When clause */
|
|
408
|
+
|
|
409
|
+
.jp-gis-grammar-when-row {
|
|
410
|
+
display: flex;
|
|
411
|
+
align-items: center;
|
|
412
|
+
flex-wrap: wrap;
|
|
413
|
+
gap: 4px;
|
|
414
|
+
padding: 3px 6px 4px;
|
|
415
|
+
border-top: 1px solid var(--jp-border-color3);
|
|
416
|
+
background: var(--jp-layout-color1);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.jp-gis-grammar-when-label {
|
|
420
|
+
font-size: var(--jp-ui-font-size0);
|
|
421
|
+
color: var(--jp-ui-font-color2);
|
|
422
|
+
font-style: italic;
|
|
423
|
+
flex-shrink: 0;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.jp-gis-grammar-when-op {
|
|
427
|
+
height: 20px;
|
|
428
|
+
padding: 0 4px;
|
|
429
|
+
font-size: var(--jp-ui-font-size0);
|
|
430
|
+
border-radius: 10px;
|
|
431
|
+
border: 1px solid var(--jp-border-color2);
|
|
432
|
+
background: var(--jp-layout-color2);
|
|
433
|
+
color: var(--jp-ui-font-color1);
|
|
434
|
+
cursor: pointer;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.jp-gis-grammar-when-chip {
|
|
438
|
+
display: inline-flex;
|
|
439
|
+
align-items: center;
|
|
440
|
+
gap: 2px;
|
|
441
|
+
padding: 1px 6px;
|
|
442
|
+
background: var(--jp-layout-color2);
|
|
443
|
+
border: 1px solid var(--jp-border-color2);
|
|
444
|
+
border-radius: 10px;
|
|
445
|
+
font-size: var(--jp-ui-font-size0);
|
|
446
|
+
white-space: nowrap;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.jp-gis-grammar-when-chip button {
|
|
450
|
+
background: none;
|
|
451
|
+
border: none;
|
|
452
|
+
padding: 0 0 0 2px;
|
|
453
|
+
cursor: pointer;
|
|
454
|
+
line-height: 1;
|
|
455
|
+
color: var(--jp-ui-font-color2);
|
|
456
|
+
font-size: 11px;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.jp-gis-grammar-when-add-btn {
|
|
460
|
+
background: none;
|
|
461
|
+
border: 1px dashed var(--jp-border-color2);
|
|
462
|
+
border-radius: 10px;
|
|
463
|
+
padding: 1px 8px;
|
|
464
|
+
cursor: pointer;
|
|
465
|
+
font-size: var(--jp-ui-font-size0);
|
|
466
|
+
color: var(--jp-ui-font-color2);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.jp-gis-grammar-when-add-btn:hover {
|
|
470
|
+
border-color: var(--jp-brand-color1);
|
|
471
|
+
color: var(--jp-brand-color1);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.jp-gis-grammar-when-form {
|
|
475
|
+
display: inline-flex;
|
|
476
|
+
align-items: center;
|
|
477
|
+
gap: 4px;
|
|
478
|
+
flex-wrap: nowrap;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.jp-gis-grammar-when-form .jgis-native-select {
|
|
482
|
+
flex: 0 0 auto;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.jp-gis-grammar-when-cancel {
|
|
486
|
+
background: none;
|
|
487
|
+
border: 1px solid var(--jp-border-color2);
|
|
488
|
+
border-radius: 3px;
|
|
489
|
+
padding: 1px 5px;
|
|
490
|
+
cursor: pointer;
|
|
491
|
+
font-size: var(--jp-ui-font-size0);
|
|
492
|
+
color: var(--jp-ui-font-color1);
|
|
493
|
+
line-height: 1.4;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.jgis-button.jp-gis-grammar-when-form-cancel {
|
|
497
|
+
color: var(--jp-error-color0);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/* Domain min/max pair inside a symbology row */
|
|
501
|
+
.jp-gis-domain-inputs {
|
|
502
|
+
display: flex;
|
|
503
|
+
gap: 4px;
|
|
504
|
+
flex: 1 0 50%;
|
|
505
|
+
max-width: 50%;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
@media (max-width: 768px) {
|
|
509
|
+
.jp-gis-symbology-row {
|
|
510
|
+
flex-wrap: wrap;
|
|
511
|
+
gap: 0.5rem;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.jp-gis-symbology-row > .jp-select-wrapper,
|
|
515
|
+
.jp-gis-symbology-row > .jp-mod-styled,
|
|
516
|
+
.jp-gis-symbology-row > .jp-gis-rgba-picker,
|
|
517
|
+
.jp-gis-canvas-button-wrapper,
|
|
518
|
+
.jp-gis-domain-inputs {
|
|
519
|
+
flex: 1 0 100%;
|
|
520
|
+
max-width: 100%;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
266
524
|
.jp-gis-transparent-label {
|
|
267
525
|
display: flex;
|
|
268
526
|
align-items: center;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import MultibandColor from './types/MultibandColor';
|
|
3
|
-
import SingleBandPseudoColor from './types/SingleBandPseudoColor';
|
|
4
|
-
const TiffRendering = ({ model, okSignalPromise, layerId, isStorySegmentOverride, segmentId, }) => {
|
|
5
|
-
const renderTypes = ['Singleband Pseudocolor', 'Multiband Color'];
|
|
6
|
-
const [selectedRenderType, setSelectedRenderType] = useState();
|
|
7
|
-
const [componentToRender, setComponentToRender] = useState(null);
|
|
8
|
-
let RenderComponent;
|
|
9
|
-
if (!layerId) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
var _a, _b;
|
|
14
|
-
const layer = model.getLayer(layerId);
|
|
15
|
-
const renderType = (_b = (_a = layer === null || layer === void 0 ? void 0 : layer.parameters) === null || _a === void 0 ? void 0 : _a.symbologyState) === null || _b === void 0 ? void 0 : _b.renderType;
|
|
16
|
-
setSelectedRenderType(renderType !== null && renderType !== void 0 ? renderType : 'Singleband Pseudocolor');
|
|
17
|
-
}, []);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
if (!selectedRenderType) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
switch (selectedRenderType) {
|
|
23
|
-
case 'Singleband Pseudocolor':
|
|
24
|
-
RenderComponent = (React.createElement(SingleBandPseudoColor, { model: model, okSignalPromise: okSignalPromise, layerId: layerId, isStorySegmentOverride: isStorySegmentOverride, segmentId: segmentId }));
|
|
25
|
-
break;
|
|
26
|
-
case 'Multiband Color':
|
|
27
|
-
RenderComponent = (React.createElement(MultibandColor, { model: model, okSignalPromise: okSignalPromise, layerId: layerId, isStorySegmentOverride: isStorySegmentOverride, segmentId: segmentId }));
|
|
28
|
-
break;
|
|
29
|
-
default:
|
|
30
|
-
RenderComponent = React.createElement("div", null, "Render Type Not Implemented (yet)");
|
|
31
|
-
}
|
|
32
|
-
setComponentToRender(RenderComponent);
|
|
33
|
-
}, [selectedRenderType]);
|
|
34
|
-
return (React.createElement(React.Fragment, null,
|
|
35
|
-
React.createElement("div", { className: "jp-gis-symbology-row" },
|
|
36
|
-
React.createElement("label", { htmlFor: "render-type-select" }, "Render Type:"),
|
|
37
|
-
React.createElement("select", { name: "render-type-select", id: "render-type-select", value: selectedRenderType, onChange: event => {
|
|
38
|
-
setSelectedRenderType(event.target.value);
|
|
39
|
-
} }, renderTypes.map((func, funcIndex) => (React.createElement("option", { key: func, value: func }, func))))),
|
|
40
|
-
componentToRender));
|
|
41
|
-
};
|
|
42
|
-
export default TiffRendering;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IBandRow } from "../../hooks/useGetBandInfo";
|
|
3
|
-
interface IBandRowProps {
|
|
4
|
-
label: string;
|
|
5
|
-
index: number;
|
|
6
|
-
bandRow: IBandRow;
|
|
7
|
-
bandRows: IBandRow[];
|
|
8
|
-
setSelectedBand: (band: number) => void;
|
|
9
|
-
setBandRows: (bandRows: IBandRow[]) => void;
|
|
10
|
-
isMultibandColor?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @param label Label displayed in symbology dialog
|
|
15
|
-
* @param index Index of current row in band row data
|
|
16
|
-
* @param bandRow Band from bands array, will be undefined when band is 'unset' in Multiband color
|
|
17
|
-
* @param bandRows Bands array from tiff data
|
|
18
|
-
* @param setSelectedBand Function to set selected band parent
|
|
19
|
-
* @param setBandRows Function to update band rows in parent
|
|
20
|
-
* @param isMultibandColor Used to hide min/max input and add 'Unset' option to drop down menu for MultiBand symbology
|
|
21
|
-
*/
|
|
22
|
-
declare const BandRow: React.FC<IBandRowProps>;
|
|
23
|
-
export default BandRow;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @param label Label displayed in symbology dialog
|
|
5
|
-
* @param index Index of current row in band row data
|
|
6
|
-
* @param bandRow Band from bands array, will be undefined when band is 'unset' in Multiband color
|
|
7
|
-
* @param bandRows Bands array from tiff data
|
|
8
|
-
* @param setSelectedBand Function to set selected band parent
|
|
9
|
-
* @param setBandRows Function to update band rows in parent
|
|
10
|
-
* @param isMultibandColor Used to hide min/max input and add 'Unset' option to drop down menu for MultiBand symbology
|
|
11
|
-
*/
|
|
12
|
-
const BandRow = ({ label, index, bandRow, bandRows, setSelectedBand, setBandRows, isMultibandColor, }) => {
|
|
13
|
-
const [minValue, setMinValue] = useState(bandRow === null || bandRow === void 0 ? void 0 : bandRow.stats.minimum);
|
|
14
|
-
const [maxValue, setMaxValue] = useState(bandRow === null || bandRow === void 0 ? void 0 : bandRow.stats.maximum);
|
|
15
|
-
const handleMinValueChange = (event) => {
|
|
16
|
-
setMinValue(+event.target.value);
|
|
17
|
-
setNewBands();
|
|
18
|
-
};
|
|
19
|
-
const handleMaxValueChange = (event) => {
|
|
20
|
-
setMaxValue(+event.target.value);
|
|
21
|
-
setNewBands();
|
|
22
|
-
};
|
|
23
|
-
const setNewBands = () => {
|
|
24
|
-
const newBandRows = [...bandRows];
|
|
25
|
-
newBandRows[index].stats.minimum = minValue;
|
|
26
|
-
newBandRows[index].stats.maximum = maxValue;
|
|
27
|
-
setBandRows(newBandRows);
|
|
28
|
-
};
|
|
29
|
-
return (React.createElement(React.Fragment, null,
|
|
30
|
-
React.createElement("div", { className: "jp-gis-symbology-row" },
|
|
31
|
-
React.createElement("label", { htmlFor: `band-select-${index}` },
|
|
32
|
-
label,
|
|
33
|
-
":"),
|
|
34
|
-
React.createElement("div", { className: "jp-select-wrapper" },
|
|
35
|
-
React.createElement("select", { name: `band-select-${index}`, onChange: event => setSelectedBand(+event.target.value), className: "jp-mod-styled" },
|
|
36
|
-
bandRows.map((band, bandIndex) => (React.createElement("option", { key: bandIndex, value: band.band, selected: band.band === (bandRow === null || bandRow === void 0 ? void 0 : bandRow.band), className: "jp-mod-styled" }, band.colorInterpretation
|
|
37
|
-
? `Band ${band.band} (${band.colorInterpretation})`
|
|
38
|
-
: `Band ${band.band}`))),
|
|
39
|
-
isMultibandColor ? (React.createElement("option", { key: 'unset', value: -1, selected: !bandRow, className: "jp-mod-styled" }, "Unset")) : null))),
|
|
40
|
-
isMultibandColor ? null : (React.createElement("div", { className: "jp-gis-symbology-row", style: { gap: '0.5rem' } },
|
|
41
|
-
React.createElement("div", { style: {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
justifyContent: 'space-between',
|
|
44
|
-
width: '50%',
|
|
45
|
-
} },
|
|
46
|
-
React.createElement("label", { htmlFor: "band-min", style: { alignSelf: 'center' } }, "Min"),
|
|
47
|
-
React.createElement("input", { type: "number", className: "jp-mod-styled", style: { marginRight: 15 }, value: minValue, onChange: handleMinValueChange })),
|
|
48
|
-
React.createElement("div", { style: {
|
|
49
|
-
display: 'flex',
|
|
50
|
-
justifyContent: 'space-between',
|
|
51
|
-
width: '50%',
|
|
52
|
-
paddingRight: '2px',
|
|
53
|
-
} },
|
|
54
|
-
React.createElement("label", { htmlFor: "band-max", style: { alignSelf: 'center' } }, "Max"),
|
|
55
|
-
React.createElement("input", { type: "number", className: "jp-mod-styled",
|
|
56
|
-
// defaultValue={bandRow.stats.maximum}
|
|
57
|
-
value: maxValue, onChange: handleMaxValueChange, onBlur: setNewBands }))))));
|
|
58
|
-
};
|
|
59
|
-
export default BandRow;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import useGetBandInfo from "../../hooks/useGetBandInfo";
|
|
3
|
-
import { useOkSignal } from "../../hooks/useOkSignal";
|
|
4
|
-
import { saveSymbology, } from "../../symbologyUtils";
|
|
5
|
-
import BandRow from "../components/BandRow";
|
|
6
|
-
import { LoadingOverlay } from "../../../../shared/components/loading";
|
|
7
|
-
import { useLatest } from "../../../../shared/hooks/useLatest";
|
|
8
|
-
import { useEffectiveSymbologyParams } from '../../hooks/useEffectiveSymbologyParams';
|
|
9
|
-
const MultibandColor = ({ model, okSignalPromise, layerId, isStorySegmentOverride, segmentId, }) => {
|
|
10
|
-
if (!layerId) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
const layer = model.getLayer(layerId);
|
|
14
|
-
const params = useEffectiveSymbologyParams({
|
|
15
|
-
model,
|
|
16
|
-
layerId: layerId,
|
|
17
|
-
layer,
|
|
18
|
-
isStorySegmentOverride,
|
|
19
|
-
segmentId,
|
|
20
|
-
});
|
|
21
|
-
if (!params || !layer) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const { bandRows, setBandRows, loading } = useGetBandInfo(model, layer);
|
|
25
|
-
const [selectedBands, setSelectedBands] = useState({
|
|
26
|
-
red: 1,
|
|
27
|
-
green: 2,
|
|
28
|
-
blue: 3,
|
|
29
|
-
alpha: 4,
|
|
30
|
-
});
|
|
31
|
-
const numOfBandsRef = useLatest(bandRows.length);
|
|
32
|
-
const selectedBandsRef = useLatest(selectedBands);
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
populateOptions();
|
|
35
|
-
}, []);
|
|
36
|
-
const populateOptions = async () => {
|
|
37
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
38
|
-
const layerParams = params;
|
|
39
|
-
const red = (_b = (_a = layerParams.symbologyState) === null || _a === void 0 ? void 0 : _a.redBand) !== null && _b !== void 0 ? _b : 1;
|
|
40
|
-
const green = (_d = (_c = layerParams.symbologyState) === null || _c === void 0 ? void 0 : _c.greenBand) !== null && _d !== void 0 ? _d : 2;
|
|
41
|
-
const blue = (_f = (_e = layerParams.symbologyState) === null || _e === void 0 ? void 0 : _e.blueBand) !== null && _f !== void 0 ? _f : 3;
|
|
42
|
-
const alpha = (_h = (_g = layerParams.symbologyState) === null || _g === void 0 ? void 0 : _g.alphaBand) !== null && _h !== void 0 ? _h : 4;
|
|
43
|
-
setSelectedBands({ red, green, blue, alpha });
|
|
44
|
-
};
|
|
45
|
-
const updateBand = (color, value) => {
|
|
46
|
-
setSelectedBands(prevBands => (Object.assign(Object.assign({}, prevBands), { [color]: value })));
|
|
47
|
-
};
|
|
48
|
-
const handleOk = () => {
|
|
49
|
-
const colorExpr = ['array'];
|
|
50
|
-
const colors = ['red', 'green', 'blue'];
|
|
51
|
-
colors.forEach(color => {
|
|
52
|
-
const bandValue = selectedBandsRef.current[color];
|
|
53
|
-
colorExpr.push(bandValue !== 0 ? ['band', bandValue] : 0);
|
|
54
|
-
});
|
|
55
|
-
// Push alpha if selected, else default to 0
|
|
56
|
-
if (selectedBandsRef.current.alpha) {
|
|
57
|
-
colorExpr.push(['band', selectedBandsRef.current.alpha]);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
colorExpr.push(['band', numOfBandsRef.current + 1]);
|
|
61
|
-
}
|
|
62
|
-
const symbologyState = {
|
|
63
|
-
renderType: 'Multiband Color',
|
|
64
|
-
redBand: selectedBandsRef.current.red,
|
|
65
|
-
greenBand: selectedBandsRef.current.green,
|
|
66
|
-
blueBand: selectedBandsRef.current.blue,
|
|
67
|
-
alphaBand: selectedBandsRef.current.alpha,
|
|
68
|
-
};
|
|
69
|
-
saveSymbology({
|
|
70
|
-
model,
|
|
71
|
-
layerId,
|
|
72
|
-
isStorySegmentOverride,
|
|
73
|
-
segmentId,
|
|
74
|
-
payload: {
|
|
75
|
-
symbologyState,
|
|
76
|
-
color: colorExpr,
|
|
77
|
-
},
|
|
78
|
-
mutateLayerBeforeSave: targetLayer => {
|
|
79
|
-
targetLayer.type = 'WebGlLayer';
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
useOkSignal(okSignalPromise, handleOk);
|
|
84
|
-
return (React.createElement("div", { className: "jp-gis-layer-symbology-container" },
|
|
85
|
-
React.createElement("div", { className: "jp-gis-band-container" },
|
|
86
|
-
React.createElement(LoadingOverlay, { loading: loading }),
|
|
87
|
-
React.createElement(BandRow, { label: "Red Band", index: selectedBands.red - 1, bandRow: bandRows[selectedBands.red - 1], bandRows: bandRows, setSelectedBand: val => updateBand('red', val >= 0 ? val : 0), setBandRows: setBandRows, isMultibandColor: true }),
|
|
88
|
-
React.createElement(BandRow, { label: "Green Band", index: selectedBands.green - 1, bandRow: bandRows[selectedBands.green - 1], bandRows: bandRows, setSelectedBand: val => updateBand('green', val >= 0 ? val : 0), setBandRows: setBandRows, isMultibandColor: true }),
|
|
89
|
-
React.createElement(BandRow, { label: "Blue Band", index: selectedBands.blue - 1, bandRow: bandRows[selectedBands.blue - 1], bandRows: bandRows, setSelectedBand: val => updateBand('blue', val >= 0 ? val : 0), setBandRows: setBandRows, isMultibandColor: true }),
|
|
90
|
-
React.createElement(BandRow, { label: "Alpha Band", index: selectedBands.alpha - 1, bandRow: bandRows[selectedBands.alpha - 1], bandRows: bandRows, setSelectedBand: val => updateBand('alpha', val >= 0 ? val : 0), setBandRows: setBandRows, isMultibandColor: true }))));
|
|
91
|
-
};
|
|
92
|
-
export default MultibandColor;
|