mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
import value from svg
This commit is contained in:
parent
1eb8067741
commit
ad33bf38d0
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,7 @@
|
|||
opacity: 'opacity',
|
||||
'clip-path': 'clipPath',
|
||||
'clip-rule': 'clipRule',
|
||||
'vector-effect': 'strokeUniform'
|
||||
},
|
||||
|
||||
colorAttributes = {
|
||||
|
|
@ -80,6 +81,9 @@
|
|||
if ((attr === 'fill' || attr === 'stroke') && value === 'none') {
|
||||
value = '';
|
||||
}
|
||||
else if (attr === 'vector-effect') {
|
||||
value = value === 'non-scaling-stroke';
|
||||
}
|
||||
else if (attr === 'strokeDashArray') {
|
||||
if (value === 'none') {
|
||||
value = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue