How to publish live updates for viewers?

263 views
Skip to first unread message

Paul Sandoval

unread,
Aug 15, 2018, 12:17:23 PM8/15/18
to draw.io
Is there a way to push the current version of a flow diagram to a link in such a way that I can complete the following?

1. As I make updates in draw.IO these updates flow to an image others can view without actually viewing/using draw.io? (example: I add a circle to my diagram in draw.io and viewers would then see said circle when they refresh the URL they use to view the diagram)
2. Can I do #1 and exclude specific layers of the diagram (I use one layer for making notes and would like to omit that layer to viewers.)

Thanks Drawers!

justin.c...@ansys.com

unread,
Aug 15, 2018, 1:36:05 PM8/15/18
to draw.io
If you want to just send them a link to the diagram you can do File->Publish and give them that URL, it will auto update (note there are variables in the url you can set to modify what is seen, i.e. you can add a page variable to choose which page to view. There is also a layers variable listed by default but it might just be 1 (on) or 0 (off), don't know if you can pick specific layers with that or another variable.

Can also embed diagrams in web pages via straight HTML or an IFRAME (in draw.io go to File->Embed->[Pick an option]). Make sure they have access to view the diagram. Same as the above you can set variables in the code to customize how it's viewed. Pasted an example of the iframe code that draw.io generates (removed the links to the diagram). I added the page variable to set the view to view the diagram of index 3 by default (0 index based).

<iframe frameborder="0" style="width:100%;height:926px;" src="https://www.draw.io/?lightbox=1&highlight=0000ff&page=3&edit=[linktoeditfile]&layers=1&nav=3&title=[linktodiagramwouldbehere]"></iframe>

Note, if you want them to be able to edit the diagram directly when generating the publish link or html code you have to change the edit option to custom and just hit ok on the link that pops up by default. Otherwise it will create copies for them to edit.
Reply all
Reply to author
Forward
0 new messages