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.

31 lines
1013 B

4 months ago
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;
}