Skip to content

Add view only mode - #121

Merged
Nicolas-Boltz merged 3 commits into
mainfrom
view-mode
Sep 17, 2026
Merged

Nicolas-Boltz merged 3 commits into
mainfrom
view-mode

Conversation

@Kr0nox

@Kr0nox Kr0nox commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

By setting the URL flag embed=true, the viewer will hide all floating elements, and disables all key events and all mouse events exept for: panning, zooming and opening the assignment window.

Beispiel: https://dataflowanalysis.github.io/OnlineEditorStaging/prs/121/?embed=true

@Kr0nox

This comment was marked as outdated.

@Nicolas-Boltz

Copy link
Copy Markdown
Member

As it should only be used for viewing, you should also disable keyboard shortcuts.

Also, I would assume, that viewOnly includes setting readOnly to true. But if we can just set both to true individually thats fine as well

@Kr0nox

This comment was marked as outdated.

@Nicolas-Boltz

Copy link
Copy Markdown
Member

If I now load a diagram with a message annotation, it is however not shown when hovering.

@Kr0nox

Kr0nox commented Sep 17, 2026

Copy link
Copy Markdown
Member Author

/stage

@Nicolas-Boltz
Nicolas-Boltz merged commit 943290c into main Sep 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants