930 BTypeScriptView Raw
1import type { DisplayObjectConfig } from '@antv/g';
2import type { Point } from '../../types';
3import type { IconStyleProps, PolygonStyleProps } from '../shapes';
4import { Polygon } from '../shapes/polygon';
5/**
6 * <zh/> 六边形节点样式配置项
7 *
8 * <en/> Hexagon node style props
9 */
10export interface HexagonStyleProps extends PolygonStyleProps {
11 /**
12 * <zh/> 外半径,默认为宽高的最小值的一半
13 *
14 * <en/> outer radius, default is half of the minimum value of width and height
15 */
16 outerR?: number;
17}
18/**
19 * <zh/> 六边形节点
20 *
21 * <en/> Hexagon node
22 */
23export declare class Hexagon extends Polygon<HexagonStyleProps> {
24 constructor(options: DisplayObjectConfig<HexagonStyleProps>);
25 private getOuterR;
26 protected getPoints(attributes: Required<HexagonStyleProps>): Point[];
27 protected getIconStyle(attributes: Required<HexagonStyleProps>): false | IconStyleProps;
28}