@alicloud/cloud-charts
Version:

12 lines (11 loc) • 517 B
TypeScript
import { Geometry, Types } from "./types";
export declare type GeomStyleConfig = Types.LooseObject | Types.StyleOption | Types.StyleCallback;
/**
* 设置图形元素 style
*
* @param {Geometry} geom 图形元素
* @param {GeomStyleConfig} styleConfig 样式配置项
* @param {Object} defaultStyle 默认样式
* @param {string} defaultFields 函数调用key
* */
export default function geomStyle(geom: Geometry, styleConfig: GeomStyleConfig, defaultStyle?: Types.LooseObject, defaultFields?: string): void;