HomePhabricator

vg_load_svg: Support dasharray attribute for stroke

Authored by jsuya on Sep 14 2020, 8:11 PM.

Description

vg_load_svg: Support dasharray attribute for stroke

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>

Reviewers: Hermet, smohanty

Reviewed By: Hermet

Subscribers: kimcinoo, herb, cedric, committers, reviewers

Tags: efl

Differential Revision: https://phab.enlightenment.org/D12146

Details

Committed
HermetSep 14 2020, 8:11 PM
Reviewer
Hermet
Differential Revision
D12146: vg_load_svg: Support dasharray attribute for stroke
Parents
rEFLc41240648757: release: Update NEWS and bump version for 1.25.0-beta3 release
Branches
Unknown
Tags
Unknown