import { S2Layer } from '@deck.gl/geo-layers'; import { KeplerTable } from '../../utils'; import { ColorRange } from '../../constants/color-ranges'; import { Merge, RGBColor } from '../../reducers'; import { DataContainerInterface } from '../../utils/table-utils/data-container-interface'; import Layer, { LayerBaseConfig, LayerColorConfig, LayerColumn, LayerSizeConfig, LayerStrokeColorConfig, LayerHeightConfig } from '../base-layer'; import { VisConfigBoolean, VisConfigColorRange, VisConfigColorSelect, VisConfigNumber, VisConfigRange } from '../layer-factory'; import S2LayerIcon from './s2-layer-icon'; export type S2GeometryLayerVisConfigSettings = { opacity: VisConfigNumber; colorRange: VisConfigColorRange; filled: VisConfigBoolean; thickness: VisConfigNumber; strokeColor: VisConfigColorSelect; strokeColorRange: VisConfigColorRange; sizeRange: VisConfigRange; stroked: VisConfigBoolean; enable3d: VisConfigBoolean; elevationScale: VisConfigNumber; enableElevationZoomFactor: VisConfigBoolean; heightRange: VisConfigRange; wireframe: VisConfigBoolean; }; export type S2GeometryLayerColumnsConfig = { token: LayerColumn; }; export type S2GeometryLayerVisConfig = { opacity: number; colorRange: ColorRange; filled: boolean; thickness: number; strokeColor: RGBColor; strokeColorRange: ColorRange; sizeRange: [number, number]; stroked: boolean; enable3d: boolean; elevationScale: number; enableElevationZoomFactor: boolean; heightRange: [number, number]; wireframe: boolean; }; export type S2GeometryLayerVisualChannelConfig = LayerColorConfig & LayerSizeConfig & LayerStrokeColorConfig & LayerHeightConfig; export type S2GeometryLayerConfig = Merge & S2GeometryLayerVisualChannelConfig; export type S2GeometryLayerData = { index: number; token: any; }; export declare const S2_TOKEN_FIELDS: { token: ['s2', 's2_token']; }; export declare const s2RequiredColumns: ['token']; export declare const S2TokenAccessor: ({ token }: S2GeometryLayerColumnsConfig) => (dc: DataContainerInterface) => (d: any) => any; export declare const defaultElevation = 500; export declare const defaultLineWidth = 1; export declare const S2VisConfigs: { opacity: 'opacity'; colorRange: 'colorRange'; filled: VisConfigBoolean; thickness: VisConfigNumber; strokeColor: 'strokeColor'; strokeColorRange: 'strokeColorRange'; sizeRange: 'strokeWidthRange'; stroked: 'stroked'; enable3d: 'enable3d'; elevationScale: 'elevationScale'; enableElevationZoomFactor: 'enableElevationZoomFactor'; heightRange: 'elevationRange'; wireframe: 'wireframe'; }; export default class S2GeometryLayer extends Layer { dataToFeature: any; visConfigSettings: S2GeometryLayerVisConfigSettings; config: S2GeometryLayerConfig; constructor(props: any); get type(): 's2'; get name(): 'S2'; get requiredLayerColumns(): ["token"]; get layerIcon(): typeof S2LayerIcon; get visualChannels(): { color: { accessor: string; property: string; field: string; scale: string; domain: string; range: string; key: string; channelScaleType: string; nullValue?: any; defaultMeasure?: any; condition?: (config: any) => boolean; getAttributeValue?: (config: any) => (d: any) => any; defaultValue?: any; fixed?: any; supportedFieldTypes?: ("string" | "boolean" | "point" | "geojson" | "date" | "integer" | "real" | "timestamp")[]; aggregation?: import("../base-layer").VisualChannelAggregation; }; size: { property: string; accessor: string; condition: (config: any) => any; defaultValue: number; field: string; scale: string; domain: string; range: string; key: string; channelScaleType: string; nullValue?: any; defaultMeasure?: any; getAttributeValue?: (config: any) => (d: any) => any; fixed?: any; supportedFieldTypes?: ("string" | "boolean" | "point" | "geojson" | "date" | "integer" | "real" | "timestamp")[]; aggregation?: import("../base-layer").VisualChannelAggregation; }; strokeColor: { property: string; field: string; scale: string; domain: string; range: string; key: string; channelScaleType: "color"; accessor: string; condition: (config: any) => any; nullValue: any; defaultValue: (config: any) => any; }; height: { property: string; field: string; scale: string; domain: string; range: string; key: string; channelScaleType: "size"; accessor: string; condition: (config: any) => any; nullValue: number; defaultValue: number; }; }; getDefaultLayerConfig(props?: {}): { heightField: any; heightDomain: number[]; heightScale: string; strokeColorField: any; strokeColorDomain: number[]; strokeColorScale: string; dataId: string; label: string; color: RGBColor; columns: import("../base-layer").LayerColumns; isVisible: boolean; isConfigActive: boolean; highlightColor: import("../../reducers").RGBAColor | RGBColor; hidden: boolean; visConfig: import("layers/layer-factory").LayerVisConfig; textLabel: import("layers/layer-factory").LayerTextLabel[]; colorUI: { color: import("layers/layer-factory").ColorUI; colorRange: import("layers/layer-factory").ColorUI; }; animation: { enabled: boolean; domain?: null; }; colorField?: import("../../utils/table-utils/kepler-table").Field; colorDomain?: import("../base-layer").VisualChannelDomain; colorScale?: "point" | "log" | "ordinal" | "quantile" | "quantize" | "linear" | "sqrt" | "custom" | "logarithmic" | "identity"; sizeDomain?: import("../base-layer").VisualChannelDomain; sizeScale?: "point" | "log" | "ordinal" | "quantile" | "quantize" | "linear" | "sqrt" | "custom" | "logarithmic" | "identity"; sizeField?: import("../../utils/table-utils/kepler-table").Field; }; static findDefaultLayerProps({ fields }: KeplerTable): { props: { isVisible: boolean; label: string; columns: any; }[]; }; calculateDataAttribute({ dataContainer, filteredIndex }: KeplerTable, getS2Token: any): S2GeometryLayerData[]; updateLayerMeta(dataContainer: any, getS2Token: any): void; formatLayerData(datasets: any, oldLayerData: any, opt?: {}): {}; renderLayer(opts: any): S2Layer[]; }