@kepler.gl/components 3.2.6 → 3.3.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/dist/bottom-widget.d.ts +4 -4
- package/dist/common/action-panel.d.ts +3 -3
- package/dist/common/animation-control/animation-control.d.ts +1 -1
- package/dist/common/animation-control/playback-controls.d.ts +1 -1
- package/dist/common/color-legend.d.ts +4 -4
- package/dist/common/column-stats-chart.d.ts +3 -3
- package/dist/common/data-table/button.d.ts +1 -1
- package/dist/common/data-table/canvas.d.ts +0 -1
- package/dist/common/data-table/cell-size.d.ts +2 -2
- package/dist/common/data-table/display-format.d.ts +1 -1
- package/dist/common/data-table/header-cell.d.ts +2 -2
- package/dist/common/data-table/index.d.ts +7 -9
- package/dist/common/data-table/index.js +1 -1
- package/dist/common/data-table/option-dropdown.d.ts +1 -1
- package/dist/common/field-selector.d.ts +5 -5
- package/dist/common/field-token.d.ts +1 -1
- package/dist/common/file-uploader/file-drop.d.ts +1 -1
- package/dist/common/file-uploader/file-upload-progress.d.ts +1 -1
- package/dist/common/file-uploader/file-upload.d.ts +1 -1
- package/dist/common/flex-container.d.ts +2 -3
- package/dist/common/histogram-plot.d.ts +1 -1
- package/dist/common/icon-button.d.ts +16 -16
- package/dist/common/icons/base.d.ts +1 -1
- package/dist/common/icons/close.js +1 -1
- package/dist/common/icons/effects/distance-fog.d.ts +14 -0
- package/dist/common/icons/effects/distance-fog.js +79 -0
- package/dist/common/icons/effects/surface-fog.d.ts +14 -0
- package/dist/common/icons/effects/surface-fog.js +86 -0
- package/dist/common/icons/index.d.ts +2 -0
- package/dist/common/icons/index.js +15 -1
- package/dist/common/item-selector/chickleted-input.d.ts +4 -4
- package/dist/common/item-selector/dropdown-list.d.ts +3 -3
- package/dist/common/item-selector/dropdown-select.d.ts +7 -7
- package/dist/common/item-selector/item-selector.d.ts +2 -2
- package/dist/common/item-selector/typeahead.d.ts +3 -3
- package/dist/common/loading-spinner.d.ts +2 -2
- package/dist/common/modal.d.ts +5 -5
- package/dist/common/portaled.d.ts +8 -25
- package/dist/common/progress-bar.d.ts +1 -1
- package/dist/common/radius-legend.d.ts +1 -1
- package/dist/common/range-brush.d.ts +1 -1
- package/dist/common/range-plot.d.ts +1 -1
- package/dist/common/slider/mouse-event.d.ts +1 -1
- package/dist/common/slider/slider-bar-handle.d.ts +2 -2
- package/dist/common/slider/slider-handle.d.ts +3 -3
- package/dist/common/slider/slider.d.ts +2 -2
- package/dist/common/styled-components.d.ts +157 -158
- package/dist/common/sync-timeline-control.d.ts +3 -3
- package/dist/common/time-range-slider-time-title.d.ts +1 -1
- package/dist/common/time-range-slider.d.ts +2 -2
- package/dist/common/timeline-slider.d.ts +1 -1
- package/dist/common/tippy-tooltip.d.ts +1 -1
- package/dist/common/toolbar-item.d.ts +1 -1
- package/dist/common/toolbar.d.ts +1 -1
- package/dist/common/vertical-toolbar.d.ts +2 -3
- package/dist/container.d.ts +6 -6
- package/dist/context.d.ts +3 -3
- package/dist/dnd-context.d.ts +2 -2
- package/dist/editor/editor.d.ts +1 -1
- package/dist/editor/editor.js +1 -1
- package/dist/editor/feature-action-panel.d.ts +1 -1
- package/dist/editor/feature-action-panel.js +1 -1
- package/dist/effects/compact-color-picker.d.ts +1 -1
- package/dist/effects/effect-configurator.d.ts +2 -2
- package/dist/effects/effect-configurator.js +52 -14
- package/dist/effects/effect-list.d.ts +1 -1
- package/dist/effects/effect-manager.d.ts +3 -3
- package/dist/effects/effect-manager.js +9 -2
- package/dist/effects/effect-panel-header.d.ts +2 -2
- package/dist/effects/effect-panel-header.js +2 -2
- package/dist/effects/effect-panel.d.ts +2 -2
- package/dist/effects/effect-time-configurator.d.ts +1 -1
- package/dist/effects/effect-time-selector.d.ts +1 -1
- package/dist/effects/effect-time-slider.d.ts +3 -3
- package/dist/effects/effect-type-dropdown-list.d.ts +2 -2
- package/dist/effects/effect-type-list-item.d.ts +1 -1
- package/dist/effects/effect-type-selector.d.ts +2 -2
- package/dist/effects/side-panel-title.d.ts +1 -1
- package/dist/effects/timezone-selector.d.ts +1 -1
- package/dist/filters/components.d.ts +2 -3
- package/dist/filters/filter-panels/types.d.ts +4 -4
- package/dist/filters/types.d.ts +8 -8
- package/dist/geocoder/geocoder.d.ts +3 -3
- package/dist/geocoder/geocoder.js +5 -1
- package/dist/geocoder-panel.d.ts +10 -2
- package/dist/geocoder-panel.js +3 -3
- package/dist/hooks/use-cloud-list-provider.d.ts +1 -1
- package/dist/hooks/use-dnd-effects.d.ts +1 -1
- package/dist/hooks/use-dnd-layers.d.ts +1 -1
- package/dist/hooks/use-feature-flags.d.ts +1 -1
- package/dist/hooks/use-fetch-raster-tile-metadata.d.ts +3 -3
- package/dist/hooks/use-fetch-vector-tile-metadata.d.ts +2 -2
- package/dist/hooks/use-legend-position.d.ts +4 -5
- package/dist/injector.d.ts +5 -5
- package/dist/kepler-gl.d.ts +53 -62
- package/dist/loading-indicator.d.ts +4 -4
- package/dist/map/effects/effect-control.d.ts +1 -1
- package/dist/map/layer-hover-info.d.ts +3 -3
- package/dist/map/layer-hover-info.js +2 -2
- package/dist/map/layer-selector-panel.d.ts +1 -1
- package/dist/map/lazy-tippy.js +3 -3
- package/dist/map/locale-panel.d.ts +1 -1
- package/dist/map/map-control-panel.d.ts +1 -1
- package/dist/map/map-control-toolbar.d.ts +6 -7
- package/dist/map/map-control-tooltip.d.ts +1 -1
- package/dist/map/map-control.d.ts +3 -2
- package/dist/map/map-control.js +1 -1
- package/dist/map/map-draw-panel.d.ts +1 -1
- package/dist/map/map-legend-panel.d.ts +4 -3
- package/dist/map/map-legend-panel.js +4 -2
- package/dist/map/map-legend.d.ts +10 -8
- package/dist/map/map-legend.js +37 -7
- package/dist/map/map-popover-content.d.ts +2 -2
- package/dist/map/map-popover.d.ts +2 -2
- package/dist/map/split-map-button.d.ts +1 -1
- package/dist/map/toggle-3d-button.d.ts +1 -1
- package/dist/map-container.d.ts +2 -2
- package/dist/map-container.js +45 -25
- package/dist/map-view-state-context.d.ts +9 -2
- package/dist/map-view-state-context.js +1 -1
- package/dist/modal-container.d.ts +3 -6
- package/dist/modals/cloud-components/cloud-header.d.ts +1 -1
- package/dist/modals/cloud-components/provider-select.d.ts +1 -1
- package/dist/modals/cloud-tile.d.ts +1 -1
- package/dist/modals/data-table-modal.d.ts +1 -1
- package/dist/modals/export-data-modal.js +2 -2
- package/dist/modals/export-image-modal.js +1 -1
- package/dist/modals/export-map-modal/components.d.ts +1 -1
- package/dist/modals/export-map-modal/export-html-map.d.ts +1 -1
- package/dist/modals/export-map-modal/export-json-map.d.ts +1 -1
- package/dist/modals/image-modal-container.d.ts +1 -1
- package/dist/modals/load-data-modal.d.ts +2 -2
- package/dist/modals/modal-dialog.d.ts +0 -2
- package/dist/modals/overwrite-map-modal.d.ts +1 -1
- package/dist/modals/save-map-modal.d.ts +3 -3
- package/dist/modals/share-map-modal.d.ts +1 -1
- package/dist/modals/tilesets-modals/common.d.ts +3 -3
- package/dist/modals/tilesets-modals/common.js +1 -1
- package/dist/modals/tilesets-modals/load-data-footer.d.ts +1 -1
- package/dist/modals/tilesets-modals/load-tileset.d.ts +1 -1
- package/dist/modals/tilesets-modals/load-tileset.js +8 -2
- package/dist/modals/tilesets-modals/tileset-icon.d.ts +1 -1
- package/dist/modals/tilesets-modals/tileset-raster-form.d.ts +2 -2
- package/dist/modals/tilesets-modals/tileset-tile3d-form.d.ts +12 -0
- package/dist/modals/tilesets-modals/tileset-tile3d-form.js +388 -0
- package/dist/modals/tilesets-modals/tileset-vector-form.d.ts +3 -3
- package/dist/modals/tilesets-modals/tileset-wms-form.d.ts +1 -1
- package/dist/modals/tilesets-modals/tileset-wms-form.js +53 -10
- package/dist/plot-container.js +49 -9
- package/dist/side-panel/add-by-dataset-button.d.ts +1 -1
- package/dist/side-panel/common/dataset-info.d.ts +2 -2
- package/dist/side-panel/common/dataset-info.js +2 -2
- package/dist/side-panel/common/dataset-tag.d.ts +2 -2
- package/dist/side-panel/common/dataset-title.d.ts +2 -2
- package/dist/side-panel/common/source-data-catalog.d.ts +3 -3
- package/dist/side-panel/common/types.d.ts +8 -8
- package/dist/side-panel/custom-panel.d.ts +2 -2
- package/dist/side-panel/filter-manager.d.ts +3 -3
- package/dist/side-panel/filter-panel/add-filter-button.d.ts +1 -1
- package/dist/side-panel/filter-panel/filter-panel-header.d.ts +2 -2
- package/dist/side-panel/interaction-manager.d.ts +1 -1
- package/dist/side-panel/interaction-panel/brush-config.d.ts +1 -1
- package/dist/side-panel/interaction-panel/tooltip-config/tooltip-chicklet.d.ts +3 -3
- package/dist/side-panel/interaction-panel/tooltip-config.d.ts +1 -1
- package/dist/side-panel/layer-manager.d.ts +2 -2
- package/dist/side-panel/layer-panel/add-layer-button.d.ts +1 -1
- package/dist/side-panel/layer-panel/channel-by-value-selector.d.ts +1 -1
- package/dist/side-panel/layer-panel/color-breaks-panel.d.ts +4 -4
- package/dist/side-panel/layer-panel/color-palette-preset.d.ts +1 -1
- package/dist/side-panel/layer-panel/color-palette.d.ts +2 -2
- package/dist/side-panel/layer-panel/color-range-selector.d.ts +3 -3
- package/dist/side-panel/layer-panel/color-scale-selector.d.ts +4 -4
- package/dist/side-panel/layer-panel/color-selector.d.ts +3 -3
- package/dist/side-panel/layer-panel/column-selector.d.ts +1 -1
- package/dist/side-panel/layer-panel/custom-palette.d.ts +10 -10
- package/dist/side-panel/layer-panel/custom-picker.d.ts +1 -1
- package/dist/side-panel/layer-panel/dataset-layer-group.d.ts +1 -1
- package/dist/side-panel/layer-panel/dataset-layer-section.d.ts +1 -1
- package/dist/side-panel/layer-panel/dataset-section.d.ts +2 -2
- package/dist/side-panel/layer-panel/dimension-scale-selector.d.ts +1 -1
- package/dist/side-panel/layer-panel/how-to-button.d.ts +1 -1
- package/dist/side-panel/layer-panel/layer-color-selector.d.ts +3 -3
- package/dist/side-panel/layer-panel/layer-column-config.d.ts +1 -1
- package/dist/side-panel/layer-panel/layer-column-mode-config.d.ts +3 -3
- package/dist/side-panel/layer-panel/layer-config-group.d.ts +5 -5
- package/dist/side-panel/layer-panel/layer-configurator.d.ts +2 -2
- package/dist/side-panel/layer-panel/layer-configurator.js +27 -17
- package/dist/side-panel/layer-panel/layer-error-message.d.ts +1 -1
- package/dist/side-panel/layer-panel/layer-list.d.ts +2 -2
- package/dist/side-panel/layer-panel/layer-panel-header.d.ts +5 -5
- package/dist/side-panel/layer-panel/layer-panel.d.ts +1 -1
- package/dist/side-panel/layer-panel/layer-type-dropdown-list.d.ts +2 -2
- package/dist/side-panel/layer-panel/layer-type-list-item.d.ts +2 -2
- package/dist/side-panel/layer-panel/layer-type-selector.d.ts +1 -1
- package/dist/side-panel/layer-panel/radius-by-zoom-input.d.ts +1 -1
- package/dist/side-panel/layer-panel/raster-tile-layer-configurator.d.ts +1 -1
- package/dist/side-panel/layer-panel/single-color-palette.d.ts +1 -1
- package/dist/side-panel/layer-panel/text-label-panel.d.ts +1 -1
- package/dist/side-panel/layer-panel/vector-tile-layer-configurator.d.ts +2 -2
- package/dist/side-panel/layer-panel/vis-config-by-field-selector.d.ts +1 -1
- package/dist/side-panel/layer-panel/vis-config-slider.d.ts +1 -1
- package/dist/side-panel/layer-panel/vis-config-switch.d.ts +1 -1
- package/dist/side-panel/map-manager.d.ts +1 -1
- package/dist/side-panel/map-style-panel/map-layer-group-color-picker.d.ts +1 -1
- package/dist/side-panel/map-style-panel/map-layer-group-item.d.ts +2 -2
- package/dist/side-panel/map-style-panel/map-layer-selector.d.ts +1 -1
- package/dist/side-panel/map-style-panel/map-style-selector.d.ts +1 -1
- package/dist/side-panel/panel-header-action.d.ts +1 -1
- package/dist/side-panel/panel-header.d.ts +12 -12
- package/dist/side-panel/panel-tab.d.ts +4 -4
- package/dist/side-panel/panel-title.d.ts +1 -1
- package/dist/side-panel/panel-toggle.d.ts +1 -1
- package/dist/side-panel/panel-view-list-toggle.d.ts +3 -3
- package/dist/side-panel/side-bar.d.ts +2 -2
- package/dist/side-panel.d.ts +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +23 -22
|
@@ -10,9 +10,9 @@ import PanelTitleFactory from './panel-title';
|
|
|
10
10
|
import AddFilterButtonFactory from './filter-panel/add-filter-button';
|
|
11
11
|
import DatasetSectionFactory from './layer-panel/dataset-section';
|
|
12
12
|
import { PanelMeta } from './common/types';
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type VisStateActionHandlers = ActionHandlers<typeof VisStateActions>;
|
|
14
|
+
export type UiStateActionHandlers = ActionHandlers<typeof UIStateActions>;
|
|
15
|
+
export type FilterManagerProps = {
|
|
16
16
|
filters: Filter[];
|
|
17
17
|
datasets: Datasets;
|
|
18
18
|
layers: Layer[];
|
|
@@ -7,9 +7,9 @@ interface StyledFilterHeaderProps extends StyledPanelHeaderProps {
|
|
|
7
7
|
$labelRCGColorValues: RGBColor[];
|
|
8
8
|
}
|
|
9
9
|
export declare const StyledFilterHeader: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof StyledPanelHeaderProps> & StyledPanelHeaderProps, "ref"> & {
|
|
10
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
11
11
|
}, StyledFilterHeaderProps>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledPanelHeaderProps>>, keyof React.Component<any, {}, any>>;
|
|
12
|
-
export
|
|
12
|
+
export type FilterPanelHeaderProps = {
|
|
13
13
|
className?: string;
|
|
14
14
|
datasets: KeplerTable[];
|
|
15
15
|
filter: Filter;
|
|
@@ -5,7 +5,7 @@ import { Datasets } from '@kepler.gl/table';
|
|
|
5
5
|
import InteractionPanelFactory from './interaction-panel/interaction-panel';
|
|
6
6
|
import PanelTitleFactory from './panel-title';
|
|
7
7
|
import { PanelMeta } from './common/types';
|
|
8
|
-
|
|
8
|
+
type InteractionManagerProps = {
|
|
9
9
|
interactionConfig: InteractionConfig;
|
|
10
10
|
datasets: Datasets;
|
|
11
11
|
visStateActions: typeof VisStateActions;
|
|
@@ -17,7 +17,7 @@ interface TooltipChickletProps {
|
|
|
17
17
|
transition?: string;
|
|
18
18
|
isDragging: boolean;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
type TooltipConfig = {
|
|
21
21
|
fieldsToShow: {
|
|
22
22
|
[key: string]: {
|
|
23
23
|
name: string;
|
|
@@ -27,10 +27,10 @@ declare type TooltipConfig = {
|
|
|
27
27
|
compareMode: boolean;
|
|
28
28
|
compareType: string | null;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type IconDivProps = BaseComponentProps & {
|
|
31
31
|
$status?: 'SHOW' | 'ACTIVE' | null;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type SortableStyledItemProps = BaseComponentProps & {
|
|
34
34
|
$transition?: CSSProperties['transition'];
|
|
35
35
|
$transform?: CSSProperties['transform'];
|
|
36
36
|
ref: (node: HTMLElement | null) => void;
|
|
@@ -3,7 +3,7 @@ import { IntlShape } from 'react-intl';
|
|
|
3
3
|
import DatasetTagFactory from '../common/dataset-tag';
|
|
4
4
|
import FieldSelectorFactory from '../../common/field-selector';
|
|
5
5
|
import { Datasets } from '@kepler.gl/table';
|
|
6
|
-
|
|
6
|
+
type TooltipConfigProps = {
|
|
7
7
|
config: {
|
|
8
8
|
fieldsToShow: {
|
|
9
9
|
[key: string]: {
|
|
@@ -12,12 +12,12 @@ import { UIStateActions, VisStateActions, MapStateActions, ActionHandler } from
|
|
|
12
12
|
import { SidePanelItem } from '../types';
|
|
13
13
|
import { PanelListView } from '@kepler.gl/types';
|
|
14
14
|
import { Datasets } from '@kepler.gl/table';
|
|
15
|
-
|
|
15
|
+
type LayerBlendingSelectorProps = {
|
|
16
16
|
layerBlending: string;
|
|
17
17
|
updateLayerBlending: ActionHandler<typeof VisStateActions.updateLayerBlending>;
|
|
18
18
|
className?: string;
|
|
19
19
|
} & WrappedComponentProps;
|
|
20
|
-
|
|
20
|
+
type LayerManagerProps = {
|
|
21
21
|
datasets: Datasets;
|
|
22
22
|
layers: Layer[];
|
|
23
23
|
layerOrder: string[];
|
|
@@ -4,7 +4,7 @@ import { KeplerTable } from '@kepler.gl/table';
|
|
|
4
4
|
import { ColorUI, Field, LayerVisConfig, NestedPartial } from '@kepler.gl/types';
|
|
5
5
|
import DimensionScaleSelectorFactory from './dimension-scale-selector';
|
|
6
6
|
import VisConfigByFieldSelectorFactory from './vis-config-by-field-selector';
|
|
7
|
-
export
|
|
7
|
+
export type ChannelByValueSelectorProps = {
|
|
8
8
|
layer: Layer;
|
|
9
9
|
channel: VisualChannel;
|
|
10
10
|
onChange: (newConfig: {
|
|
@@ -4,21 +4,21 @@ import { ColorBreak, ColorBreakOrdinal } from '@kepler.gl/utils';
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import ColumnStatsChartFactory from '../../common/column-stats-chart';
|
|
6
6
|
import CustomPaletteFactory, { SetColorUIFunc } from './custom-palette';
|
|
7
|
-
|
|
7
|
+
type EditButtonProps = {
|
|
8
8
|
onClickEdit: () => void;
|
|
9
9
|
};
|
|
10
10
|
export declare const EditButton: React.FC<EditButtonProps>;
|
|
11
|
-
export
|
|
11
|
+
export type ColorBreaksDisplayProps = {
|
|
12
12
|
currentBreaks?: ColorBreak[] | ColorBreakOrdinal[] | null;
|
|
13
13
|
onEdit: (() => void) | null;
|
|
14
14
|
};
|
|
15
15
|
export declare const ColorBreaksDisplay: React.FC<ColorBreaksDisplayProps>;
|
|
16
|
-
export
|
|
16
|
+
export type CategoricalColorDisplayProps = {
|
|
17
17
|
colorMap?: ColorMap;
|
|
18
18
|
onEdit: (() => void) | null;
|
|
19
19
|
};
|
|
20
20
|
export declare const CategoricalColorDisplay: React.FC<CategoricalColorDisplayProps>;
|
|
21
|
-
export
|
|
21
|
+
export type ColorBreaksPanelProps = {
|
|
22
22
|
colorBreaks: ColorBreak[] | ColorBreakOrdinal[] | null;
|
|
23
23
|
colorUIConfig: ColorUI;
|
|
24
24
|
dataset: KeplerTable | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HexColor } from '@kepler.gl/types';
|
|
3
|
-
export
|
|
3
|
+
export type PresetColorPaletteProps = {
|
|
4
4
|
themes: string[];
|
|
5
5
|
selectedColor: HexColor;
|
|
6
6
|
onSelectColor: (c: HexColor, e?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HexColor, RGBColor } from '@kepler.gl/types';
|
|
3
3
|
import { BaseComponentProps } from '../../types';
|
|
4
|
-
|
|
4
|
+
type ColorPaletteProps = BaseComponentProps & {
|
|
5
5
|
colors: RGBColor | HexColor[];
|
|
6
6
|
colorWidths?: number[] | null;
|
|
7
7
|
height?: number;
|
|
@@ -9,7 +9,7 @@ declare type ColorPaletteProps = BaseComponentProps & {
|
|
|
9
9
|
isReversed?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type PaletteContainerProps = BaseComponentProps & {
|
|
13
13
|
$isColorChart?: boolean;
|
|
14
14
|
$isSelected?: boolean;
|
|
15
15
|
};
|
|
@@ -2,14 +2,14 @@ import React, { MouseEvent } from 'react';
|
|
|
2
2
|
import { ColorPalette } from '@kepler.gl/constants';
|
|
3
3
|
import { ColorRange, ColorUI, NestedPartial } from '@kepler.gl/types';
|
|
4
4
|
import CustomPaletteFactory from './custom-palette';
|
|
5
|
-
|
|
5
|
+
type ColorRangeSelectorProps = {
|
|
6
6
|
colorPalettes?: ColorPalette[];
|
|
7
7
|
colorPaletteUI: ColorUI;
|
|
8
8
|
selectedColorRange: ColorRange;
|
|
9
9
|
onSelectColorRange: (p: ColorRange, e: MouseEvent) => void;
|
|
10
10
|
setColorPaletteUI: (newConfig: NestedPartial<ColorUI>) => void;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type PaletteConfigProps = {
|
|
13
13
|
label: string;
|
|
14
14
|
value: string | number | boolean;
|
|
15
15
|
config: {
|
|
@@ -27,7 +27,7 @@ declare namespace ColorRangeSelectorFactory {
|
|
|
27
27
|
var deps: (typeof CustomPaletteFactory)[];
|
|
28
28
|
}
|
|
29
29
|
export declare const PaletteConfig: React.FC<PaletteConfigProps>;
|
|
30
|
-
|
|
30
|
+
type ColorPaletteItemProps = {
|
|
31
31
|
reversed?: boolean;
|
|
32
32
|
selected?: ColorRange;
|
|
33
33
|
colorPalette: ColorPalette;
|
|
@@ -4,13 +4,13 @@ import { KeplerTable } from '@kepler.gl/table';
|
|
|
4
4
|
import { ColorRange, ColorUI, Field } from '@kepler.gl/types';
|
|
5
5
|
import ColorBreaksPanelFactory, { ColorBreaksPanelProps } from './color-breaks-panel';
|
|
6
6
|
import { SetColorUIFunc } from './custom-palette';
|
|
7
|
-
export
|
|
7
|
+
export type ScaleOption = {
|
|
8
8
|
label: string;
|
|
9
9
|
value: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
11
|
+
export type OnSelectFunc = (v: string, visConfg?: Record<string, any>) => void;
|
|
12
|
+
export type ContextProps = ColorBreaksPanelProps;
|
|
13
|
+
export type ColorScaleSelectorProps = {
|
|
14
14
|
layer: Layer;
|
|
15
15
|
field: Field;
|
|
16
16
|
dataset: KeplerTable;
|
|
@@ -3,18 +3,18 @@ import { ColorRange } from '@kepler.gl/types';
|
|
|
3
3
|
import { ColorUI, NestedPartial, RGBAColor, RGBColor } from '@kepler.gl/types';
|
|
4
4
|
import RangeSliderFactory from '../../common/range-slider';
|
|
5
5
|
import ColorRangeSelectorFactory from './color-range-selector';
|
|
6
|
-
|
|
6
|
+
type ColorSelectorInputProps = {
|
|
7
7
|
active: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
inputTheme?: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type ColorSet = {
|
|
12
12
|
selectedColor: RGBColor | RGBAColor | ColorRange;
|
|
13
13
|
setColor: (v: RGBColor | RGBAColor | ColorRange) => void;
|
|
14
14
|
isRange?: boolean;
|
|
15
15
|
label?: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
type ColorSelectorProps = {
|
|
18
18
|
colorSets: ColorSet[];
|
|
19
19
|
colorUI?: ColorUI;
|
|
20
20
|
inputTheme?: string;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import FieldSelectorFactory from '../../common/field-selector';
|
|
3
3
|
import { LayerColumn, LayerColumns, EnhancedFieldPair } from '@kepler.gl/types';
|
|
4
4
|
import { MinimalField } from '../../common/field-selector';
|
|
5
|
-
export
|
|
5
|
+
export type ColumnSelectorProps<FieldOption extends MinimalField> = {
|
|
6
6
|
column: LayerColumn;
|
|
7
7
|
columns: LayerColumns;
|
|
8
8
|
label: string;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React, { ElementType } from 'react';
|
|
2
2
|
import { ColorMap, ColorUI, HexColor, NestedPartial } from '@kepler.gl/types';
|
|
3
3
|
import { ColorBreak, ColorBreakOrdinal } from '@kepler.gl/utils';
|
|
4
|
-
export
|
|
4
|
+
export type ActionIcons = {
|
|
5
5
|
delete: ElementType;
|
|
6
6
|
sort: ElementType;
|
|
7
7
|
add: ElementType;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type EditColorMapFunc = (v: number, i: number) => void;
|
|
10
|
+
export type SetColorUIFunc = (newConfig: NestedPartial<ColorUI>) => void;
|
|
11
11
|
/**
|
|
12
12
|
* EditableColorRange
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type EditableColorRangeProps = {
|
|
15
15
|
item: ColorBreak;
|
|
16
16
|
isLast: boolean;
|
|
17
17
|
index: number;
|
|
18
18
|
editColorMap?: EditColorMapFunc;
|
|
19
19
|
editable: boolean;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type CustomPaletteProps = {
|
|
22
22
|
customPalette: ColorUI['customPalette'];
|
|
23
23
|
setColorPaletteUI: SetColorUIFunc;
|
|
24
24
|
showSketcher: number | boolean;
|
|
@@ -27,7 +27,7 @@ export declare type CustomPaletteProps = {
|
|
|
27
27
|
onApply: (e: React.MouseEvent) => void;
|
|
28
28
|
onCancel: () => void;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type CustomPaletteInputProps = {
|
|
31
31
|
index: number;
|
|
32
32
|
isSorting: boolean;
|
|
33
33
|
color: HexColor;
|
|
@@ -44,9 +44,9 @@ export declare type CustomPaletteInputProps = {
|
|
|
44
44
|
export declare const ColorPaletteItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
45
45
|
export declare const DividerLine: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
46
46
|
export declare const ColorSwatch: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
47
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
47
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
48
48
|
}>, never>, never>>;
|
|
49
|
-
export
|
|
49
|
+
export type ColorPaletteInputProps = {
|
|
50
50
|
value: string | number;
|
|
51
51
|
onChange: (val: unknown) => void;
|
|
52
52
|
id: string;
|
|
@@ -65,7 +65,7 @@ export declare const DeleteColorStop: ({ onColorDelete, IconComponent }: {
|
|
|
65
65
|
IconComponent: any;
|
|
66
66
|
}) => React.JSX.Element;
|
|
67
67
|
export declare const CustomPaletteInput: React.FC<CustomPaletteInputProps>;
|
|
68
|
-
export
|
|
68
|
+
export type CategoricalSelectorProps = {
|
|
69
69
|
index: number;
|
|
70
70
|
selectedValues: (string | number | null)[];
|
|
71
71
|
allValues: string[] | number[];
|
|
@@ -76,7 +76,7 @@ export declare type CategoricalSelectorProps = {
|
|
|
76
76
|
editable?: boolean;
|
|
77
77
|
};
|
|
78
78
|
export declare const CategoricalSelector: React.FC<CategoricalSelectorProps>;
|
|
79
|
-
export
|
|
79
|
+
export type CategoricalCustomPaletteInputProps = {
|
|
80
80
|
index: number;
|
|
81
81
|
isSorting: boolean;
|
|
82
82
|
color: HexColor;
|
|
@@ -3,7 +3,7 @@ import DatasetLayerSectionFactory from './dataset-layer-section';
|
|
|
3
3
|
import { Layer, LayerClassesType } from '@kepler.gl/layers';
|
|
4
4
|
import { UIStateActions, VisStateActions, ActionHandler, MapStateActions } from '@kepler.gl/actions';
|
|
5
5
|
import { Datasets } from '@kepler.gl/table';
|
|
6
|
-
|
|
6
|
+
type DatasetLayerGroupProps = {
|
|
7
7
|
datasets: Datasets;
|
|
8
8
|
layers: Layer[];
|
|
9
9
|
layerOrder: string[];
|
|
@@ -4,7 +4,7 @@ import LayerListFactory from './layer-list';
|
|
|
4
4
|
import { Layer, LayerClassesType } from '@kepler.gl/layers';
|
|
5
5
|
import { UIStateActions, ActionHandler, VisStateActions, MapStateActions } from '@kepler.gl/actions';
|
|
6
6
|
import { KeplerTable, Datasets } from '@kepler.gl/table';
|
|
7
|
-
|
|
7
|
+
type DatasetLayerSectionProps = {
|
|
8
8
|
datasets: Datasets;
|
|
9
9
|
dataset: KeplerTable;
|
|
10
10
|
layers: Layer[];
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import SourceDataCatalogFactory from '../common/source-data-catalog';
|
|
3
3
|
import { UIStateActions, VisStateActions, ActionHandler } from '@kepler.gl/actions';
|
|
4
4
|
import { Datasets } from '@kepler.gl/table';
|
|
5
|
-
|
|
5
|
+
type AddDataButtonProps = {
|
|
6
6
|
onClick: () => void;
|
|
7
7
|
isInactive: boolean;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type DatasetSectionProps = {
|
|
10
10
|
datasets: Datasets;
|
|
11
11
|
showDatasetList?: boolean;
|
|
12
12
|
showDeleteDataset?: boolean;
|
|
@@ -4,7 +4,7 @@ import { default as React } from 'react';
|
|
|
4
4
|
import { Field } from '@kepler.gl/types';
|
|
5
5
|
import ColorScaleSelectorFactory from './color-scale-selector';
|
|
6
6
|
import { KeplerTable } from '@kepler.gl/table';
|
|
7
|
-
export
|
|
7
|
+
export type DimensionScaleSelectorProps = {
|
|
8
8
|
layer: Layer;
|
|
9
9
|
channel: VisualChannel;
|
|
10
10
|
label?: string;
|
|
@@ -3,14 +3,14 @@ import { ColorRange } from '@kepler.gl/types';
|
|
|
3
3
|
import { Layer } from '@kepler.gl/layers';
|
|
4
4
|
import { NestedPartial, RGBColor, ColorUI } from '@kepler.gl/types';
|
|
5
5
|
import ColorSelectorFactory from './color-selector';
|
|
6
|
-
|
|
6
|
+
type LayerColorSelectorProps = {
|
|
7
7
|
layer: Layer;
|
|
8
8
|
onChange: (v: Record<string, RGBColor>) => void;
|
|
9
9
|
selectedColor?: RGBColor;
|
|
10
10
|
property?: string;
|
|
11
11
|
setColorUI: (prop: string, newConfig: NestedPartial<ColorUI>) => void;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type ArcLayerColorSelectorProps = {
|
|
14
14
|
layer: Layer;
|
|
15
15
|
onChangeConfig: (v: {
|
|
16
16
|
color: RGBColor;
|
|
@@ -21,7 +21,7 @@ declare type ArcLayerColorSelectorProps = {
|
|
|
21
21
|
property?: string;
|
|
22
22
|
setColorUI: (prop: string, newConfig: NestedPartial<ColorUI>) => void;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type LayerColorRangeSelectorProps = {
|
|
25
25
|
layer: Layer;
|
|
26
26
|
onChange: (v: Record<string, ColorRange>) => void;
|
|
27
27
|
property?: string;
|
|
@@ -3,7 +3,7 @@ import { LayerBaseConfig } from '@kepler.gl/layers';
|
|
|
3
3
|
import { FieldPair, ColumnPairs, LayerColumns, ColumnLabels } from '@kepler.gl/types';
|
|
4
4
|
import ColumnSelectorFactory from './column-selector';
|
|
5
5
|
import { MinimalField } from '../../common/field-selector';
|
|
6
|
-
export
|
|
6
|
+
export type LayerColumnConfigProps<FieldOption extends MinimalField> = {
|
|
7
7
|
columns: LayerColumns;
|
|
8
8
|
fields: FieldOption[];
|
|
9
9
|
assignColumnPairs: (key: string, pair: FieldPair) => LayerColumns;
|
|
@@ -7,12 +7,12 @@ import { SupportedColumnMode, FieldPair, LayerColumns } from '@kepler.gl/types';
|
|
|
7
7
|
interface FieldOption extends MinimalField {
|
|
8
8
|
fieldIdx: number;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type SupportedColumnModeConfig = {
|
|
11
11
|
key: string;
|
|
12
12
|
label: string;
|
|
13
13
|
columns: LayerColumns;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type ColumnModeConfigProps = {
|
|
16
16
|
supportedColumnModes: SupportedColumnMode[] | null;
|
|
17
17
|
selectedColumnMode?: string;
|
|
18
18
|
id: string;
|
|
@@ -29,7 +29,7 @@ export declare function ColumnModeConfigFactory(PanelHeaderAction: ReturnType<ty
|
|
|
29
29
|
export declare namespace ColumnModeConfigFactory {
|
|
30
30
|
var deps: (typeof PanelHeaderActionFactory)[];
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export type LayerColumnModeConfigProps = {
|
|
33
33
|
layer: Layer;
|
|
34
34
|
layerConfig: LayerBaseConfig;
|
|
35
35
|
supportedColumnModes: SupportedColumnMode[] | null;
|
|
@@ -2,12 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import InfoHelperFactory from '../../common/info-helper';
|
|
3
3
|
import { Layer } from '@kepler.gl/layers';
|
|
4
4
|
import { LayerVisConfig } from '@kepler.gl/types';
|
|
5
|
-
export
|
|
5
|
+
export type LayerConfigGroupLabelProps = {
|
|
6
6
|
label?: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
collapsed?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type LayerConfigGroupProps = {
|
|
11
11
|
layer?: Layer;
|
|
12
12
|
label: string;
|
|
13
13
|
property?: string;
|
|
@@ -21,17 +21,17 @@ export declare type LayerConfigGroupProps = {
|
|
|
21
21
|
};
|
|
22
22
|
export declare const StyledLayerConfigGroupAction: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
23
23
|
export declare const ConfigGroupCollapsibleContent: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
24
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
25
25
|
}>, never>, never>>;
|
|
26
26
|
export declare const ConfigGroupCollapsibleHeader: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
27
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
27
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
28
28
|
}>, never>, never>>;
|
|
29
29
|
export declare const StyledLayerConfigGroup: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
30
30
|
interface StyledConfigGroupHeaderProps {
|
|
31
31
|
collapsible?: boolean;
|
|
32
32
|
}
|
|
33
33
|
export declare const StyledConfigGroupHeader: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
34
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
34
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
35
35
|
}>, never>, StyledConfigGroupHeaderProps>>;
|
|
36
36
|
export declare function LayerConfigGroupLabelFactory(InfoHelper: ReturnType<typeof InfoHelperFactory>): React.FC<LayerConfigGroupLabelProps>;
|
|
37
37
|
export declare namespace LayerConfigGroupLabelFactory {
|
|
@@ -15,7 +15,7 @@ import { ActionHandler, toggleModal } from '@kepler.gl/actions';
|
|
|
15
15
|
import { AggregationLayer, Layer, LayerBaseConfig, VisualChannel } from '@kepler.gl/layers';
|
|
16
16
|
import { Datasets } from '@kepler.gl/table';
|
|
17
17
|
import { ColorUI, LayerVisConfig, NestedPartial } from '@kepler.gl/types';
|
|
18
|
-
|
|
18
|
+
type LayerConfiguratorProps = {
|
|
19
19
|
layer: Layer;
|
|
20
20
|
datasets: Datasets;
|
|
21
21
|
layerTypeOptions: {
|
|
@@ -33,7 +33,7 @@ declare type LayerConfiguratorProps = {
|
|
|
33
33
|
updateLayerTextLabel: (idx: number | 'all', prop: string, value: any) => void;
|
|
34
34
|
disableTypeSelect?: boolean;
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
type AggregationSelectorProps = {
|
|
37
37
|
channel: VisualChannel;
|
|
38
38
|
layer: AggregationLayer;
|
|
39
39
|
onChange: (val: Record<string, string | number | boolean | object | readonly (string | number | boolean | object)[] | null>, key: string) => void;
|