AnsweredAssumed Answered

SVG stroke-dasharray value of the SimpleLine Symbol

Question asked by lingpri on Oct 28, 2016
Latest reply on Nov 2, 2016 by lingpri

I need to display the style vlaues of the SimpleLine symbol in a combobox as svg graphics,

so that there's a visual cue for the different styles. Where can I  get the corresponding stroke-dasharray values for the line styles like "DOT, LONGDASH" etc. Please advice.

<SVG width="100" height="50">
<path d={obj.d} stroke={obj.stroke} stroke-width={obj.width} stroke-opacity="1" stroke-dasharray="1,60" />
</SVG>

<SVG width="100" height="50">
<path d={obj1.d} stroke={obj1.stroke} stroke-width={obj1.width} stroke-opacity="1" stroke-dasharray="10.66,4,1.33,4" />
</SVG>

Outcomes