mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-15 01:03:10 +00:00
Bugfix object.opacity == 0 in svg output
If object.opacity = 0 the svg output sets opacity to 1.
This commit is contained in:
parent
e56d37d9da
commit
571887036f
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@
|
|||
"stroke-width: ", (this.strokeWidth ? this.strokeWidth : '0'), "; ",
|
||||
"stroke-dasharray: ", (this.strokeDashArray ? this.strokeDashArray.join(' ') : "; "),
|
||||
"fill: ", (this.fill ? (this.fill && this.fill.toLive ? 'url(#SVGID_' + this.fill.id + ')' : this.fill) : 'none'), "; ",
|
||||
"opacity: ", (this.opacity ? this.opacity : '1'), ";",
|
||||
"opacity: ", (typeof this.opacity !== 'undefined' ? this.opacity : '1'), ";",
|
||||
(this.visible ? '' : " visibility: hidden;")
|
||||
].join("");
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue