mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
add svg import test
This commit is contained in:
parent
ad33bf38d0
commit
97e4e57a73
4 changed files with 8 additions and 1 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
6
test/visual/assets/vector-effect.svg
Normal file
6
test/visual/assets/vector-effect.svg
Normal 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 |
BIN
test/visual/golden/vector-effect.png
Normal file
BIN
test/visual/golden/vector-effect.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 423 B |
|
|
@ -85,6 +85,7 @@
|
|||
'clippath-6',
|
||||
'clippath-7',
|
||||
'clippath-9',
|
||||
'vector-effect'
|
||||
//'clippath-8',
|
||||
].map(createTestFromSVG);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue