At the moment, closed paths are only rendered correctly when the angle in the first/last join is zero. Support for non-trivial joins would be nice to have. The changes outlined in #7 should make this possible in principle.
The main issue is the following: Suppose we want to draw the path
Then we would have to know the angle of the join at (0,0) already at the time we start drawing the first line segment (from (0,0) to (2,0)), so computations must be made in a pre-pass for each connected component of the path.
At the moment, closed paths are only rendered correctly when the angle in the first/last join is zero. Support for non-trivial joins would be nice to have. The changes outlined in #7 should make this possible in principle.
The main issue is the following: Suppose we want to draw the path
Then we would have to know the angle of the join at
(0,0)
already at the time we start drawing the first line segment (from(0,0)
to(2,0)
), so computations must be made in a pre-pass for each connected component of the path.