Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Path segments are not joined #132
Comments
|
Are you adapting existing SVG paths with rough or drawing fresh shapes? |
|
I'm trying to draw existing SVG paths (and for the current drawing mode, I also have to convert simple shapes to paths in nearly all cases). So there's no real way of knowing at drawing time which line-cap mode is appropriate. I already use square for drawing rectangles, though, so the blue + icon above isn't as bad anymore right now. |
|
I suspect it's the way the particular SVG path is defined. If it's broken into chunks then rough will treat each chunk as own shape. The traditional line joins are not the same because it's a different shape not a continuous ones. Also, if you are using SVG, you can set appropriate attributes yourself on the SVG node |
This can looks really bad with larger stroke widths. One workaround might be to use square or round line caps, but then every line segment gets longer, which might not be what was intended originally.
This also sometimes leads to rendering errors around the missing joint:
As if there's a self-intersecting path that's filled with even-odd.