add svg import test

This commit is contained in:
Andrea Bogazzi 2019-02-17 22:46:54 +01:00
parent ad33bf38d0
commit 97e4e57a73
4 changed files with 8 additions and 1 deletions

View file

@ -55,7 +55,7 @@ fabric.SHARED_ATTRIBUTES = [
'stroke', 'stroke-dasharray', 'stroke-linecap', 'stroke-dashoffset',
'stroke-linejoin', 'stroke-miterlimit',
'stroke-opacity', 'stroke-width',
'id', 'paint-order',
'id', 'paint-order', 'vector-effect',
'instantiated_by_use', 'clip-path'
];
/* _FROM_SVG_END_ */

View file

@ -0,0 +1,6 @@
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="150" height="150" xml:space="preserve">
<rect x="1" y="1" width="20" height="20" transform="matrix(4 0 0 1.5 0 0)" stroke-width="3" vector-effect="non-scaling-stroke" fill="none" stroke="red" />
<rect x="4" y="4" width="20" height="20" transform="matrix(4 0 0 1.5 0 0)" stroke-width="3" fill="none" stroke="blue" />
</svg>

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

View file

@ -85,6 +85,7 @@
'clippath-6',
'clippath-7',
'clippath-9',
'vector-effect'
//'clippath-8',
].map(createTestFromSVG);