export type IFillType = "icon" | "color" | "gradual" | "none"; export type IStrokeType = "icon" | "color" | "gradual" | "none"; export type ILineType = "dotted" | "dash" | "none" | "solid"; export type IFeatureType = "Point" | "LineString" | "Polygon"; export class AnimationConfig { constructor(c?: AnimationConfig) { c && Object.assign(this, c); } animate? = false; // 是否开启 interval? = 1000; // 间隔 duration? = 1000; // 持续时间,延时 trailLength? = 5; // 流线长度 } export class IconStyleConfig { constructor(c?: IconStyleConfig) { c && Object.assign(this, c); } repeatType?: "no-repeat" | "repeat" = "no-repeat"; // 重复方式 iconSize? = 12; // 图标大小 type?: "svg" | "url" | "iconfont" | "arrow" = "svg"; // 图标类型 radius? = 0; // 旋转角度 minRepeatPixels? = 12; // 最小重复间隔 } export class GradualStyleConfig { constructor(c?: GradualStyleConfig) { c && Object.assign(this, c); } colors?: string[] = []; // 渐变关键色 radius? = 0; // 旋转角度 }