g6/packages/site/docs/common/ArrowStyle.zh.md
yvonneyx 6179c5d036
docs: add item (node,edge,combo) v5 docs (#5143)
* docs: add nodes docs

* docs: add item edge docs

* docs: refine item (node,edge) docs

* docs: combo docs

* perf: refine model rect item

* docs: add custom data transformer docs

* docs: refine item docs

---------

Co-authored-by: yvonneyx <banxuan.zyx@antgroup.com>
2023-11-15 21:16:17 +08:00

1.8 KiB

ArrowProps
type ArrowType = 'triangle' | 'circle' | 'diamond' | 'rect' | 'vee' | 'triangle-rect' | 'simple';

type ArrowStyle = PathStyleProps & {
  type: ArrowType;
  width: number;
  height: number;
  offset?: number;
};

type ArrowProps = {
  // 边的起始端箭头
  startArrow?: boolean | ArrowStyle;
  // 边的结束端箭头
  endArrow?: boolean | ArrowStyle;
};

ArrowType 可选值如下:

类型名称 效果
'simple'
'triangle'
'circle'
'diamond'
'rect'
'vee'
'triangle-rect'