Page MenuHomePhabricator

vg_load_svg: Support dasharray attribute for stroke

Authored by jsuya on Mon, Sep 14, 7:27 PM.



It supports stroke-dasharray, one of the stroke properties of svg.

Test Plan

[Test SVG]
<svg viewBox="0 0 30 10" xmlns="">

<!-- No dashes nor gaps -->
<line x1="0" y1="1" x2="30" y2="1" stroke="black" />

<!-- Dashes and gaps of the same size -->
<line x1="0" y1="3" x2="30" y2="3" stroke="black"
        stroke-dasharray="4" />

<!-- Dashes and gaps of different sizes -->
<line x1="0" y1="5" x2="30" y2="5" stroke="black"
        stroke-dasharray="4 1" />

<!-- Dashes and gaps of various sizes with an odd number of values -->
<line x1="0" y1="7" x2="30" y2="7" stroke="black"
        stroke-dasharray="4 1 2" />

<!-- Dashes and gaps of various sizes with an even number of values -->
<line x1="0" y1="9" x2="30" y2="9" stroke="black"
        stroke-dasharray="4 1 2 3" />


Diff Detail

rEFL core/efl
No Linters Available
No Unit Test Coverage
Build Status
Buildable 17323
Build 11586: arc lint + arc unit
jsuya created this revision.Mon, Sep 14, 7:27 PM
jsuya requested review of this revision.Mon, Sep 14, 7:27 PM
Hermet accepted this revision.Mon, Sep 14, 8:09 PM
This revision is now accepted and ready to land.Mon, Sep 14, 8:09 PM
Hermet closed this revision.Mon, Sep 14, 8:13 PM