On Mon, 2014-08-25 at 09:11 +0200, Krzysztof KosiĆski wrote:
2014-08-24 8:49 GMT+02:00 Tavmjong Bah <tavmjong@...8...>:
Hi,
I'm sure we've talked about it before but in the context of discussing the new Catmull-Rom path commands[1] yesterday at the SVG Working group meeting we briefly discussed adding a new close path command that would insure smoothness when closing a path. There is significant support for doing so. Can somebody whip up a quick proposal that I can present to the group? (SVG with a couple of figures would be good.) Or at least give me some input into the idea. We have two more days of meetings, Monday and Tuesday.
What I would like to see is a close path command that does not create a new segment but can instead replace the final point of any other command; for instance, X. One would then write something like:
M -5,0 A 5,5 0 0 0 5,0 A 5,5 0 0 0 X
to draw a circle of radius 5 centered at 0,0. Under the current spec, special care needs to be taken when writing out the last segment, because otherwise numerical errors can cause this extra closing segment to unexpectedly appear.
Regards, Krzysztof
I presented this to the WG but didn't get very far. We considered three different syntax alternatives but someone seemed to object to each one. One member in particular didn't see a problem with the current spec but I think I can convince the group if I prepare a demo ahead of time to show problems with rendering (markers is one place I know about where there is a problem).
Tav