Page MenuHomePhabricator

vg_load_svg: Support dasharray attribute for stroke
ClosedPublic

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

Details

Summary

It supports stroke-dasharray, one of the stroke properties of svg.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray

Test Plan

[Test SVG]
<svg viewBox="0 0 30 10" xmlns="http://www.w3.org/2000/svg">

<!-- 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" />

</svg>

Diff Detail

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