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
SVG output doesn't write the link to embedded bitmap files #121
Comments
The code you have below only has a PNG, did you mean to paste something else? |
Sorry, I meant PNG. (I tried both) I'll change the text so it matches. If you compare the original code from issue 80, with the code below. I changed it to use a local GoJS and replaced the use of myDiagram.add with a template node and a model, where the template node has an image. |
Full code from the original sample, including the change I made:
|
The SVG output contains the blue rectangle, but not the xlink for the image:
I think it should include this:
|
I see what you mean. I'll investigate and get back to you. |
This is fixed and will be out with the next release, probably within a week. Thanks for reporting. If you need a workaround in the meantime you may need to use
should work. |
Quick work. Thanks so much!! |
This should now be fixed in the newest release, GoJS 2.1.32. |
Following the fix to this issue: cannot render server side image that contains a Picture #80
#80
I modified the sample code you provided in this fix to use the standard template example, but added a PNG to the template (see myDiagram below). Looking at the SVG produced there is no reference to the PNG file found in the output.
I also added a Blue background, to the Picture component, as without it there is no reference to the Picture component at all.
Since the Blue rectangle displays correctly, I believe the picture reference should also be there.
The text was updated successfully, but these errors were encountered: