Replies: 2 comments
-
Import the lib, and then just set the strokeWidth. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Icyretsz you can't. You could clip each shape with the exact same shape to avoid seeing it, but that would still make the bounding box grow and would have bad performances probably |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I’m trying to implement a stroke width slider similar to the one in Canva. I use
Object.set('strokeWidth')
in theonChange
method of the slider to modify the stroke width of an object. However, I've noticed that the stroke expands outwards, causing the overall size of the object to increase.Below is a video illustrating the issue.
trim.12FE93FD-4E2A-4C8F-B27C-E6CB2F3B2366.MOV
How can I adjust the stroke width while keeping the object size constant?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions