Closed tomekole closed 4 years ago
I feel like that is not an issue with svg.js but more like with edge. How are we supposed to fix that? :D You might want to file a bug report to microsoft even thouugh its unlikely that they will ever fix that...
As a side note: You can use rotate(45)
on pattern, too!
It seems that the issue is caused by translate(0, 0) inside the pattern which is rendered as transform="matrix(1,0,0,1,0,0)"
I removed translate() from the rect /as it seems not needed inside the pattern/ and it is working in Edge.
Working code:
var pattern = this.svg.pattern(6, 6, add => {
add.rect(1.2, 6).fill("black")
}).rotate(45);
Thanks for the tip. Learning svg and svgjs :)
Yes translating by zero is not doing anything. I thought there was some special meaning behind it... Cool that you fixed it!
The following code, creating pattern, is crashing Edge browser (version: Edge/18.18363 ) and Excel web addin using Edge as webview. There is no javascript error, it just crashes and adds error to Windows event log.
It is working as expected in IE11, Chrome and Firefox.
Windows event log error: