You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you a lot for your development, it has been really helpful!
We want to use your code to save a SVG composed with different regions filled with colors and/or patterns
Here is our problem:
The library being used is html2canvas and for the colors, we use to assign the colors: fill:#a hex code
This works OK when saving the image file with html2canvas.
For the pattern we instead must do: fill: url(#'+selectedSwatchColor+')
where selectedSwatchColor is an image path found inside of the SVG as in this example:
This does not work when saving the image with html2canvas, in the sense that the result is that the suite part is exported "empty", as if nothing had been selected.
What the library developer should be consulted about adding support for is supporting fill: url(#image)
Would it be technically possible to add this feature in a futur version?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
First of all, thank you a lot for your development, it has been really helpful!
We want to use your code to save a SVG composed with different regions filled with colors and/or patterns
Here is our problem:
The library being used is html2canvas and for the colors, we use to assign the colors:
fill:#a hex code
This works OK when saving the image file with html2canvas.
For the pattern we instead must do:
fill: url(#'+selectedSwatchColor+')
where selectedSwatchColor is an image path found inside of the SVG as in this example:
This does not work when saving the image with html2canvas, in the sense that the result is that the suite part is exported "empty", as if nothing had been selected.
What the library developer should be consulted about adding support for is supporting
fill: url(#image)
Would it be technically possible to add this feature in a futur version?
Beta Was this translation helpful? Give feedback.
All reactions