1 | import { Datum } from '../interface';
|
2 | import Geometry from './base';
|
3 | /** 引入 Path 对应的 ShapeFactory */
|
4 | import './shape/polygon';
|
5 | /**
|
6 | * Polygon 几何标记。
|
7 | * 常用于绘制色块图、日历图等。
|
8 | */
|
9 | export default class Polygon extends Geometry {
|
10 | readonly type: string;
|
11 | readonly shapeType: string;
|
12 | protected generatePoints: boolean;
|
13 | /**
|
14 | * 获取 Shape 的关键点数据。
|
15 | * @param obj
|
16 | * @returns
|
17 | */
|
18 | protected createShapePointsCfg(obj: Datum): any;
|
19 | }
|