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.

32 lines
1.1 KiB

4 months ago
import type { DisplayObjectConfig } from '@antv/g';
import type { NodePortStyleProps, Point, TriangleDirection } from '../../types';
import type { PolygonStyleProps } from '../shapes';
import { IconStyleProps } from '../shapes';
import { Polygon } from '../shapes/polygon';
/**
* <zh/>
*
* <en/> Triangle node style props
*/
export interface TriangleStyleProps extends PolygonStyleProps {
/**
* <zh/>
*
* <en/> The direction of the triangle
* @defaultValue 'up'
*/
direction?: TriangleDirection;
}
/**
* <zh/>
*
* <en/> Triangle node
*/
export declare class Triangle extends Polygon<TriangleStyleProps> {
static defaultStyleProps: Partial<TriangleStyleProps>;
constructor(options: DisplayObjectConfig<TriangleStyleProps>);
protected getPoints(attributes: Required<TriangleStyleProps>): Point[];
protected getPortXY(attributes: Required<TriangleStyleProps>, style: NodePortStyleProps): Point;
protected getIconStyle(attributes: Required<TriangleStyleProps>): false | IconStyleProps;
}