mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-11 23:33:10 +00:00
Fixed svg output for backgroundColorPattern with repeat: 'no-repeat'
This commit is contained in:
parent
a77cbfe2be
commit
b172a47ebe
1 changed files with 2 additions and 2 deletions
|
|
@ -960,8 +960,8 @@
|
|||
if (this.backgroundColor && this.backgroundColor.source) {
|
||||
markup.push(
|
||||
'<rect x="0" y="0" ',
|
||||
'width="', (this.backgroundColor.repeat !== 'repeat-y' ? this.width : this.backgroundColor.source.width),
|
||||
'" height="', (this.backgroundColor.repeat !== 'repeat-x' ? this.height : this.backgroundColor.source.height),
|
||||
'width="', (this.backgroundColor.repeat === 'repeat-y' || this.backgroundColor.repeat === 'no-repeat' ? this.backgroundColor.source.width : this.width),
|
||||
'" height="', (this.backgroundColor.repeat === 'repeat-x' || this.backgroundColor.repeat === 'no-repeat' ? this.backgroundColor.source.height : this.height),
|
||||
'" fill="url(#backgroundColorPattern)"',
|
||||
'></rect>'
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue