RE: Does PATH need a new attribute?

While one can use stroke-dasharray to get such an effect, it feels like a misuse semantically, since there is not actually a dash pattern on the shape, but that distict edges are stroked with a certain style.  If one were to try and do some analysis of the SVG to learn something about the shape - having it with a dashed stroke would mislead about what the object represents.

Thomas

> -----Original Message-----
> From: Dr. Olaf Hoffmann [mailto:Dr.O.Hoffmann@gmx.de]
> Sent: Friday, April 17, 2015 4:57
> To: www-svg@w3.org
> Subject: RE: Does PATH need a new attribute?
> 
> Hello,
> 
> currently one can use stroke-dasharry (together maybe with use elements or
> entities) to apply different stroke decorations) to different fractions of a
> path.
> Of course, currently, to apply it only to different segments, it requires
> calculation of the path length of segments of a path, at least for elliptical arcs
> and cubic segments not a trivial task for authors - and a source of possible
> implementation bugs due to accuracy problems for numerical algorithms to
> determine the length of a segment.
> Currently authors can only provide information about their result for the
> complete path to ensure that implementations align their results, this would
> be necessary for each segment for such a use case and some others as well.
> 
> Maybe if this turns out to be a more often required use case, there should
> be another attribute extending/alternating either the meaning of stroke-
> dasharray or having such a functionality additionally to stroke-dasharray.
> In both cases however one has to define in detail what happens on the
> beginning and end of a segment concering the interaction with some other
> stroke-properties.
> 
> 
> 
> Olaf

Received on Thursday, 23 April 2015 19:57:59 UTC