-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
Some icons are missing! They show up as blanks; most notably all the Atlassian logos are missing #53
Comments
drawio
source folder; but the logos are refusing to show up. Any idea?
I have spent some time digging around in the source code; but I don't see any issue. Can you reproduce this when you package the extension? |
I'll try it tomorrow! Thanks for the research ;) |
I can confirm that when you save an
I'm not sure where that path is supposed to lead; since it's relative. the |
Hmm, adding working images to the drawing I start to see a pattern. All images that don't work are references to
= Does this extension do anything with the file paths; or is this something ready to escalate to Drawio themselves? |
Hi, I'll have a look at it tomorrow. Does this happen on draw.io alone? I. E. when not using my extension?
…________________________________
From: MagicLegend <notifications@github.com>
Sent: Friday, May 22, 2020 12:10:05 PM
To: hediet/vscode-drawio <vscode-drawio@noreply.github.com>
Cc: Henning Dieterichs <notify.henning.dieterichs@live.de>; Author <author@noreply.github.com>
Subject: Re: [hediet/vscode-drawio] Some icons are missing! They show up as blanks; most notably all the Atlassian logos are missing (#53)
Hmm, adding working images to the drawing I start to see a pattern. All images that don't work are references to .svg files themselves. Note that the used URI for those images can never resolve, since the data://text/ is double here. Other icons from the Web Icons or Atlassian packs are being inserted as raw svg xml; or as HTML:
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 38px; height: 1px; padding-top: 416px; margin-left: 261px;">
<div style="box-sizing: border-box; font-size: 0; text-align: center; ">
<div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #ffffff; line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">
</>
</div>
</div>
</div>
</foreignObject>
<text x="280" y="420" fill="#ffffff" font-family="Helvetica" font-size="14px" text-anchor="middle" font-weight="bold">
</>
</text>
</switch>
</g>
=
[image]<https://user-images.githubusercontent.com/3169104/82657091-0e8bfe00-9c25-11ea-89a7-69c632f3b9b4.png>
Does this extension do anything with the file paths; or is this something ready to escalate to Drawio themselves?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAWLWQAJ4O5U7ZHCK27XFXTRSZFP3ANCNFSM4NGWD7VQ>.
|
Well, I couldn't figure out how to actually run the included drawio without the extension. Since the drawio-desktop version is mismatched with the one here; I figured that it wasn't identical. It would also add a wrapper around drawio, which I can imagine could resolve the issue. Do you know how I could run the included drawio without the wrapper of the extension? Feel free to answer tomorrow ;-) |
I mean does it happen with the draw.io website?
…________________________________
From: MagicLegend <notifications@github.com>
Sent: Friday, May 22, 2020 12:53:29 PM
To: hediet/vscode-drawio <vscode-drawio@noreply.github.com>
Cc: Henning Dieterichs <notify.henning.dieterichs@live.de>; Author <author@noreply.github.com>
Subject: Re: [hediet/vscode-drawio] Some icons are missing! They show up as blanks; most notably all the Atlassian logos are missing (#53)
Well, I couldn't figure out how to actually run the included drawio without the extension. Since the drawio-desktop version is mismatched with the one here; I figured that it wasn't identical. It would also add a wrapper around drawio, which I can imagine could resolve the issue.
Do you know how I could run the included drawio without the wrapper of the extension? Feel free to answer tomorrow ;-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAWLWQE75W53JSNBDXY6HKDRSZKSTANCNFSM4NGWD7VQ>.
|
Ah yes. Didn't test that yet; good point. The same does not happen, because it references an online image:
Note that the behaviour of the website version and the extension version of referencing an |
I can confirm that this issue persists on c42d865 (current insiders build, v0.6.1). |
I did some research. This is the drawio xml node: <mxCell id="11" value="" style="image;image=img/lib/atlassian/Atlassian_Logo.svg;" vertex="1" parent="1">
<mxGeometry x="160" y="540" width="166" height="170" as="geometry"/>
</mxCell> This is the svg node when exporting with my vscode extension: <image xmlns="http://www.w3.org/2000/svg" x="119.5" y="519.5" width="166" height="170" xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="data://text/data://text/img/lib/atlassian/Atlassian_Logo.svg"/> And this is the svg node when exporting with https://draw.io: <image xmlns="http://www.w3.org/2000/svg" x="-0.5" y="239.5" width="446" height="280" xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="https://app.diagrams.net/img/lib/atlassian/Atlassian_Logo.svg"/> Those images are referenced relatively to the hosting domain. This does not make sense for the VS Code extension (where the domain is Drawio must have some logic that makes these relatives references absolute. I played around with setting these: window.GRAPH_IMAGE_PATH = "https://app.diagrams.net/img";
window.DRAWIO_BASE_URL = "https://app.diagrams.net"; But I didn't get it working. I don't think I will spend much more time trying to fix this as I don't think much about this feature... Sorry! |
If this feature is really important for you, you can consider to support me on github sponsors! I happily accept PRs though. |
No problem, just wanted to add my observation to the thread :). I'm already very glad you made this very neat extension 👍 . |
Just to add my observations on this: the problem seems to have been introduced after v0.4 (i've reverted back to it and all works as expected). Unfortunately i don't see 0.5 or 0.5.1 in the previus versions list to narrow it down even more, but if i would venture a guess it would be due to this change : - Does not spawn an http server anymore to host Draw.io from 0.5 |
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
drawio
source folder; but the logos are refusing to show up. Any idea?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?
Originally posted by @MagicLegend in #51 (comment)
The text was updated successfully, but these errors were encountered: