箭头

箭头提供多种类型的箭头头部。

基本箭头

基本箭头示例

const n = {
  x: 180,
  y: 120,
  shapes: arrow.basic.shapes({ width: 16, height: 20 }, arrowStyle.normal),
},
graph.updateQueue(0, [[n]]);

Vee 箭头

Vee 箭头示例

const n1 = {
  x: 180,
  y: 120,
  shapes: arrow.vee.shapes({ width: 16, low: -6, high: 12 }, arrowStyle.normal),
};
const n2 = {
  x: 180,
  y: 240,
  shapes: arrow.vee.shapes({ width: 12, low: 6, high: 18 }, arrowStyle.normal),
};
graph.updateQueue(0, [[n1, n2]]);

三角箭头

三角箭头示例:

const n = {
  x: 180,
  y: 120,
  shapes: arrow.triangle.shapes({ width: 16, height: 20 }, arrowStyle.normal),
},
graph.updateQueue(0, [[n]]);

子弹头箭头

子弹头箭头示例:

const n = {
  x: 180,
  y: 120,
  shapes: arrow.bullet.shapes({ width: 12, height: 18 }, arrowStyle.normal),
},
graph.updateQueue(0, [[n]]);

钝箭头

钝箭头示例:

const n = {
  x: 180,
  y: 120,
  shapes: arrow.blunt.shapes({ width: 16, low: 12, high: 24 }, arrowStyle.normal),
},
graph.updateQueue(0, [[n]]);

穹顶箭头

穹顶箭头示例:

const n = {
  x: 180,
  y: 120,
  shapes: arrow.dome.shapes({ width: 16, low: 12 }, arrowStyle.normal),
},
graph.updateQueue(0, [[n]]);

API

TODO