UNPKG

796 BTypeScriptView Raw
1import { Component } from '@antv/f-engine';
2import { GuideProps } from '../withGuide';
3export interface TagGuideProps extends GuideProps {
4 points?: {
5 x: number;
6 y: number;
7 }[] | null;
8 canvasWidth?: number;
9 canvasHeight?: number;
10 offsetX?: number | string;
11 offsetY?: number | string;
12 autoAdjust?: boolean;
13 /**
14 * 箭头的方向
15 */
16 direct?: string;
17 /**
18 * 箭头的边长
19 */
20 side?: string | number;
21 /**
22 * 文字内容
23 */
24 content?: string;
25 /**
26 * 背景样式设置,见 group 绘图属性
27 */
28 background?: any;
29 /**
30 * 文字样式
31 */
32 textStyle?: any;
33}
34export default class Tag extends Component<TagGuideProps> {
35 render(): import("@antv/f-engine").JSX.Element;
36}