@alicloud/cloud-charts
Version:

13 lines (12 loc) • 662 B
TypeScript
import { Geometry, Types } from "./types";
export declare type GeomSizeConfig = number | string | [number, number] | Types.SizeAttrCallback | Types.AttributeOption;
/**
* 设置图形元素 size 属性
*
* @param {Geometry} geom 图形元素
* @param {GeomSizeConfig} sizeConfig 用户设置的 size 配置项
* @param {GeomSizeConfig} defaultValue 默认值
* @param {string} arrayKey 配置项为数组时映射的数据key
* @param {string} functionKey 配置项为函数时映射的数据key
* */
export default function geomSize(geom: Geometry, sizeConfig: GeomSizeConfig, defaultValue: GeomSizeConfig, arrayKey: string, functionKey: string): void;