UNPKG

@logicflow/core

Version:

LogicFlow, help you quickly create flowcharts

19 lines (18 loc) 563 B
import { createElement as h } from 'preact/compat'; import { LogicFlow } from '../..'; export type IPolygonProps = { points: LogicFlow.PointTuple[]; x?: number; y?: number; className?: string; radius?: number; }; /** * 生成带圆角的多边形路径 * @param points 多边形顶点坐标数组 * @param radius 圆角半径 * @returns SVG 路径字符串 */ export declare function createRoundedPolygonPath(points: any, radius: any): string; export declare function Polygon(props: IPolygonProps): h.JSX.Element; export default Polygon;