You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1013 B
30 lines
1013 B
import type { DisplayObjectConfig } from '@antv/g';
|
|
import type { NodePortStyleProps, Point } from '../../types';
|
|
import type { IconStyleProps, PolygonStyleProps } from '../shapes';
|
|
import { Polygon } from '../shapes/polygon';
|
|
/**
|
|
* <zh/> 五角星节点样式配置项
|
|
*
|
|
* <en/> Star node style props
|
|
*/
|
|
export interface StarStyleProps extends PolygonStyleProps {
|
|
/**
|
|
* <zh/> 内半径,默认为外半径的 3/8
|
|
*
|
|
* <en/> Inner radius, default is 3/8 of the outer radius
|
|
*/
|
|
innerR?: number;
|
|
}
|
|
/**
|
|
* <zh/> 五角星节点
|
|
*
|
|
* <en/> Star node
|
|
*/
|
|
export declare class Star extends Polygon<StarStyleProps> {
|
|
constructor(options: DisplayObjectConfig<StarStyleProps>);
|
|
private getInnerR;
|
|
private getOuterR;
|
|
protected getPoints(attributes: Required<StarStyleProps>): Point[];
|
|
protected getIconStyle(attributes: Required<StarStyleProps>): false | IconStyleProps;
|
|
protected getPortXY(attributes: Required<StarStyleProps>, style: NodePortStyleProps): Point;
|
|
}
|
|
|