diff --git a/docs/_ext/drawio-lazy.js b/docs/_ext/drawio-lazy.js index 02d03f380..02045f31a 100644 --- a/docs/_ext/drawio-lazy.js +++ b/docs/_ext/drawio-lazy.js @@ -49,7 +49,8 @@ viewer(), ]); element.setAttribute("data-mxgraph", JSON.stringify({ - xml, resize: true, fit: true, nav: false, lightbox: false, toolbar: "", + xml, resize: true, fit: true, nav: false, lightbox: true, + toolbar: "zoom lightbox", "toolbar-nohide": true, editable: false, })); element.replaceChildren(); window.GraphViewer.createViewerForElement(element); diff --git a/docs/cheatsheet.rst b/docs/cheatsheet.rst index b4816413e..f6ee34ae1 100644 --- a/docs/cheatsheet.rst +++ b/docs/cheatsheet.rst @@ -5,6 +5,9 @@ They say don't change a winning team. With UltraPlot we use Matplotlib's object add to it essential quality of life improvements to make high quality publication ready plots. To highlight the capabilities in a bird's eye view, we have included a few Matplotlib style cheat sheets below. +Use the expand icon in each sheet's toolbar to open a full-screen view, then +zoom in to read the details. Press :kbd:`Esc` or use the close icon to return. + ================ General Overview @@ -44,4 +47,3 @@ Expert ====== .. drawio:: ../tools/cheatsheet/ultraplot_cheatsheet.drawio :page: Advanced ยท specialist tools - diff --git a/tools/cheatsheet/README.md b/tools/cheatsheet/README.md index 4cf30fe06..88b4c3793 100644 --- a/tools/cheatsheet/README.md +++ b/tools/cheatsheet/README.md @@ -144,6 +144,10 @@ Failed downloads show a retry button. Without JavaScript, a link to the source XML remains available. This does not change the editable diagram or require exporting previews through the draw.io desktop application. +Each rendered sheet has an always-visible zoom and expand toolbar. The expand +control opens the viewer's full-screen lightbox, where readers can zoom and pan +the diagram; Escape or the close control returns to the documentation page. + Run the extension integration tests with: ```bash