import Schema from './schema'; /** * V0 Schema */ export declare const dimensionPropsV0: string[]; export type modifiedType = { strokeColor?: any; strokeColorRange?: any; filled?: boolean; stroked?: boolean; }; declare class DimensionFieldSchemaV0 extends Schema { version: "v0"; save(field: any): { [x: string]: any; }; load(field: any, parents: any, accumulated: any): { visualChannels: any; }; } declare class DimensionScaleSchemaV0 extends Schema { version: "v0"; save(scale: any): { [x: string]: any; }; load(scale: any, parents: any, accumulated: any): { visualChannels?: undefined; } | { visualChannels: any; }; } declare class LayerConfigSchemaV0 extends Schema { version: "v0"; load(saved: any, parents: any, accumulated: any): { config: any; }; } declare class LayerColumnsSchemaV0 extends Schema { version: "v0"; load(saved: any, parents: any, accumulated: any): { config: any; }; } declare class LayerConfigToVisConfigSchemaV0 extends Schema { version: "v0"; load(saved: any, parents: any, accumulated: any): { config: any; }; } declare class LayerVisConfigSchemaV0 extends Schema { version: "v0"; key: string; load(visConfig: any, parents: any, accumulator: any): { config: any; }; } declare class LayerConfigSchemaDeleteV0 extends Schema { version: "v0"; load(value: any): {}; } /** * V0 -> V1 Changes * - layer is now a class * - config saved in a config object * - id, type, isAggregated is outside layer.config * - visualChannels is outside config, it defines available visual channel and * property names for field, scale, domain and range of each visual chanel. * - enable3d, colorAggregation and sizeAggregation are moved into visConfig * - GeojsonLayer - added height, radius specific properties */ export declare const layerPropsV0: { id: any; type: any; dataId: LayerConfigSchemaV0; label: LayerConfigSchemaV0; color: LayerConfigSchemaV0; isVisible: LayerConfigSchemaV0; hidden: LayerConfigSchemaV0; visibilityByZoom: LayerConfigSchemaV0; visConfig: LayerVisConfigSchemaV0; columns: LayerColumnsSchemaV0; colorField: DimensionFieldSchemaV0; colorScale: DimensionScaleSchemaV0; sizeField: DimensionFieldSchemaV0; sizeScale: DimensionScaleSchemaV0; enable3d: LayerConfigToVisConfigSchemaV0; colorAggregation: LayerConfigToVisConfigSchemaV0; sizeAggregation: LayerConfigToVisConfigSchemaV0; isAggregated: LayerConfigSchemaDeleteV0; }; /** * V1: save [field]: {name, type}, [scale]: '' for each channel */ declare class VisualChannelSchemaV1 extends Schema { save(visualChannels: any, parents: any): { [x: string]: {}; }; load(vc: any, parents: any, accumulator: any): any; } /** * V1: save [channel]: [{ label, color }, ...] for legend */ declare class LegendSettingsV1 extends Schema { save(legendSettings: any, parents: any): { [x: string]: {}; }; load(ls: any, parents: any, accumulator: any): any; } export declare const layerPropsV1: { id: any; type: any; config: Schema; legendSettings: LegendSettingsV1; visualChannels: VisualChannelSchemaV1; }; export declare class LayerSchemaV0 extends Schema { key: string; save(layers: any, parents: any): { [x: string]: any; }; load(layers: any): { [x: string]: any; }; } export declare class FilterSchemaV0 extends Schema { key: string; save(filters: any): { filters: any; }; load(filters: any): { filters: any; }; } declare class InteractionSchemaV0 extends Schema { key: string; save(interactionConfig: any): { [x: string]: {}; }; load(interactionConfig: any): { [x: string]: {}; }; } export declare class InteractionSchemaV1 extends Schema { key: string; save(interactionConfig: any): { [x: string]: {}; }; load(interactionConfig: any): { [x: string]: any; }; } export declare const filterPropsV0: { dataId: any; id: any; name: any; type: any; value: any; enlarged: any; }; export declare class DimensionFieldSchema extends Schema { save(field: any): { [x: string]: any; }; load(field: any): { [x: string]: any; }; } export declare class SplitMapsSchema extends Schema { convertLayerSettings(accu: any, [key, value]: [any, any]): any; load(splitMaps: any): { splitMaps: any[]; }; } export declare const filterPropsV1: { plotType: any; animationWindow: any; yAxis: DimensionFieldSchema; layerId: any; speed: any; dataId: any; id: any; name: any; type: any; value: any; enlarged: any; }; export declare const propertiesV0: { filters: FilterSchemaV0; layers: LayerSchemaV0; interactionConfig: InteractionSchemaV0; layerBlending: any; }; export declare const propertiesV1: { filters: FilterSchemaV0; layers: LayerSchemaV0; interactionConfig: InteractionSchemaV1; layerBlending: any; splitMaps: SplitMapsSchema; animationConfig: Schema; }; export declare const visStateSchemaV0: Schema; export declare const visStateSchemaV1: Schema; export declare const visStateSchema: { v0: { save: (toSave: any) => { [key: string]: any; }; load: (toLoad: any) => { [key: string]: any; }; }; v1: Schema; }; export default visStateSchema;