@jupytergis/base 0.14.1 → 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 +6 -0
- package/lib/commands/BaseCommandIDs.js +6 -0
- package/lib/commands/index.js +245 -55
- package/lib/commands/operationCommands.js +2 -2
- package/lib/constants.js +6 -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 +2 -0
- package/lib/{formbuilder/objectform → features/layers/forms}/source/index.js +2 -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/features/layers/forms/source/wmsTileSource.d.ts +4 -0
- package/lib/features/layers/forms/source/wmsTileSource.js +78 -0
- 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 +57 -57
- package/lib/features/layers/symbology/colorRampUtils.d.ts +65 -0
- package/lib/features/layers/symbology/colorRampUtils.js +242 -0
- 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 +12 -15
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ColorRampSelectorEntry.d.ts +2 -2
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ColorRampSelectorEntry.js +3 -11
- package/lib/{dialogs → features/layers}/symbology/components/color_ramp/ModeSelectRow.d.ts +1 -1
- package/lib/features/layers/symbology/components/color_ramp/RgbaColorPicker.d.ts +13 -0
- package/lib/features/layers/symbology/components/color_ramp/RgbaColorPicker.js +128 -0
- package/lib/{dialogs → features/layers}/symbology/components/color_stops/StopContainer.js +3 -1
- package/lib/{dialogs → features/layers}/symbology/components/color_stops/StopRow.d.ts +2 -2
- package/lib/{dialogs → features/layers}/symbology/components/color_stops/StopRow.js +12 -7
- 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 +3 -2
- package/lib/{dialogs → features/layers}/symbology/symbologyDialog.js +12 -12
- package/lib/features/layers/symbology/symbologyUtils.d.ts +41 -0
- package/lib/features/layers/symbology/symbologyUtils.js +114 -0
- 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 +64 -21
- 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.d.ts +1 -1
- package/lib/{stacBrowser → features/stac-browser}/hooks/useStacFilterExtension.js +198 -114
- package/lib/{stacBrowser → features/stac-browser}/hooks/useStacSearch.d.ts +1 -0
- package/lib/{stacBrowser → features/stac-browser}/hooks/useStacSearch.js +19 -11
- 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 +93 -8
- package/lib/mainview/mainView.js +1286 -529
- 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 +13 -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/shared/formbuilder/objectform/components/WmsTileSourceUrlInput.d.ts +3 -0
- package/lib/shared/formbuilder/objectform/components/WmsTileSourceUrlInput.js +84 -0
- 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 +2 -2
- 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 +3 -1
- package/lib/tools.js +140 -6
- package/lib/types.d.ts +12 -1
- package/lib/types.js +6 -1
- package/lib/{menus.js → workspace/menus.js} +14 -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 +82 -20
- 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 +19 -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 +3 -3
- package/style/spectaProgressBar.css +0 -1
- package/style/storyPanel.css +142 -9
- package/style/storySpectaArticleOverlay.css +129 -0
- package/style/symbologyDialog.css +330 -28
- package/lib/dialogs/symbology/colorRampUtils.d.ts +0 -20
- package/lib/dialogs/symbology/colorRampUtils.js +0 -132
- package/lib/dialogs/symbology/symbologyUtils.d.ts +0 -33
- package/lib/dialogs/symbology/symbologyUtils.js +0 -180
- 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 -301
- 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 -65
- package/lib/dialogs/symbology/vector_layer/types/Categorized.d.ts +0 -4
- package/lib/dialogs/symbology/vector_layer/types/Categorized.js +0 -196
- package/lib/dialogs/symbology/vector_layer/types/Graduated.d.ts +0 -4
- package/lib/dialogs/symbology/vector_layer/types/Graduated.js +0 -250
- package/lib/dialogs/symbology/vector_layer/types/SimpleSymbol.d.ts +0 -4
- package/lib/dialogs/symbology/vector_layer/types/SimpleSymbol.js +0 -105
- 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 -200
- 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/ModeSelectRow.js +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/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}/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/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;
|
|
@@ -27,7 +39,8 @@ select option {
|
|
|
27
39
|
}
|
|
28
40
|
|
|
29
41
|
.jp-gis-symbology-row > .jp-select-wrapper,
|
|
30
|
-
.jp-gis-symbology-row > .jp-mod-styled
|
|
42
|
+
.jp-gis-symbology-row > .jp-mod-styled,
|
|
43
|
+
.jp-gis-symbology-row > .jp-gis-rgba-picker {
|
|
31
44
|
flex: 1 0 50%;
|
|
32
45
|
max-width: 50%;
|
|
33
46
|
}
|
|
@@ -52,12 +65,6 @@ select option {
|
|
|
52
65
|
max-width: 25%;
|
|
53
66
|
}
|
|
54
67
|
|
|
55
|
-
.jp-gis-band-container {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
gap: 13px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
68
|
.jp-gis-layer-symbology-container {
|
|
62
69
|
display: flex;
|
|
63
70
|
flex-direction: column;
|
|
@@ -120,27 +127,6 @@ select option {
|
|
|
120
127
|
padding-top: 0.5rem;
|
|
121
128
|
}
|
|
122
129
|
|
|
123
|
-
.jp-gis-band-info-loading-container {
|
|
124
|
-
display: flex;
|
|
125
|
-
justify-content: center;
|
|
126
|
-
align-items: center;
|
|
127
|
-
gap: 2rem;
|
|
128
|
-
margin: auto;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.jp-gis-band-info-loading-container > span {
|
|
132
|
-
font-size: 1rem;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@keyframes spin {
|
|
136
|
-
from {
|
|
137
|
-
transform: rotate(0deg);
|
|
138
|
-
}
|
|
139
|
-
to {
|
|
140
|
-
transform: rotate(360deg);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
130
|
.jp-gis-color-ramp-dropdown {
|
|
145
131
|
display: flex;
|
|
146
132
|
flex-direction: column;
|
|
@@ -228,3 +214,319 @@ select option {
|
|
|
228
214
|
.jp-gis-selected-entry {
|
|
229
215
|
width: 100%;
|
|
230
216
|
}
|
|
217
|
+
|
|
218
|
+
.jp-gis-rgba-inputs {
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-wrap: wrap;
|
|
221
|
+
gap: 4px;
|
|
222
|
+
margin-top: 6px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.jp-gis-rgba-field {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
align-items: center;
|
|
229
|
+
flex: 0 0 auto;
|
|
230
|
+
gap: 2px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.jp-gis-rgba-field label {
|
|
234
|
+
font-size: var(--jp-ui-font-size0);
|
|
235
|
+
color: var(--jp-ui-font-color2);
|
|
236
|
+
line-height: 1;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.jp-gis-rgba-field input {
|
|
240
|
+
width: 4ch;
|
|
241
|
+
text-align: center;
|
|
242
|
+
padding: 1px 2px;
|
|
243
|
+
-moz-appearance: textfield;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.jp-gis-rgba-field input::-webkit-outer-spin-button,
|
|
247
|
+
.jp-gis-rgba-field input::-webkit-inner-spin-button {
|
|
248
|
+
-webkit-appearance: none;
|
|
249
|
+
}
|
|
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
|
+
|
|
524
|
+
.jp-gis-transparent-label {
|
|
525
|
+
display: flex;
|
|
526
|
+
align-items: center;
|
|
527
|
+
gap: 4px;
|
|
528
|
+
margin-top: 6px;
|
|
529
|
+
font-size: var(--jp-ui-font-size1);
|
|
530
|
+
cursor: pointer;
|
|
531
|
+
user-select: none;
|
|
532
|
+
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface IColorMap {
|
|
2
|
-
name: ColorRampName;
|
|
3
|
-
colors: string[];
|
|
4
|
-
}
|
|
5
|
-
export declare const COLOR_RAMP_NAMES: readonly ["jet", "hsv", "hot", "cool", "spring", "summer", "autumn", "winter", "bone", "copper", "greys", "YiGnBu", "greens", "YiOrRd", "bluered", "RdBu", "picnic", "rainbow", "portland", "blackbody", "earth", "electric", "viridis", "inferno", "magma", "plasma", "warm", "rainbow-soft", "bathymetry", "cdom", "chlorophyll", "density", "freesurface-blue", "freesurface-red", "oxygen", "par", "phase", "salinity", "temperature", "turbidity", "velocity-blue", "velocity-green", "cubehelix", "ice", "oxy", "matter", "amp", "tempo", "rain", "topo", "balance", "delta", "curl", "diff", "tarn"];
|
|
6
|
-
export declare const COLOR_RAMP_DEFAULTS: Partial<Record<ColorRampName, number>>;
|
|
7
|
-
export type ColorRampName = (typeof COLOR_RAMP_NAMES)[number];
|
|
8
|
-
export declare const getColorMapList: () => IColorMap[];
|
|
9
|
-
/**
|
|
10
|
-
* Hook that loads and sets color maps.
|
|
11
|
-
*/
|
|
12
|
-
export declare const useColorMapList: (setColorMaps: (maps: IColorMap[]) => void) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Ensure we always get a valid hex string from either an RGB(A) array or string.
|
|
15
|
-
*/
|
|
16
|
-
export declare const ensureHexColorCode: (color: number[] | string) => string;
|
|
17
|
-
/**
|
|
18
|
-
* Convert hex to [r,g,b,a] array.
|
|
19
|
-
*/
|
|
20
|
-
export declare function hexToRgb(hex: string): [number, number, number, number];
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import colormap from 'colormap';
|
|
13
|
-
import colorScale from 'colormap/colorScale.js';
|
|
14
|
-
import { useEffect } from 'react';
|
|
15
|
-
import rawCmocean from "./components/color_ramp/cmocean.json";
|
|
16
|
-
const { __license__: _ } = rawCmocean, cmocean = __rest(rawCmocean, ["__license__"]);
|
|
17
|
-
Object.assign(colorScale, cmocean);
|
|
18
|
-
export const COLOR_RAMP_NAMES = [
|
|
19
|
-
'jet',
|
|
20
|
-
'hsv',
|
|
21
|
-
'hot',
|
|
22
|
-
'cool',
|
|
23
|
-
'spring',
|
|
24
|
-
'summer',
|
|
25
|
-
'autumn',
|
|
26
|
-
'winter',
|
|
27
|
-
'bone',
|
|
28
|
-
'copper',
|
|
29
|
-
'greys',
|
|
30
|
-
'YiGnBu',
|
|
31
|
-
'greens',
|
|
32
|
-
'YiOrRd',
|
|
33
|
-
'bluered',
|
|
34
|
-
'RdBu',
|
|
35
|
-
'picnic',
|
|
36
|
-
'rainbow',
|
|
37
|
-
'portland',
|
|
38
|
-
'blackbody',
|
|
39
|
-
'earth',
|
|
40
|
-
'electric',
|
|
41
|
-
'viridis',
|
|
42
|
-
'inferno',
|
|
43
|
-
'magma',
|
|
44
|
-
'plasma',
|
|
45
|
-
'warm',
|
|
46
|
-
'rainbow-soft',
|
|
47
|
-
'bathymetry',
|
|
48
|
-
'cdom',
|
|
49
|
-
'chlorophyll',
|
|
50
|
-
'density',
|
|
51
|
-
'freesurface-blue',
|
|
52
|
-
'freesurface-red',
|
|
53
|
-
'oxygen',
|
|
54
|
-
'par',
|
|
55
|
-
'phase',
|
|
56
|
-
'salinity',
|
|
57
|
-
'temperature',
|
|
58
|
-
'turbidity',
|
|
59
|
-
'velocity-blue',
|
|
60
|
-
'velocity-green',
|
|
61
|
-
'cubehelix',
|
|
62
|
-
'ice',
|
|
63
|
-
'oxy',
|
|
64
|
-
'matter',
|
|
65
|
-
'amp',
|
|
66
|
-
'tempo',
|
|
67
|
-
'rain',
|
|
68
|
-
'topo',
|
|
69
|
-
'balance',
|
|
70
|
-
'delta',
|
|
71
|
-
'curl',
|
|
72
|
-
'diff',
|
|
73
|
-
'tarn',
|
|
74
|
-
];
|
|
75
|
-
export const COLOR_RAMP_DEFAULTS = {
|
|
76
|
-
hsv: 11,
|
|
77
|
-
picnic: 11,
|
|
78
|
-
'rainbow-soft': 11,
|
|
79
|
-
cubehelix: 16,
|
|
80
|
-
};
|
|
81
|
-
export const getColorMapList = () => {
|
|
82
|
-
const colorMapList = [];
|
|
83
|
-
COLOR_RAMP_NAMES.forEach(name => {
|
|
84
|
-
const colorRamp = colormap({
|
|
85
|
-
colormap: name,
|
|
86
|
-
nshades: 255,
|
|
87
|
-
format: 'rgbaString',
|
|
88
|
-
});
|
|
89
|
-
colorMapList.push({ name, colors: colorRamp });
|
|
90
|
-
});
|
|
91
|
-
return colorMapList;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Hook that loads and sets color maps.
|
|
95
|
-
*/
|
|
96
|
-
export const useColorMapList = (setColorMaps) => {
|
|
97
|
-
useEffect(() => {
|
|
98
|
-
setColorMaps(getColorMapList());
|
|
99
|
-
}, [setColorMaps]);
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Ensure we always get a valid hex string from either an RGB(A) array or string.
|
|
103
|
-
*/
|
|
104
|
-
export const ensureHexColorCode = (color) => {
|
|
105
|
-
if (typeof color === 'string') {
|
|
106
|
-
return color;
|
|
107
|
-
}
|
|
108
|
-
// color must be an RGBA array
|
|
109
|
-
const hex = color
|
|
110
|
-
.slice(0, -1) // Color input doesn't support hex alpha values so cut that out
|
|
111
|
-
.map((val) => {
|
|
112
|
-
return val.toString(16).padStart(2, '0');
|
|
113
|
-
})
|
|
114
|
-
.join('');
|
|
115
|
-
return '#' + hex;
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* Convert hex to [r,g,b,a] array.
|
|
119
|
-
*/
|
|
120
|
-
export function hexToRgb(hex) {
|
|
121
|
-
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
122
|
-
if (!result) {
|
|
123
|
-
console.warn('Unable to parse hex value, defaulting to black');
|
|
124
|
-
return [0, 0, 0, 255];
|
|
125
|
-
}
|
|
126
|
-
return [
|
|
127
|
-
parseInt(result[1], 16),
|
|
128
|
-
parseInt(result[2], 16),
|
|
129
|
-
parseInt(result[3], 16),
|
|
130
|
-
255, // TODO: Make alpha customizable?
|
|
131
|
-
];
|
|
132
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { IJGISLayer, IJupyterGISModel, IVectorLayer, IWebGlLayer } from '@jupytergis/schema';
|
|
2
|
-
import { ColorRampName } from './colorRampUtils';
|
|
3
|
-
import { IStopRow } from './symbologyDialog';
|
|
4
|
-
/** Payload when saving symbology; shape matches vector or WebGl layer params. */
|
|
5
|
-
export interface ISymbologyPayload {
|
|
6
|
-
symbologyState: IVectorLayer['symbologyState'] | IWebGlLayer['symbologyState'];
|
|
7
|
-
color?: IVectorLayer['color'] | IWebGlLayer['color'];
|
|
8
|
-
}
|
|
9
|
-
export interface ISaveSymbologyOptions {
|
|
10
|
-
model: IJupyterGISModel;
|
|
11
|
-
layerId: string;
|
|
12
|
-
isStorySegmentOverride?: boolean;
|
|
13
|
-
segmentId?: string;
|
|
14
|
-
payload: ISymbologyPayload;
|
|
15
|
-
mutateLayerBeforeSave?: (layer: any) => void;
|
|
16
|
-
}
|
|
17
|
-
export type VectorSymbologyParams = Pick<IVectorLayer, 'symbologyState' | 'color'>;
|
|
18
|
-
export type WebGlSymbologyParams = Pick<IWebGlLayer, 'symbologyState' | 'color'>;
|
|
19
|
-
/** Params-shaped object used for reading symbology (layer.parameters or segment override). */
|
|
20
|
-
export type IEffectiveSymbologyParams = VectorSymbologyParams | WebGlSymbologyParams;
|
|
21
|
-
/**
|
|
22
|
-
* Resolve the effective symbology params for this dialog: either the layer's
|
|
23
|
-
* parameters or the matching segment override when editing a story-segment override.
|
|
24
|
-
*/
|
|
25
|
-
export declare function getEffectiveSymbologyParams(model: IJupyterGISModel, layerId: string, layer: IJGISLayer | null | undefined, isStorySegmentOverride?: boolean, segmentId?: string): IEffectiveSymbologyParams | null;
|
|
26
|
-
export declare function saveSymbology(options: ISaveSymbologyOptions): void;
|
|
27
|
-
export declare namespace VectorUtils {
|
|
28
|
-
const buildColorInfo: (layerParamers: VectorSymbologyParams) => IStopRow[];
|
|
29
|
-
const buildRadiusInfo: (layer: IJGISLayer) => IStopRow[];
|
|
30
|
-
}
|
|
31
|
-
export declare namespace Utils {
|
|
32
|
-
const getValueColorPairs: (stops: number[], selectedRamp: ColorRampName, nClasses: number, reverse?: boolean) => IStopRow[];
|
|
33
|
-
}
|