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

feat: add flag for link line visiable for Transformer's rotate #1690

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

liulinboyi
Copy link
Contributor

Hide the line of the Konva rotation handle and keep the rotation function.

Resolve the #1688.

var rect = new Konva.Rect({
  x: 100,
  y: 100,
  width: 200,
  height: 200,
  fill: "pink",
  draggable: true
});

var tr = new Konva.Transformer({
  nodes: [rect ],
  anchorSize: 10,
  rotateLinkLineVisiable: false, // add this flag to hide the link line
});

The rotateLinkLineVisiable's default value is true, when the value is false will be like the follow:
image

@lavrton lavrton merged commit 8a05f34 into konvajs:master Dec 20, 2023
2 checks passed
@lavrton
Copy link
Member

lavrton commented Dec 20, 2023

I changed the attribute name a little. Thanks for the PR.

@liulinboyi
Copy link
Contributor Author

I changed the attribute name a little. Thanks for the PR.

Cool!

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

Successfully merging this pull request may close these issues.

2 participants