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

Setting strokeUniform:true breaks polygon points editing when the polygon is scaled #7881

Closed
graphics-et-al opened this issue Apr 18, 2022 · 1 comment

Comments

@graphics-et-al
Copy link

Version

5.0.0

Test Case

http://jsfiddle.net/wilheim/q7brhmcn/1/

Information about environment

Browser and Svelte

Steps To Reproduce

  1. In the points editing example at http://fabricjs.com/custom-controls-polygon, set the polygon's strokeUniform property to true
  2. Hit 'Toggle editing polygon' button
  3. Move a control point

Expected Behavior

Only the control point moves

Actual Behavior

The whole polygon moves in unexpected ways

There's an inelegant workaround available by toggling the strokeUniform property when starting and stopping editing, but it's aesthetically terrible.

I suspect it has to do with some internal line weight not updating when scaled. The editing polygon works as expected when the polygon is not scaled.

@ShaMan123
Copy link
Contributor

duplicate #7605
check out #7639

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