stroke inside 、stroke outside、stroke center #9727
Replies: 6 comments
-
|
very cool and super useful feature |
Beta Was this translation helpful? Give feedback.
-
|
@zhe-he Thanks for your snippet, very helpful for me. Also, do you know how to keep the original width/height of the rectangle? Because right now, if a 100x100px rectangle has a 10px stroke, it is drawn 110x110px |
Beta Was this translation helpful? Give feedback.
-
|
@vshepel |
Beta Was this translation helpful? Give feedback.
-
|
Fabric currently defaults to a center |
Beta Was this translation helpful? Give feedback.
-
|
Perfect, Super useful feature thank you |
Beta Was this translation helpful? Give feedback.
-
|
Cool idea, I just ran into this same problem with clipPath. If only it could trace any shape's border, and didn't distore on resize. Like @zhe-he said you'd really want to bake this into fabric to work as a naive feature, so you could set something like a strokePosition. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
simple demo
Complete demo
Beta Was this translation helpful? Give feedback.
All reactions