NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/esm/geometry/path.d.ts
2023-09-14 14:47:11 +08:00

38 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { MappingDatum } from '../interface';
import Geometry, { GeometryCfg } from './base';
import Element from './element';
/** 引入对应的 ShapeFactory */
import './shape/line';
/** Path 构造函数参数类型 */
export interface PathCfg extends GeometryCfg {
/** 是否连接空值 */
connectNulls?: boolean;
}
/**
* Path 几何标记。
* 用于绘制路径图等。
*/
export default class Path extends Geometry {
readonly type: string;
readonly shapeType: string;
/** 是否连接空值 */
connectNulls: boolean;
constructor(cfg: PathCfg);
/**
* 创建所有的 Element 实例,对于 Path、Line、Area一组数据对应一个 Element。
* @param mappingData
* @param [isUpdate]
* @returns elements
*/
protected createElements(mappingData: MappingDatum[], index: number, isUpdate?: boolean): Element[];
/**
* 获取组成一条线(一组数据)的所有点以及数据
* @param mappingData 映射后的数组
*/
protected getPointsAndData(mappingData: MappingDatum[]): {
points: any[];
data: any[];
};
private getShapeInfo;
}