import { ILayer, ILayerConfig } from '@antv/l7'; /** * Style的基类 */ export interface IBaseStyle { options?: Partial; normal: ItemType; style?: any; callback?: (layers: ILayer[]) => void; } export interface IComplexStyle extends IBaseStyle { hover: ItemType; active: ItemType; } /** * Point的单个Style项 */ export interface IPointStyleItem { color: string; shape: string; size: number; } /** * 整个Style类型 */ export type IPointStyle = IComplexStyle; /** * */ export interface ILineStyleItem { color: string; size: number; } export type ILineStyle = IComplexStyle; export interface IPolygonStyleItem { color: string; } export type IPolygonStyle = IComplexStyle; export type IMidPointStyleItem = IPointStyleItem; export type IMidPointStyle = IBaseStyle; export type IDashLineStyle = IBaseStyle; export type ITextStyleItem = Omit; export type ITextStyle = IBaseStyle & { active: ITextStyleItem; }; export interface IStyle { point: IPointStyle; line: ILineStyle; polygon: IPolygonStyle; midPoint: IMidPointStyle; dashLine: IDashLineStyle; text: ITextStyle; }