Skip to content
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 exported from cloudcraft are only one object #231

Closed
kyrianae opened this issue Oct 17, 2020 · 11 comments
Closed

svg exported from cloudcraft are only one object #231

kyrianae opened this issue Oct 17, 2020 · 11 comments

Comments

@kyrianae
Copy link

I m trying to use a svg export from cloudcraft
Only one item is found when i want to bind with values

draw io is not able to ungroup this svg , but inkscape can afetr edition the svg doesn t look realy good

is there a way on svg load in flowcharting to show the hierarchy tree of svg to select nodes ?

@kyrianae kyrianae changed the title svg exported from cloucraft are only one object svg exported from cloudcraft are only one object Oct 17, 2020
@kyrianae
Copy link
Author

cloudcraft.zip
here is a cloudcraft export

@algenty
Copy link
Owner

algenty commented Oct 19, 2020

Try to post your question on draw.io support, you need to convert it in xml drawio format.
https://groups.google.com/forum/#!forum/drawio

BR
Arnaud
PS : draw.io supports visio format.

@kyrianae
Copy link
Author

done

thanks for your help

@kyrianae kyrianae reopened this Oct 20, 2020
@kyrianae
Copy link
Author

answer from drawio
drawio is not a svg editor ...

how to solve the problem

I didn t checked the code of the plugin and of draw io to know which one is increminated

build the diagram in draw io work fine , I have different objects in grafana after that,
but I want to use cloudcraft 3d diagram that import only as one object.

is there a svg converter to drawio ?
If the point of view of Drawio is that they don t care the svg import .... I m not sure to succeed

@algenty
Copy link
Owner

algenty commented Oct 21, 2020

Can you export your cloudcraft in visio format (vsd), not svg.
If you can, import visio into draw.io

@kyrianae
Copy link
Author

Since last time I found a page where it was written that svg was import as only one object.

then I wonder why svg generated from drawio with only 3 shapse is imported as 3 objects
nevertheless I understand the choice to not improve the svg integration

for vsd I will check the conversion but if i follow you others comments, drawio is not a svg editor nether a vsd one I think ?
cloudcraft have only 2d export to drawio, and 3d export to svg, no svg

but i will check vsd

@CrashLaker
Copy link

CrashLaker commented Oct 21, 2020

Hi @kyrianae,

The SVG will only be a single (root) one comprising many SVG shapes.
As you can see here there are paths, rectangles, circles, polygons , etc.

Draw.io uses mxGraph syntax so you'd have to manually convert SVG to mxGraph or via a Library that already does it. As of now
I'm also still looking for that library.

Few resources that might help you:

regards,
C.

@CrashLaker
Copy link

Btw how is cloudcraft compared to using Draw.io?
I've never used CloudCraft but I've done some similar experiments on #148
Another interesting challenge would be to dinamically rearrange the layout like #145 (comment)
2D one #145 (comment)

@kyrianae
Copy link
Author

with cloudcraft you have price and so on of your platform
it s directly used to generate script to deploy the architecture

Use the same graph for deploy architecture and monitor it in grafana could be a very interesting thing
actually I want to minimize manual action and just want to use cots (We will see if we need to develop)
dirty plan b is to open svg from cloudcraft in drawio and add circle on area I want to change color and bind it with garfana data
maybe a little dev could automaize that.

thanks a lot @CrashLaker for all your informations and work

In parallel I checked if cloudcraft can export 3d graph in drawio

@kyrianae
Copy link
Author

Can you export your cloudcraft in visio format (vsd), not svg.
If you can, import visio into draw.io

using visio, I loose a lot, color .....

@algenty
Copy link
Owner

algenty commented Nov 2, 2020

export as visio and import into draw.io is olny the solution

@algenty algenty closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants