20 lines
535 B
TypeScript
20 lines
535 B
TypeScript
import { MappingDatum, ShapeInfo } from '../interface';
|
|
import Geometry from './base';
|
|
/** 引入 Point 对应的 ShapeFactory */
|
|
import './shape/point';
|
|
/**
|
|
* Point 几何标记。
|
|
* 常用于绘制点图。
|
|
*/
|
|
export default class Point extends Geometry {
|
|
readonly type: string;
|
|
readonly shapeType: string;
|
|
protected generatePoints: boolean;
|
|
/**
|
|
* 获取一个点的绘制信息。
|
|
* @param mappingDatum
|
|
* @returns draw cfg
|
|
*/
|
|
protected getDrawCfg(mappingDatum: MappingDatum): ShapeInfo;
|
|
}
|