Usually, when you embed a draw.io diagram on a Confluence page, you'll be able to click on links inside the diagram, step through pages and enable/disable layers using the toolbar that appears at the top of your diagram by default.
If you want to disable interaction and the diagram toolbar when viewing a Confluence page, you can set the draw.io macro to use the Simple Viewer. This displays a simple PNG image in your page without the diagram toolbar - you can't click on links, step through pages or enable/disable layers using the Simple Viewer.
Enable the Simple Viewer
- When editing the page, click on the draw.io macro, then select Edit macro to open the draw.io Macro Settings dialog.
- Enable the Simple Viewer checkbox, click Save then save your Confluence page.
The diagram toolbar is disabled, even though the Toolbar dropdown still defines where it would appear if you weren't using the Simple Viewer.
Now, your diagram will be displayed as a PNG image within your page. Users can still click on the diagram to open it in the Lightbox, where links and page navigation are available.
Display a specific page and layers in the Simple Viewer
Of course, you can change which page and layers are displayed - click on Select viewer page and layers in the draw.io Macro Settings dialog.
Disable the Lightbox
To prevent all interaction, disable the Lightbox by deselecting that checkbox in the draw.io Macro Settings dialog. Now, when viewing the Confluence page, the diagram is a static image which can't be opened in the Lightbox.