添加 Line 元素:
const line = new Line({
strokeWidth: 5,
stroke: {
type: "solid",
color: "#000000",
},
startArrow: "circle",
endArrow: "arrow",
cornerRadius: 5,
points: [20, 20, 200, 60, 150, 180],
});
leafer.tree.add(line);
其中指定 cornerRadius 为 5,显示结果为:
当 corderRadius 为 0 时箭头显示正常。
添加 Line 元素:
其中指定 cornerRadius 为 5,显示结果为:
当 corderRadius 为 0 时箭头显示正常。