@visactor/vrender-core
Version:
## Description
10 lines (9 loc) • 396 B
TypeScript
import type { IPointLike } from '@visactor/vutils';
import type { IGraphicAttribute, IGraphic } from '../graphic';
export type IPolygonAttribute = {
points: IPointLike[];
cornerRadius?: number | number[];
closePath?: boolean;
};
export type IPolygonGraphicAttribute = Partial<IGraphicAttribute> & Partial<IPolygonAttribute>;
export type IPolygon = IGraphic<IPolygonGraphicAttribute>;