import { AGGREGATION_TYPES } from '../constants/default-settings'; import { ColorRange, DEFAULT_COLOR_RANGE } from '../constants/color-ranges'; import { RGBColor, RGBAColor } from '../reducers'; import { Field } from '../utils/table-utils/kepler-table'; import { LayerBaseConfig, LayerColorConfig, LayerHeightConfig, LayerSizeConfig, LayerWeightConfig } from './base-layer'; export type LayerTextLabel = { field: Field | null; color: RGBColor; size: number; offset: [number, number]; anchor: string; alignment: string; outlineColor: RGBColor; }; export type AggregationTypes = keyof typeof AGGREGATION_TYPES; export type ColorUI = { customPalette: ColorRange; showSketcher: boolean | number; showDropdown: boolean | number; colorRangeConfig: { type: string; steps: number; reversed: boolean; custom: boolean; hexColumn: string; isHexColumn: boolean; }; }; export type VisConfig = { label: string | ((config: LayerBaseConfig & Partial & Partial & Partial & Partial) => string); group: keyof typeof PROPERTY_GROUPS; property: string; description?: string; condition?: (config: LayerBaseConfig & Partial & Partial & Partial & Partial) => boolean; allowCustomValue?: boolean; }; export type VisConfigNumber = VisConfig & { type: 'number'; isRanged: false; defaultValue: number; range: [number, number]; step: number; }; export type VisConfigBoolean = VisConfig & { type: 'boolean'; defaultValue: boolean; }; export type VisConfigSelection = VisConfig & { type: 'select'; defaultValue: string; options: string[]; }; export type VisConfigRange = VisConfig & { type: 'number'; isRanged: boolean; range: [number, number]; defaultValue: [number, number]; step: number; }; export type VisConfigColorSelect = VisConfig & { type: 'color-select'; defaultValue: null; }; export type VisConfigColorRange = VisConfig & { type: 'color-range-select'; defaultValue: ColorRange; }; export type LayerVisConfigSettings = { thickness: VisConfigNumber; strokeWidthRange: VisConfigRange; trailLength: VisConfigNumber; radius: VisConfigNumber; fixedRadius: VisConfigBoolean; radiusRange: VisConfigRange; clusterRadius: VisConfigNumber; clusterRadiusRange: VisConfigRange; opacity: VisConfigNumber; coverage: VisConfigNumber; outline: VisConfigBoolean; colorRange: VisConfigColorRange; strokeColorRange: VisConfigColorRange; targetColor: VisConfigColorSelect; strokeColor: VisConfigColorSelect; colorAggregation: VisConfigSelection; sizeAggregation: VisConfigSelection; percentile: VisConfigRange; elevationPercentile: VisConfigRange; resolution: VisConfigNumber; sizeScale: VisConfigNumber; angle: VisConfigNumber; worldUnitSize: VisConfigNumber; elevationScale: VisConfigNumber; enableElevationZoomFactor: VisConfigBoolean; elevationRange: VisConfigRange; heightRange: VisConfigRange; coverageRange: VisConfigRange; 'hi-precision': VisConfigBoolean; enable3d: VisConfigBoolean; stroked: VisConfigBoolean; filled: VisConfigBoolean; extruded: VisConfigBoolean; wireframe: VisConfigBoolean; weight: VisConfigNumber; heatmapRadius: VisConfigNumber; }; export type LayerVisConfig = { [key: string]: any; }; export type TextConfigSelect = { type: 'select'; options: string[]; multiSelect: boolean; searchable: boolean; }; export type TextConfigNumber = { type: 'number'; range: number[]; value0: number; step: number; isRanged: boolean; label: string; showInput: boolean; }; export type LayerTextConfig = { fontSize: TextConfigNumber; textAnchor: TextConfigSelect; textAlignment: TextConfigSelect; }; export declare const PROPERTY_GROUPS: { color: "color"; stroke: "stroke"; customMarkers: "customMarkers"; radius: "radius"; height: "height"; angle: "angle"; cell: "cell"; precision: "precision"; display: "display"; }; export declare const DEFAULT_LAYER_OPACITY = 0.8; export declare const DEFAULT_HIGHLIGHT_COLOR: RGBAColor; export declare const DEFAULT_LAYER_LABEL = "new layer"; export { DEFAULT_COLOR_RANGE }; export declare const DEFAULT_TEXT_LABEL: LayerTextLabel; export declare const DEFAULT_SECONDARY_TEXT_LABEL: LayerTextLabel; export declare const DEFAULT_CUSTOM_PALETTE: ColorRange; export declare const UNKNOWN_COLOR_KEY = "__unknownColor__"; export declare const DEFAULT_COLOR_UI: ColorUI; export declare const LAYER_VIS_CONFIGS: LayerVisConfigSettings; export declare const LAYER_TEXT_CONFIGS: LayerTextConfig;