Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
foolishflyfox opened this issue Dec 8, 2024 · 1 comment
Open

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

foolishflyfox opened this issue Dec 8, 2024 · 1 comment

Comments

@foolishflyfox
Copy link

添加 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 时箭头显示正常。

@leaferjs
Copy link
Owner

收到,谢谢反馈~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants