-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can fabricJS read SVG files with Linear Gradient? #2390
Comments
I use 1.5.0 |
can you provide stampurl? |
what is a stampurl? |
`fabric.loadSVGFromURL(stampURL, function (objects, options) {`` the url where you are loading the svg. |
you probably meant sampleURL. Do you know were can I find the code for this function? it is not in the fabric js file |
you wrote stampUrl in your first post. i just copied it. This behaviour should be eliminated or at least duplicated for stroke and checked for fill.toLive() so it can guard against patterns and gradients. |
changing isSameColor like this fix the issue:
|
First of all your fix, fixes it perfectly. |
The problem is that in this particular SVG sometimes the fill is a gradient. |
I don’t know who to turn to, I tried the google group and Stack overflow but got no response. therefore I try on this channel although I know it is not the common way, hopefully someone will see my question. I am straggling to use the fabricjs on a hand held device. The demo of touch event is working on tablets with touch events and is perfect for me but for some reason I cann’t get it to work. I assumed my library does not include the touch support so in http://fabricjs.com/build/ I created another build which includes all options. This didn’t work. I tried using the build which is used in the demo, taken from: http://fabricjs.com/lib/fabric_with_gestures.js but no success too. I will really appreciate any assistance. I have a jsfiddle http://jsfiddle.net/orihadar/F6UU4/48/. And here is my code:
}
Best regards Ori hadar |
Here is my code for adding SVG file:
the following specific file cause errors in the console (other files works perfect):
This file cause the following errors:
I belive the problem is with the LinearGradient.
Any solution?
The text was updated successfully, but these errors were encountered: