Skip to content

arrow插件在指定了cornerRadius 后箭头错位 #4

@foolishflyfox

Description

@foolishflyfox

添加 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,显示结果为:

image

当 corderRadius 为 0 时箭头显示正常。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions