-
Hello! Could you please clarify a bit what is an algorithm of drawio publishing link ( I would imagine it is something like The background: I am the JetBrains IDEA diagrams developer. We would like to make an integration with drawio so that every diagram generated by our products could be opened in your brilliant editor. I already implemented an XML file generation and now I would like to make a button Thank you in advance for your help and all the hard work on the drawio and related products. I personally find them one of the best known and use it a lot when needed. Best wishes, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Oh, reading carefully your FAQ docs I noticed the prefix letter I am sorry for my inattentiveness. |
Beta Was this translation helpful? Give feedback.
-
Hi, Strictly it's URIencode, rather than URL encode, there is a tiny difference, but if you hit it you'll not be able to decode. See: https://jgraph.github.io/drawio-tools/tools/convert.html Encode is https://github.com/jgraph/drawio-tools/blob/master/tools/convert.html#L11 And opposites for decode. |
Beta Was this translation helpful? Give feedback.
Oh, reading carefully your FAQ docs I noticed the prefix letter
R
which denotesraw
diagram data. Removing it revealed that the algorithm for compression isXML -> URL Encode -> Deflate -> URL Encode -> Embed to the full URL with trailing #R
, so that now I can generate such link as well.I am sorry for my inattentiveness.