-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Viewer does not support full SVG 1.1 #51
Comments
<switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://desk.draw.io/support/solutions/articles/16000042487" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%">
Viewer does not support full SVG 1.1
</text>
</a>
</switch> This is a switch generated by Draw.io. Viewers that cannot render the first g will render the second element and thus display the message. It seems like includesvg cannot render the first element. I guess you just cannot use the Draw.io element that uses this feature if you include the svg like that in LaTeX. This sucks. This is a problem of includesvg though and only a usability problem of this extension, so I will close this issue. Please share your ideas how I can improve that (or how you can help improving this extension). Can you try to use Inkscape to export the svg to pdf manually and send a screenshoft of the pdf? |
Okay, fair enough. Makes sense. Can I force drawio to output svg 1.0? The difference according to wikipedia is
Oh well, once the
Well, can I force the extension to output svg 1.0?
Ehh, I am not familiar with svg's at all; and it returns a warning (but it does work):
(Command from here) And it outputted the following files:
The empty rectangle makes sense; since it lets LaTeX render the text. And without exporting to LaTeX:
It seems like something unsupported in |
On another note; can I get the |
Yeah. Svg would be better though :D
I don't know. It does not seem to be entirely unimportant.
No, unfortunately not. But you could try to not use svg 1.0 features.
I think this is a valid assumption to make.
Yes. Install the insiders, clone this repository, set |
|
Agreed :)
Hmm, I see. I notice that they specifically mention inkscape as incompatible as well
Sad, I guess I'll just have to manually remove the message with the text editor when I'm done creating the drawing.
For others reading; you missed the
Just like you I can't attach the generated extension because it's too big. Shame. If to use to you; for the next 12 hours (sorry future people) you can find what I generated here: https://dro.pm/u Could you upload a known-working version of the extension to that site so I can try it with what you built? |
I tried this; and this indeed removes the warning. Shame that wordwrapping needs to be sacrificed for that :-) I would still for sure see this as a valid workaround. Let me test your extension real quick! |
Hmm, your version refuses to even install... It has been spinning for a couple of minutes now; where my previous version would install in 5 seconds according to the logging. I packaged another version of my changes, same behavior. Where can I find more logging as to what vscode is doing? Repackaged:
First packaged (but I didn't update the version number, did vscode be lazy and pull the published 0.4.0 extension?):
Thanks for taking the time for this! |
Okay, restarting vscode helped or smth (not just reloading the window; like I had been doing between installs of the plugin). Now it correctly installed your version (you labeled it 0.5.0). However; it still keeps spinning forever: I've let this go for about 5 minutes; but nothing happens. I can't see anything significant in cpu/memory usages either. Any clue? Started vscode with |
Did you turn on the enable proposed api flag in package.json? |
Yes! The gif is actually with the |
Ah, I think you have to start it with |
VS Code just really does not want people to use their proposed APIs except for debugging new stuff. |
Yes! That did it! My bad, the man-page made me think that not providing an argument would enable it globally for all extensions :) Let's hope the next vscode update has the API in it! Thank you! This is gonna ease the overhead that drawings always had by a ton (no need to export them or load them back to the site when I have to edit them...)! Can't wait to work with this extension. Thank you for building it, and thank you for your support! |
Thank you ;) |
Uh oh, tiny issue... Some icons are missing! They show up as blanks; most notably all the Atlassian logos are missing. I confirmed that the svg's were present in the It's not just these, the Docker image is also missing (which is part of a MS Azure pack according to the source code). Is the drawio master just broken, or is there something I can do? |
Since you already checked out the source, I would be very happy if you could investigate this ;) Maybe I just need exclude these icons from the ignore list of the vsix package. |
Hi,
When I create a new fresh
.svg
file (I have the extra option to edit.svg
files directly in my vscode config); it adds this warningViewer does not support full SVG 1.1
; which also happens to get rendered into my LaTeX document. Why is this happening?Diagram:
![image](https://user-images.githubusercontent.com/3169104/82457386-a539ad00-9ab5-11ea-9888-a7baf12220f1.png)
Generated XML:
LaTeX:
(Inkscape is installed via apt,
v0.92.3 (2405546, 2018-03-11)
)PDF output:
![image](https://user-images.githubusercontent.com/3169104/82457464-c00c2180-9ab5-11ea-9c3a-31aeee6ef024.png)
Of course I can manually remove the warning; but that should not be the solution :-) Info:
(Yes, I am a minor version of VSCode behind)
The text was updated successfully, but these errors were encountered: