import { Dot, DotOptions } from '../plots/dot'; import { DotDensity, DotDensityOptions } from '../plots/dot-density'; import { Heatmap, HeatmapOptions } from '../plots/heatmap'; import { Grid, GridOptions } from '../plots/grid'; import { Hexbin, HexbinOptions } from '../plots/hexbin'; import { Path, PathOptions } from '../plots/path'; import { Flow, FlowOptions } from '../plots/flow'; import { Area, AreaOptions } from '../plots/area'; import { Choropleth, ChoroplethOptions } from '../plots/choropleth'; import { TextLayer, TextLayerOptions } from '../layers/text-layer'; import { DotLayer, DotLayerOptions } from '../layers/dot-layer'; import { IconLayer, IconLayerOptions } from '../layers/icon-layer'; import { ColumnLayer, ColumnLayerOptions } from '../layers/column-layer'; import { DotDensityLayer, DotDensityLayerOptions } from '../layers/dot-density-layer'; import { GridLayer, GridLayerOptions } from '../layers/grid-layer'; import { HexbinLayer, HexbinLayerOptions } from '../layers/hexbin-layer'; import { PathLayer, PathLayerOptions } from '../layers/path-layer'; import { ArcLayer, ArcLayerOptions } from '../layers/arc-layer'; import { HeatmapLayer, HeatmapLayerOptions } from '../layers/heatmap-layer'; import { AreaLayer, AreaLayerOptions } from '../layers/area-layer'; import { PrismLayer, PrismLayerOptions } from '../layers/prism-layer'; /** * 移除 Plot options 中不需要的配置 */ type OmitPlotOptions = Omit; /** * plots 类型 */ export type PlotConfigType = { id?: string; } & (({ type: 'dot'; } & OmitPlotOptions) | ({ type: 'dotDensity'; } & OmitPlotOptions) | ({ type: 'heatmap'; } & OmitPlotOptions) | ({ type: 'grid'; } & OmitPlotOptions) | ({ type: 'hexbin'; } & OmitPlotOptions) | ({ type: 'path'; } & OmitPlotOptions) | ({ type: 'flow'; } & OmitPlotOptions) | ({ type: 'area'; } & OmitPlotOptions) | ({ type: 'choropleth'; } & OmitPlotOptions)); /** * plots 的 class */ export declare const PLOTS_MAP: { dot: typeof Dot; dotDensity: typeof DotDensity; heatmap: typeof Heatmap; grid: typeof Grid; hexbin: typeof Hexbin; path: typeof Path; flow: typeof Flow; area: typeof Area; choropleth: typeof Choropleth; }; /** * L7Plot 内置的 layers 类型 */ export type LayerConfigType = { id?: string; } & (({ type: 'textLayer'; } & TextLayerOptions) | ({ type: 'dotLayer'; } & DotLayerOptions) | ({ type: 'iconLayer'; } & IconLayerOptions) | ({ type: 'dotDensity'; } & DotDensityLayerOptions) | ({ type: 'columnLayer'; } & ColumnLayerOptions) | ({ type: 'heatmapLayer'; } & HeatmapLayerOptions) | ({ type: 'gridLayer'; } & GridLayerOptions) | ({ type: 'hexbinLayer'; } & HexbinLayerOptions) | ({ type: 'pathLayer'; } & PathLayerOptions) | ({ type: 'arcLayer'; } & ArcLayerOptions) | ({ type: 'areaLayer'; } & AreaLayerOptions) | ({ type: 'prismLayer'; } & PrismLayerOptions)); /** * L7Plot 内置的 layers 的 class */ export declare const LAYERS_MAP: { textLayer: typeof TextLayer; dotLayer: typeof DotLayer; iconLayer: typeof IconLayer; dotDensityLayer: typeof DotDensityLayer; columnLayer: typeof ColumnLayer; heatmapLayer: typeof HeatmapLayer; gridLayer: typeof GridLayer; hexbinLayer: typeof HexbinLayer; pathLayer: typeof PathLayer; arcLayer: typeof ArcLayer; areaLayer: typeof AreaLayer; prismLayer: typeof PrismLayer; }; export {};